:root {
  --ink: #101418;
  --ink-soft: #171e25;
  --paper: #f4f1e9;
  --paper-deep: #ebe6d9;
  --amber: #ffb000;
  --teal: #22b8a6;
  --muted: #8a97a3;
  --line: rgba(16, 20, 24, 0.16);
  --line-light: rgba(244, 241, 233, 0.18);
  --display: 'Unbounded', 'Golos Text', sans-serif;
  --body: 'Golos Text', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img, svg { max-width: 100%; }

::selection { background: var(--amber); color: var(--ink); }

.wrap { width: min(1220px, 100% - 64px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 233, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.06em;
}
.brand-mark span { color: var(--amber); }
.brand-name { font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: 0.08em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.nav a:not(.nav-cta) { position: relative; }
.nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav-cta { padding: 11px 20px; background: var(--ink); color: var(--paper); }
.nav-cta:hover { background: var(--amber); color: var(--ink); }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 11px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Shared */
.eyebrow { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--muted); margin: 0 0 20px; }
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-title { font-family: var(--display); font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.045em; margin: 0; font-weight: 800; }
.section-lead { max-width: 520px; color: var(--muted); margin-top: 20px; }
.section-head-light .eyebrow { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 26px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--amber); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ink:hover { background: var(--paper); color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-top: 86px;
  padding-bottom: 100px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 6.8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 26px;
  font-weight: 800;
}
.highlight { position: relative; display: inline-block; z-index: 0; }
.highlight::before {
  content: '';
  position: absolute;
  left: -6px; right: -6px; bottom: 4px;
  height: 0.42em;
  background: var(--amber);
  z-index: -1;
}
.cursor { color: var(--teal); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero-lead { max-width: 540px; font-size: 18px; color: #3b444c; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 64px); margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { font-size: 13px; color: var(--muted); }
.hero-stats dd { font-family: var(--display); font-size: 30px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.04em; }

.hero-board {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: 28px;
  border: 1px solid #2a343d;
  box-shadow: 18px 18px 0 var(--amber);
  transform: rotate(-1deg);
}
.board-top { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.12em; color: var(--muted); }
.board-dot { width: 10px; height: 10px; background: var(--amber); }
.board-live { margin-left: auto; color: var(--teal); }
.board-clock {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  margin: 24px 0 28px;
  font-variant-numeric: tabular-nums;
}
.board-rows { border-top: 1px solid var(--line-light); }
.board-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 76px 66px;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
}
.board-row.is-current { color: var(--amber); }
.row-time { font-variant-numeric: tabular-nums; color: var(--muted); }
.row-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-status { font-size: 11px; text-align: right; color: var(--muted); }
.bar { height: 6px; background: rgba(244,241,233,.14); position: relative; }
.bar::after { content: ''; position: absolute; inset: 0 auto 0 0; background: var(--teal); }
.bar-full::after { width: 100%; background: var(--paper); }
.bar-mid::after { width: 58%; background: var(--amber); }
.bar-small::after { width: 32%; }
.bar-tiny::after { width: 14%; }
.board-foot { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 11px; letter-spacing: 0.08em; color: var(--muted); }
.board-meter { flex: 1; height: 4px; background: rgba(244,241,233,.14); }
.board-meter i { display: block; width: 68%; height: 100%; background: var(--amber); }

.ticker { overflow: hidden; background: var(--amber); color: var(--ink); border-block: 1px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: marquee 26s linear infinite; font-family: var(--display); font-size: 13px; font-weight: 800; letter-spacing: 0.2em; padding: 13px 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Problem */
.problem-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.problem-list li { padding: 28px 22px 0 0; border-right: 1px solid var(--line); }
.problem-list li:not(:first-child) { padding-left: 22px; }
.problem-list li:last-child { border-right: 0; }
.problem-list span { font-family: var(--display); font-size: 44px; font-weight: 800; color: var(--amber); letter-spacing: -0.06em; }
.problem-list h3 { font-family: var(--display); font-size: 17px; margin: 14px 0 10px; }
.problem-list p { font-size: 15px; color: #4a545c; margin: 0; }

/* Features */
.section-dark { background: var(--ink); color: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.feature { background: var(--ink-soft); padding: 34px; min-height: 230px; transition: background .25s, transform .25s; }
.feature:hover { background: #1d2831; transform: translateY(-3px); }
.feature-lg { grid-column: span 2; }
.feature-index { font-family: var(--display); font-size: 12px; color: var(--teal); }
.feature h3 { font-family: var(--display); font-size: 20px; margin: 18px 0 12px; letter-spacing: -0.02em; }
.feature p { color: #a5b0b9; font-size: 15px; margin: 0; max-width: 44ch; }
.feature-accent { background: var(--amber); color: var(--ink); }
.feature-accent p { color: #342b16; }
.feature-accent .feature-index { color: var(--ink); }
.feature-visual { display: flex; gap: 8px; align-items: flex-end; height: 60px; margin-top: 26px; }
.feature-visual span { display: block; width: 44px; background: var(--teal); opacity: .7; }
.feature-visual span:nth-child(1) { height: 25%; }
.feature-visual span:nth-child(2) { height: 60%; }
.feature-visual span:nth-child(3) { height: 42%; background: var(--amber); }
.feature-visual span:nth-child(4) { height: 85%; }

/* Roles */
.roles-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.role { padding: 28px 24px 0 0; border-right: 1px solid var(--line); }
.role:not(:first-child) { padding-left: 24px; }
.role:last-child { border-right: 0; }
.role > span { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 14px; }
.role h3 { font-family: var(--display); font-size: 16px; margin: 20px 0 8px; }
.role p { font-size: 14px; color: #4a545c; margin: 0; }

/* Pricing */
.section-pricing { background: var(--paper-deep); }
.pricing-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.billing-toggle { display: inline-flex; border: 1px solid var(--ink); }
.billing-toggle button { border: 0; background: transparent; padding: 12px 18px; font-family: var(--body); font-size: 14px; font-weight: 600; cursor: pointer; }
.billing-toggle button.is-active { background: var(--ink); color: var(--paper); }
.billing-toggle small { color: var(--amber); font-weight: 700; }
.pricing-note { color: var(--muted); margin: 20px 0 44px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--paper); border: 1px solid var(--ink); padding: 32px; display: flex; flex-direction: column; }
.plan-featured { background: var(--ink); color: var(--paper); box-shadow: 10px 10px 0 var(--amber); }
.plan-code { font-family: var(--display); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 20px; }
.plan h3 { font-family: var(--display); font-size: 24px; margin: 0 0 16px; }
.plan-price { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.05em; }
.plan-price small { font-family: var(--body); font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan-desc { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; flex: 1; }
.plan li { position: relative; padding-left: 20px; font-size: 14px; margin-bottom: 10px; }
.plan li::before { content: '↳'; position: absolute; left: 0; color: var(--teal); }
.plan-featured li::before { color: var(--amber); }
.plan .btn { width: 100%; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative; font-family: var(--display); font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 20px; font-family: var(--body); font-size: 26px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 24px; max-width: 68ch; color: #4a545c; }

/* CTA & footer */
.cta { background: var(--amber); color: var(--ink); }
.cta-inner { padding: 100px 0; max-width: 820px; }
.cta-kicker { font-family: var(--display); font-size: 12px; letter-spacing: 0.16em; margin: 0 0 24px; }
.cta h2 { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.055em; margin: 0 0 24px; }
.cta p:not(.cta-kicker) { max-width: 560px; margin: 0 0 34px; }
.footer { background: var(--ink); color: #a5b0b9; font-size: 13px; padding: 42px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner > div { display: flex; align-items: center; gap: 12px; color: var(--paper); font-family: var(--display); font-size: 14px; letter-spacing: .08em; }
.footer a { color: var(--amber); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-board { max-width: 640px; transform: none; }
  .problem-list, .roles-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .problem-list li:nth-child(2), .role:nth-child(2) { border-right: 0; }
  .problem-list li:nth-child(3), .role:nth-child(3) { padding-left: 0; }
  .feature-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-lg { grid-column: span 2; }
  .plan-featured { grid-row: span 2; }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 36px, 1220px); }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    padding: 20px 18px 26px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .nav.is-open { display: flex; }
  .section { padding: 76px 0; }
  .problem-list, .roles-grid, .feature-grid, .pricing-grid { grid-template-columns: 1fr; }
  .problem-list li, .problem-list li:not(:first-child), .role, .role:not(:first-child) { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .feature-lg, .plan-featured { grid-column: auto; grid-row: auto; }
  .board-row { grid-template-columns: 42px 1fr 54px; }
  .row-status { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 24px 40px; }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-board { padding: 20px; box-shadow: 10px 10px 0 var(--amber); }
}
