/* =========================================================
   SAILBASE MARKETING — styles.css
   Mobile-first, custom CSS, no framework dependencies
   ========================================================= */

/* ─── TOKENS ─── */
:root {
  /* Colors */
  --navy-950: #020617;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;
  --navy-600: #475569;
  --navy-400: #94a3b8;
  --navy-300: #cbd5e1;
  --navy-200: #e2e8f0;
  --navy-100: #f1f5f9;
  --navy-50:  #f8fafc;

  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --blue-100: #dbeafe;

  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;

  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --violet-500: #8b5cf6;
  --violet-100: #ede9fe;

  --green-500: #22c55e;
  --green-100: #dcfce7;

  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;

  --white: #ffffff;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --container: 1200px;
  --section-py: clamp(64px, 10vw, 120px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.07);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.08);
  --shadow-glow: 0 0 40px rgba(37,99,235,.18);
}

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

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

body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--navy-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input, textarea, select {
  font-family: var(--font);
}

/* ─── UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label-accent { color: var(--blue-400); }
.section-label-muted  { color: var(--navy-400); }
.section-label-light  { color: rgba(255,255,255,.6); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(48px, 8vw, 80px);
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 16px;
}

.section-subheading {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--navy-400);
  line-height: 1.65;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  transition: all .2s var(--ease-out);
  white-space: nowrap;
  min-height: 48px;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08);
}

.btn-primary:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(37,99,235,.35);
}

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

.btn-ghost {
  background: transparent;
  color: var(--navy-300);
  border: 1px solid var(--navy-700);
}

.btn-ghost:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-600);
}

.btn-full {
  width: 100%;
}

/* ─── REVEAL ANIMATION ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.nav.scrolled {
  background: rgba(15, 23, 42, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  color: var(--blue-400);
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-300);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.nav-link:hover {
  color: var(--white);
  background: var(--navy-800);
}

.nav-cta {
  display: none;
  padding: 8px 18px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--blue-500);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: background .15s;
}

.nav-hamburger:hover {
  background: var(--navy-800);
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--navy-300);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--navy-900);
  border-top: 1px solid var(--navy-800);
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out), opacity .25s;
  opacity: 0;
}

.mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

.mobile-link {
  padding: 16px clamp(20px, 5vw, 48px);
  font-size: 16px;
  font-weight: 500;
  color: var(--navy-300);
  border-bottom: 1px solid var(--navy-800);
  transition: color .15s, background .15s;
}

.mobile-link:hover {
  color: var(--white);
  background: var(--navy-800);
}

.mobile-link-cta {
  color: var(--blue-400);
  font-weight: 600;
  border-bottom: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta   { display: flex; }
  .nav-hamburger { display: none; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .12;
}

.hero-wave-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--blue-500), transparent 70%);
  top: -200px;
  right: -100px;
  animation: waveDrift 12s ease-in-out infinite alternate;
}

.hero-wave-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--teal-500), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: waveDrift 16s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
}

@keyframes waveDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave { animation: none; }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding-top: clamp(40px, 8vw, 80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37,99,235,.12);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-400);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.85); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge-dot { animation: none; }
}

.hero-headline {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-headline-accent {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--teal-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--navy-400);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-social-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-400);
}

.hero-proof-item svg {
  width: 16px;
  height: 16px;
  color: var(--green-500);
  flex-shrink: 0;
}

/* Hero visual */
.hero-visual {
  display: none;
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

@media (min-width: 900px) {
  .hero-visual { display: block; }
  .hero { padding-right: 340px; }
}

@media (min-width: 1100px) {
  .hero-visual { right: clamp(60px, 8vw, 120px); }
  .hero { padding-right: 400px; }
}

/* Phone mockup */
.mockup-phone {
  width: 280px;
  background: var(--navy-900);
  border-radius: 32px;
  border: 1px solid var(--navy-700);
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  animation: floatPhone 5s ease-in-out infinite;
}

@keyframes floatPhone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-phone { animation: none; }
}

