/* GolfLoop landing. Same palette as the app (web/src/styles/tokens.css). */
:root {
  --brand-900: #10301f;
  --brand-800: #16402a;
  --brand-700: #1d5436;
  --brand-600: #246a44;
  --brand-500: #2f8a57;
  --brand-400: #46a771;
  --brand-300: #7cc79c;
  --brand-100: #ddf0e5;
  --brand-50: #f1f9f4;
  --accent-500: #ea580c;
  --accent-300: #fdba74;
  --gold-500: #c9a227;
  --night: #0b1510;
  --night-2: #0f1c16;
  --night-3: #16281f;
  --ink-900: #101418;
  --ink-700: #2b3239;
  --ink-500: #5a6470;
  --ink-200: #d8dee4;
  --ink-50: #f5f7f9;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: var(--ink-50);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.grad {
  background: linear-gradient(100deg, #7cc79c 0%, #c6f0d6 45%, #fdba74 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 700; border-radius: 999px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn-xl { padding: 19px 36px; font-size: 19px; }
.btn-primary {
  background: linear-gradient(180deg, #3ba066, var(--brand-500));
  color: #fff;
  box-shadow: 0 8px 24px rgba(47, 138, 87, .45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(47, 138, 87, .6), inset 0 1px 0 rgba(255,255,255,.25); transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.14); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease;
}
.nav.scrolled { background: rgba(11, 21, 16, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 24px; margin-left: 12px; }
.nav-links a { color: rgba(255,255,255,.75); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: #fff; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 700; color: rgba(255,255,255,.65);
  background: none; border: 0; padding: 5px 9px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--brand-800); }

/* Hero */
.hero { position: relative; color: #fff; padding: 130px 0 90px; overflow: hidden; background: var(--night); }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(1000px 500px at 80% 10%, rgba(234, 88, 12, .22), transparent 60%),
    linear-gradient(180deg, rgba(11,21,16,.55) 0%, rgba(11,21,16,.75) 55%, var(--night) 100%),
    url(img/course.webp) center 40% / cover no-repeat;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
.hero h1 {
  font-size: clamp(48px, 8vw, 96px); line-height: .95; letter-spacing: -.045em; font-weight: 900;
  margin: 22px 0 22px;
}
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.82); max-width: 33em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 26px; }
.hero-proof { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,255,255,.65); }
.hero-proof strong { color: #fff; font-weight: 700; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 46px; padding: 12px; position: relative;
  background: linear-gradient(160deg, #2a3530, #0b0f0d);
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 2px rgba(255,255,255,.05);
  transform: rotate(3deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: rotate(3deg) translateY(-10px); } }
.phone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; background: #000; border-radius: 20px; z-index: 2; }
.screen { background: var(--ink-50); border-radius: 36px; overflow: hidden; color: var(--ink-900); padding: 54px 14px 18px; }
.scr-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.scr-back { font-size: 22px; line-height: 1; color: var(--brand-600); }
.scorecard {
  border-radius: 20px; padding: 16px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(253,186,116,.35), transparent 55%), linear-gradient(150deg, var(--brand-600), var(--brand-900));
}
.sc-course { font-size: 12px; opacity: .8; font-weight: 600; }
.sc-score { display: flex; align-items: baseline; gap: 8px; }
.sc-score .big { font-size: 64px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.sc-score .topar { font-size: 20px; font-weight: 800; color: var(--accent-300); }
.sc-best { font-size: 12px; font-weight: 700; margin: 6px 0 12px; }
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; text-align: center; background: rgba(0,0,0,.18); border-radius: 12px; padding: 8px 2px; }
.sc-grid b { display: block; font-size: 16px; }
.sc-grid span { font-size: 10px; opacity: .75; }
.scr-card { background: #fff; border-radius: 16px; margin-top: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(16,24,32,.08); }
.scr-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); font-weight: 700; margin-bottom: 6px; }
.cmp { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-top: 1px solid #eef2f6; }
.cmp:first-of-type { border-top: 0; }
.cmp .up { color: #027a48; }
.cmp .down { color: #b42318; }
.holes { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; margin-top: 10px; }
.h { aspect-ratio: 1; display: grid; place-items: center; font-size: 12px; font-weight: 800; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,32,.08); }
.h.bir { background: var(--brand-500); color: #fff; border-radius: 50%; }
.h.bog { background: #fde7d7; color: #9a3412; }
.h.dbl { background: var(--accent-500); color: #fff; }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.95); color: var(--ink-900); border-radius: 16px; padding: 10px 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35); font-size: 14px;
}
.float b { display: block; font-size: 14px; }
.float small { color: var(--ink-500); font-size: 12px; }
.float .f-ico { font-size: 22px; }
.f1 { left: -10px; top: 18%; animation: floaty2 5s ease-in-out infinite; }
.f2 { right: -24px; bottom: -3%; animation: floaty2 5s ease-in-out -2.5s infinite; }
@keyframes floaty2 { 50% { transform: translateY(-8px); } }

/* Sources strip */
.sources { background: var(--night); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.06); }
.sources-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px; padding-top: 26px; padding-bottom: 26px; font-size: 14px; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.src { color: #fff; font-weight: 700; font-size: 15px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); }

/* Section heads */
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-300); margin-bottom: 14px; }
.sec-head h2, .split-copy h2, .final h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -.035em; font-weight: 900; }
.sec-head p { margin-top: 18px; font-size: 18px; color: rgba(255,255,255,.7); }
.sec-head.light .eyebrow, .split-copy .eyebrow { color: var(--brand-500); }
.sec-head.light p { color: var(--ink-500); }

/* Dark stats */
.dark { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #fff; padding: 100px 0 110px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.tag.up { background: rgba(74, 222, 128, .15); color: #86efac; }
.c-sg { grid-column: span 3; }
.c-clubs { grid-column: span 3; }
.c-map { grid-column: span 2; grid-row: span 2; }
.c-trend { grid-column: span 4; }
.c-ai { grid-column: span 4; background: linear-gradient(135deg, rgba(47,138,87,.28), rgba(234,88,12,.16)); }

.sg { display: flex; flex-direction: column; gap: 12px; }
.sg-row { display: grid; grid-template-columns: 110px 1fr 52px; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,.8); }
.sg-row b { text-align: right; font-size: 15px; }
.sg-row.hl span { color: #fff; font-weight: 700; }
.sg-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.sg-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.in .sg-bar i { width: var(--w); }
.sg-bar i.neg { background: linear-gradient(90deg, #fb923c, var(--accent-500)); }
.sg-bar i.pos { background: linear-gradient(90deg, var(--brand-300), var(--brand-400)); }
b.neg { color: #fdba74; } b.pos { color: #86efac; }
.insight { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.05); border-radius: 12px; padding: 12px 14px; margin-top: auto; }
.insight b { color: #fff; }
.insight .ico { font-size: 16px; }

.clubs { display: flex; flex-direction: column; gap: 10px; }
.club { display: grid; grid-template-columns: 48px 1fr 56px; align-items: center; gap: 12px; font-size: 14px; }
.club span { font-weight: 700; color: rgba(255,255,255,.85); }
.club b { text-align: right; }
.range { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); }
.range i { position: absolute; top: 0; bottom: 0; left: var(--a); right: calc(100% - var(--b)); border-radius: inherit; background: linear-gradient(90deg, rgba(124,199,156,.35), rgba(124,199,156,.75)); transform-origin: left; transform: scaleX(0); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.in .range i { transform: scaleX(1); }
.range em { position: absolute; top: -3px; width: 4px; height: 16px; left: var(--m); background: #fff; border-radius: 2px; }

.hole { width: 100%; max-width: 260px; margin: 0 auto; height: auto; }
.insight.small { font-size: 13px; }

.trend { width: 100%; height: 150px; }
.trend-legend { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.5); margin-top: -8px; }
.ai-text { font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: rgba(255,255,255,.9); font-weight: 500; }
.ai-text b { color: var(--accent-300); }

/* Features */
.features { padding: 110px 0; background: #fff; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { padding: 26px; border-radius: var(--radius-lg); background: var(--ink-50); border: 1px solid #e9edf1; transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,24,32,.08); }
.fi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 24px; background: var(--brand-100); margin-bottom: 16px; }
.feat h3 { font-size: 17px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.feat p { font-size: 15px; color: var(--ink-500); }

/* Split */
.split { padding: 40px 0 110px; background: #fff; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-img { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.3; box-shadow: 0 30px 60px rgba(16,24,32,.18); }
.split-img > img { width: 100%; height: 100%; object-fit: cover; }
.glass {
  position: absolute; left: 20px; right: 20px; bottom: 20px; padding: 18px;
  border-radius: 20px; color: #fff;
  background: rgba(11,21,16,.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
}
.g-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .75; margin-bottom: 8px; }
.g-row { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.12); }
.g-row:first-of-type { border-top: 0; }
.g-row span { font-size: 14px; opacity: .85; }
.g-row b { font-size: 15px; text-align: right; }
.g-row small { grid-column: 2; text-align: right; font-size: 12px; color: var(--brand-300); }
.split-copy p { font-size: 18px; color: var(--ink-500); margin: 20px 0 24px; }
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 34px; font-weight: 600; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-100); color: var(--brand-600); font-size: 13px; font-weight: 900; }

/* Social */
.social { padding: 110px 0; background: linear-gradient(180deg, var(--brand-50), #fff); }
.social-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 18px; align-items: start; }
.post, .board, .troph { background: #fff; border-radius: var(--radius-lg); padding: 18px; box-shadow: 0 1px 3px rgba(16,24,32,.06), 0 12px 32px rgba(16,24,32,.06); border: 1px solid #e9edf1; }
.post header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post header small { display: block; color: var(--ink-500); font-size: 13px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; background: var(--brand-500); flex: none; }
.avatar.a2 { background: #a855f7; } .avatar.a3 { background: #0ea5e9; } .avatar.a4 { background: var(--accent-500); }
.post-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.post-card img { width: 100%; height: 100%; object-fit: cover; }
.post-over { position: absolute; inset: auto 0 0 0; padding: 18px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }
.post-score { display: block; font-size: 56px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.post-sub { font-weight: 700; }
.post footer { display: flex; align-items: center; gap: 16px; margin-top: 12px; font-weight: 700; font-size: 14px; color: var(--ink-700); }
.badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: #fdf6e3; color: #8a6d0b; padding: 4px 10px 4px 4px; border-radius: 999px; }
.board header, .troph header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.board h3, .troph h3 { font-size: 17px; font-weight: 800; }
.board .tag, .troph .tag { background: var(--brand-100); color: var(--brand-700); }
.board ol { list-style: none; }
.board li { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 12px; }
.board li.me { background: var(--brand-50); outline: 1px solid var(--brand-100); }
.board .pos { width: 20px; font-weight: 900; color: var(--ink-500); }
.board li:first-child .pos { color: var(--gold-500); }
.board li b { flex: 1; font-size: 15px; }
.board li em { font-style: normal; font-weight: 800; }
.board .avatar { width: 32px; height: 32px; font-size: 11px; }
.troph-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.troph-grid img { width: 100%; aspect-ratio: 1; object-fit: contain; transition: transform .2s ease; }
.troph-grid img:hover { transform: scale(1.12) rotate(-4deg); }

/* How */
.how { padding: 100px 0; background: #fff; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 28px; border-radius: var(--radius-lg); border: 1px solid #e9edf1; background: var(--ink-50); }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-500); color: #fff; font-weight: 900; margin-bottom: 16px; }
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.steps p { color: var(--ink-500); }

/* Final CTA */
.final { position: relative; overflow: hidden; color: #fff; padding: 130px 0; text-align: center; background: var(--night); }
.final-bg { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,21,16,.6), rgba(11,21,16,.85)), url(img/impact.webp) center / cover no-repeat; }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.final p { font-size: 19px; color: rgba(255,255,255,.8); max-width: 32em; }
.final-url { color: rgba(255,255,255,.55); font-weight: 600; letter-spacing: .02em; }

.foot { background: var(--night); color: rgba(255,255,255,.55); font-size: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.foot .brand { font-size: 16px; }

.sticky-cta { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .sg-bar i { width: var(--w); } .range i { transform: none; }
}

/* Responsive */
@media (max-width: 1000px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: 1fr 1fr; }
  .post { grid-column: span 2; }
  .c-sg, .c-clubs { grid-column: span 6; }
  .c-map { grid-column: span 6; grid-row: auto; }
  .c-trend, .c-ai { grid-column: span 6; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { padding: 104px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .split-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; }
  .dark, .features, .social { padding: 80px 0; }
  .split { padding: 0 0 80px; }
  .how { padding: 70px 0; }
  .sources-row { justify-content: center; text-align: center; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-actions .cta { display: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .post { grid-column: auto; }
  .card { padding: 18px; }
  .sg-row { grid-template-columns: 92px 1fr 44px; font-size: 13px; }
  .phone { width: 260px; }
  .sc-score .big { font-size: 54px; }
  .f1 { left: -4px; top: 6%; }
  .f2 { right: -4px; bottom: 6%; }
  .float { padding: 8px 10px; }
  .hero-ctas .btn { width: 100%; }
  .sticky-cta {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 15px; font-size: 16px; transform: translateY(140%); transition: transform .3s ease;
  }
  .sticky-cta.show { transform: none; }
  .foot { padding-bottom: 80px; }
}
