/* ==========================================================================
   Aurora Crew — theme tokens
   Dark is the default theme. Light applies with html[data-theme="light"].
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Brand */
  --color-midnight: #04081d;
  --color-navy: #0b1f45;
  --color-sunrise: #fcb045;
  --color-aurora: #6ee7ff;
  --color-violet: #a78bfa;

  /* Surfaces */
  --bg: #060a1c;
  --bg-glow-1: rgba(110, 231, 255, 0.14);
  --bg-glow-2: rgba(167, 139, 250, 0.12);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --header-bg: rgba(6, 10, 28, 0.72);
  --menu-bg: #0c122a;
  --footer-bg: #03061a;

  /* Borders & shadows */
  --border: rgba(148, 179, 255, 0.12);
  --border-strong: rgba(148, 179, 255, 0.22);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 0 1px rgba(110, 231, 255, 0.25), 0 18px 40px rgba(110, 231, 255, 0.12);

  /* Text */
  --text: #e7eeff;
  --text-strong: #ffffff;
  --text-muted: rgba(214, 225, 255, 0.72);
  --text-subtle: rgba(214, 225, 255, 0.5);
  --heading: #ffffff;
  --accent: var(--color-aurora);
  --accent-warm: var(--color-sunrise);

  /* Components */
  --cta-primary-bg: linear-gradient(120deg, #6ee7ff, #a78bfa);
  --cta-primary-text: #04081d;
  --cta-primary-shadow: 0 10px 30px rgba(110, 231, 255, 0.25);
  --cta-secondary-bg: rgba(110, 231, 255, 0.1);
  --cta-secondary-bg-hover: rgba(110, 231, 255, 0.18);
  --cta-secondary-text: var(--color-aurora);
  --feature-bg: linear-gradient(150deg, rgba(20, 40, 88, 0.9), rgba(10, 18, 46, 0.9));
  --feature-text: #f7fbff;
  --feature-muted: rgba(231, 238, 255, 0.72);
  --contact-bg: linear-gradient(130deg, rgba(252, 176, 69, 0.08), rgba(110, 231, 255, 0.08));
  --selection: rgba(110, 231, 255, 0.3);

  --max-width: 1100px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font-display: "Barlow Condensed", "Barlow", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f4f9ff;
  --bg-glow-1: rgba(110, 231, 255, 0.28);
  --bg-glow-2: rgba(167, 139, 250, 0.14);
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --surface-hover: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.85);
  --menu-bg: #ffffff;
  --footer-bg: var(--color-midnight);

  --border: rgba(11, 31, 69, 0.08);
  --border-strong: rgba(11, 31, 69, 0.14);
  --shadow-sm: 0 8px 20px rgba(12, 26, 53, 0.08);
  --shadow-md: 0 18px 38px rgba(12, 26, 53, 0.12);
  --shadow-glow: 0 18px 38px rgba(12, 26, 53, 0.14);

  --text: #0d1633;
  --text-strong: #04081d;
  --text-muted: rgba(13, 22, 51, 0.76);
  --text-subtle: rgba(11, 31, 69, 0.52);
  --heading: var(--color-midnight);
  --accent: #0b6c8c;
  --accent-warm: #c97a10;

  --cta-primary-bg: linear-gradient(120deg, var(--color-navy), var(--color-midnight));
  --cta-primary-text: #ffffff;
  --cta-primary-shadow: 0 10px 24px rgba(11, 31, 69, 0.28);
  --cta-secondary-bg: rgba(110, 231, 255, 0.18);
  --cta-secondary-bg-hover: rgba(110, 231, 255, 0.3);
  --cta-secondary-text: var(--color-navy);
  --feature-bg: linear-gradient(150deg, rgba(11, 31, 69, 0.95), rgba(4, 8, 29, 0.92));
  --contact-bg: linear-gradient(130deg, rgba(252, 176, 69, 0.12), rgba(110, 231, 255, 0.18));
  --selection: rgba(110, 231, 255, 0.45);
}

