/* Cerebra Global - retro glass aesthetic. Warm charcoal default, cream light toggle. */

:root {
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;

  --bg: #1e1812;
  --bg-soft: #292019;
  --surface: rgba(255, 244, 230, 0.055);
  --surface-strong: rgba(255, 244, 230, 0.1);
  --border: rgba(238, 214, 175, 0.16);
  --text: #f3e9d7;
  --muted: #b7a78d;
  --amber: #d98e32;
  --amber-deep: #b96f1e;
  --teal: #2a9d94;
  --teal-deep: #1f7a74;
  --terra: #c46b4a;
  --ink: #2c2318;
  --nav-bg: rgba(30, 24, 18, 0.82);
  --input-bg: rgba(255, 244, 230, 0.06);
  --shadow: 0 22px 50px -22px rgba(0, 0, 0, 0.55);
  --card-shadow-hover: 0 30px 60px -24px rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] {
  --bg: #faf5ea;
  --bg-soft: #f2ebda;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-strong: rgba(255, 255, 255, 0.8);
  --border: rgba(122, 90, 48, 0.18);
  --text: #2c2318;
  --muted: #7d6c56;
  --nav-bg: rgba(250, 245, 234, 0.82);
  --input-bg: rgba(255, 255, 255, 0.75);
  --shadow: 0 22px 50px -24px rgba(122, 84, 32, 0.28);
  --card-shadow-hover: 0 30px 60px -26px rgba(122, 84, 32, 0.38);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: rgba(217, 142, 50, 0.35); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.25rem; }

a { color: var(--text); }
.muted { color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 0.75rem;
}
html[data-theme="light"] .eyebrow { color: var(--amber-deep); }

.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-lead { color: var(--muted); max-width: 44rem; font-size: 1.1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-size: 1.25rem; text-decoration: none; }
.brand-logo { flex: none; width: 34px; height: 34px; }
.navbar { padding: 0.9rem 0; }
.navbar .nav-link { color: var(--muted); font-weight: 500; margin: 0 0.35rem; transition: color 0.2s; }
.navbar .nav-link:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1.15rem !important;
  background: linear-gradient(135deg, #e8a33d, var(--terra));
  color: var(--ink) !important;
  font-weight: 600;
}
.navbar-toggler { border-color: var(--border); }
.navbar-toggler-icon { filter: invert(0.6); }
html[data-theme="light"] .navbar-toggler-icon { filter: none; }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.theme-toggle:hover { transform: rotate(12deg); background: var(--surface-strong); }
.icon-sun { display: none; }
html[data-theme="light"] .icon-sun { display: block; }
html[data-theme="light"] .icon-moon { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 7.5rem 0 5.5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: -10% 0; pointer-events: none; will-change: transform; }
.orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.orb-a { width: 440px; height: 440px; background: rgba(217, 142, 50, 0.3); top: -130px; left: -110px; }
.orb-b { width: 380px; height: 380px; background: rgba(196, 107, 74, 0.26); top: 60px; right: -130px; animation-delay: -6s; }
.orb-c { width: 260px; height: 260px; background: rgba(42, 157, 148, 0.22); bottom: -110px; left: 38%; animation-delay: -11s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, 34px) scale(1.1); }
}
.hero-inner { position: relative; text-align: center; max-width: 56rem; margin: 0 auto; }
.hero h1 {
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  margin: 0.5rem 0 1.25rem;
  color: var(--text);
}
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 44rem; margin: 0 auto 2.25rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }

.btn-primary {
  background: linear-gradient(135deg, #e8a33d, var(--terra));
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 2rem;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: sheen 4s ease-in-out infinite;
}
@keyframes sheen {
  0% { left: -70%; }
  55%, 100% { left: 140%; }
}
.btn-primary:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--card-shadow-hover); }
.btn-ghost {
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.8rem 2rem;
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background 0.2s, transform 0.2s;
}
.btn-ghost:hover { background: var(--surface-strong); color: var(--text); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin: 0; padding: 2rem 0 0;
  border-top: 1px solid var(--border);
}
.hero-stats div { text-align: center; max-width: 15rem; }
.hero-stats dt { font-family: var(--font-display); font-size: 1.5rem; color: var(--amber); }
html[data-theme="light"] .hero-stats dt { color: var(--amber-deep); }
.hero-stats dd { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 1rem 0;
}
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; white-space: nowrap; }
.marquee-group span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--muted); }
.marquee-group .dot { font-style: normal; color: var(--amber); font-size: 0.9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- glass cards ---------- */
.card-svc, .card-data {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative;
}
.card-svc:hover, .card-data:hover { transform: translateY(-6px); border-color: rgba(217, 142, 50, 0.55); box-shadow: var(--card-shadow-hover); }
.card-svc h3, .card-data h3 { margin: 1.1rem 0 0.6rem; }
.card-svc p, .card-data p { color: var(--muted); margin-bottom: 0; }
.svc-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--amber);
  color: var(--ink);
}
.card-featured { border: 1.5px solid var(--amber); }
.featured-tag {
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--amber); color: var(--ink);
  border-radius: 999px; padding: 0.3rem 0.8rem;
}
.text-link { color: var(--teal-deep); font-weight: 600; text-decoration: none; display: inline-block; margin-top: 1rem; }
html[data-theme="dark"] .text-link { color: var(--teal); }
.text-link:hover { color: var(--amber-deep); }

