/* Norn landing - tokens */
:root {
  --color-bg: #0C1020;
  --color-bg-deep: #0A0E1C;
  --color-surface: #10162A;
  --color-surface-alt: #10152B;
  --color-surface-raised: #141A30;
  --color-border: #343E63;
  --color-border-soft: #262E4A;
  --color-track: #222B47;
  --color-text: #EDEFF7;
  --color-text-soft: #B6BDD6;
  --color-text-dim: #8E96B5;
  --color-text-faint: #5A638A;
  --color-alert: #FF6B6B;
  --color-alert-strong: #FF453A;
  --color-success: #34D399;
  --color-success-dark: #0A7B3E;
  --color-cowork: #BF5AF2;
  --color-cowork-light: #9333EA;
  --color-code: #FF7A59;
  --color-code-light: #C2410C;
  --color-chat: #0A84FF;
  --color-light-bg: #FFFFFF;
  --color-light-card: #F5F5F7;
  --color-light-track: #E8E8ED;
  --color-light-text: #111113;
  --color-light-text-soft: #4A4A50;
  --color-light-text-dim: #707077;
  --gradient-brand: linear-gradient(135deg, #8B5CF6, #F97316);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-card: 16px;
  --radius-panel: 18px;
  --radius-pill: 99px;
  --container: 1160px;
  --space-section: clamp(56px, 8vw, 96px);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:hover { color: #FFFFFF; }
b { font-weight: 800; }
.mono { font-family: var(--font-mono); }
.u-white { color: #FFFFFF; }
.u-dim { color: var(--color-text-soft); }
.u-alert { color: var(--color-alert); font-weight: 600; }
.u-success { color: var(--color-success); }
.u-success-dark { color: var(--color-success-dark); }
.u-cowork { color: var(--color-cowork); }
.u-code { color: var(--color-code); }
.u-cowork-light { color: var(--color-cowork-light); }
.u-code-light { color: var(--color-code-light); }
.u-chat-light { color: #0A66C2; }
.u-model-strong { color: #0A58B5; }
.u-model-mid { color: #3D8FD9; }
.u-model-soft { color: #5E86A8; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: #FFFFFF; color: var(--color-light-text);
  padding: 10px 18px; border-radius: 8px; font-weight: 700;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; color: var(--color-light-text); }
:focus-visible { outline: 2px solid #8B5CF6; outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-block; font-weight: 800; border-radius: 12px;
  text-align: center; min-height: 24px;
}
.btn--gradient { background: var(--gradient-brand); color: #FFFFFF; }
.btn--gradient:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn--solid { background: #FFFFFF; color: var(--color-light-text); padding: 12px 22px; font-size: 14px; border-radius: 10px; }
.btn--solid:hover { color: var(--color-light-text); filter: brightness(0.94); }
.btn--small { font-size: 14px; padding: 10px 20px; border-radius: 10px; }
.btn--large { font-size: 17px; padding: 15px 30px; }
.btn--block { display: block; margin-top: 20px; font-size: 15px; padding: 13px; }

/* Header */
.site-header { padding: 20px 0; }
.site-header__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { flex-shrink: 0; }
.brand__name { font-weight: 900; font-size: 19px; letter-spacing: -0.3px; }
.brand__sub { font-weight: 400; color: var(--color-text-dim); font-size: 15px; }

/* Sections */
.section { padding: var(--space-section) 0; }
.section--deep { background: var(--color-bg-deep); }
.section--light { background: var(--color-light-bg); color: var(--color-light-text); }
.section__title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -1.5px;
  text-align: center; line-height: 1.15;
}
.section__lead {
  font-size: 17px; color: var(--color-text-soft); margin: 12px auto 0;
  max-width: 680px; text-align: center;
}
.section__lead--wide { max-width: 780px; line-height: 1.7; margin-top: 16px; }
.section--light .section__lead { color: var(--color-light-text-soft); }
.section__closing { margin-top: 36px; text-align: center; font-weight: 600; color: #D6DBEC; }

/* Hero */
.hero { padding: 24px 0 var(--space-section); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__title { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -2.5px; line-height: 1.05; }
.hero__lead { font-size: clamp(17px, 2vw, 20px); color: var(--color-text-soft); margin-top: 18px; max-width: 700px; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 28px; }
.hero__price-note { font-family: var(--font-display); font-size: 14px; color: var(--color-text-dim); }
.hero__panel {
  margin-top: 60px;
  transform: perspective(1100px) rotateY(-24deg) rotateX(8deg);
  box-shadow: -40px 0 110px 6px rgba(139, 92, 246, 0.28), 0 44px 90px rgba(0, 0, 0, 0.65);
}
.hero__meta { font-family: var(--font-display); font-size: 13.5px; color: var(--color-text-dim); margin-top: 54px; letter-spacing: 0.3px; }

/* Panel mockup */
.panel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-panel);
  padding: 22px 26px;
  width: min(520px, 100%);
  text-align: left;
}
.panel-card__header { display: flex; justify-content: space-between; align-items: center; }
.panel-card__title { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; }
.panel-card__divider { border: 0; height: 1px; background: var(--color-track); margin: 16px 0 12px; }
.panel-card__footnote { font-size: 12px; color: var(--color-text-dim); margin-top: 10px; }

/* Meters (label row + bar) */
.meter { margin-top: 14px; }
.meter--compact { margin-top: 11px; }
.meter__row {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13.5px; font-weight: 600;
}
.meter--compact .meter__row { font-size: 12.5px; }
.meter__row--dim { color: var(--color-text-dim); font-weight: 400; }
.meter__row .mono { font-size: 0.95em; }
.meter__track {
  height: 8px; background: var(--color-track);
  border-radius: var(--radius-pill); margin-top: 7px; overflow: hidden;
}
.meter--compact .meter__track { height: 7px; }
.meter__track--light { background: var(--color-light-track); }
.meter__track--thick { height: 16px; margin-top: 8px; }
.meter__fill { width: var(--w, 0%); height: 100%; border-radius: var(--radius-pill); }
.meter__fill--warm { background: linear-gradient(90deg, #30D158, #FFD60A); box-shadow: 0 0 14px rgba(255, 214, 10, 0.45); }
.meter__fill--green { background: linear-gradient(90deg, #30D158, #BBE64C); box-shadow: 0 0 12px rgba(140, 220, 90, 0.5); }
.meter__fill--purple { background: linear-gradient(90deg, #D9A6FF, #BF5AF2); box-shadow: 0 0 12px rgba(191, 90, 242, 0.5); }
.meter__fill--orange { background: var(--color-code); box-shadow: 0 0 10px rgba(255, 122, 89, 0.5); }
.meter__fill--alert { background: linear-gradient(90deg, #FF9F0A, #FF453A); }
.meter__fill--burn { background: linear-gradient(90deg, #8B5CF6, #EF4444); }
.meter__fill--blue { background: var(--color-chat); }
.meter__fill--blue-mid { background: #64B5FF; }
.meter__fill--blue-soft { background: #B8DCFF; }
.section--light .meter__fill { box-shadow: none; }
.meter__note { font-size: 11px; color: var(--color-text-dim); margin-top: 7px; }

/* Card grids */
.card-grid { display: grid; gap: 20px; margin-top: 40px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-card);
  padding: 24px;
}
.card--light { background: var(--color-light-card); border: 0; border-radius: var(--radius-panel); padding: 26px; }
.card--highlight { background: var(--color-light-bg); border: 2px solid #30D158; }
.card__title { font-size: 16px; font-weight: 800; line-height: 1.4; }
.card--light .card__title { font-size: 18px; }
.card__visual { margin-top: 16px; }
.card__text { font-size: 13.5px; color: var(--color-text-dim); margin-top: 14px; line-height: 1.6; }
.card--light .card__text { font-size: 14px; color: var(--color-light-text-soft); }
.card__mono-note { font-size: 12px; margin-top: 10px; }
.card__path { font-size: 13px; color: var(--color-text-soft); line-height: 2; }
.card__big-stat { display: flex; align-items: baseline; gap: 10px; }
.card__big-stat .mono { font-size: 46px; font-weight: 700; color: var(--color-text-dim); line-height: 1; }
.card__big-stat-note { font-size: 13px; color: var(--color-text-dim); }
.card__empty-box {
  height: 62px; border: 1.5px dashed var(--color-border); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--color-text-faint);
}

/* Week bars chart */
.weekbars { display: flex; align-items: flex-end; gap: 10px; height: 92px; margin-top: 6px; padding: 0 6px; }
.weekbars__bar { flex: 1; height: var(--h); background: var(--c); border-radius: 5px 5px 0 0; }
.weekbars__labels {
  display: flex; justify-content: space-between; font-size: 11px;
  color: var(--color-light-text-dim); padding: 6px 6px 0;
}

/* "And there is more" strip */
.more-strip { margin-top: 28px; background: var(--color-light-card); border-radius: var(--radius-panel); padding: 24px 28px; }
.more-strip__title {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-light-text-dim);
}
.more-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 28px; margin-top: 18px; }
.more-strip__grid li { display: flex; flex-direction: column; gap: 3px; }
.more-strip__grid b { font-size: 14px; }
.more-strip__grid span { font-size: 13px; color: var(--color-light-text-soft); }

/* Product tour (animated scroll) */
.tour { display: flex; gap: 56px; margin-top: 44px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tour__viewport {
  position: relative; width: min(480px, 100%); height: 520px; flex-shrink: 0;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-panel); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.tour__viewport::before, .tour__viewport::after {
  content: ""; position: absolute; left: 0; right: 0; height: 34px; z-index: 1; pointer-events: none;
}
.tour__viewport::before { top: 0; background: linear-gradient(180deg, var(--color-surface), rgba(16, 22, 42, 0)); }
.tour__viewport::after { bottom: 0; background: linear-gradient(0deg, var(--color-surface), rgba(16, 22, 42, 0)); }
.tour__scroll { padding: 22px 26px; animation: tour-scroll 18s ease-in-out infinite alternate; }
@keyframes tour-scroll {
  0%, 12% { transform: translateY(0); }
  88%, 100% { transform: translateY(calc(-100% + 520px)); }
}
@media (prefers-reduced-motion: reduce) {
  .tour__scroll { animation: none; }
  .tour__viewport { height: auto; max-height: none; }
  .tour__viewport::before, .tour__viewport::after { display: none; }
  html { scroll-behavior: auto; }
}
.tour__heading { font-size: 13px; font-weight: 700; margin-top: 2px; }
.tour__menu-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
}
.tour__menu-row svg { margin-right: 2px; }
.tour__chevron { color: var(--color-text-dim); font-size: 15px; }
.tour__points { width: min(420px, 100%); display: flex; flex-direction: column; gap: 24px; }
.tour__points li { display: flex; flex-direction: column; gap: 5px; }
.tour__points b { font-size: 17px; }
.tour__points span { font-size: 14px; color: var(--color-text-soft); line-height: 1.6; }

/* Calibration pills */
.pill-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.pill {
  background: var(--color-surface-alt); border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-pill); padding: 11px 20px;
  font-size: 14px; font-weight: 600;
}
.pill__check { color: var(--color-success); margin-right: 4px; }

/* Routing */
.routing {
  display: flex; gap: 40px; margin-top: 40px;
  background: var(--color-surface-raised); border-radius: var(--radius-panel); padding: 30px 32px;
}
.routing__story { flex: 1; }
.routing__heading { font-size: 17px; font-weight: 800; }
.routing__text { font-size: 14.5px; color: var(--color-text-soft); margin-top: 12px; line-height: 1.75; }
.routing__text--bright { color: #D6DBEC; }
.routing__stat { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--color-text-soft); }
.routing__stat-number { font-size: 32px; font-weight: 700; color: var(--color-success); }
.routing__footnote { font-size: 12.5px; color: var(--color-text-dim); margin-top: 10px; }
.routing__compare { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.routing__case-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 600;
}
.routing__case-label { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.routing__case-note { font-size: 12.5px; color: var(--color-text-dim); margin-top: 6px; }
.routing__stack { display: flex; overflow: hidden; }
.routing__stack-part { width: var(--w); height: 100%; background: var(--c); }
.routing__legend { display: flex; gap: 16px; flex-wrap: wrap; }
.swatch { display: inline-block; width: 10px; height: 10px; background: var(--c); border-radius: 2px; }
.badge { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 9px; }
.badge--wrong { color: var(--color-alert-strong); border: 2px solid var(--color-alert-strong); transform: rotate(-5deg); }
.badge--right { color: var(--color-success); border: 2px solid var(--color-success); transform: rotate(3deg); }
.badge--launch { background: var(--gradient-brand); color: #FFFFFF; font-size: 13px; border-radius: var(--radius-pill); padding: 4px 10px; }

/* Pricing + FAQ */
.pricing { display: flex; gap: 24px; }
.pricing__card {
  flex: 1.15; background: var(--color-surface-raised);
  border: 1px solid var(--color-border); border-radius: var(--radius-panel); padding: 28px;
}
.pricing__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pricing__amount { font-size: 44px; font-weight: 900; line-height: 1; }
.pricing__old { color: var(--color-text-dim); }
.pricing__terms { font-size: 13px; color: var(--color-text-dim); }
.pricing__list-title {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-text-dim); margin-top: 18px;
}
.pricing__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px;
  margin-top: 12px; font-size: 13.5px; color: #D6DBEC; line-height: 1.5;
}
.pricing__list li::before { content: "\2713\00a0"; color: var(--color-success); }
.faq { flex: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; margin: 0; }
.faq__item dt { font-size: 15px; font-weight: 700; display: inline; }
.faq__item dd { display: inline; font-size: 15px; color: var(--color-text-soft); margin-left: 4px; }

/* Windows bar + footer */
.windows-bar {
  margin-top: 40px; background: var(--color-surface-raised);
  border: 1px solid var(--color-border); border-radius: var(--radius-panel);
  padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.windows-bar__title { font-size: 18px; font-weight: 800; }
.windows-bar__text { font-size: 14px; color: var(--color-text-soft); margin-top: 4px; }
.site-footer {
  font-family: var(--font-display); font-size: 13px; color: var(--color-text-dim);
  margin-top: 30px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: var(--color-text); }

/* Motion (only when js/reveal.js adds .js-reveal; reduced motion stays static) */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.js-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal .hero__panel[data-reveal] {
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  transform: perspective(1100px) rotateY(-24deg) rotateX(8deg) translateY(18px);
}
.js-reveal .hero__panel[data-reveal].is-visible {
  transform: perspective(1100px) rotateY(-24deg) rotateX(8deg) translateY(0);
}
.js-reveal .meter__track .meter__fill,
.js-reveal .routing__stack .routing__stack-part {
  width: 0;
  transition: width 1.1s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.js-reveal .meter__track.is-filled .meter__fill {
  width: var(--w, 0%);
}
.js-reveal .routing__stack.is-filled .routing__stack-part {
  width: var(--w);
}
.js-reveal .routing__stack-part { transition-delay: 0.15s; }
.js-reveal .routing__stack-part + .routing__stack-part { transition-delay: 0.45s; }
.js-reveal .routing__stack-part + .routing__stack-part + .routing__stack-part { transition-delay: 0.7s; }
.js-reveal .weekbars .weekbars__bar {
  height: 0;
  transition: height 0.9s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.js-reveal .weekbars.is-filled .weekbars__bar {
  height: var(--h);
}
.js-reveal .weekbars__bar:nth-child(2) { transition-delay: 0.08s; }
.js-reveal .weekbars__bar:nth-child(3) { transition-delay: 0.16s; }
.js-reveal .weekbars__bar:nth-child(4) { transition-delay: 0.24s; }
.js-reveal .weekbars__bar:nth-child(5) { transition-delay: 0.32s; }
.js-reveal .weekbars__bar:nth-child(6) { transition-delay: 0.4s; }
.js-reveal .weekbars__bar:nth-child(7) { transition-delay: 0.48s; }

/* Responsive */
@media (max-width: 1024px) {
  .card-grid--4 { grid-template-columns: 1fr 1fr; }
  .more-strip__grid { grid-template-columns: 1fr 1fr; }
  .routing { flex-direction: column; }
  .pricing { flex-direction: column; }
}
@media (max-width: 640px) {
  .card-grid--4 { grid-template-columns: 1fr; }
  .more-strip__grid { grid-template-columns: 1fr; }
  .hero__panel { transform: none; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
  .pricing__list { grid-template-columns: 1fr; }
  .windows-bar { flex-direction: column; align-items: flex-start; }
}
