/* ============================================================
   Links — joinlinks.net
   Brand colors mirror the iOS app so the marketing site and
   product feel like one thing.
   ============================================================ */

:root {
  --green-900: #052e16;
  --green-700: #15803d;
  --green-600: #16a34a;
  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #cbd5e1;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --shadow-lg: 0 20px 60px -20px rgba(15, 23, 42, 0.25);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--ink-900);
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--green-600);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  font-size: 16px;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--ink-700);
  font-weight: 600;
  font-size: 15px;
}
.nav-links a:hover { color: var(--green-600); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(circle at 20% 0%, var(--green-100), transparent 50%),
              radial-gradient(circle at 90% 30%, #d1fae5, transparent 55%),
              var(--paper);
  padding: 80px 0 100px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin: 0 0 18px;
  font-weight: 900;
  color: var(--ink-900);
}
.hero h1 .accent { color: var(--green-600); }
.hero .tagline {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--ink-500);
  max-width: 620px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: var(--green-600);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(22, 163, 74, 0.6);
}
.btn-primary:hover { background: var(--green-700); }
.btn-ghost {
  background: var(--paper);
  color: var(--ink-900);
  border: 1px solid var(--ink-300);
}

/* ---------- Features ---------- */
.section { padding: 80px 0; }
.section-soft { background: var(--paper-soft); }
.section-title {
  text-align: center;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}
.section-sub {
  text-align: center;
  color: var(--ink-500);
  margin: 0 auto 50px;
  max-width: 560px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature h3 {
  font-size: 18px;
  margin: 0 0 8px;
  font-weight: 800;
}
.feature p {
  color: var(--ink-500);
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 20px;
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-600);
  color: white;
  font-weight: 900;
  font-size: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.step p { color: var(--ink-500); font-size: 14px; margin: 0; }

/* ---------- Final CTA ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  color: white;
  margin: 60px auto;
  max-width: 900px;
  box-shadow: var(--shadow-lg);
}
.cta-block h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 900;
  letter-spacing: -0.8px;
  margin: 0 0 12px;
}
.cta-block p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 28px;
  font-size: 17px;
}
.cta-block .btn-primary {
  background: white;
  color: var(--green-700);
}
.cta-block .btn-primary:hover { background: var(--green-100); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.6);
  padding: 50px 0 30px;
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  align-items: start;
}
.footer .brand { color: white; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-weight: 500; }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal h1 {
  font-size: 36px;
  margin: 0 0 8px;
  letter-spacing: -1px;
  font-weight: 900;
}
.legal .updated {
  color: var(--ink-500);
  font-size: 14px;
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  font-weight: 800;
}
.legal p, .legal li { color: var(--ink-700); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--green-700); }
