/* =========================================================
   Tinyworks Studio — Studio Minimalist + electric blue
   Sharp corners, 1px keylines, no shadows.
   ========================================================= */

:root {
  /* Color — restricted monochrome + one accent */
  --blue: #0055FF;
  --blue-dim: rgba(0, 85, 255, 0.12);
  --ink: #1a1c1c;          /* on-surface */
  --ink-muted: #4c4546;    /* on-surface-variant */
  --outline: #7e7576;
  --keyline: #e2e2e2;      /* hairline borders */
  --surface: #f9f9f9;      /* page background */
  --surface-white: #ffffff;
  --surface-low: #f3f3f4;

  /* Type */
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Layout */
  --margin: 4rem;          /* desktop outer margin */
  --maxw: 1280px;
  --gutter: 1rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--margin) * 2);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--keyline);
}

.section-head { margin-bottom: clamp(32px, 5vw, 64px); }

.index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 14px;
  max-width: 22ch;
}

.muted { color: var(--ink-muted); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(249, 249, 249, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--keyline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 14px; height: 14px;
  background: var(--blue);
}
.brand-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  transition: color .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter .2s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 140px 80px;
}
.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;             /* behind content, above page background */
  opacity: 0.85;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 60rem; }

/* Keep all content above the constellation backdrop */
.site-header, main, .site-footer { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 28px;
}
.kicker-dot { width: 8px; height: 8px; background: var(--blue); }

.hero-heading {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.hero-heading .muted { display: block; }

.hero-sub {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-muted);
  max-width: 44ch;
  margin-top: 28px;
}
.hero-actions { margin-top: 40px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--keyline);
  border-top: 1px solid var(--keyline);
}
.step {
  padding: 32px;
  border-right: 1px solid var(--keyline);
  border-bottom: 1px solid var(--keyline);
  background: transparent;
  transition: background-color .25s ease;
}
.step:hover { background: rgba(255, 255, 255, 0.55); }
.step-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  color: var(--blue);
  opacity: 0.25;
  transition: opacity .25s ease;
}
.step:hover .step-num { opacity: 1; }
.step-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 24px 0 12px;
}
.step-body { color: var(--ink-muted); font-size: 15px; }

/* ---------- Offer ---------- */
.offer { background: transparent; }
.offer-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border: 1px solid var(--keyline);
}
.offer-price {
  padding: clamp(32px, 4vw, 56px);
  border-right: 1px solid var(--keyline);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.offer-amount {
  font-family: var(--font-mono);
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.offer-line { color: var(--ink-muted); font-size: 16px; }

.offer-detail { padding: clamp(32px, 4vw, 56px); }
.offer-list { display: grid; gap: 18px; margin-bottom: 36px; }
.offer-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 16px;
}
.tick {
  width: 8px; height: 8px;
  background: var(--blue);
  margin-top: 9px;
}
.guarantee {
  border-top: 1px solid var(--keyline);
  padding-top: 24px;
}
.guarantee p { color: var(--ink-muted); margin-top: 10px; max-width: 60ch; }

/* ---------- Founder ---------- */
.founder-line {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 36ch;
}

/* ---------- Contact ---------- */
.contact { background: transparent; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-sub { color: var(--ink-muted); margin-top: 16px; max-width: 34ch; }
.contact-direct {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}
.contact-direct a { color: var(--blue); border-bottom: 1px solid var(--blue); }

.contact-form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--outline);
}
.field input,
.field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--keyline);
  border-radius: 0;
  padding: 14px 16px;
  width: 100%;
  transition: border-color .2s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.field textarea { resize: vertical; }
.form-status { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); min-height: 1em; }
.form-status.error { color: #ba1a1a; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--keyline); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 32px;
}
.footer-brand, .footer-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--outline);
}
.footer-brand a { color: var(--ink-muted); }
.footer-brand a:hover { color: var(--blue); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.active { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --margin: 1.5rem; }
  .nav { gap: 16px; }
  .nav a:not(.nav-cta) { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: 1fr; }
  .offer-price { border-right: none; border-bottom: 1px solid var(--keyline); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .magnetic { transition: none !important; }
}