.mockup-screen {
  padding: 20px 16px 16px;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  flex-shrink: 0;
}

.mockup-greeting {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-line {
  height: 7px;
  border-radius: 4px;
  background: var(--navy-700);
}

.mockup-line.short  { width: 60%; }
.mockup-line.medium { width: 80%; }

.mockup-bell {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
}

.mockup-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-500, #64748b);
  margin-bottom: 10px;
}

.mockup-card {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

.mockup-card-featured {
  background: linear-gradient(135deg, rgba(37,99,235,.18), rgba(20,184,166,.12));
  border-color: rgba(37,99,235,.3);
}

.mockup-card-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 4px;
}

.mockup-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.mockup-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: var(--navy-400);
  margin-bottom: 10px;
}

.mockup-seats {
  font-weight: 600;
  color: var(--green-500);
}
.mockup-seats.waiting { color: var(--amber-500); }
.mockup-seats.booked  { color: var(--blue-400); }

.mockup-card-btn {
  background: var(--blue-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px;
  border-radius: 7px;
}

.mockup-nav {
  display: flex;
  margin-top: 16px;
  border-top: 1px solid var(--navy-800);
  padding-top: 12px;
}

.mockup-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: var(--navy-500, #64748b);
  letter-spacing: .03em;
}

.mockup-nav-item.active { color: var(--blue-400); }

.mockup-nav-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--navy-700);
}

.mockup-nav-item.active .mockup-nav-icon {
  background: rgba(37,99,235,.25);
}

/* ─── PROOF STRIP ─── */
.proof-strip {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-800);
  border-bottom: 1px solid var(--navy-800);
  padding: 32px 0;
}

.proof-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 48px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.proof-number {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1;
}

.proof-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-500, #64748b);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--navy-700);
}

@media (max-width: 480px) {
  .proof-divider { display: none; }
  .proof-strip-inner { gap: 20px 32px; }
}

/* ─── PROBLEM SECTION ─── */
.problem-section {
  padding: var(--section-py) 0;
}

.problem-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .problem-split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.problem-heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.2;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.problem-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-bad  { color: var(--navy-400); }
.problem-bad svg { color: #ef4444; }

.problem-good { color: var(--navy-200); }
.problem-good svg { color: var(--green-500); }

.problem-before {
  padding: 32px;
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-xl);
}

.problem-after {
  padding: 32px;
  background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(20,184,166,.06));
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 40px rgba(37,99,235,.05);
}

/* ─── FEATURES ─── */
.features-section {
  padding: var(--section-py) 0;
  background: var(--navy-900);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-card-large {
    grid-column: span 2;
  }

  .feature-card-large.feature-card-right {
    grid-column: 2 / 4;
  }
}

.feature-card {
  padding: 28px;
  background: var(--navy-950);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-xl);
  transition: border-color .2s, box-shadow .2s;
}

.feature-card:hover {
  border-color: var(--navy-600);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon-blue   { background: rgba(37,99,235,.12);  color: var(--blue-400); }
.feature-icon-teal   { background: rgba(20,184,166,.12);  color: var(--teal-500); }
.feature-icon-amber  { background: rgba(245,158,11,.12);  color: var(--amber-500); }
.feature-icon-navy   { background: rgba(148,163,184,.08); color: var(--navy-300); }
.feature-icon-violet { background: rgba(139,92,246,.12);  color: var(--violet-500); }
.feature-icon-green  { background: rgba(34,197,94,.12);   color: var(--green-500); }
.feature-icon-rose   { background: rgba(244,63,94,.12);   color: var(--rose-500); }

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--navy-400);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feature-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--navy-800);
  padding-top: 16px;
}

.feature-details li {
  font-size: 13px;
  color: var(--navy-300);
  padding-left: 16px;
  position: relative;
}

.feature-details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
  opacity: .5;
}

/* ─── HOW IT WORKS ─── */
.how-section {
  padding: var(--section-py) 0;
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.role-card {
  padding: 32px 28px;
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-xl);
  transition: border-color .2s, transform .2s;
  position: relative;
  overflow: hidden;
}

