/* ============================================================
   FitNavi landing page — design tokens from CONSTANTS.md
   ============================================================ */

:root {
  --accent: #3b82f6;          /* Primary Accent (Blue) */
  --accent-light: #60a5fa;    /* Secondary (Light Blue) */
  --bg: #0a0a0a;              /* Background (Dark) */
  --card: #1a1a1a;            /* Card Surface */
  --elevated: #2d2d2d;        /* Elevated Surface */
  --border: #404040;          /* Border */
  --text: #e5e5e5;            /* Primary Text */
  --text-muted: #737373;      /* Muted Text */
  --text-secondary: #a3a3a3;  /* Secondary Text */
  --positive: #10b981;        /* Positive (Green) */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --page-pad: 20px;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Type scale (heavy and commanding, per PRD) ---------- */

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 10px 0 14px;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.accent { color: var(--accent); }

/* Kerned uppercase micro-label (11px / 700 / 2px spacing, muted) */
.micro-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.micro-label.pill {
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-light); }
.btn-primary:active { transform: scale(0.98); }

.btn-small { padding: 10px 18px; font-size: 13px; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(64, 64, 64, 0.5);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px var(--page-pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand-icon { width: 34px; height: 34px; }

.brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 22px; }

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.2s ease;
}

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

/* ---------- Hero ---------- */

.hero { overflow: hidden; }

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px var(--page-pad) 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 30px;
}

.hero-visual { display: flex; justify-content: center; }

.hero-phone {
  transform: rotate(2.5deg);
  animation: heroFloat 7s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Phone frame ---------- */

.phone-frame {
  width: min(300px, 78vw);
  border-radius: 42px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 10px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 90px rgba(59, 130, 246, 0.09);
}

.phone-frame img {
  border-radius: 32px;
  width: 100%;
}

/* ---------- Signup form ---------- */

.signup-form { max-width: 30rem; }

.signup-form .micro-label { margin-bottom: 10px; }

.signup-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.signup-row input {
  flex: 1;
  min-width: 0;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 16px;
  transition: border-color 0.2s ease;
}

.signup-row input::placeholder { color: var(--text-muted); }

.signup-row input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Honeypot field: invisible to humans, tempting to bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

.form-status {
  font-size: 13px;
  font-weight: 700;
  margin-top: 10px;
  min-height: 1em;
}

.form-status.ok { color: var(--positive); }
.form-status.err { color: #ef4444; }

/* ---------- Separator motif (border line + centered ✦) ---------- */

.separator {
  max-width: 1100px;
  margin: 28px auto;
  padding: 0 var(--page-pad);
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--accent);
  font-size: 13px;
}

.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
}

.section-sub {
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: 36px;
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(59, 130, 246, 0.55);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 11px;
  color: var(--accent);
  margin-bottom: 14px;
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 13.5px;
}

/* ---------- Carousel ---------- */

.carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 56px;
}

.carousel-viewport { overflow: hidden; }

.carousel-track {
  display: flex;
  gap: 28px;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.35, 1);
}

.carousel-slide {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  opacity: 0.35;
  transition: opacity 0.4s ease;
}

.carousel-slide.active { opacity: 1; }

.carousel-slide figcaption {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  max-width: min(300px, 78vw);
  text-align: center;
}

.carousel-slide.active figcaption { color: var(--text); }

.carousel-arrow {
  position: absolute;
  top: 45%;
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.carousel-arrow:hover { border-color: var(--accent); background: var(--elevated); }
.carousel-arrow.prev { left: 6px; }
.carousel-arrow.next { right: 6px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--elevated);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ---------- Insights ---------- */

.insights-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.insights-copy > p { color: var(--text-secondary); margin-bottom: 18px; }

.insights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.insights-list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-size: 14px;
}

.insights-list strong { color: var(--text); font-weight: 800; }

.privacy-note {
  font-size: 13px;
  color: var(--text-muted);
}

.insights-visual { display: flex; justify-content: center; }

/* ---------- Beta CTA ---------- */

.beta-section {
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(59, 130, 246, 0.12), transparent);
}

.beta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.beta-icon { width: 76px; height: 76px; margin-bottom: 20px; }

.beta-inner .section-sub { margin-bottom: 28px; }

.signup-center { width: 100%; max-width: 27rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px var(--page-pad) 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-icon { width: 28px; height: 28px; }
.footer-brand .brand-name { font-size: 1rem; }

.footer-links { display: flex; gap: 22px; }

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

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

.footer-fine {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */

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

  .hero-inner,
  .insights-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-inner { padding-top: 48px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .signup-form { width: 100%; }
  .signup-form .micro-label { text-align: left; }
  .insights-visual { order: 2; }
}

@media (max-width: 620px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .carousel { padding: 0 12px; }
  .carousel-arrow { display: none; }
  .signup-row { flex-direction: column; }
  .signup-row .btn { width: 100%; }
}
