/* ───────────────────────────────────────────────
   Hamkke — marketing site
   Graphite / Platinum brand system (dark, monochrome luxe).
   ─────────────────────────────────────────────── */

:root {
  --bg:    #0e0f11;        /* app background (graphite) */
  --bg-soft: #16181c;      /* tinted section */
  --bg-2:  #181a1d;        /* cards, raised surfaces */
  --ink:   #eff1f3;        /* primary text */
  --ink-2: #8b9197;        /* secondary */
  --ink-3: #5f656b;        /* tertiary */
  --line:  rgba(255,255,255,0.09);
  --line-2:rgba(255,255,255,0.14);

  --accent: #cfd4da;       /* platinum */
  --accent-2: #e6e9ec;     /* hover (brighter platinum) */
  --accent-ink: #15171a;   /* text/icon ON a platinum fill */
  --teal:  #6f96c9;        /* steel-blue support */
  --gold:  #e0a52e;
  --violet:#9aa0a6;
  --navy:  #0a0b0d;        /* darkest sections (footer) */

  --accent-soft: rgba(207,212,218,0.14);
  --teal-soft:  rgba(111,150,201,0.14);
  --gold-soft:  rgba(224,165,46,0.14);

  --f-display: 'Sora', system-ui, sans-serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;
  --f-mono: 'Space Mono', ui-monospace, monospace;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 18px 50px -24px rgba(0,0,0,0.7);
  --shadow-lg: 0 40px 80px -28px rgba(0,0,0,0.85);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em; line-height: 1.55;
  overflow-x: clip; /* contain stray horizontal overflow without breaking sticky nav */
}
h1,h2,h3,h4,p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.display { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.eyebrow {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 700;
}
.mono { font-family: var(--f-mono); }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 52px; padding: 0 26px; border-radius: 14px; border: none; cursor: pointer;
  font-family: var(--f-body); font-weight: 700; font-size: 16px; white-space: nowrap;
  transition: transform .14s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 14px 34px -16px rgba(0,0,0,0.8); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 18px 40px -16px rgba(0,0,0,0.85); }
.btn-ghost { background: var(--bg-2); color: var(--ink); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: var(--accent); color: var(--accent-ink); }
.btn-light:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-2); border: 1px solid var(--line);
}
.pill svg { width: 15px; height: 15px; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ─── nav ─── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(14,15,17,0.72); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; box-shadow: 0 8px 20px -10px rgba(0,0,0,0.7); }
.brand-mark svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-burger { display: none; }

/* mobile slide-down menu (built by site.js) */
#mobile-menu {
  position: fixed; inset: 70px 0 auto 0; z-index: 49;
  background: rgba(18,20,23,0.98);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 14px 28px 22px;
  display: none; flex-direction: column; gap: 4px;
}
body.menu-open #mobile-menu { display: flex; }
#mobile-menu .mm-link {
  padding: 14px 4px; font-weight: 600; font-size: 16px; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
#mobile-menu .mm-cta { margin-top: 16px; width: 100%; }

/* ─── hero ─── */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 70% at 78% 0%, var(--accent-soft), transparent 60%),
              radial-gradient(60% 60% at 0% 100%, var(--teal-soft), transparent 55%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 78px 0 90px; }
.hero h1 { font-size: clamp(2.25rem, 7vw, 66px); margin: 18px 0 0; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 1.4vw, 19px); color: var(--ink-2); margin: 22px 0 0; max-width: 30em; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.av-stack { display: flex; }
.av-stack .av { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--bg); margin-left: -10px; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 13px; box-shadow: var(--shadow-sm); }
.av-stack .av:first-child { margin-left: 0; }
.hero-trust-txt { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 14px; height: 14px; }

/* hero phone */
.hero-art { position: relative; display: grid; place-items: center; }
.float-card {
  position: absolute; z-index: 3; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 11px 14px;
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
}
.float-card svg { width: 17px; height: 17px; }