.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  opacity: 0;
  transition: opacity .3s;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,.08), transparent 70%);
}

.role-card:hover::before { opacity: 1; }

.role-card-center {
  border-color: rgba(37,99,235,.25);
  background: linear-gradient(170deg, rgba(37,99,235,.06), var(--navy-900));
}

.role-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--navy-700);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.role-badge-member    { background: rgba(34,197,94,.12);   color: var(--green-500); }
.role-badge-comandante{ background: rgba(245,158,11,.12);  color: var(--amber-500); }
.role-badge-admin     { background: rgba(37,99,235,.12);   color: var(--blue-400); }

.role-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.role-desc {
  font-size: 14px;
  color: var(--navy-400);
  line-height: 1.65;
  margin-bottom: 24px;
}

.role-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--navy-300);
}

.role-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy-700);
  border: 1.5px solid var(--navy-600);
  flex-shrink: 0;
}

/* ─── DETAIL SECTIONS ─── */
.detail-section {
  padding: var(--section-py) 0;
}

.detail-section-alt {
  background: var(--navy-900);
}

.detail-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .detail-split {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .detail-split-reverse .detail-visual {
    order: 2;
  }

  .detail-split-reverse .detail-content {
    order: 1;
  }
}

.detail-heading {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.15;
}

.detail-desc {
  font-size: 15px;
  color: var(--navy-400);
  line-height: 1.7;
  margin-bottom: 28px;
}

.detail-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--navy-300);
  line-height: 1.55;
}

.detail-point-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--green-500);
  margin-top: 1px;
}

.detail-point-icon svg {
  width: 20px;
  height: 20px;
}

/* Credit demo widget */
.credit-demo {
  display: flex;
  justify-content: center;
}

.credit-card-ui {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-xl);
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}

.credit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-200);
}

.credit-badge {
  padding: 3px 10px;
  background: rgba(34,197,94,.12);
  color: var(--green-500);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.credit-balances {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-700);
}

.credit-type {
  display: flex;
  align-items: center;
  gap: 10px;
}

.credit-type-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-400);
  width: 48px;
  flex-shrink: 0;
}

.credit-bar-wrap {
  flex: 1;
  height: 6px;
  background: var(--navy-700);
  border-radius: 4px;
  overflow: hidden;
}

.credit-bar {
  height: 100%;
  width: var(--fill, 50%);
  border-radius: 4px;
  background: var(--blue-500);
  transition: width 1s var(--ease-out);
}

.credit-bar-teal { background: var(--teal-500); }

.credit-value {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-300);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.credit-tx-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-500, #64748b);
  margin-bottom: 10px;
}

.credit-tx {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid var(--navy-700);
  gap: 12px;
}

.credit-tx:last-child { border-bottom: none; }

.credit-tx-desc {
  color: var(--navy-300);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.credit-tx-amount {
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.credit-tx-amount.debit  { color: var(--rose-500); }
.credit-tx-amount.credit { color: var(--green-500); }

/* PWA demo */
.pwa-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  margin-inline: auto;
}

.pwa-install-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
}

.pwa-prompt-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-sailbase-logo {
  width: 22px;
  height: 22px;
  color: var(--white);
}

.pwa-prompt-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pwa-prompt-text strong {
  font-size: 14px;
  color: var(--white);
}

.pwa-prompt-text span {
  font-size: 12px;
  color: var(--navy-400);
}

.pwa-prompt-btn {
  padding: 7px 14px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}

.pwa-prompt-btn:hover { background: var(--blue-500); }

.pwa-homescreen {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: var(--radius-xl);
  border: 1px solid var(--navy-700);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.pwa-hs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
}

.pwa-hs-app {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
}

.pwa-hs-app-sailbase {
  background: var(--blue-600);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: none;
  position: relative;
}

.pwa-hs-app-sailbase svg {
  width: 30px;
  height: 30px;
  color: var(--white);
}

.pwa-hs-app-sailbase span {
  display: none;
}

