/* ============================================================
   AI Caddie Landing Page — Styles
   ============================================================ */

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

:root {
  --green:       #4ade80;
  --green-dark:  #22c55e;
  --green-dim:   #166534;
  --bg:          #0a0f0a;
  --bg-card:     #111811;
  --bg-card2:    #161e16;
  --border:      rgba(74, 222, 128, 0.12);
  --text:        #f0fdf4;
  --text-muted:  #86efac;
  --text-dim:    #4ade8088;
  --radius:      16px;
  --radius-sm:   10px;
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Utilities ────────────────────────────────────────────── */
.container  { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.accent     { color: var(--green); }
.section    { padding: 96px 24px; }
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 48px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #0a0f0a;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(74,222,128,0.3); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--green);
  font-size: 14px;
  padding: 10px 20px;
}
.btn-outline:hover { background: var(--green); color: #0a0f0a; }
.btn-small  { padding: 8px 18px; font-size: 14px; }
.btn-large  { padding: 16px 36px; font-size: 17px; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 15, 10, 0.85);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-icon  { width: 32px; height: 32px; border-radius: 8px; }
.nav-name  { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 64px;
}
.hero-content { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-block;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.hero-headline {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 13px; color: var(--text-dim); }

/* ── Phone ────────────────────────────────────────────────── */
.hero-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-wrap { position: relative; }
.phone-frame {
  width: 280px;
  background: #1a1a1a;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  border-radius: 34px;
  display: block;
  object-fit: cover;
}
.phone-glow {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(74,222,128,0.25) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.phone-frame-small { width: 240px; }

/* ── Proof bar ────────────────────────────────────────────── */
.proof-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.proof-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 48px;
  text-align: center;
}
.proof-num   { font-size: 22px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
.proof-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── How it works ─────────────────────────────────────────── */
.how { background: var(--bg); text-align: center; }
.how .section-label,
.how .section-title,
.how .section-sub { margin-left: auto; margin-right: auto; }
.how .section-sub { text-align: center; }

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step:hover { border-color: var(--green); transform: translateY(-4px); }
.step-num { font-size: 12px; font-weight: 700; color: var(--green); letter-spacing: 0.1em; margin-bottom: 12px; }
.step-icon { font-size: 36px; margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.step-arrow { font-size: 24px; color: var(--green); opacity: 0.4; flex-shrink: 0; }

/* ── Features ─────────────────────────────────────────────── */
.features { background: var(--bg-card2); }
.features-grid {
  display: flex;
  align-items: center;
  gap: 80px;
}
.features-text { flex: 1; min-width: 0; }
.features-visual { flex: 0 0 auto; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 28px; margin-top: 0; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feat-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.feature-list strong { display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.feature-list p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* ── Download ─────────────────────────────────────────────── */
.download {
  background: var(--bg);
  text-align: center;
}
.download-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  margin-bottom: 28px;
  box-shadow: 0 12px 40px rgba(74,222,128,0.2);
}
.download .section-title { text-align: center; }
.download .section-sub   { text-align: center; margin-bottom: 32px; }
.ios-note { font-size: 13px; color: var(--text-dim); margin-top: 14px; }

/* Email capture */
.email-capture {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}
.email-label  { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; }
.email-form   { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.email-input  {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px;
  color: var(--text);
  font-size: 14px;
  width: 260px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.email-input::placeholder { color: var(--text-dim); }
.email-input:focus { border-color: var(--green); }
.email-confirm { color: var(--green); font-size: 14px; margin-top: 12px; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.footer-icon  { width: 28px; height: 28px; border-radius: 6px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--green); }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 48px;
  }
  .hero-sub   { margin: 0 auto 36px; }
  .hero-cta   { justify-content: center; }
  .hero-note  { text-align: center; }
  .hero-visual { order: -1; }
  .phone-frame { width: 220px; }

  .proof-inner { flex-direction: column; gap: 24px; }
  .proof-item  { padding: 0; }
  .proof-divider { width: 40px; height: 1px; }

  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }

  .features-grid { flex-direction: column; gap: 48px; }
  .features-visual { order: -1; }
  .phone-frame-small { width: 220px; }

  .section { padding: 72px 24px; }
}
