:root {
  --bg: #050505;
  --bg-alt: #090909;
  --text: #f3f3f3;
  --muted: #9b9b9b;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.03);
  --panel-strong: rgba(255, 255, 255, 0.05);
  --panel-soft: rgba(255, 255, 255, 0.02);
  --glow: rgba(255, 255, 255, 0.18);
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behaviour: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent calc(50% - 640px), rgba(255, 255, 255, 0.05) calc(50% - 640px), rgba(255, 255, 255, 0.05) calc(50% - 639px), transparent calc(50% - 639px)),
    linear-gradient(to right, transparent calc(50% + 639px), rgba(255, 255, 255, 0.05) calc(50% + 639px), rgba(255, 255, 255, 0.05) calc(50% + 640px), transparent calc(50% + 640px)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.03), transparent 52%);
}

.backdrop-glow {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 36vw;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.35;
}

.backdrop-glow-left {
  left: -8vw;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 54%);
  filter: blur(56px);
  transform: rotate(5deg);
}

.backdrop-glow-right {
  right: -10vw;
  background: linear-gradient(245deg, rgba(255, 255, 255, 0.13), transparent 52%);
  filter: blur(52px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.56);
  border-bottom: 1px solid transparent;
}

.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 80h160v1H0zm80-80h1v160h-1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
}

.topbar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.brandmark img {
  width: 138px;
  display: block;
  border-radius: 10px;
  background: #f5f1ec;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.topnav a:hover,
.pill-link:hover {
  color: var(--text);
}

.pill-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 18px;
  transition: all 180ms ease;
}

.pill-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button {
  border: 1px solid transparent;
  font-weight: 600;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 26px rgba(0, 0, 0, 0.34);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

main {
  position: relative;
  z-index: 1;
}

.frame-section {
  width: min(calc(100% - 32px), var(--content-max));
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 36px;
  padding-top: 26px;
  min-height: calc(100vh - 58px);
  align-items: center;
}

.section-kicker {
  margin-bottom: 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #7f7f7f;
}

h1,
h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 8.5ch;
  font-size: clamp(4.2rem, 9vw, 8rem);
  line-height: 0.9;
}

h2 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  line-height: 0.95;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-text,
.feature-copy p,
.metric-card p,
.mini-card p,
.console-block li,
.quote-card p,
.hero-stat-list strong {
  color: #a7a7a7;
  line-height: 1.7;
}

.hero-text {
  max-width: 54ch;
  margin-top: 24px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stat-list li {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-stat-list span {
  display: block;
  margin-bottom: 8px;
  color: #7d7d7d;
  font-size: 0.8rem;
}

.hero-stage {
  position: relative;
}

.window,
.mini-card,
.wide-console,
.quote-card,
.project-preview {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.chrome-window {
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.window-top {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.window-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.window-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.terminal-shell,
.panel-window pre,
.project-preview-code pre {
  margin: 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Source Code Pro", monospace;
  font-size: 0.86rem;
  line-height: 1.8;
  color: #d8d8d8;
  white-space: pre-wrap;
}

.terminal-line.dim {
  color: #808080;
}

.terminal-line.active {
  color: #ffffff;
}

.terminal-prompt {
  color: #ffffff;
  margin-right: 8px;
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-card,
.mini-card,
.quote-card {
  padding: 18px;
  border-radius: 24px;
}

.metric-label,
.mini-kicker,
.project-number,
.console-pill,
.console-meta {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #858585;
}

.trust-strip-inner {
  display: grid;
  gap: 16px;
  padding: 22px 0 4px;
  border-top: 1px solid var(--line);
}

.trust-strip-inner > span {
  font-size: 0.9rem;
  color: var(--muted);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 44px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 24s linear infinite;
  color: #d4d4d4;
  white-space: nowrap;
}

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
  gap: 42px;
  align-items: center;
}

.feature-block.reverse {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
}

.feature-block.reverse .feature-copy {
  order: 2;
}

.feature-block.reverse .feature-visual {
  order: 1;
}

.feature-copy p {
  max-width: 52ch;
  margin-top: 20px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: #bcbcbc;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  cursor: pointer;
}

.chip.active {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: var(--line-strong);
}

.panel-window {
  display: none;
  padding: 18px;
  border-radius: 28px;
}

.panel-window.active {
  display: block;
}

.panel-heading {
  margin-bottom: 14px;
  color: #d7d7d7;
  font-size: 0.95rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.wide-console {
  border-radius: 30px;
  overflow: hidden;
}

.wide-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.wide-console-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.console-block {
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.console-block:nth-child(2n) {
  border-right: 0;
}

.console-block ul {
  margin: 0;
  padding-left: 18px;
}

.console-block li {
  margin-bottom: 8px;
}

.project-showcase {
  display: grid;
  gap: 16px;
}

.project-preview {
  border-radius: 28px;
  padding: 20px;
}

.project-preview-metric strong {
  display: block;
  max-width: 18ch;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.testimonial-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.quote-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-card span {
  margin-top: 18px;
  color: #7e7e7e;
  font-size: 0.85rem;
}

.footer-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto;
  gap: 32px;
  align-items: center;
  padding-bottom: 96px;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 280px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

.js-enabled .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-delay-1 {
  transition-delay: 120ms;
}

.reveal.is-visible,
.js-enabled .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .hero,
  .feature-block,
  .feature-block.reverse,
  .footer-cta {
    grid-template-columns: 1fr;
  }

  .feature-block.reverse .feature-copy,
  .feature-block.reverse .feature-visual {
    order: initial;
  }

  .window-body,
  .hero-stat-list,
  .wide-console-grid,
  .testimonial-rail {
    grid-template-columns: 1fr;
  }

  .grid-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topnav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .frame-section {
    width: min(calc(100% - 24px), var(--content-max));
    padding: 28px 0;
  }

  .hero {
    padding-top: 24px;
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-stat-list,
  .grid-cards,
  .testimonial-rail {
    grid-template-columns: 1fr;
  }

  .window-body,
  .metric-stack,
  .footer-actions {
    gap: 14px;
  }

  .brandmark img {
    width: 118px;
  }
}
