/**
 * AVAILABIO — Landing Page Layout
 * Imports: tokens.css must load before this file.
 * Scope: /apps/landing/ only — never import from public/
 *
 * Sections:
 *  1. Reset & Base
 *  2. Navigation
 *  3. Hero
 *  4. Trust Bar
 *  5. Features
 *  6. How It Works
 *  7. Science / Proof
 *  8. CTA Banner
 *  9. Footer
 * 10. Utilities & Animations
 * 11. Responsive
 */

/* ─── 1. RESET & BASE ───────────────────────────────────────── */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--avb-font-body);
  font-size: var(--avb-text-base);
  line-height: var(--avb-leading-normal);
  color: var(--avb-text-900);
  background-color: var(--avb-bg);
  overflow-x: hidden;
}

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

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

button {
  font-family: var(--avb-font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* ─── 2. NAVIGATION ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--avb-nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--avb-space-8);
  transition: background var(--avb-duration-base) var(--avb-ease),
              box-shadow var(--avb-duration-base) var(--avb-ease);
}

.nav.scrolled {
  background: rgba(5, 14, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(14, 196, 160, 0.15);
}

.nav-inner {
  max-width: var(--avb-max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--avb-space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--avb-space-3);
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  /* Recolor the & mark to jade via CSS filter */
  filter: brightness(0) saturate(100%) invert(65%) sepia(60%) saturate(400%) hue-rotate(130deg) brightness(95%);
}

.nav-logo-name {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--avb-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--avb-space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--avb-text-sm);
  font-weight: 500;
  color: var(--avb-text-on-dark);
  opacity: 0.8;
  transition: opacity var(--avb-duration-fast);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--avb-space-3);
}

.nav-signin {
  font-size: var(--avb-text-sm);
  font-weight: 500;
  color: var(--avb-text-on-dark);
  opacity: 0.75;
  padding: var(--avb-space-2) var(--avb-space-4);
  transition: opacity var(--avb-duration-fast);
}

.nav-signin:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--avb-space-2);
  font-size: var(--avb-text-sm);
  font-weight: 600;
  border-radius: var(--avb-radius-pill);
  padding: 0.6rem 1.4rem;
  transition: transform var(--avb-duration-base) var(--avb-ease-spring),
              box-shadow var(--avb-duration-base) var(--avb-ease),
              opacity var(--avb-duration-fast);
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn-primary {
  background: var(--avb-grad-jade);
  color: #fff;
  box-shadow: var(--avb-shadow-jade-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--avb-shadow-jade);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: var(--avb-text-base);
  padding: 1rem 2.25rem;
}

/* ─── 3. HERO ───────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--avb-nav-height) + var(--avb-space-16)) var(--avb-space-8) var(--avb-space-24);
  background: var(--avb-grad-hero);
  overflow: hidden;
  text-align: center;
}

/* Radial glow behind content */
.hero::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(14, 196, 160, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

/* Bottom fade into next section */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--avb-bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--avb-content-width);
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--avb-space-2);
  font-size: var(--avb-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avb-jade-500);
  background: rgba(14, 196, 160, 0.10);
  border: 1px solid rgba(14, 196, 160, 0.25);
  padding: var(--avb-space-2) var(--avb-space-4);
  border-radius: var(--avb-radius-pill);
  margin-bottom: var(--avb-space-6);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--avb-jade-500);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero-h1 {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-6xl);
  font-weight: 800;
  line-height: var(--avb-leading-tight);
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--avb-space-6);
}

.hero-h1 em {
  font-style: normal;
  background: var(--avb-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--avb-text-lg);
  line-height: var(--avb-leading-loose);
  color: var(--avb-text-muted-dark);
  max-width: 560px;
  margin: 0 auto var(--avb-space-10);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--avb-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--avb-space-12);
}

.hero-note {
  font-size: var(--avb-text-xs);
  color: var(--avb-text-muted-dark);
  opacity: 0.6;
}

