/* mobieus.io — shared base styles for all pages */
:root {
  --blue: #2C7CFF;
  --blue-bright: #4D90FF;
  --purple: #7B3FE4;
  --purple-bright: #9B5FFF;
  --grad: linear-gradient(135deg, #2C7CFF 0%, #7B3FE4 100%);
  --grad-soft: linear-gradient(135deg, rgba(44,124,255,0.15) 0%, rgba(123,63,228,0.15) 100%);
  --bg: #07091A;
  --bg-2: #0E1228;
  --bg-3: #161B36;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.16);
  --text: #F4F6FB;
  --text-dim: #A7AEC4;
  --text-muted: #6B7390;
  --green: #00FF88;
  --amber: #FFB347;
  --red: #FF6B6B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 15% 0%, rgba(44,124,255,0.18), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 30%, rgba(123,63,228,0.15), transparent 60%),
    radial-gradient(ellipse 900px 700px at 50% 100%, rgba(44,124,255,0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 1200px 800px at 50% 30%, black, transparent 80%);
}

main, nav, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mono { font-family: 'JetBrains Mono', monospace; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Nav */
nav.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7,9,26,0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav-brand img {
  height: 72px;
  width: auto;
  filter: drop-shadow(0 0 16px rgba(44,124,255,0.35));
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }

.nav-cta { display: flex; gap: 12px; }

/* Hamburger toggle */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.06); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  padding: 20px 32px 28px;
}
.nav-mobile.open { display: block; }
.nav-mobile-links { list-style: none; display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.nav-mobile-links a {
  display: block;
  padding: 12px 0;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active { color: var(--text); }
.nav-mobile .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta  { display: none; }
  .nav-hamburger { display: flex; }
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100vw - 48px);
}
.toast {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-error   { background: rgba(255,107,107,0.14); border: 1px solid rgba(255,107,107,0.35); color: #FF6B6B; }
.toast-success { background: rgba(0,255,136,0.08);  border: 1px solid rgba(0,255,136,0.30);  color: #00FF88; }
.toast-info    { background: rgba(77,144,255,0.10);  border: 1px solid rgba(77,144,255,0.30);  color: var(--blue-bright); }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { transition: opacity 0.15s; transform: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--grad);
  color: white;
  box-shadow: 0 8px 24px rgba(44,124,255,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(44,124,255,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.24);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }

/* Section base */
section { padding: 100px 0; position: relative; }

.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  margin-bottom: 20px;
  max-width: 800px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 64px;
}

/* Page hero (compact) */
.page-hero {
  padding: 180px 0 60px;
  text-align: left;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(180deg, #FFFFFF 0%, #B5BCD3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-dim);
  max-width: 760px;
  line-height: 1.5;
}

/* Footer */
footer.site-footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col-brand { max-width: 360px; }

.footer-blurb {
  margin-top: 18px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand img { height: 40px; }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

/* Form elements (used on contact + trial) */
.form-grid {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-bright);
}

.form-input,
.form-textarea,
.form-select {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.2s, background 0.2s;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23A7AEC4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--blue-bright);
  background-color: rgba(255,255,255,0.05);
}

.form-textarea { min-height: 120px; resize: vertical; font-family: inherit; }

.form-select option,
.form-select optgroup {
  background-color: var(--bg-2);
  color: var(--text);
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* Legal pages prose */
.prose {
  max-width: 760px;
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
}

.prose h2 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 28px;
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 12px;
}

.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blue-bright); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: 600; }
