/* Northline Code, round 2. Deep-space minimalism.
   Field #06080B, one amber accent, Archivo + Satoshi, flat color, star texture.
   Motion values from the reference study: ease A cubic-bezier(.16,1,.3,1),
   ease B cubic-bezier(.4,0,.2,1). */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --field: #06080B;
  --raised: #0C1017;
  --panel: #0A0D12;
  --chrome: #0C0F14;
  --ink: #EDF0F3;
  --second: #9AA5B1;
  --faint: #7E8896;
  --hair: rgba(237, 240, 243, .13);
  --frame-line: rgba(237, 240, 243, .16);
  --amber: #E8B34B;
  --ease-a: cubic-bezier(.16, 1, .3, 1);
  --ease-b: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--field);
  color: var(--ink);
  font-family: "Satoshi", -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#starsBack, #starsFront {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
#starsFront { animation: drift 90s ease-in-out infinite alternate, breathe 7s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-24px); } }
@keyframes breathe { from { opacity: .72; } to { opacity: 1; } }

.page { position: relative; z-index: 1; }
.wrap { max-width: 1600px; margin: 0 auto; padding-left: clamp(20px, 4.5vw, 76px); padding-right: clamp(20px, 4.5vw, 76px); }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

h1, h2, h3 { font-family: "Archivo", "Satoshi", sans-serif; margin: 0; }

/* ---------- top bar ---------- */
.topbar { border-bottom: 1px solid var(--hair); }
.topbar-in { display: flex; align-items: center; gap: 34px; height: 68px; }
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Archivo", sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em; text-decoration: none; margin-right: auto;
}
.wm-star { width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); flex: none; }
.topnav { display: flex; gap: 28px; }
.topnav a { color: var(--second); text-decoration: none; font-size: 15px; transition: color .18s var(--ease-b); }
.topnav a:hover { color: var(--ink); }