/* ---------- expert chips ---------- */
.lang-heading { margin-top: 3.5rem; }
.lang-grid {
  list-style: none; padding: 0; margin: 1.25rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.lang-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.55rem;
  transition: border-color 0.2s, transform 0.2s;
}
.lang-chip:hover { border-color: var(--amber); transform: translateY(-2px); }
.lang-core { border-color: rgba(217, 142, 50, 0.55); }
.core-badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--amber); color: var(--ink);
  border-radius: 999px; padding: 0.15rem 0.6rem;
}
.modest-line { color: var(--muted); margin-top: 1.75rem; max-width: 44rem; }
.trust-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.trust-item {
  border-left: 3px solid var(--amber);
  padding: 0.25rem 0 0.25rem 1.25rem;
}
.trust-item strong { display: block; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.trust-item span { color: var(--muted); }

/* ---------- process ---------- */
.process-steps { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.process-steps li {
  background: var(--surface);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.process-steps li:hover { transform: translateY(-5px); border-color: rgba(217, 142, 50, 0.5); box-shadow: var(--card-shadow-hover); }
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--terra);
  display: block; margin-bottom: 0.75rem;
}
.process-steps h3 { margin-bottom: 0.5rem; }
.process-steps p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- why strip ---------- */
.why-strip { background: linear-gradient(120deg, #e8a33d, var(--terra)); padding: 2.75rem 0; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.why-grid li { color: var(--ink); }
.why-grid strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.why-grid span { font-size: 0.9rem; opacity: 0.85; }

/* ---------- contact ---------- */
.contact-form {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: var(--shadow);
}
.form-label { font-weight: 600; font-size: 0.9rem; }
.form-control, .form-select {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}
.form-control:focus, .form-select:focus {
  background: var(--input-bg);
  color: var(--text);
  border-color: var(--amber);
  box-shadow: 0 0 0 0.2rem rgba(217, 142, 50, 0.2);
}
.form-control::placeholder { color: var(--muted); }
.form-select option { background: var(--bg-soft); color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; background: var(--bg-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.65rem; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.1rem; }
.footer-brand .muted { font-size: 0.9rem; }
.footer-contact { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.footer-contact a { color: var(--teal-deep); text-decoration: none; font-weight: 600; }
html[data-theme="dark"] .footer-contact a { color: var(--teal); }
.footer-contact a:hover { color: var(--amber-deep); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
  .marquee-track { animation: none; }
  .btn-primary::after { animation: none; display: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hero { padding: 5rem 0 4rem; }
  .contact-form { padding: 1.5rem; }
}

/* Scale band */
.scale-band { padding: 2.25rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.scale-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2.5rem; justify-content: center; }
.scale-grid li { text-align: center; }
.scale-grid strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--amber); }
html[data-theme="light"] .scale-grid strong { color: var(--amber-deep); }
.scale-grid span { color: var(--muted); font-size: 0.92rem; }

/* Pilot band */
.pilot-band { padding: 3.5rem 0; }
.pilot-inner {
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: space-between;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.5rem;
  box-shadow: var(--shadow);
}
.pilot-inner h2 { margin: 0.4rem 0 0.6rem; }
.pilot-inner p { color: var(--muted); margin-bottom: 0; max-width: 34rem; }
.pilot-inner .btn { flex-shrink: 0; }

/* FAQ */
.faq-list { max-width: 46rem; margin-top: 1.5rem; }
.faq-list details {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 0.9rem; padding: 1.1rem 1.4rem; margin-bottom: 0.9rem;
}
.faq-list summary { cursor: pointer; font-weight: 600; font-family: var(--font-display); font-size: 1.05rem; }
.faq-list summary::marker { color: var(--amber); }
.faq-list details p { color: var(--muted); margin: 0.7rem 0 0; }
