*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.04; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
a { color: inherit; text-decoration: none; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: var(--section-y); }
.eyebrow { font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime); font-weight: 600; }
.lime { color: var(--lime); }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; padding: .9rem 1.5rem; border-radius: var(--radius-sm); cursor: pointer; border: 0; transition: transform .25s var(--ease), background .25s var(--ease); }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); background: #d4ff5e; }
.btn-ghost { background: transparent; color: var(--off-white); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

/* Reveal animation base (JS toggles .is-visible) */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(11,14,12,0.55); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav.is-scrolled { background: rgba(11,14,12,0.9); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; transition: padding-block .3s var(--ease); }
.nav.is-scrolled .nav__inner { padding-block: .7rem; }
.nav__logo { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 2rem; font-size: .95rem; }
.nav__links a { color: var(--muted); transition: color .2s var(--ease); }
.nav__links a:hover { color: var(--off-white); }
.nav__cta { padding: .6rem 1.2rem; }
@media (max-width: 760px) { .nav__links { display: none; } }

/* Hero */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: clamp(3rem,8vw,6rem); overflow: hidden; }
.hero::before { content:""; position:absolute; inset:-15% -10% auto auto; width:620px; height:620px; max-width:70vw; background: radial-gradient(circle, rgba(198,255,58,0.18), transparent 65%); filter: blur(20px); z-index:0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title { font-size: var(--fs-hero); margin-block: 1rem; }
.hero__sub { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero app mockup */
.hero__visual { position: relative; z-index: 1; min-width: 0; }
.app-window { position: relative; z-index: 1; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface), var(--surface-2)); box-shadow: 0 40px 90px rgba(0,0,0,.55); overflow: hidden; }
.app-window__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.app-dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3a32; }
.app-dot:first-child { background: var(--lime); }
.app-window__tab { margin-left: 12px; height: 12px; width: 130px; border-radius: 6px; background: #2c3a32; }
.app-window__body { display: grid; grid-template-columns: 64px 1fr; gap: 0; min-height: 270px; }
.app-window__nav { display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; border-right: 1px solid var(--line); }
.app-window__nav span { height: 10px; border-radius: 4px; background: #2c3a32; }
.app-window__logo { height: 16px !important; background: var(--lime) !important; border-radius: 5px !important; }
.app-window__nav span.is-active { background: rgba(198,255,58,.45); }
.app-window__main { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.app-window__head { height: 16px; width: 45%; border-radius: 6px; background: var(--lime); }
.app-window__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.app-stat i { height: 8px; width: 60%; border-radius: 3px; background: #2c3a32; display: block; }
.app-stat b { height: 18px; width: 80%; border-radius: 4px; background: rgba(244,246,242,.18); display: block; }
.app-window__chart { display: flex; align-items: flex-end; gap: 10px; height: 96px; margin-top: 4px; }
.app-window__chart span { flex: 1; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--lime), rgba(198,255,58,.25)); }
.app-phone { position: absolute; right: -18px; bottom: -34px; z-index: 2; width: clamp(96px, 22%, 132px); aspect-ratio: 9 / 19; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, #1f2b24, var(--surface-2)); box-shadow: 0 30px 60px rgba(0,0,0,.6); padding: 12px; }
.app-phone__screen { height: 100%; border-radius: 14px; background: var(--ink); border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.app-phone__head { height: 22px; border-radius: 6px; background: var(--lime); }
.app-phone__line { height: 8px; border-radius: 4px; background: #2c3a32; }
.app-phone__line.short { width: 60%; }
.app-phone__cta { margin-top: auto; height: 26px; border-radius: 7px; background: rgba(198,255,58,.85); }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); }
  .hero__visual { max-width: 460px; }
  .app-phone { right: 0; bottom: -28px; }
}
@media (max-width: 420px) { .app-phone { display: none; } }

/* Problem section */
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.problem__card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.problem__card h3 { margin-bottom: .6rem; }
.problem__card p { color: var(--muted); }
.problem__kicker { font-family: var(--font-display); font-size: var(--fs-h3); margin-top: 2.5rem; }
@media (max-width: 820px) { .problem__grid { grid-template-columns: 1fr; } }

/* Build section */
.build__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.build__card { position: relative; background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.75rem; transition: transform .3s var(--ease), border-color .3s var(--ease); }
.build__card:hover { transform: translateY(-6px); border-color: var(--lime); }
.build__num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--lime); opacity: .85; margin-bottom: .75rem; }
.build__card h3 { margin-bottom: .6rem; }
.build__card p { color: var(--muted); }
@media (max-width: 820px) { .build__grid { grid-template-columns: 1fr; } }

/* Process / timeline section */
.process__lede { max-width: 560px; margin-top: 1rem; }
.timeline { list-style: none; margin-top: 3rem; display: grid; gap: 1.25rem; }
.timeline__item { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: var(--radius); padding: 1.75rem 2rem; }
.timeline__day { font-family: var(--font-display); font-size: var(--fs-small); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); display: block; margin-bottom: .5rem; }
.timeline__item h3 { margin-bottom: .4rem; }
.timeline__item p { color: var(--muted); }
@media (min-width: 821px) { .timeline { grid-template-columns: repeat(2, 1fr); } }

/* Work section */
.work__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.work__item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.work__item img { display: block; width: 100%; height: auto; }
.work__item figcaption { padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.work__note { margin-top: 1.5rem; font-size: var(--fs-small); }
@media (max-width: 820px) { .work__grid { grid-template-columns: 1fr; } }

/* Why Hatch section */
.why { background: var(--surface-2); border-block: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.why__item h3 { margin-bottom: .5rem; }
.why__item p { color: var(--muted); }
@media (max-width: 980px) { .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }

/* FAQ section */
.faq__inner { max-width: 820px; }
.faq__list { margin-top: 2.5rem; display: grid; gap: .75rem; }
.faq__item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.faq__item summary { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-h3); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--lime); font-size: 1.5rem; transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); margin-top: .9rem; }

/* Apply section */
.apply { background: linear-gradient(180deg, var(--ink), #0f1410); }
.apply__inner { max-width: 680px; }
.apply__lede { max-width: 560px; margin-top: 1rem; }
.apply__form { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.field { display: grid; gap: .5rem; }
.field label { font-size: var(--fs-small); color: var(--off-white); font-weight: 500; }
.field input, .field textarea { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .85rem 1rem; color: var(--off-white); font-family: var(--font-body); font-size: 1rem; transition: border-color .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.apply__status { font-size: var(--fs-small); min-height: 1.2em; }
.apply__status.is-error { color: #ff7a6b; }
.apply__success { margin-top: 2.5rem; background: var(--surface-2); border: 1px solid var(--lime); border-radius: var(--radius); padding: 2rem; }
.apply__success h3 { margin-bottom: .5rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer__brand p { font-size: var(--fs-small); margin-top: .4rem; max-width: 280px; }
.footer__links { display: flex; gap: 1.5rem; font-size: .95rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: var(--lime); }
.footer__legal { font-size: var(--fs-small); width: 100%; }