/* Floating molecular nodes decoration */
.hero-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-node {
  position: absolute;
  border-radius: 50%;
  background: rgba(14, 196, 160, 0.06);
  border: 1px solid rgba(14, 196, 160, 0.12);
  animation: float-node linear infinite;
}

.hero-node:nth-child(1) { width: 80px;  height: 80px;  top: 15%; left: 8%;  animation-duration: 18s; animation-delay: 0s; }
.hero-node:nth-child(2) { width: 50px;  height: 50px;  top: 25%; right: 12%; animation-duration: 14s; animation-delay: -4s; }
.hero-node:nth-child(3) { width: 120px; height: 120px; bottom: 20%; left: 5%;  animation-duration: 22s; animation-delay: -8s; }
.hero-node:nth-child(4) { width: 40px;  height: 40px;  bottom: 30%; right: 8%;  animation-duration: 16s; animation-delay: -2s; }
.hero-node:nth-child(5) { width: 60px;  height: 60px;  top: 55%; left: 20%; animation-duration: 20s; animation-delay: -6s; }
.hero-node:nth-child(6) { width: 90px;  height: 90px;  top: 40%; right: 18%; animation-duration: 25s; animation-delay: -10s; }

@keyframes float-node {
  0%   { transform: translate(0, 0) rotate(0deg);   opacity: 0.5; }
  33%  { transform: translate(12px, -18px) rotate(90deg);  opacity: 0.8; }
  66%  { transform: translate(-8px, 10px)  rotate(180deg); opacity: 0.4; }
  100% { transform: translate(0, 0) rotate(360deg); opacity: 0.5; }
}

/* ─── 4. TRUST BAR ──────────────────────────────────────────── */

.trust-bar {
  background: var(--avb-surface);
  border-top: 1px solid var(--avb-border);
  border-bottom: 1px solid var(--avb-border);
  padding: var(--avb-space-5) var(--avb-space-8);
}

.trust-bar-inner {
  max-width: var(--avb-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--avb-space-8);
  flex-wrap: wrap;
}

.trust-label {
  font-size: var(--avb-text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--avb-text-400);
}

.trust-items {
  display: flex;
  align-items: center;
  gap: var(--avb-space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--avb-space-2);
  font-size: var(--avb-text-sm);
  font-weight: 600;
  color: var(--avb-text-600);
}

.trust-item-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--avb-jade-500);
  stroke-width: 2;
  stroke-linecap: round;
}

.trust-divider {
  width: 1px;
  height: 18px;
  background: var(--avb-border);
}

/* ─── 5. FEATURES ───────────────────────────────────────────── */

.features {
  padding: var(--avb-space-24) var(--avb-space-8);
  background: var(--avb-bg);
}

.section-inner {
  max-width: var(--avb-max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--avb-space-16);
}

.section-tag {
  display: inline-block;
  font-size: var(--avb-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avb-jade-700);
  margin-bottom: var(--avb-space-3);
}

.section-h2 {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-4xl);
  font-weight: 800;
  line-height: var(--avb-leading-tight);
  letter-spacing: -0.02em;
  color: var(--avb-text-900);
  margin-bottom: var(--avb-space-4);
}

.section-sub {
  font-size: var(--avb-text-lg);
  color: var(--avb-text-600);
  max-width: 520px;
  margin: 0 auto;
  line-height: var(--avb-leading-loose);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--avb-space-6);
}

.feature-card {
  background: var(--avb-surface);
  border: 1px solid var(--avb-border);
  border-radius: var(--avb-radius-xl);
  padding: var(--avb-space-8);
  transition: transform var(--avb-duration-slow) var(--avb-ease-spring),
              box-shadow var(--avb-duration-slow) var(--avb-ease),
              border-color var(--avb-duration-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--avb-shadow-lg);
  border-color: var(--avb-jade-200);
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--avb-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--avb-space-5);
  background: var(--avb-jade-50);
}

