/* ===========================================================================
   Keawii — Marketing site
   Dark-first, premium, athletic. One vivid green accent guides the next action.
   Type: Inter. Tokens mirror the Keawii app design system.
   =========================================================================== */

:root {
  --bg: #0a0d0b;
  --surface: #141a16;
  --surface-2: #1a221d;
  --surface-3: #232d26;
  --border: #283129;
  --text: #eef2ee;
  --text-muted: #93a097;
  --accent: #2bd576;
  --accent-strong: #19b863;
  --accent-soft: rgba(43, 213, 118, 0.14);
  --danger: #ff5a5a;
  --danger-soft: rgba(255, 90, 90, 0.14);
  --gold: #f5c452;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1160px, 92vw);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -8%, rgba(43, 213, 118, 0.10), transparent 60%),
    radial-gradient(900px 600px at 85% 8%, rgba(25, 184, 99, 0.06), transparent 55%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: var(--wrap);
  margin-inline: auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 9vw, 7.5rem) 0;
}

.section + .section {
  margin-top: 4em;
}

/* =========================================================================
   Typography helpers
   ========================================================================= */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 0.85rem;
}

.gold {
  color: var(--gold);
}

.accent {
  color: var(--accent);
}

em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s var(--ease),
    box-shadow 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #04140b;
  font-weight: 700;
  box-shadow: 0 10px 26px -10px rgba(43, 213, 118, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(43, 213, 118, 0.85);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--surface-3);
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.88rem;
  padding: 0.62rem 1.1rem;
}

.btn-lg {
  font-size: 1.02rem;
  padding: 1rem 1.9rem;
}

/* =========================================================================
   Header / nav
   ========================================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0.9rem 0;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), backdrop-filter 0.2s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 13, 11, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-img {
  height: 30px;
  width: auto;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("assets/ai keawii bg.jpg");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10, 13, 11, 0.15) 0%, rgba(10, 13, 11, 0.55) 42%, rgba(10, 13, 11, 0.92) 78%),
    linear-gradient(0deg, var(--bg) 2%, rgba(10, 13, 11, 0) 38%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  width: var(--wrap);
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hero-content {
  max-width: 540px;
  margin-right: clamp(2rem, 9vw, 9rem);
  text-align: left;
}

.hero-title {
  font-size: clamp(calc(2.8rem + 5px), calc(5.6vw + 5px), calc(5rem + 5px));
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.hero-title em {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 44ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* =========================================================================
   Pills
   ========================================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0;
}

/* =========================================================================
   Panels / cards
   ========================================================================= */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2rem);
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(43, 213, 118, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}

/* =========================================================================
   Intro
   ========================================================================= */
.intro-inner {
  max-width: 880px;
}

.intro-heading {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}

/* =========================================================================
   Stat / dashboard preview
   ========================================================================= */
.stat-section {
  padding-top: 0;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.plan-summary {
  background: linear-gradient(150deg, rgba(43, 213, 118, 0.13), var(--surface) 60%);
}

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart {
  width: 100%;
  height: clamp(160px, 24vw, 230px);
  margin-top: 0.5rem;
}

.chart-area {
  fill: url(#areaFill);
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.chart-target {
  stroke: var(--text-muted);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
}

.chart-bench {
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.7;
  vector-effect: non-scaling-stroke;
}

.chart-bench-dot {
  fill: var(--gold);
}

.chart-bench-label {
  fill: var(--gold);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
}

.chart-dot {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 2.5;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.chart-legend .dot {
  width: 14px;
  height: 0;
  border-top: 2px solid currentColor;
}

.dot--line {
  color: var(--accent);
}

.dot--target {
  color: var(--text-muted);
  border-top-style: dashed;
}

.dot--bench {
  color: var(--gold);
  border-top-style: dashed;
}

.plan-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.plan-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.1rem 0 0.4rem;
}

.checklist-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.checklist-row:last-of-type {
  border-bottom: none;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 0.8rem;
  color: #04140b;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
  flex-shrink: 0;
}

.progress {
  height: 8px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
  margin: 1.1rem 0 0.6rem;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  border-radius: 999px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
}

.stat-num {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-num .unit {
  font-size: 0.95rem;
  font-weight: 600;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =========================================================================
   Section heads
   ========================================================================= */
.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
  color: var(--text);
}

/* =========================================================================
   Features
   ========================================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.feature:last-child {
  margin-bottom: 0;
}

.feature--reverse .feature-copy {
  order: 2;
}

.feature-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: var(--text);
}

.feature-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Media frame */
.media-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.media-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 13, 11, 0.85), rgba(10, 13, 11, 0) 45%);
}

.media-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.play-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 30px rgba(43, 213, 118, 0.45);
  cursor: pointer;
  transition: transform 0.15s var(--ease);
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.play-btn span {
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-left: 16px solid #04140b;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* =========================================================================
   Savings
   ========================================================================= */
.savings-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.savings-copy .section-title {
  text-align: left;
}

.savings-copy .btn {
  margin-top: 0.5rem;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.ledger-rows {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
}

.ledger-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.ledger-rows .owed {
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 196, 82, 0.12);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.85rem;
}

.ledger-rows .done {
  color: var(--accent);
  font-weight: 700;
}

.ledger-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
}

.ledger-total > span:first-child {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.ledger-amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* =========================================================================
   Method / steps
   ========================================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.step-num {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.2rem 0 0.1rem;
  color: var(--text);
}

.step p {
  margin: 0;
}

/* =========================================================================
   CTA
   ========================================================================= */
.cta-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(150deg, rgba(43, 213, 118, 0.18), var(--surface) 65%);
  border: 1px solid rgba(43, 213, 118, 0.25);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
  color: var(--text);
}

.cta-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: #070a08;
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}

.footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1.4rem;
  max-width: 22ch;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.3rem 0;
  transition: color 0.15s var(--ease);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-wordmark {
  font-weight: 800;
  font-size: clamp(5rem, 22vw, 19rem);
  line-height: 0.74;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(147, 160, 151, 0.18);
  text-align: center;
  user-select: none;
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.is-open a {
    padding: 0.75rem 0.5rem;
  }

  .hero-inner {
    justify-content: flex-start;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 13, 11, 0.6) 0%, rgba(10, 13, 11, 0.85) 100%),
      linear-gradient(0deg, var(--bg) 4%, rgba(10, 13, 11, 0) 45%);
  }

  .preview-grid,
  .feature,
  .savings-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .preview-grid {
    gap: 1.25rem;
  }

  .feature--reverse .feature-copy {
    order: 0;
  }

  .savings-copy .section-title {
    text-align: left;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