/* ─── device / phone mockup ─── */
.device { width: min(296px, 100%); border-radius: 42px; background: #0b1626; padding: 11px; box-shadow: var(--shadow-lg); position: relative; }
.device::after { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0b1626; border-radius: 16px; z-index: 4; }
.screen { border-radius: 32px; overflow: hidden; background: var(--bg); height: 600px; position: relative; }
.screen-pad { padding: 44px 16px 16px; height: 100%; overflow: hidden; }

/* mini app components used in mockups */
.m-eyebrow { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.m-title { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.m-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); }
.m-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 16px; flex: none; }
.m-seg { display: flex; gap: 5px; }
.m-seg > div { flex: 1; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 1px solid var(--line); color: var(--ink-3); background: var(--bg-2); }
.m-seg > div.on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.m-chip { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.m-spark { width: 100%; height: 40px; display: block; }

/* ─── sections ─── */
section { position: relative; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { max-width: 680px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.9rem, 4.6vw, 44px); margin: 14px 0 0; }
.sec-head p { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; text-wrap: pretty; }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .n { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.85rem, 4vw, 40px); letter-spacing: -0.03em; }
.stat .l { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.stat .n .u { color: var(--accent); }

/* how it works — the chain */
.chain-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 56px; }
.ladder { display: flex; flex-direction: column; gap: 14px; position: relative; }
.ladder::before { content: ''; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 3px; border-radius: 3px; background: linear-gradient(var(--accent), var(--teal) 50%, var(--gold)); opacity: .45; }
.rung { display: flex; align-items: center; gap: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow-sm); position: relative; }
.rung.you { border-color: var(--accent); background: linear-gradient(120deg, var(--accent-soft), var(--bg-2)); box-shadow: var(--shadow); }
.rung .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-soft); flex: none; z-index: 1; }
.rung .ic svg { width: 17px; height: 17px; }
.rung b { font-family: var(--f-display); font-weight: 600; font-size: 16px; }
.rung span { display: block; font-size: 13px; color: var(--ink-2); }
.howsteps { display: flex; flex-direction: column; gap: 26px; }
.howstep { display: flex; gap: 16px; }
.howstep .k { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; flex: none; }
.howstep h4 { font-family: var(--f-display); font-weight: 600; font-size: 19px; }
.howstep p { font-size: 15px; color: var(--ink-2); margin-top: 4px; }

/* trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 52px; }
.trust-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.trust-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.trust-ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; }
.trust-ic svg { width: 24px; height: 24px; }
.trust-card h4 { font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.trust-card p { font-size: 14.5px; color: var(--ink-2); margin-top: 7px; }

/* feature rows */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 72px; }
.feat:first-of-type { margin-top: 56px; }
.feat.flip .feat-art { order: -1; }
.feat-art { display: grid; place-items: center; }
.feat ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 13px; }
.feat li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-2); }
.feat li svg { width: 21px; height: 21px; color: var(--teal); flex: none; margin-top: 1px; }
.feat h3 { font-size: clamp(1.55rem, 3.4vw, 34px); }

/* community photos */
.community { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 16px; margin-top: 48px; }
.community image-slot { width: 100%; height: 100%; }
.community .big { grid-row: span 2; }

/* testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; }
.tcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; }
.tcard p { font-size: 16px; color: var(--ink); line-height: 1.55; text-wrap: pretty; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 600; flex: none; }
.tcard .who b { font-family: var(--f-display); font-size: 15px; }
.tcard .who span { display: block; font-size: 12.5px; color: var(--ink-2); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.price { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.price.feature { border: 1.5px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.price.feature .tag { position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price h4 { font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.price .amt { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 42px); letter-spacing: -0.03em; margin: 12px 0 2px; }
.price .amt small { font-size: 16px; font-weight: 500; color: var(--ink-2); }
.price .sub { font-size: 14px; color: var(--ink-2); }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 11px; }
.price li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.price li svg { width: 19px; height: 19px; color: var(--teal); flex: none; }
.price .btn { width: 100%; margin-top: auto; }

/* faq */
.faq { max-width: 820px; margin: 48px auto 0; }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; text-align: left; font-family: var(--f-display); font-weight: 600; font-size: 18.5px; color: var(--ink); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans p { font-size: 15.5px; color: var(--ink-2); padding: 0 4px 24px; overflow: hidden; min-height: 0; }
.qa .chev { width: 26px; height: 26px; flex: none; transition: transform .25s ease; color: var(--accent); }
.qa.open .chev { transform: rotate(45deg); }

