/* ============================================================
   hankki — pre-seed landing page
   Design tokens first. Everything below reads from :root.
   ============================================================ */

:root {
  --bg:        #FFFFFF;
  --bg-soft:   #FAFAFC;
  --ink:       #0B0B12;
  --ink-2:     #22222E;
  --muted:     #5A5A6E;
  --muted-2:   #8B8B9A;
  --line:      #ECECF2;
  --line-2:    #E3E3EC;

  --purple:    #7C3AED;
  --purple-h:  #6D28D9;   /* hover */
  --purple-2:  #A78BFA;
  --purple-3:  #EDE9FE;   /* tint bg */
  --purple-4:  #F6F3FF;   /* softer tint */

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11,11,18,.04), 0 2px 6px rgba(11,11,18,.03);
  --shadow-md: 0 6px 24px rgba(124,58,237,.08), 0 2px 6px rgba(11,11,18,.04);
  --shadow-lg: 0 20px 60px rgba(124,58,237,.14), 0 6px 18px rgba(11,11,18,.06);

  --f-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
  --pad: 24px;
}

/* -------- reset-ish -------- */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* -------- layout helpers -------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.section {
  padding: 96px 0;
}
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 600;
  padding: 6px 12px;
  background: var(--purple-3);
  border-radius: var(--r-pill);
}
.section-title {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 18px 0 14px;
  max-width: 780px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
}

/* -------- nav -------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(11,11,18,.03);
  background: rgba(255,255,255,.86);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(124,58,237,.35);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__links a {
  padding: 10px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.nav__links a:hover { background: var(--purple-3); color: var(--purple-h); }
.nav__cta {
  margin-left: 6px;
}
.nav__toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--r-md);
  padding: 8px 10px;
  align-items: center;
  gap: 6px;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav__toggle span + span { margin-top: 4px; }

/* -------- buttons -------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .06s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124,58,237,.28);
}
.btn--primary:hover { background: var(--purple-h); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--purple-2); color: var(--purple-h); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn__arrow { transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* -------- hero -------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, rgba(124,58,237,.28), rgba(124,58,237,0));
  top: -180px; left: -140px;
}
.hero::after {
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(167,139,250,.30), rgba(167,139,250,0));
  top: -60px; right: -120px;
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(rgba(124,58,237,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 40%, transparent 75%);
  opacity: .55;
}
.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 22px 0 20px;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--purple) 20%, var(--purple-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero__ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero__meta {
  margin-top: 28px;
  color: var(--muted-2);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.15);
}

/* -------- metrics strip -------- */

.metrics {
  padding: 8px 0 40px;
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-sm);
}
.metric__label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}
.metric__value {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 8px;
  color: var(--ink);
}
.metric__value .u { color: var(--purple); }

/* -------- section headings -------- */

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 40px;
}
.section-head--center {
  align-items: center;
  text-align: center;
}
.section-head--center .section-title,
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* -------- product grid -------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 28px 30px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  border-color: var(--purple-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple-3);
  color: var(--purple);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-weight: 700;
}
.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.card__tag {
  position: absolute;
  top: 20px; right: 20px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

/* -------- about -------- */

.about {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.about p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.about p:last-of-type { margin-bottom: 0; }
.about__aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.about__aside h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
  margin-bottom: 12px;
}
.about__quote {
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--ink);
}
.about__quote .accent { color: var(--purple); }
.about__bullets {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.about__bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
}
.about__bullets li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--purple);
  margin-top: 8px;
  flex: 0 0 auto;
}

/* -------- studios panel -------- */

.studios {
  padding: 48px 0 40px;
}
.studios__panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-4) 0%, #fff 60%, var(--purple-3) 100%);
  border: 1px solid var(--purple-2);
  border-radius: var(--r-xl);
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 36px;
  align-items: center;
}
.studios__panel::before {
  content: "";
  position: absolute;
  right: -80px; bottom: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(closest-side, rgba(124,58,237,.22), transparent);
  border-radius: 50%;
  pointer-events: none;
}
.studios h3 {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 10px;
}
.studios p {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 520px;
}
.studios__cta {
  display: flex;
  justify-content: flex-end;
}

/* -------- pricing -------- */

.pricing {
  padding: 64px 0 32px;
  text-align: center;
}
.pricing__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--purple-2);
  color: var(--purple-h);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(124,58,237,.10);
}
.pricing__pill::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
}
.pricing__note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* -------- contact -------- */

.contact {
  padding: 64px 0 96px;
}
.contact__panel {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-xl);
  padding: 64px 48px;
  text-align: center;
}
.contact__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(124,58,237,.35), transparent 70%),
    radial-gradient(600px 240px at 80% 100%, rgba(167,139,250,.28), transparent 70%);
  pointer-events: none;
}
.contact__panel > * { position: relative; z-index: 1; }
.contact__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple-2);
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(167,139,250,.12);
  border: 1px solid rgba(167,139,250,.35);
  border-radius: var(--r-pill);
}
.contact h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 18px auto 12px;
  max-width: 720px;
  line-height: 1.15;
}
.contact p {
  color: #C9C9D6;
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.contact .btn--primary {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.contact .btn--primary:hover { background: var(--purple-3); color: var(--purple-h); }

/* -------- footer -------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__left { display: inline-flex; align-items: center; gap: 10px; }
.footer__mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--purple);
}
.footer a:hover { color: var(--purple-h); }

/* -------- responsive -------- */

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 28px; }
  .studios__panel { grid-template-columns: 1fr; padding: 32px; }
  .studios__cta { justify-content: flex-start; }
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .cards { grid-template-columns: 1fr; }
  .contact__panel { padding: 48px 24px; }

  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 72px; left: 12px; right: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.nav-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 14px; border-radius: var(--r-md); }
  .nav__cta { margin: 6px 0 0; text-align: center; }
}

@media (max-width: 460px) {
  :root { --pad: 18px; }
  .metrics__grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 40px; }
}

/* -------- focus states, accessibility -------- */

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: var(--r-md);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