/* ==========================================================================
   Base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

::selection {
  background: var(--selection);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Barlow", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 85% -10%, var(--bg-glow-1), transparent 65%),
    radial-gradient(800px 500px at -10% 20%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.5s ease, background-color 0.3s ease, color 0.3s ease;
}

body.page-loaded {
  opacity: 1;
}

body.is-exiting {
  opacity: 0;
}

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

[id] {
  scroll-margin-top: 88px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

main a:not([class]) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--heading);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, var(--color-aurora), var(--color-navy) 75%);
  box-shadow: 0 0 0 1px rgba(110, 231, 255, 0.3), 0 6px 18px rgba(110, 231, 255, 0.18);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 600;
  font-size: 1.05rem;
}

.nav-links {
  display: flex;
  margin-left: auto;
  gap: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-links a:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
}

.nav-links a.is-active {
  color: var(--text-strong);
  position: relative;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(120deg, var(--color-aurora), var(--color-violet));
  border-radius: 999px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.mobile-menu {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.mobile-menu:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.mobile-menu {
  display: none;
}

.mobile-menu svg {
  width: 24px;
  height: 24px;
}

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

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.75rem 4.5rem;
  display: grid;
  gap: 3.25rem;
}

.hero-content {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent-warm);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 3.75rem);
  line-height: 1.04;
  margin: 0 0 1.5rem;
  color: var(--heading);
}

:root:not([data-theme="light"]) .hero h1 {
  background: linear-gradient(120deg, #ffffff 30%, #b7f3ff 70%, #c9b8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 2.25rem;
  color: var(--text-muted);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  border-radius: 999px;
  padding: 0.9rem 1.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta-primary {
  background: var(--cta-primary-bg);
  color: var(--cta-primary-text);
  box-shadow: var(--cta-primary-shadow);
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--cta-primary-shadow), 0 0 0 4px var(--cta-secondary-bg);
}

.cta-secondary {
  background: var(--cta-secondary-bg);
  color: var(--cta-secondary-text);
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  background: var(--cta-secondary-bg-hover);
  transform: translateY(-1px);
}

.approach-item .cta-secondary {
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.65rem 1.3rem;
  font-size: 0.95rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--feature-bg);
  color: var(--feature-text);
  border: 1px solid rgba(110, 231, 255, 0.18);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.1rem;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.hero-card p {
  margin: 0;
  line-height: 1.5;
  color: var(--feature-muted);
}

.hero-card strong {
  font-size: 2.35rem;
  line-height: 1;
  display: block;
  letter-spacing: 0.02em;
  color: var(--color-aurora);
}

.hero-highlights {
  margin: 2rem 0 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-highlights strong {
  color: var(--text-strong);
}

/* ==========================================================================
   Sections & cards
   ========================================================================== */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.75rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--heading);
}

.section-intro,
.section > p {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.service-grid,
.approach-grid,
.metric-grid,
.testimonials,
.contact-options {
  display: grid;
  gap: 1.8rem;
}

.service-grid {
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.service-card,
.approach-item,
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.service-card {
  position: relative;
  padding: 2.25rem;
  border-radius: var(--radius-md);
  display: grid;
  gap: 1rem;
  align-content: start;
}

.service-card::after {
  content: "";
  position: absolute;
  left: 2.25rem;
  right: 2.25rem;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-aurora), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover,
.approach-item:hover {
  transform: translateY(-3px);
  background: var(--surface-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card span {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.service-card h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--heading);
}

.service-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.metrics {
  position: relative;
  overflow: hidden;
  background: var(--feature-bg);
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: var(--feature-text);
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
  box-shadow: var(--shadow-md);
}

.metrics::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 320px;
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.25), transparent);
  pointer-events: none;
}

.metrics h3 {
  position: relative;
  margin: 0;
  font-size: 1.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.metric-grid {
  position: relative;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1.75rem;
}

.metric {
  display: grid;
  gap: 0.35rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(110, 231, 255, 0.35);
}

.metric strong {
  font-size: 2.3rem;
  letter-spacing: 0.04em;
  color: var(--color-aurora);
}

.metric span {
  color: var(--feature-muted);
  line-height: 1.5;
}

.approach-grid {
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.5rem;
}

.approach-item {
  padding: 1.75rem;
  border-radius: 14px;
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.approach-item h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--heading);
}

