:root {
  color-scheme: dark;
  --bg: #101B3A;
  --panel: #1B2A55;
  --text: #EEF1FA;
  --dim: #93A0C4;
  --line: #2A3A6B;
  --lamp: #FFC857;
  --lamp-light: #FFD783;
  --font-display: 'Unbounded', 'Onest', 'Segoe UI', sans-serif;
  --font-body: 'Onest', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;
  --radius: 14px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background: one warm lamp light at the top right */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 900px;
  z-index: -1;
  background: radial-gradient(ellipse 60% 60% at 88% 8%, rgba(255, 200, 87, 0.16) 0%, transparent 70%);
}

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

a {
  color: var(--lamp);
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 4px;
}

[id] {
  scroll-margin-top: 84px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(16, 27, 58, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  overflow-x: auto;
}

.nav-links a {
  color: var(--dim);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  padding: 10px 0;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--lamp);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Menu button: shown on phones only */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(238, 241, 250, 0.3);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-open .nav-toggle-icon {
  background: transparent;
}

.nav-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lamp);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--lamp-light);
}

.btn-ghost {
  border-color: rgba(238, 241, 250, 0.3);
  color: var(--text);
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
}

.btn-ghost:hover {
  border-color: var(--lamp);
  color: var(--lamp);
}

.btn-large {
  min-height: 58px;
  font-size: 17px;
  padding: 16px 36px;
}

/* Sections generic */
.hero,
.services,
.trust,
.process,
.stack,
.pricing,
.about,
.cta {
  padding: 88px 0;
}

.block-lead {
  color: var(--dim);
  font-size: 18px;
  max-width: 68ch;
  margin: 0 0 28px;
}

.group-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.35;
  color: var(--lamp);
  margin: 0 0 20px;
}

.cards-grid + .group-title,
.stats-note + .group-title {
  margin-top: 52px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 0;
  margin: 16px 0 0;
}

.tags li {
  font-size: 13px;
  line-height: 1.4;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 40px;
}

/* Hero */
.hero {
  padding: 112px 0 104px;
}

.eyebrow {
  font-size: 16px;
  font-weight: 500;
  color: var(--lamp);
  margin: 0 0 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(25px, 4.2vw, 46px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 32px;
  color: var(--text);
}

/* The one terminal detail on the page: the typed line sits in a prompt input, like in Claude Code */
.hero-subtitle {
  position: relative;
  max-width: 680px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  min-height: calc(1.5em + 30px);
  background: #0B1430;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 42px;
  margin: 0 0 22px;
}

.hero-subtitle::before {
  content: '>';
  position: absolute;
  left: 17px;
  top: 14px;
  color: var(--dim);
}

.typewriter {
  color: var(--lamp);
  font-weight: 500;
}

.cursor {
  display: inline-block;
  color: var(--lamp);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.hero-description {
  color: var(--dim);
  font-size: 17px;
  max-width: 58ch;
  margin: 0 0 36px;
}

.hero-points {
  color: var(--dim);
  font-size: 14px;
  margin: 18px 0 0;
}

/* Services */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lamp);
  margin: 0 0 10px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  margin: 0 0 12px;
}

.card-text {
  color: var(--dim);
  font-size: 16px;
  margin: 0;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
  margin-bottom: 24px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 30px 20px 24px;
}

.price-card-popular {
  border-color: var(--lamp);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 22px;
  background: var(--lamp);
  color: var(--bg);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  margin: 0;
}

.price-title {
  font-weight: 500;
  color: var(--dim);
  font-size: 16px;
  line-height: 1.3;
  min-height: 2.6em;
  margin: 0 0 10px;
}

/* min-heights keep four cards in a row aligned: titles take up to two lines, one price has a period line */
.price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.2;
  min-height: calc(1.2em + 22px);
  color: var(--text);
  margin: 0 0 16px;
}

.price-period {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  color: var(--dim);
}

.price-desc {
  color: var(--dim);
  font-size: 15px;
  margin: 0 0 18px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex-grow: 1;
}

.price-features li {
  position: relative;
  color: var(--text);
  font-size: 15px;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--line);
}

.price-features li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 15px;
  width: 6px;
  height: 11px;
  border: solid var(--lamp);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.price-card .btn {
  align-self: stretch;
}

.pricing-note {
  color: var(--dim);
  font-size: 14px;
  margin: 0;
}

/* Trust */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin-bottom: 20px;
}

.stats-note {
  color: var(--dim);
  font-size: 14px;
  margin: 0;
}

/* Cases: task → solution → result */
.case-steps {
  margin: 0;
}

.case-steps div + div {
  margin-top: 12px;
}

.case-steps dt {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dim);
  margin-bottom: 3px;
}

.case-steps dd {
  color: var(--dim);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.case-result dt {
  color: var(--lamp);
}

.case-steps .case-result dd {
  color: var(--text);
}

.cases-hint {
  display: none;
  color: var(--dim);
  font-size: 14px;
  margin: 12px 0 0;
}

/* Process */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
}

.step {
  counter-increment: step;
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.step::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1;
  color: var(--lamp);
  margin-bottom: 16px;
}

