/* Aqurio — critical CSS (inlined-equivalent, served first)
 * Design tokens, reset, base typography, announcement bar, sticky dark nav, hero, buttons.
 * Aligned 1:1 with the Netlify wireframe reference, with our real brand tokens.
 */

:root {
  /* Palette — primary */
  --color-teal: #0F4C5C;
  --color-coral: #FF5A6F;

  /* Palette — secondary */
  --color-indigo: #5B5FFF;
  --color-yellow: #FFC857;
  --color-mint: #2EC4B6;
  --color-violet: #9B5DE5;

  /* Light surfaces */
  --color-bg: #ECEDEF;
  --color-surface: #FFFFFF;
  --color-surface-2: #F5F5F5;
  --color-surface-3: #EAEBEE;
  --color-fill: #D8D9DD;
  --color-fill-dark: #B0B3BA;
  --color-border: #C5C7CC;

  /* Dark surfaces */
  --color-bg-deep: #0A1A1F;
  --color-bg-dark: #1C1C1C;
  --color-bg-dark-2: #16181F;
  --color-bg-nav: #22272E;
  --color-bg-final: #0F1116;
  --color-bg-final-2: #1F232B;

  /* Text */
  --color-text: #2E3038;
  --color-text-muted: #7A7D87;
  --color-text-label: #9B9EA8;
  --color-text-on-dark: rgba(255, 255, 255, 0.92);
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.55);
  --color-text-on-dark-subtle: rgba(255, 255, 255, 0.25);

  /* Gradients */
  --gradient-core: linear-gradient(135deg, #0F4C5C 0%, #2EC4B6 100%);
  --gradient-energy: linear-gradient(90deg, #FF5A6F 0%, #FFC857 100%);
  --gradient-depth: linear-gradient(180deg, #0A1A1F 0%, #0F4C5C 60%, #133840 100%);
  --gradient-final: linear-gradient(135deg, #0F1116 0%, #1F232B 100%);

  /* Typography — Sofia Pro primary (binding per v2 brief), Aptos fallback for launch */
  --font-primary: 'Sofia Pro', Aptos, 'Century Gothic', 'Trebuchet MS', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Layout */
  --container-max: 1360px;
  --container-padding: 24px;
  --nav-h: 68px;
  --announce-h: 40px;
  --sticky-top: calc(var(--announce-h) + var(--nav-h));

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(35, 75, 90, 0.10);

  /* Motion */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }
ul, ol { list-style: none; }

a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-coral);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--color-bg-nav);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus { top: 0; }

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

/* ───────── ANNOUNCEMENT BAR ───────── */
.announce {
  position: sticky;
  top: 0;
  z-index: 400;
  background: var(--gradient-energy);
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--weight-medium);
}
.announce__icon { width: 16px; height: 16px; flex-shrink: 0; }
.announce strong { font-weight: var(--weight-bold); }
.announce__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: var(--weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.announce__link:hover { text-decoration-thickness: 2px; }

/* ───────── NAV (sticky, dark) ───────── */
.nav {
  position: sticky;
  top: var(--announce-h);
  z-index: 300;
  background: var(--color-bg-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: var(--nav-h);
  display: flex;
  align-items: stretch;
}
.nav__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  gap: 4px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--weight-bold);
  font-size: 16px;
  color: #fff;
  margin-right: 12px;
  flex-shrink: 0;
}
.nav__logo-mark { width: 28px; height: 28px; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.55);
  padding: 0 14px;
  height: 100%;
  cursor: pointer;
  position: static;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
  border-radius: 0;
}
.nav__item:hover,
.nav__item.is-open {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
}
.nav__item .caret {
  font-size: 9px;
  opacity: 0.4;
  transition: transform var(--t-base);
  margin-left: 2px;
}
.nav__item.is-open .caret { transform: rotate(180deg); }
.nav__search {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
  margin-left: 8px;
}
.nav__search:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.nav__toggle {
  display: none;
  padding: 8px;
  color: #fff;
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: var(--weight-semibold);
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { font-size: 12px; padding: 7px 16px; }
.btn--lg { font-size: 14px; padding: 14px 28px; }

.btn--nav-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.75);
}
.btn--nav-outline:hover { background: rgba(255, 255, 255, 0.06); color: #fff; border-color: rgba(255, 255, 255, 0.5); }

.btn--nav-solid {
  background: var(--color-indigo);
  border-color: var(--color-indigo);
  color: #fff;
}
.btn--nav-solid:hover { background: #4E52E5; border-color: #4E52E5; box-shadow: 0 6px 20px rgba(91, 95, 255, 0.35); }

.btn--yellow {
  background: var(--color-yellow);
  border-color: var(--color-yellow);
  color: var(--color-text);
}
.btn--yellow:hover { background: #F0B945; border-color: #F0B945; box-shadow: var(--shadow-lg); }

.btn--white {
  background: #fff;
  border-color: #fff;
  color: var(--color-text);
}
.btn--white:hover { background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-lg); }

.btn--white-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn--white-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.7); }

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover { background: var(--color-surface); }

/* ───────── HERO ───────── */
.hero {
  background: var(--color-bg-nav);
  padding: 80px 24px;
  position: relative;
  min-height: calc(100vh - 108px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__sphere {
  position: absolute;
  top: 50%; left: 50%;
  width: 820px; height: 820px;
  margin-top: -410px; margin-left: -410px;
  opacity: 0.18;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: hero-sphere-spin 60s linear infinite;
  will-change: transform;
}
@media (min-width: 1280px) {
  .hero__sphere { width: 1040px; height: 1040px; margin-top: -520px; margin-left: -520px; }
}
@media (min-width: 1600px) {
  .hero__sphere { width: 1240px; height: 1240px; margin-top: -620px; margin-left: -620px; }
}
.hero__sphere-flow {
  transform-origin: 300px 300px;
  transform-box: fill-box;
  animation: hero-sphere-counter 45s linear infinite;
}
@keyframes hero-sphere-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes hero-sphere-counter { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

.hero__content {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mint);
  margin-bottom: 28px;
}
.hero__headline {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__headline em { color: var(--color-coral); font-style: italic; font-weight: inherit; }
.hero__subhead {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  max-width: 56ch;
  margin-bottom: 36px;
}
.hero__cta-group { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Hero scroll-down indicator */
.hero__scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  animation: hero-scroll-hint 2.6s ease-in-out infinite;
  z-index: 3;
}
.hero__scroll:hover { color: rgba(255, 255, 255, 0.85); }
.hero__scroll svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes hero-scroll-hint {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.55; }
  50%      { transform: translate(-50%, 8px); opacity: 1; }
}
@media (min-width: 1600px) { .hero__scroll { display: inline-flex; } }

/* Hero proof strip (in-hero, with marquee) */
.hero__proof {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.hero__proof-label {
  font-size: 10px;
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}
.hero__logos {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.hero__logos-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  animation: hero-marquee 40s linear infinite;
  padding: 4px 0;
}
.hero__logos:hover .hero__logos-track { animation-play-state: paused; }
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hero__logo {
  height: 28px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ───────── MOBILE ───────── */
@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__actions .btn--nav-outline { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; }
  .hero__headline { max-width: 100%; }
}

/* ───────── REDUCED MOTION ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