.approach-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--text-muted);
}

.approach-item ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.policy-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.approach-grid + .policy-list {
  margin-top: 2rem;
}

.policy-list li::marker,
.approach-item li::marker,
.hero-highlights li::marker,
.contact-card li::marker {
  color: var(--accent);
}

.testimonials {
  margin-top: 3rem;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.testimonial {
  position: relative;
  margin: 0;
  padding: 2.25rem 2rem 2rem;
  border-radius: 18px;
}

.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.35;
}

.testimonial p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.testimonial cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--heading);
}

.testimonial cite span {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   Contact & store
   ========================================================================== */

.contact-card {
  margin-top: 2rem;
  border-radius: 20px;
  background: var(--contact-bg);
  border: 1px solid var(--border-strong);
  padding: 2.75rem;
  display: grid;
  gap: 1.5rem;
}

.contact-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.contact-card ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
}

.contact-options {
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), max-content));
}

.contact-options a,
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  font-weight: 500;
  color: var(--text-strong);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

main .contact-options a {
  border-radius: 999px;
  color: var(--text-strong);
  text-decoration: none;
}

.contact-options a:hover,
.store-button:hover {
  transform: translateY(-1px);
  background: var(--surface-hover);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.store-links {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.store-button {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Page hero (inner pages)
   ========================================================================== */

.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.75rem 3rem;
  display: grid;
  gap: 1.5rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  margin-bottom: 0;
}

.page-hero p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 720px;
  color: var(--text-muted);
}

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

footer {
  margin-top: 2rem;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: rgba(231, 238, 255, 0.66);
  padding: 2.5rem 1.75rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.footer-inner span {
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: rgba(231, 238, 255, 0.66);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-aurora);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 850px) {
  .nav {
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    position: absolute;
    inset: 72px 1.25rem auto;
    background: var(--menu-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: grid;
    gap: 1rem;
    color: var(--text);
    box-shadow: var(--shadow-md);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links a {
    padding: 0.35rem 0;
  }

  .nav-links[data-open="true"] {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav-links a.is-active::after {
    display: none;
  }

  .nav-links a.is-active {
    color: var(--accent);
  }

  .mobile-menu {
    display: inline-grid;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .hero {
    padding-top: 4.5rem;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 1.25rem;
  }

  .hero {
    gap: 2.5rem;
    padding: 3.5rem 1rem 3rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  .page-hero {
    padding: 3rem 1rem 1rem;
    gap: 1.25rem;
  }

  .page-hero p,
  .lead {
    font-size: 1.05rem;
  }

  .service-grid,
  .approach-grid,
  .testimonials {
    margin-top: 2rem;
    gap: 1rem;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }

  .service-card::after {
    left: 1.5rem;
    right: 1.5rem;
  }

  .approach-item,
  .testimonial {
    padding: 1.5rem;
  }

  .approach-item .cta-secondary {
    justify-self: stretch;
    text-align: center;
  }

  .hero-card {
    padding: 1.75rem 1.5rem;
  }

  .metrics {
    padding: 1.75rem 1.5rem;
    gap: 1.75rem;
  }

  .metric strong {
    font-size: 2rem;
  }

  .contact-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-options a,
  .store-button {
    justify-content: center;
    width: 100%;
    overflow-wrap: anywhere;
  }

  .store-links {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Cursor highlight
   ========================================================================== */

.cursor-highlight {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 231, 255, 0.16) 0%, rgba(110, 231, 255, 0) 70%);
  mix-blend-mode: screen;
  transform: translate(-9999px, -9999px);
  transition: transform 0.12s ease-out, opacity 0.3s ease;
  opacity: 0;
  z-index: 999;
}

html[data-theme="light"] .cursor-highlight {
  background: radial-gradient(circle, rgba(110, 231, 255, 0.35) 0%, rgba(110, 231, 255, 0) 70%);
  mix-blend-mode: multiply;
}

body.pointer-active .cursor-highlight {
  opacity: 1;
}

@media (hover: none) {
  .cursor-highlight {
    display: none;
  }
}
