
/* Gatebrook / Cinematic marketing experience
   This stylesheet is scoped to .gb-home; authenticated pages are unchanged. */
:root { scroll-behavior: smooth; }
body { margin: 0; }
.gb-home {
  --gb-night: #090a0b;
  --gb-mid: #171a1d;
  --gb-paper: #f5f5f2;
  --gb-ink: #f5f5f2;
  --gb-sub: #abb0b1;
  --gb-outline: rgba(235,238,234,.18);
  --gb-border-strong: rgba(235,238,234,.3);
  --gb-nav: rgba(9,10,11,.79);
  --gb-card: rgba(29,32,34,.86);
  --gb-soft: rgba(240,243,239,.045);
  --gb-fade-a: #3c4144;
  --gb-fade-b: #abb0b0;
  --gb-end-ink: #161a1b;
  --gb-green: #1f3a32;
  --gb-green-glow: #527363;
  min-height: 100vh;
  overflow: clip;
  background: var(--gb-night);
  color: var(--gb-ink);
  font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
:root[data-gb-theme="light"] .gb-home {
  --gb-night: #f5f5f2;
  --gb-mid: #e4e6e3;
  --gb-paper: #0a0b0c;
  --gb-ink: #181d1e;
  --gb-sub: #535e60;
  --gb-outline: rgba(30,39,39,.17);
  --gb-border-strong: rgba(30,39,39,.29);
  --gb-nav: rgba(245,245,242,.82);
  --gb-card: rgba(255,255,255,.94);
  --gb-soft: rgba(20,27,28,.04);
  --gb-fade-a: #b2b8b7;
  --gb-fade-b: #363c3e;
  --gb-end-ink: #f5f5f2;
  --gb-green: #1f3a32;
  --gb-green-glow: #2e5544;
}
.gb-home *, .gb-home *::before, .gb-home *::after { box-sizing: border-box; }
.gb-home a { color: inherit; text-decoration: none; }
.gb-home button { font: inherit; }
.gb-home a:focus-visible, .gb-home button:focus-visible {
  outline: 2px solid #859c91; outline-offset: 5px;
}
.gb-home ::selection { background: #4c695b; color: #fff; }
.gb-shell { width: min(100% - 76px, 1380px); margin-inline: auto; }
.gb-overline {
  display: flex; align-items: center; gap: 13px;
  font-size: 10px; font-weight: 700; letter-spacing: .25em;
  line-height: 1.5; text-transform: uppercase; color: var(--gb-sub);
}
.gb-overline::before {
  content:""; display: inline-block; height: 1px; width: 26px;
  background: var(--gb-green-glow); flex: 0 0 auto;
}

/* Persistent minimal navigation */
.gb-masthead {
  position: fixed; inset: 0 0 auto; z-index: 120;
  border-bottom: 1px solid var(--gb-outline);
  background: var(--gb-nav);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.gb-mast-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 82px; gap: 22px;
}
.gb-ident { display: inline-flex; align-items: center; gap: 15px; flex: 0 0 auto; }
.gb-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--gb-border-strong);
  background: var(--gb-soft);
}
.gb-logo svg { width: 27px; height: 27px; stroke: var(--gb-ink); fill: none; stroke-width: 1.25; }
.gb-wordmark { font-weight: 600; font-size: 17px; letter-spacing: .25em; white-space: nowrap; }
.gb-links { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 42px); margin-left: auto; }
.gb-links a { font-size: 11px; color: var(--gb-sub); text-transform: uppercase; letter-spacing: .16em; transition: color .2s; }
.gb-links a:hover { color: var(--gb-ink); }
.gb-nav-cta {
  border: 1px solid var(--gb-border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 19px; font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .14em;
  transition: background .25s, color .25s, border-color .25s;
}
.gb-nav-cta:hover { background: var(--gb-ink); color: var(--gb-night); border-color: var(--gb-ink); }
.gb-progress {
  position: absolute; bottom: -1px; left: 0; height: 2px; width: 100%;
  background: var(--gb-green-glow); transform: scaleX(0); transform-origin: left center;
  pointer-events: none;
}

/* Opening scene */
.gb-hero {
  position: relative; min-height: max(780px, 100svh);
  display: flex; align-items: center; isolation: isolate;
  padding: 165px 0 118px; background: var(--gb-night);
}
.gb-hero::before {
  content:""; position: absolute; z-index: -2; pointer-events: none;
  inset: 4% -20% 0;
  background:
    radial-gradient(ellipse 45% 48% at 76% 47%, rgba(75,87,85,.16), transparent 70%),
    radial-gradient(ellipse 25% 30% at 78% 52%, rgba(29,67,51,.15), transparent 78%);
}
:root[data-gb-theme="light"] .gb-hero::before {
  background: radial-gradient(ellipse 45% 48% at 78% 48%,rgba(80,96,89,.10), transparent 75%);
}
.gb-hero-grid {
  position: absolute; pointer-events: none; inset: 0; z-index: -1;
  opacity: .24;
  background-image: linear-gradient(90deg, transparent 49.9%,var(--gb-outline) 50%,transparent 50.1%);
  background-size: 33.333% 100%;
}
.gb-hero-content { position: relative; z-index: 2; }
.gb-hero-kicker { margin-bottom: 42px; }
.gb-hero-title {
  display: flex; flex-direction: column;
  margin: 0; font-weight: 550; text-transform: uppercase;
  font-size: clamp(72px, 10.3vw, 174px); line-height: .9;
  letter-spacing: -.075em; max-width: 1350px;
}
.gb-hero-title .gb-title-row { display: block; }
.gb-hero-title .gb-title-row:nth-child(2) { margin-left: clamp(18px, 9vw, 175px); }
.gb-hero-title .gb-title-row:nth-child(3) { color: var(--gb-sub); }
.gb-hero-bottom {
  display: flex; justify-content: space-between; align-items: end;
  gap: 35px; margin-top: clamp(50px, 8vh, 110px);
}
.gb-hero-bottom p { color: var(--gb-sub); font-size: clamp(15px,1.55vw,19px); line-height: 1.6; max-width: 520px; margin: 0; }
.gb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gb-link-button {
  min-height: 51px; display: inline-flex; align-items: center; gap: 32px;
  padding: 0 21px; border: 1px solid var(--gb-border-strong);
  background: transparent; color: var(--gb-ink);
  text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .14em;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.gb-link-button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.gb-link-button:hover { border-color: var(--gb-ink); transform: translateY(-2px); }
.gb-link-button--solid { background: var(--gb-ink); border-color: var(--gb-ink); color: var(--gb-night); }
.gb-link-button--solid:hover { background: var(--gb-mid); border-color: var(--gb-sub); color: var(--gb-ink); }
.gb-hero-sculpture {
  pointer-events: none; position: absolute; width: min(58vw,800px);
  aspect-ratio: 1; right: -9%; top: 16%; z-index: -1;
  opacity: .32; transform: translate3d(0,var(--gb-parallax,0px),0);
  will-change: transform;
}
.gb-hero-sculpture svg { width: 100%; height: 100%; overflow: visible; }
.gb-hero-sculpture .gb-ring { stroke: var(--gb-outline); fill: none; stroke-width: .65; }
.gb-hero-sculpture .gb-arc { stroke: var(--gb-green-glow); fill: none; stroke-width: .75; }
.gb-scroll-cue {
  position: absolute; bottom: 35px; right: max(38px, calc((100vw - 1380px)/2));
  color: var(--gb-sub); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
}
.gb-scroll-cue svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.2; fill: none; animation: gb-bob 2s ease-in-out infinite; }
@keyframes gb-bob { 50% { transform: translateY(6px); } }

/* Editorial transition before product storytelling */
.gb-manifesto {
  min-height: 95svh; padding-block: clamp(145px,19vw,290px);
  display: grid; grid-template-columns: 1fr 2fr; align-items: start; gap: 7vw;
}
.gb-manifesto h2 {
  margin: 0; font-weight: 490; font-size: clamp(43px,7vw,104px);
  line-height: 1.03; letter-spacing: -.065em; text-transform: uppercase;
}
.gb-manifesto h2 em { font-style: normal; color: var(--gb-sub); }
.gb-manifesto-copy { max-width: 520px; color: var(--gb-sub); font-size: clamp(16px,1.55vw,20px); line-height: 1.75; margin: 45px 0 0 auto; }

/* A restrained, interactive live-workflow example */
.gb-system { padding-block: 130px 185px; }
.gb-section-rule { border-top: 1px solid var(--gb-outline); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; }
.gb-section-rule span { color: var(--gb-sub); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.gb-system-heading { font-size: clamp(50px, 7.1vw, 112px); font-weight: 520; letter-spacing: -.07em; text-transform: uppercase; line-height: .98; max-width: 1090px; margin: 105px 0 110px; }
.gb-system-heading span { color: var(--gb-sub); }
.gb-story {
  display: grid; grid-template-columns: minmax(270px,.88fr) minmax(0,1.42fr);
  gap: clamp(35px,6vw,90px); align-items: start;
}
.gb-story-sequence { display: flex; flex-direction: column; }
.gb-story-step {
  appearance: none; background: transparent; color: var(--gb-sub);
  border: none; border-top: 1px solid var(--gb-outline);
  text-align: left; width: 100%; cursor: pointer;
  padding: 35px 13px 40px 0;
  display: grid; grid-template-columns: 50px 1fr; gap: 12px;
  transition: color .3s, opacity .3s;
}
.gb-story-step:last-child { border-bottom: 1px solid var(--gb-outline); }
.gb-story-step:hover, .gb-story-step[aria-pressed="true"] { color: var(--gb-ink); }
.gb-step-number { font-size: 11px; font-weight: 700; letter-spacing: .15em; padding-top: 7px; color: var(--gb-green-glow); }
.gb-step-title { display: block; font-size: clamp(30px,3vw,47px); font-weight: 520; letter-spacing: -.045em; text-transform: uppercase; }
.gb-step-desc { display: block; font-size: 15px; max-width: 350px; line-height: 1.65; margin-top: 16px; color: var(--gb-sub); }
.gb-story-visual { position: sticky; top: 120px; }
.gb-demo {
  background: linear-gradient(135deg, var(--gb-outline), transparent 35%, var(--gb-outline));
  border: 1px solid var(--gb-outline); padding: 11px;
  box-shadow: 0 45px 100px rgba(0,0,0,.17);
}
.gb-demo-shell {
  background: #131619; border: 1px solid #404647;
  color: #f5f5f2; min-height: 515px; padding: 0;
  font-family: "Helvetica Neue","Segoe UI",Arial,sans-serif;
}
.gb-demo-topbar {
  min-height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; border-bottom: 1px solid #2f3536; gap: 15px;
}
.gb-demo-brand { font-size: 12px; letter-spacing: .18em; font-weight: 650; }
.gb-demo-pill { color: #c4cbcb; font-size: 9px; letter-spacing: .12em; border: 1px solid #363d3e; padding: 9px 12px; }
.gb-demo-body { padding: 29px 26px 35px; }
.gb-demo-label { color: #949e9e; font-size: 10px; text-transform: uppercase; letter-spacing: .19em; }
.gb-demo-heading { font-size: clamp(23px,3vw,34px); font-weight: 540; letter-spacing: -.05em; margin: 10px 0 27px; }
.gb-demo-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.gb-demo-kpi { background: #1d2224; border: 1px solid #323a3b; padding: 18px 15px; min-width: 0; }
.gb-demo-kpi span { color: #98a1a1; font-size: 10px; display: block; letter-spacing: .08em; margin-bottom: 10px; }
.gb-demo-kpi strong { font-size: clamp(22px,2.9vw,35px); letter-spacing: -.04em; font-weight: 540; }
.gb-demo-divider { margin: 28px 0 19px; border-top: 1px solid #303637; }
.gb-demo-row { background: #1b1f22; border: 1px solid #323a3b; padding: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: border-color .4s, background .4s; }
.gb-demo-row.is-current { border-color: #5b7066; background: #202926; }
.gb-demo-row-name { font-size: 14px; font-weight: 600; }
.gb-demo-row-detail { font-size: 11px; margin-top: 8px; color: #9da6a6; }
.gb-demo-status { display: inline-flex; justify-content: center; white-space: nowrap; min-width: 88px; border: 1px solid #455a50; color: #c8d6cd; background: #20372b; padding: 9px 12px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.gb-demo-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: #9ea9a9; font-size: 10px; margin-top: 24px; }
.gb-demo-progress { width: 95px; height: 2px; background: #424b4a; position: relative; }
.gb-demo-progress::after { content:""; position: absolute; inset: 0 auto 0 0; background: #708a78; width: var(--gb-demo-completion, 33%); transition: width .55s ease; }
.gb-demo-disclaimer { margin-top: 16px; color: var(--gb-sub); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }

/* The full experience, not a generic SaaS feature grid. */
.gb-principles { padding-block: 90px 260px; }
.gb-principles-lead { font-size: clamp(45px,6.6vw,100px); line-height: 1; letter-spacing: -.063em; text-transform: uppercase; font-weight: 520; max-width: 1030px; margin: 80px 0 100px; }
.gb-principles-lead span { color: var(--gb-sub); }
.gb-principles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.gb-principle { border-top: 1px solid var(--gb-outline); padding: 24px 8px 0 0; }
.gb-principle-number { color: var(--gb-green-glow); font-size: 10px; letter-spacing: .18em; margin-bottom: 65px; }
.gb-principle h3 { font-size: clamp(22px,2.4vw,34px); font-weight: 520; margin: 0 0 22px; letter-spacing: -.04em; }
.gb-principle p { font-size: 15px; line-height: 1.7; color: var(--gb-sub); max-width: 390px; margin: 0; }

/* The only page-wide tonal shift happens at the very end of the scroll. */
.gb-dawn {
  position: relative; height: clamp(720px,125svh,1500px);
  background: linear-gradient(180deg,
    var(--gb-night) 0%, var(--gb-night) 20%,
    var(--gb-mid) 48%, var(--gb-fade-a) 69%,
    var(--gb-fade-b) 87%, var(--gb-paper) 100%);
  overflow: hidden;
}
.gb-dawn-word {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%);
  color: transparent; -webkit-text-stroke: 1px var(--gb-outline);
  font-size: clamp(70px,14vw,260px); font-weight: 540;
  letter-spacing: -.08em; opacity: .65; white-space: nowrap;
  pointer-events: none; user-select: none;
}
.gb-dawn-meta { position: absolute; left: max(38px,calc((100vw - 1380px)/2)); top: 11%; color: var(--gb-sub); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.gb-dawn-line { position: absolute; bottom: 15%; left: 50%; width: 1px; height: 85px; background: var(--gb-end-ink); opacity: .35; }
.gb-finale {
  background: var(--gb-paper); color: var(--gb-end-ink);
  padding: clamp(85px,9vw,150px) 0 30px;
}
.gb-finale .gb-overline { color: var(--gb-end-ink); opacity: .78; }
.gb-finale h2 { font-size: clamp(63px,11vw,165px); line-height: .91; letter-spacing: -.075em; font-weight: 520; text-transform: uppercase; margin: 55px 0 50px; }
.gb-finale-description { color: var(--gb-end-ink); opacity: .73; max-width: 540px; line-height: 1.65; font-size: clamp(15px,1.5vw,19px); margin: 0; }
.gb-finale-actions { margin-top: 38px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gb-finale .gb-link-button { border-color: currentColor; color: var(--gb-end-ink); }
.gb-finale .gb-link-button--solid { background: var(--gb-end-ink); color: var(--gb-paper); border-color: var(--gb-end-ink); }
.gb-finale .gb-link-button--solid:hover { background: transparent; color: var(--gb-end-ink); }
.gb-finale .gb-link-button:not(.gb-link-button--solid):hover { background: var(--gb-end-ink); color: var(--gb-paper); }
.gb-footer {
  margin-top: clamp(130px,19vw,280px); border-top: 1px solid currentColor;
  padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr;
  align-items: start; gap: 30px; font-size: 11px; letter-spacing: .05em;
}
.gb-footer-left .gb-wordmark { font-size: 18px; letter-spacing: .28em; }
.gb-footer-note { opacity: .62; line-height: 1.6; max-width: 250px; margin-top: 20px; }
.gb-footer-right { display: flex; flex-wrap: wrap; gap: 21px; justify-content: flex-end; text-transform: uppercase; }
.gb-footer-right a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gb-footer-bottom { padding-block: 55px 14px; display: flex; justify-content: space-between; gap: 20px; opacity: .58; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

/* Reveal animation is opt-in; the static site remains fully readable without JS. */
.gb-motion .gb-reveal { opacity: 0; transform: translate3d(0,45px,0); transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1); }
.gb-motion .gb-reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); }
.gb-motion .gb-reveal[data-gb-delay="1"] { transition-delay: .12s; }
.gb-motion .gb-reveal[data-gb-delay="2"] { transition-delay: .23s; }
.gb-motion .gb-reveal[data-gb-delay="3"] { transition-delay: .36s; }
@media(max-width:1040px) {
  .gb-links { display: none; }
  .gb-hero-title { font-size: clamp(65px,10.6vw,130px); }
  .gb-hero-bottom { flex-direction: column; align-items: start; }
  .gb-story { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr); gap: 28px; }
  .gb-demo-topbar { padding: 0 16px; }
  .gb-demo-body { padding: 20px 16px; }
  .gb-demo-kpi { padding: 14px 11px; }
}
@media(max-width:720px) {
  .gb-shell { width: min(100% - 40px,1380px); }
  .gb-mast-inner { min-height: 70px; }
  .gb-logo { width: 36px; height: 36px; }
  .gb-logo svg { width: 23px; height: 23px; }
  .gb-ident { gap: 9px; }
  .gb-wordmark { font-size: 12px; letter-spacing: .17em; }
  .gb-nav-cta { padding-inline: 11px; min-height: 36px; font-size: 9px; }
  .gb-hero { min-height: 90svh; padding: 160px 0 115px; }
  .gb-hero-title { font-size: clamp(46px,11.4vw,83px); }
  .gb-hero-title .gb-title-row:nth-child(2) { margin-left: 7vw; }
  .gb-hero-bottom { gap: 28px; margin-top: 48px; }
  .gb-hero-sculpture { width: 100vw; right: -58%; top: 28%; opacity: .21; }
  .gb-hero-grid { opacity: .14; }
  .gb-scroll-cue { right: 20px; bottom: 29px; }
  .gb-manifesto { min-height: auto; grid-template-columns: 1fr; padding-block: 155px 140px; gap: 34px; }
  .gb-manifesto-copy { margin: 14px 0 0; }
  .gb-system { padding-block: 70px 110px; }
  .gb-system-heading { margin: 75px 0 65px; font-size: clamp(44px,8.5vw,79px); }
  .gb-story { display: flex; flex-direction: column; gap: 55px; }
  .gb-story-visual { order: initial; position: relative; top: auto; width: 100%; }
  .gb-story-sequence { width: 100%; }
  .gb-story-step { padding-block: 25px; grid-template-columns: 38px 1fr; }
  .gb-step-title { font-size: 30px; }
  .gb-demo-shell { min-height: 430px; }
  .gb-demo-kpis { gap: 6px; }
  .gb-demo-kpi { padding: 12px 9px; }
  .gb-demo-kpi strong { font-size: 21px; }
  .gb-demo-kpi span { font-size: 9px; }
  .gb-principles { padding-block: 75px 175px; }
  .gb-principles-lead { margin-block: 65px 80px; }
  .gb-principles-grid { grid-template-columns: 1fr; gap: 40px; }
  .gb-principle-number { margin-bottom: 30px; }
  .gb-principle h3 { margin-bottom: 12px; }
  .gb-dawn { height: 90svh; min-height: 660px; }
  .gb-dawn-meta { left: 20px; }
  .gb-finale { padding-top: 110px; }
  .gb-finale h2 { font-size: clamp(54px,11.8vw,93px); }
  .gb-footer { grid-template-columns: 1fr; gap: 40px; }
  .gb-footer-right { justify-content: flex-start; }
  .gb-footer-bottom { padding-bottom: 74px; }
}
@media(max-width:390px) {
  .gb-shell { width: min(100% - 28px,1380px); }
  .gb-wordmark { font-size: 11px; letter-spacing: .12em; }
  .gb-nav-cta { font-size: 8px; padding-inline: 8px; }
  .gb-hero-title { font-size: 11.1vw; }
  .gb-link-button { width: 100%; justify-content: space-between; }
  .gb-hero-actions { width: 100%; }
  .gb-demo-status { min-width: 72px; padding-inline: 7px; }
}
@media(prefers-reduced-motion:reduce) {
  :root { scroll-behavior: auto; }
  .gb-motion .gb-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gb-scroll-cue svg { animation: none; }
  .gb-home *, .gb-home *::before, .gb-home *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Keyboard skip-link behavior: visible only while focused. */
.gb-home .gb-skip-link { position:fixed !important;left:15px !important;top:-100px !important;z-index:9999 !important;background:#f5f5f2;color:#151819;padding:14px 18px;border:2px solid #1f3a32; }
.gb-home .gb-skip-link:focus-visible { top:90px !important; }