.pwa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pwa-chip {
  padding: 5px 12px;
  background: rgba(37,99,235,.1);
  border: 1px solid rgba(37,99,235,.2);
  color: var(--blue-400);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: .02em;
}

/* ─── FAQ ─── */
.faq-section {
  padding: var(--section-py) 0;
  background: var(--navy-900);
}

.faq-grid {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--navy-800);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--navy-800);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--navy-950);
  transition: background .15s, color .15s;
  cursor: pointer;
  min-height: 56px;
}

.faq-question:hover {
  background: var(--navy-800);
}

.faq-question[aria-expanded="true"] {
  color: var(--blue-400);
}

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--navy-500, #64748b);
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}

.faq-question[aria-expanded="true"] .faq-arrow {
  transform: rotate(180deg);
  color: var(--blue-400);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out);
}

.faq-answer[aria-hidden="false"] {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--navy-400);
  line-height: 1.7;
}

/* ─── CTA / CONTACT ─── */
.cta-section {
  padding: var(--section-py) 0;
}

.cta-card {
  position: relative;
  background: linear-gradient(135deg, rgba(37,99,235,.1) 0%, rgba(20,184,166,.06) 100%);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) clamp(24px, 6vw, 80px);
}

.cta-bg-deco {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}

.cta-heading {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 12px;
  text-align: center;
}

.cta-subheading {
  font-size: 16px;
  color: var(--navy-400);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-300);
}

.form-input {
  padding: 12px 16px;
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  min-height: 48px;
}

.form-input::placeholder { color: var(--navy-600); }

.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.form-input.error {
  border-color: var(--rose-500);
  box-shadow: 0 0 0 3px rgba(244,63,94,.12);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-privacy {
  font-size: 12px;
  color: var(--navy-500, #64748b);
  text-align: center;
  line-height: 1.5;
}

.contact-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 48px 24px;
}

.contact-success[aria-hidden="false"] {
  display: flex;
}

.contact-success svg {
  width: 48px;
  height: 48px;
  color: var(--green-500);
}

.contact-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.contact-success p {
  color: var(--navy-400);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-900);
  border-top: 1px solid var(--navy-800);
  padding-top: clamp(48px, 8vw, 80px);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 48px;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.footer-brand {
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  color: var(--blue-400);
}

.footer-logo span {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--navy-500, #64748b);
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: 48px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy-400);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--navy-500, #64748b);
  transition: color .15s;
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--navy-600);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-link-small {
  font-size: 13px;
  color: var(--navy-600);
  transition: color .15s;
}

.footer-link-small:hover { color: var(--navy-400); }

/* ─── SCROLL REVEAL STAGGER ─── */
.features-grid [data-reveal]:nth-child(2) { transition-delay: .08s; }
.features-grid [data-reveal]:nth-child(3) { transition-delay: .16s; }
.features-grid [data-reveal]:nth-child(4) { transition-delay: .08s; }
.features-grid [data-reveal]:nth-child(5) { transition-delay: .16s; }
.features-grid [data-reveal]:nth-child(6) { transition-delay: .24s; }
.features-grid [data-reveal]:nth-child(7) { transition-delay: .08s; }

.roles-grid [data-reveal]:nth-child(2) { transition-delay: .12s; }
.roles-grid [data-reveal]:nth-child(3) { transition-delay: .24s; }

.faq-grid [data-reveal]:nth-child(2) { transition-delay: .06s; }
.faq-grid [data-reveal]:nth-child(3) { transition-delay: .12s; }
.faq-grid [data-reveal]:nth-child(4) { transition-delay: .18s; }
.faq-grid [data-reveal]:nth-child(5) { transition-delay: .24s; }
.faq-grid [data-reveal]:nth-child(6) { transition-delay: .30s; }

/* ─── FOCUS VISIBLE ─── */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── SELECTION ─── */
::selection {
  background: rgba(37,99,235,.3);
  color: var(--white);
}

/* ─── SAFE AREA (notch/home indicator) ─── */
.footer {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