/* Tech stack: compact reference section, one line per group */
.techstack {
  padding: 0 0 88px;
}

.techstack .section-title {
  font-size: 20px;
  margin-bottom: 14px;
}

.techstack .block-lead {
  font-size: 16px;
  margin-bottom: 18px;
}

.stack-list {
  margin: 0;
}

.stack-group {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 2px 24px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.stack-group dt {
  font-weight: 600;
}

.stack-group dd {
  color: var(--dim);
  margin: 0;
}

/* Tools: models */
.models-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.model-group {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.model-group .tags {
  margin: 0 0 14px;
}

.model-group .tags li {
  font-size: 15px;
  color: var(--text);
  border-color: rgba(238, 241, 250, 0.25);
  padding: 5px 12px;
}

.models-note {
  color: var(--dim);
  font-size: 16px;
  max-width: 68ch;
  margin: 0 0 56px;
}

/* Tools: personal data block */
.privacy-block {
  border: 1px solid var(--lamp);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.privacy-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  padding: 0;
  margin: 0;
}

.privacy-list li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.privacy-note {
  color: var(--dim);
  font-size: 14px;
  margin: 22px 0 0;
}

/* About */
.about-text p {
  font-size: 18px;
  max-width: 62ch;
  margin: 0 0 18px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.1;
  color: var(--lamp);
  margin: 0 0 10px;
}

.stat-label {
  color: var(--dim);
  font-size: 16px;
  margin: 0;
}

.testimonial {
  background: var(--panel);
  border-left: 3px solid var(--lamp);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin: 52px 0 0;
  font-size: 19px;
}

.testimonial p {
  margin: 0;
  max-width: 60ch;
}

.testimonial cite {
  display: block;
  margin-top: 12px;
  color: var(--dim);
  font-style: normal;
  font-size: 14px;
}

/* CTA */
.cta {
  background: var(--panel);
}

.cta .section-title {
  font-size: clamp(26px, 4.6vw, 44px);
  margin-bottom: 18px;
}

.cta-text {
  color: var(--dim);
  font-size: 18px;
  max-width: 46ch;
  margin: 0 0 34px;
}

/* Footer */
.site-footer {
  padding: 52px 0;
}

.footer-name {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
}

.footer-contacts {
  color: var(--dim);
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
}

/* padding makes the tap area 44px tall without changing the font size */
.footer-contacts a {
  display: inline-block;
  padding: 7px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-copy {
  color: var(--dim);
  font-size: 13px;
  margin: 0;
}

@media (max-width: 1000px) {
  .steps,
  .stats-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat-number {
    font-size: 28px;
  }
  .pricing-grid {
    gap: 28px 20px;
  }
  .price-card {
    padding: 30px 24px 26px;
  }
  .price-title {
    min-height: 0;
  }
  .price-value {
    font-size: 25px;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .models-grid,
  .privacy-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .privacy-block {
    padding: 24px 20px;
  }
  .models-note {
    margin-bottom: 40px;
  }
}

@media (max-width: 720px) {
  [id] {
    scroll-margin-top: 76px;
  }

  /* Header: one row, menu behind a button */
  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding-top: 9px;
    padding-bottom: 9px;
  }
  .logo {
    font-size: 14px;
    white-space: nowrap;
  }
  .site-header .btn-ghost {
    padding: 10px 14px;
    font-size: 14px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }
  .nav-open .nav-links {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
  }

  /* Typed line: room for two lines, so the text below never moves */
  .hero-subtitle {
    min-height: calc(3em + 30px);
  }

  /* Cases: a horizontal ribbon with snapping instead of a 7-card column */
  .cases-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--gutter);
    margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter);
    scrollbar-width: none;
  }
  .cases-grid::-webkit-scrollbar {
    display: none;
  }
  .cases-grid .card {
    flex: 0 0 85vw;
    scroll-snap-align: start;
  }
  .cases-hint {
    display: block;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }
  .hero,
  .services,
  .trust,
  .process,
  .stack,
  .pricing,
  .about,
  .cta {
    padding: 60px 0;
  }
  .steps,
  .pricing-grid,
  .stack-group {
    grid-template-columns: minmax(0, 1fr);
  }
  .techstack {
    padding-bottom: 60px;
  }
  .cards-grid + .group-title,
  .stats-note + .group-title {
    margin-top: 40px;
  }
  .hero {
    padding-top: 72px;
  }
  .section-title {
    margin-bottom: 28px;
  }
  .hero-subtitle {
    font-size: 15px;
  }
  .hero .btn-primary,
  .cta .btn-large {
    display: flex;
    width: 100%;
  }
  .card {
    padding: 22px 20px;
  }
  .stats-grid {
    gap: 24px 20px;
  }
  .stat-number {
    font-size: 21px;
  }
  .stat-label {
    font-size: 14px;
  }
  .testimonial {
    padding: 22px 20px;
  }
}

@media (max-width: 380px) {
  /* narrow phones: the longest phrase takes three lines */
  .hero-subtitle {
    min-height: calc(4.5em + 30px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor {
    animation: none;
  }
}