.feature-card-icon.amber {
  background: var(--avb-amber-100);
}

.feature-card-icon.blue {
  background: var(--avb-primary-100);
}

.feature-card h3 {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-xl);
  font-weight: 700;
  color: var(--avb-text-900);
  margin-bottom: var(--avb-space-3);
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: var(--avb-text-sm);
  color: var(--avb-text-600);
  line-height: var(--avb-leading-loose);
}

.feature-card-badge {
  display: inline-block;
  margin-top: var(--avb-space-4);
  font-size: var(--avb-text-xs);
  font-weight: 600;
  color: var(--avb-jade-700);
  background: var(--avb-jade-100);
  padding: var(--avb-space-1) var(--avb-space-3);
  border-radius: var(--avb-radius-pill);
}

/* ─── 6. HOW IT WORKS ───────────────────────────────────────── */

.how-it-works {
  padding: var(--avb-space-24) var(--avb-space-8);
  background: var(--avb-dark-900);
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(14, 196, 160, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.how-it-works .section-h2 {
  color: #fff;
}

.how-it-works .section-sub {
  color: var(--avb-text-muted-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--avb-space-6);
  position: relative;
}

/* Connecting line between steps */
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + var(--avb-space-3));
  right: calc(16.66% + var(--avb-space-3));
  height: 1px;
  background: linear-gradient(90deg, var(--avb-jade-500), var(--avb-primary-300), var(--avb-jade-500));
  opacity: 0.3;
}

.step {
  background: var(--avb-dark-700);
  border: 1px solid rgba(14, 196, 160, 0.12);
  border-radius: var(--avb-radius-xl);
  padding: var(--avb-space-8);
  text-align: center;
  position: relative;
  transition: border-color var(--avb-duration-base), transform var(--avb-duration-slow) var(--avb-ease-spring);
}

.step:hover {
  border-color: rgba(14, 196, 160, 0.30);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--avb-grad-jade);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-xl);
  font-weight: 800;
  color: #fff;
  margin: 0 auto var(--avb-space-5);
  box-shadow: var(--avb-shadow-jade-sm);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-xl);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--avb-space-3);
}

.step p {
  font-size: var(--avb-text-sm);
  color: var(--avb-text-muted-dark);
  line-height: var(--avb-leading-loose);
}

/* ─── 7. SCIENCE / PROOF ────────────────────────────────────── */

.science {
  padding: var(--avb-space-24) var(--avb-space-8);
  background: var(--avb-bg-alt);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--avb-space-6);
}

.proof-card {
  background: var(--avb-surface);
  border: 1px solid var(--avb-border);
  border-radius: var(--avb-radius-lg);
  padding: var(--avb-space-8);
  border-top: 3px solid var(--avb-jade-500);
}

.proof-card.amber-accent {
  border-top-color: var(--avb-amber-500);
}

.proof-card.blue-accent {
  border-top-color: var(--avb-primary-300);
}

.proof-card-label {
  font-size: var(--avb-text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--avb-jade-700);
  margin-bottom: var(--avb-space-3);
}

.proof-card.amber-accent .proof-card-label { color: var(--avb-amber-600); }
.proof-card.blue-accent  .proof-card-label { color: var(--avb-primary-500); }

.proof-card h3 {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-xl);
  font-weight: 700;
  color: var(--avb-text-900);
  margin-bottom: var(--avb-space-3);
}

.proof-card p {
  font-size: var(--avb-text-sm);
  color: var(--avb-text-600);
  line-height: var(--avb-leading-loose);
  margin-bottom: var(--avb-space-5);
}

.proof-sources {
  display: flex;
  flex-direction: column;
  gap: var(--avb-space-2);
}

.proof-source-item {
  display: flex;
  align-items: center;
  gap: var(--avb-space-2);
  font-size: var(--avb-text-xs);
  color: var(--avb-text-600);
  font-weight: 500;
}