.btn {
  display: inline-block; background: var(--ink); color: #0A0C0F;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 10px 18px; border: none; cursor: pointer;
  transition: background-color .18s var(--ease-b), transform .18s cubic-bezier(.32, .72, 0, 1);
}
.btn:hover { background: var(--amber); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-big { padding: 15px 26px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 4vw, 80px);
  padding-top: clamp(52px, 8vh, 104px);
  padding-bottom: 0;
  align-items: center;
}
.greeting { font-weight: 500; font-size: 17px; color: #C7CDD4; margin: 26px 0 22px; }
.hero h1 { font-size: clamp(3rem, 4.6vw, 5.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.015em; margin: 0 0 30px; }
.line { display: block; overflow: hidden; }
.line-in { display: block; }
.s1 { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 16px; max-width: 34em; }
.s2 { font-size: 17px; line-height: 1.6; color: var(--second); margin: 0 0 34px; max-width: 34em; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 22px; }
.email-inline { font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--faint); transition: color .16s var(--ease-b), text-decoration-color .16s var(--ease-b); }
.email-inline:hover { color: var(--amber); text-decoration-color: var(--amber); }
.small-line { color: var(--second); font-size: 15.5px; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  html.js .line-in { transform: translateY(110%); animation: rise .9s var(--ease-a) forwards; animation-delay: var(--d, 0s); }
  html.js .fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp .8s var(--ease-a) forwards; animation-delay: var(--d, 0s); }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- demo ---------- */
.demo { min-width: 0; }
.tabs {
  position: relative; display: inline-flex; gap: 2px;
  background: var(--panel); border: 1px solid var(--hair);
  padding: 4px; margin-bottom: 14px; max-width: 100%;
}
.tabs button {
  position: relative; z-index: 1;
  background: none; border: none; cursor: pointer; padding: 9px 16px;
  font-family: "Satoshi", sans-serif; font-weight: 500; font-size: 15px;
  color: var(--second);
  transition: color .18s var(--ease-b), transform .18s cubic-bezier(.32, .72, 0, 1);
}
.tabs button:hover { color: var(--ink); }
.tabs button:active { transform: scale(.96); }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab-thumb {
  position: absolute; z-index: 0; top: 0; left: 0; height: 39px; width: 0;
  background: #1B222C; border-bottom: 2px solid var(--amber);
  transition: transform .38s cubic-bezier(.3, 1.3, .4, 1), width .38s cubic-bezier(.3, 1.3, .4, 1);
}
.frame-shell { position: relative; }
.frame-clip { overflow: visible; }
.frame-box {
  border: 1px solid var(--frame-line); border-radius: 10px; overflow: hidden;
  background: #FFFFFF; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  margin: 0 auto; width: 100%;
  transition: width .6s var(--ease-a);
}
.demo[data-view="phone"] .frame-box { width: 380px; max-width: 100%; }
.chrome-bar {
  display: flex; align-items: center; gap: 7px;
  background: var(--chrome); height: 40px; padding: 0 14px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3A424E; flex: none; }
.chrome-url { margin-left: 10px; font-size: 13px; color: var(--second); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-view { position: relative; }
.frame-view iframe { display: block; width: 100%; border: 0; transition: height .6s var(--ease-a), filter .22s var(--ease-b); background: #FFFFFF; }
.frame-box.switching .frame-view iframe { filter: blur(1.6px); }
.enter { animation: enterIn .35s var(--ease-a); }
@keyframes enterIn { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
.shield { position: absolute; inset: 0; display: none; }
@media (hover: none) { .shield { display: block; } }
.shield.off { display: none; }

.stats {
  border: 1px solid var(--frame-line); border-radius: 10px;
  background: var(--panel); padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column;
}
.demo[data-view="hood"] .stats { min-height: 600px; }
.stats .stats-method { margin-top: auto; padding-top: 26px; }
.stats-wait { color: var(--second); margin: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.stat-value { font-family: "Archivo", sans-serif; font-weight: 800; font-size: clamp(2.2rem, 3.2vw, 3.4rem); line-height: 1.05; margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: nowrap; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat-unit { font-family: "Satoshi", sans-serif; font-weight: 500; font-size: 16px; color: var(--second); }
.stat-sentence { color: var(--second); font-size: 14.5px; line-height: 1.55; margin: 0; }
.stats-note { color: var(--second); font-size: 14.5px; margin: 22px 0 0; }
.stats-method { color: var(--faint); font-size: 14px; line-height: 1.6; margin: 26px 0 0; max-width: 62ch; }
.caption { color: var(--second); font-size: 14.5px; line-height: 1.6; margin: 18px 0 0; max-width: 68ch; }
.demo[data-view="phone"] .caption { max-width: 380px; margin-left: auto; margin-right: auto; }

.hero-foot {
  grid-column: 1 / -1;
  max-width: 75ch;
  border-top: 1px solid var(--hair);
  margin: clamp(48px, 7vh, 84px) 0 0; padding: 24px 0 30px;
  font-weight: 500; font-size: 16.5px; color: var(--ink);
}

/* ---------- bands ---------- */
.band { border-top: 1px solid var(--hair); padding: clamp(68px, 10vh, 118px) 0; }
.band-raised { background: var(--raised); }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.sec-intro { color: var(--second); font-size: 17px; margin: 0; max-width: 62ch; }

.rows { border-bottom: 1px solid var(--hair); }
.row {
  display: grid; grid-template-columns: 4fr 6fr 44px; align-items: center;
  gap: clamp(20px, 3vw, 56px);
  padding: 30px 10px; border-top: 1px solid var(--hair);
  text-decoration: none;
  transition: background-color .2s var(--ease-b);
}
a.row:hover { background: rgba(237, 240, 243, .035); }
a.row:active { background: rgba(237, 240, 243, .06); }
a.row:active .row-arrow { transform: translateX(3px); }
@media (min-width: 641px) {
  .row-plain { grid-template-columns: 4fr 6fr; }
}
.frame-clip, .stats { transition: opacity .16s var(--ease-b), filter .16s var(--ease-b); }
.leaving { opacity: 0; filter: blur(2px); pointer-events: none; }
.stats-files { margin-top: 28px; }
.stats-files-intro { color: var(--second); font-size: 14.5px; margin: 0 0 6px; }
.file-row {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(237, 240, 243, .07); padding: 5px 0;
  font-size: 13.5px; color: var(--second);
}
.file-row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (min-width: 760px) {
  .stats-files { display: grid; grid-template-columns: 1fr 1fr; column-gap: 44px; }
  .stats-files-intro { grid-column: 1 / -1; }
}
.row-name { font-family: "Archivo", sans-serif; font-weight: 700; font-size: clamp(1.5rem, 2vw, 2rem); letter-spacing: -0.01em; line-height: 1.15; }
.row-line { color: var(--second); font-size: 16.5px; line-height: 1.6; max-width: 68ch; }
.row-arrow { font-size: 22px; color: var(--amber); text-align: right; transition: transform .2s var(--ease-b); }
a.row:hover .row-arrow { transform: translateX(6px); }
.foot-note { color: var(--second); font-size: 15.5px; margin: 26px 0 0; }
.foot-note a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--faint); }
.foot-note a:hover { color: var(--amber); text-decoration-color: var(--amber); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); }
.step { padding: 4px 30px 4px 30px; border-left: 1px solid var(--hair); }
.step:first-child { padding-left: 0; border-left: none; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--second); font-size: 15.5px; line-height: 1.6; margin: 0; }

.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 76px; }
.qa-item h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.qa-item p { color: var(--second); font-size: 16.5px; line-height: 1.65; margin: 0; max-width: 56ch; }

/* ---------- closing ---------- */
.closing { background: #030508; border-top: 1px solid var(--hair); padding: clamp(80px, 12vh, 130px) 0 52px; }
.closing-cta {
  display: inline-block; font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: clamp(3.25rem, 7.5vw, 7.5rem); line-height: 1.02; letter-spacing: -0.02em;
  text-decoration: none; transition: color .18s var(--ease-b);
}
.closing-cta:hover { color: var(--amber); }
.closing-email {
  display: block; margin-top: 26px; font-weight: 500;
  font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--amber);
  text-decoration: none; text-underline-offset: 5px;
}
.closing-email:hover { text-decoration: underline; }
.closing-line { color: var(--second); margin: 18px 0 0; }
.closing-small {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--hair); margin-top: 64px; padding-top: 22px;
  color: var(--faint); font-size: 13.5px;
}

/* ---------- scroll reveal ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-a), transform .8s var(--ease-a); }
  html.js [data-reveal].in { opacity: 1; transform: translateY(0); }
}

/* ---------- narrow ---------- */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .greeting { margin-top: 0; }
  .hero h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .step:nth-child(odd) { padding-left: 0; border-left: none; }
  .qa { grid-template-columns: 1fr; gap: 38px; }
}
@media (max-width: 640px) {
  .topnav, .btn-top { display: none; }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 2px; }
  .row-arrow { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 0 0 8px; border-left: none; }
  .tabs { gap: 20px; flex-wrap: wrap; }
  .actions { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #starsFront { animation: none; }
  html { scroll-behavior: auto; }
}

.page p { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  .frame-box.switching .frame-view iframe { filter: none; }
  .enter { animation: none; }
  .tabs button, .tab-thumb, .btn { transition: none; }
  .frame-box, .frame-view iframe { transition: none !important; }
  .leaving { filter: none; }
  .btn:active, .tabs button:active, a.row:active .row-arrow { transform: none; }
}