/* final cta */
.cta-band { background: radial-gradient(120% 130% at 50% 0%, #20242a 0%, #14161a 60%); border: 1px solid var(--line-2); border-radius: 32px; padding: 70px 40px; text-align: center; color: var(--ink); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(2rem, 5vw, 48px); }
.cta-band p { font-size: 19px; opacity: .92; margin: 16px auto 0; max-width: 34em; }
.cta-band .hero-cta { justify-content: center; margin-top: 32px; }

/* early-access signup (lives in the final CTA band) */
.signup { max-width: 520px; margin: 32px auto 0; }
.signup-row { display: flex; gap: 12px; }
.signup-input {
  flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 18px;
  border: 1.5px solid var(--line-2); border-radius: 14px;
  background: var(--bg-2); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; font-weight: 500;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,0.6);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.signup-input::placeholder { color: var(--ink-3); }
.signup-input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 12px 30px -16px rgba(0,0,0,0.6);
}
.signup-input.is-error { border-color: #c46a5a; box-shadow: 0 0 0 4px rgba(196,106,90,0.20); }
.signup-btn { flex: none; height: 56px; }
.signup-msg { font-size: 13.5px; min-height: 1.3em; margin: 12px 0 0; }
.signup-msg.error {
  display: inline-block; color: #ffb4a8; background: rgba(196,106,90,0.16);
  font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.signup-fine { font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; }

/* success state — replaces the form contents after a valid signup */
.signup.is-done { text-align: center; }
.signup-done { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.signup-check {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 8px;
  background: var(--accent-soft); border: 1.5px solid var(--line-2);
  display: grid; place-items: center; color: var(--accent);
}
.signup-check svg { width: 28px; height: 28px; }
.signup-done h3 { font-family: var(--f-display); font-weight: 600; font-size: 24px; color: var(--ink); }
.signup-done p { font-size: 16px; color: var(--ink-2); margin: 0; }
.signup-done b { font-weight: 700; }

/* footer */
.footer { background: var(--navy); color: var(--ink-2); padding: 64px 0 40px; border-top: 1px solid var(--line); }
.footer .brand { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin: 0 0 16px; font-weight: 700; }
.foot-grid a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.foot-grid a:hover { color: var(--ink); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── responsive ─── */
/* tablet & below — collapse nav into the burger menu.
   NB: target only the anchor `.btn-ghost` (the "Log in" link); the burger
   button also carries `.btn-ghost`, so `.nav-cta .btn-ghost` would hide it too. */
@media (max-width: 900px) {
  .nav-links, .nav-cta a.btn-ghost { display: none; }
  .nav-burger { display: grid; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; padding: 52px 0 70px; }
  .hero-art { margin-top: 30px; }
  .chain-grid, .feat, .feat.flip { grid-template-columns: 1fr; gap: 36px; }
  .feat.flip .feat-art { order: 0; }
  .trust-grid, .tgrid { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 28px 18px; }
  .community { grid-template-columns: 1fr 1fr; grid-template-rows: 160px 160px; }
  .community .big { grid-row: span 1; grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 70px 0; }
}
@media (max-width: 600px) {
  .trust-grid, .tgrid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 22px; border-radius: 24px; }
}
@media (max-width: 560px) {
  /* free up the nav bar on small phones — CTA lives in the burger menu */
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  #mobile-menu { padding: 14px 18px 22px; }
  .signup-row { flex-direction: column; }
  .signup-btn { width: 100%; }
}
