/* ==========================================================================
   Neuro marketing site — design tokens lifted 1:1 from the real app's
   Packages/NeuroUI/Sources/NeuroUI/Theme.swift, so the site and the app
   feel like the same product.
   ========================================================================== */

:root {
  --bg: #0a0912;
  --bg-grad-top: #171426;
  --surface: #1b1826;
  --surface-elevated: #24202f;
  --stroke: rgba(255, 255, 255, 0.07);
  --stroke-strong: rgba(255, 255, 255, 0.14);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.58);
  --text-tertiary: rgba(255, 255, 255, 0.36);

  --violet: #8b6bff;
  --pink: #ff6fb0;
  --gold: #ffc85c;
  --mint: #63e6c4;

  --accent-gradient: linear-gradient(135deg, var(--violet), var(--pink));

  --card-radius: 22px;
  --button-radius: 18px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background gradient, matches Theme.backgroundGradient */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-grad-top), var(--bg) 45%);
  z-index: -2;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 96px 0;
}

@media (max-width: 720px) {
  section {
    padding: 64px 0;
  }
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 17px;
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease,
    border-color 0.3s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 9, 18, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--stroke);
  padding: 12px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.nav-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--stroke-strong);
  padding: 7px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  color: var(--text-primary);
  border-color: var(--violet);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--card-radius);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .nav-toggle {
    display: block;
  }
}

/* ==========================================================================
   Buttons / pills
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--button-radius);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(139, 107, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(139, 107, 255, 0.45);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--stroke-strong);
}

.btn-secondary:hover {
  border-color: var(--violet);
}

.btn-disabled,
.badge-soon {
  background: var(--surface-elevated);
  color: var(--text-tertiary);
  border: 1px solid var(--stroke);
  cursor: not-allowed;
  position: relative;
}

.badge-soon {
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  gap: 10px;
}

.badge-soon .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
  filter: blur(0.5px);
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-620px) translateX(var(--drift, 40px));
    opacity: 0;
  }
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero h1 .grad {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 19px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 88px;
}

.hero-visual {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.hero-glow {
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 200, 92, 0.45) 0%,
    rgba(255, 111, 176, 0.22) 35%,
    rgba(139, 107, 255, 0.12) 55%,
    transparent 72%
  );
  filter: blur(4px);
  animation: glow-pulse 4.5s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

.hero-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 54px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--stroke-strong);
  animation: bob 6s ease-in-out infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(1.2deg);
  }
}

/* ==========================================================================
   Loop / steps
   ========================================================================== */

.loop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
}

.loop-grid::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--violet),
    var(--pink),
    var(--gold),
    var(--mint)
  );
  opacity: 0.35;
  z-index: 0;
}

@media (max-width: 900px) {
  .loop-grid {
    grid-template-columns: 1fr;
  }
  .loop-grid::before {
    display: none;
  }
}

.loop-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.loop-num {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  font-weight: 800;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.loop-step:hover .loop-num {
  transform: scale(1.08);
  border-color: var(--violet);
}

.loop-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.loop-step p {
  font-size: 14.5px;
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  margin-bottom: 16px;
}

/* ==========================================================================
   Feature cards
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 980px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--card-radius);
  padding: 28px 26px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease, background 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--stroke-strong);
  background: var(--surface-elevated);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  margin: 0;
}

/* icon tint variants, one per accent */
.tint-violet {
  background: rgba(139, 107, 255, 0.16);
  color: var(--violet);
}
.tint-pink {
  background: rgba(255, 111, 176, 0.16);
  color: var(--pink);
}
.tint-gold {
  background: rgba(255, 200, 92, 0.16);
  color: var(--gold);
}
.tint-mint {
  background: rgba(99, 230, 196, 0.16);
  color: var(--mint);
}

/* ==========================================================================
   Stats strip
   ========================================================================== */

.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  text-align: center;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
}
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat-num {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   L Squared credit section
   ========================================================================== */

.credit-card {
  background: linear-gradient(
    135deg,
    var(--surface) 0%,
    var(--surface-elevated) 100%
  );
  border: 1px solid var(--stroke-strong);
  border-radius: 28px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.credit-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(139, 107, 255, 0.18),
    transparent 60%
  );
  pointer-events: none;
}

.credit-card img {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
}

.credit-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.credit-card p {
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-top: 6px;
  max-width: 280px;
}

.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-lsquared {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease;
}

.footer-lsquared:hover {
  opacity: 0.75;
}

.footer-lsquared img {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Inner pages (Privacy / Support)
   ========================================================================== */

.page-hero {
  padding-top: 160px;
  padding-bottom: 48px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-bottom: 14px;
}

.updated-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-tertiary);
  background: var(--surface);
  border: 1px solid var(--stroke);
  padding: 6px 14px;
  border-radius: 999px;
  margin-top: 8px;
}

.policy {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.policy h2 {
  font-size: 22px;
  margin: 48px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.policy h2:first-child {
  margin-top: 0;
}

.policy h2::before {
  content: "";
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent-gradient);
}

.policy p,
.policy li {
  font-size: 16px;
}

.policy ul {
  padding-left: 20px;
  color: var(--text-secondary);
}

.policy li {
  margin-bottom: 8px;
}

.policy a.inline-link {
  color: var(--mint);
  text-decoration: underline;
  text-decoration-color: rgba(99, 230, 196, 0.4);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-question .chev {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--violet);
}

.faq-item.open .faq-question .chev {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  margin: 0;
  font-size: 15px;
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

.contact-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--card-radius);
  padding: 32px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--stroke-strong);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(139, 107, 255, 0.2);
}

.field textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 14px;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(99, 230, 196, 0.12);
  border: 1px solid rgba(99, 230, 196, 0.35);
  color: var(--mint);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.show {
  display: flex;
}

.info-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--stroke);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-row div p {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.info-row div a,
.info-row div span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   RTL (Arabic) overrides — flexbox/grid already mirror automatically via
   the html[dir="rtl"] direction, these are the handful of physical
   left/right values that don't.
   ========================================================================== */

[dir="rtl"] .faq-question {
  text-align: right;
}

[dir="rtl"] .policy ul {
  padding-left: 0;
  padding-right: 20px;
}

[dir="rtl"] .field label,
[dir="rtl"] .field input,
[dir="rtl"] .field textarea {
  text-align: right;
}