.proof-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--avb-jade-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  color: var(--avb-jade-700);
}

/* ─── 8. CTA BANNER ─────────────────────────────────────────── */

.cta-section {
  padding: var(--avb-space-24) var(--avb-space-8);
  background: var(--avb-grad-dark-section);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(14, 196, 160, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section-inner {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.cta-section h2 {
  font-family: var(--avb-font-display);
  font-size: var(--avb-text-5xl);
  font-weight: 800;
  line-height: var(--avb-leading-tight);
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--avb-space-5);
}

.cta-section h2 em {
  font-style: normal;
  background: var(--avb-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-section p {
  font-size: var(--avb-text-lg);
  color: var(--avb-text-muted-dark);
  margin-bottom: var(--avb-space-10);
  line-height: var(--avb-leading-loose);
}

.cta-section-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--avb-space-4);
  flex-wrap: wrap;
  margin-bottom: var(--avb-space-6);
}

.cta-disclaimer {
  font-size: var(--avb-text-xs);
  color: var(--avb-text-muted-dark);
  opacity: 0.5;
}

/* ─── 9. FOOTER ─────────────────────────────────────────────── */

.footer {
  background: var(--avb-dark-950);
  padding: var(--avb-space-16) var(--avb-space-8) var(--avb-space-10);
  border-top: 1px solid rgba(14, 196, 160, 0.10);
}

.footer-inner {
  max-width: var(--avb-max-width);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--avb-space-12);
  margin-bottom: var(--avb-space-12);
}

.footer-brand .nav-logo-name {
  font-size: var(--avb-text-2xl);
  display: block;
  margin-bottom: var(--avb-space-3);
}

.footer-brand p {
  font-size: var(--avb-text-sm);
  color: var(--avb-text-muted-dark);
  max-width: 260px;
  line-height: var(--avb-leading-loose);
}

.footer-nav-group h4 {
  font-size: var(--avb-text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--avb-text-muted-dark);
  margin-bottom: var(--avb-space-4);
}

.footer-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--avb-space-3);
}

.footer-nav-group ul li a {
  font-size: var(--avb-text-sm);
  color: var(--avb-text-muted-dark);
  opacity: 0.65;
  transition: opacity var(--avb-duration-fast);
}

.footer-nav-group ul li a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--avb-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--avb-space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--avb-text-xs);
  color: var(--avb-text-muted-dark);
  opacity: 0.45;
}

.footer-disclaimer {
  font-size: var(--avb-text-xs);
  color: var(--avb-text-muted-dark);
  opacity: 0.40;
  max-width: 480px;
  text-align: right;
  line-height: 1.5;
}

/* ─── 10. UTILITIES & ANIMATIONS ────────────────────────────── */

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--avb-duration-reveal) var(--avb-ease),
              transform var(--avb-duration-reveal) var(--avb-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* Jade accent line */
.accent-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--avb-grad-jade);
  border-radius: var(--avb-radius-pill);
  margin: var(--avb-space-4) auto 0;
}

/* ─── 11. RESPONSIVE ───────────────────────────────────────── */

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

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --avb-nav-height: 60px;
  }

  .nav {
    padding: 0 var(--avb-space-5);
  }

  .nav-links {
    display: none;
  }

  .hero-h1 {
    font-size: var(--avb-text-4xl);
  }

  .hero-sub {
    font-size: var(--avb-text-base);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-h2 {
    font-size: var(--avb-text-3xl);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: var(--avb-space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }

  .cta-section h2 {
    font-size: var(--avb-text-3xl);
  }

  .trust-bar-inner {
    flex-direction: column;
    gap: var(--avb-space-4);
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: var(--avb-space-5);
    padding-right: var(--avb-space-5);
  }

  .hero-h1 {
    font-size: var(--avb-text-3xl);
  }
}
