/* ═══════════════════════════════════════════════
   OpenTrace — Static Site Styles
   ═══════════════════════════════════════════════ */

/* ─── Reset & Base ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --bg-primary: #08080d;
  --bg-secondary: #0e0e16;
  --bg-card: #12121c;
  --bg-card-hover: #181826;
  --bg-elevated: #1a1a2e;

  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b8;
  --text-tertiary: #6b6b80;

  --accent-blue: #F97316;
  --accent-purple: #F59E0B;
  --accent-green: #34D399;
  --accent-yellow: #FBBF24;
  --accent-red: #F87171;

  --accent-orange: #F97316;
  --accent-amber: #F59E0B;

  --gradient: linear-gradient(135deg, var(--accent-orange), var(--accent-amber));
  --gradient-subtle: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(245,158,11,0.15));

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-heading: 'Host Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-gap: 120px;
  --container-max: 1200px;
  --nav-height: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

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

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.25);
}

.btn--primary:hover {
  background: #ea670d;
  box-shadow: 0 0 32px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn--ghost:hover {
  color: var(--text-primary);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent-blue);
  background: rgba(249, 115, 22, 0.05);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ═══════════════ NAVIGATION ═══════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 8, 13, 0.8);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav--scrolled {
  background: rgba(8, 8, 13, 0.95);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  display: block;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.nav__mobile.open {
  display: flex;
}

.nav__mobile-link {
  font-size: 1rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.nav__mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 0;
  overflow: hidden;
  text-align: center;
}

.hero__glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.12) 0%, rgba(245, 158, 11, 0.06) 40%, transparent 70%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--gradient-subtle);
  border: 1px solid rgba(249, 115, 22, 0.2);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-blue);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 24px;
}

.hero__badge:hover {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.08);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__subtitle em {
  color: var(--text-primary);
  font-style: italic;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* Hero install */
.hero__install {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}

.hero__install-picker {
  display: flex;
  align-self: stretch;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  overflow: hidden;
}

.hero__install-opt {
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-tertiary);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero__install-opt:not(:last-child) {
  border-right: 1px solid var(--border);
}

.hero__install-opt.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.hero__install-opt:hover:not(.active) {
  color: var(--text-secondary);
}

.hero__install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  color: var(--accent-green);
}

.hero__install-copy {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 2px;
  transition: color 0.2s ease;
}

.hero__install-copy:hover {
  color: var(--text-primary);
}

/* Hero video */
.hero__visual {
  max-width: 800px;
  margin: 0 auto;
}

.hero__video-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.hero__video {
  display: block;
  width: 100%;
  height: auto;
}

/* ═══════════════ TRUSTED BY ═══════════════ */
.trusted {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trusted__label {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
}

.trusted__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trusted__logo {
  opacity: 0.3;
  transition: opacity 0.3s ease;
  color: var(--text-secondary);
}

.trusted__logo:hover {
  opacity: 0.6;
}

/* ═══════════════ SECTION HEADER ═══════════════ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══════════════ FEATURES BENTO ═══════════════ */
.features {
  padding: 40px 0 var(--section-gap);
}

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

.bento__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.bento__card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.bento__card--lg {
  grid-column: span 6;
}

.bento__card--md {
  grid-column: span 3;
}

.bento__card--sm {
  grid-column: span 2;
}

.bento__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  color: var(--accent-blue);
  margin-bottom: 20px;
}

.bento__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bento__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bento visuals */
.bento__visual {
  margin-top: 24px;
}

.bento__architecture-graph {
  width: 100%;
  height: auto;
}

/* Metric card inside bento */
.bento__metric {
  margin-top: 24px;
  text-align: center;
}

.bento__metric-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.bento__metric-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Chat bubbles inside bento */
.bento__chat {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 90%;
}

.chat-bubble--user {
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.2);
  color: var(--accent-blue);
  align-self: flex-end;
}

.chat-bubble--ai {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  align-self: flex-start;
}

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-it-works {
  padding: var(--section-gap) 0;
  background: var(--bg-secondary);
}

.layers {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.layer {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  transition: border-color 0.3s ease;
}

.layer:hover {
  border-color: var(--border-hover);
}

.layer__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(249, 115, 22, 0.1);
  line-height: 1;
}

.layer__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.layer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  color: var(--accent-blue);
}

.layer__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
}

.layer__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.layer__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(249, 115, 22, 0.08);
  color: var(--text-secondary);
  border: 1px solid rgba(249, 115, 22, 0.12);
}

/* Layer visuals */
.layer__visual {
  display: flex;
  justify-content: center;
}

.code-block {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  width: 100%;
  max-width: 340px;
}

.code-block__header {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.code-block__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0.3;
}

.code-block pre {
  padding: 16px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
}

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.metric-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.metric-card__label {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-card__value small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-tertiary);
}

.metric-card__trend {
  font-size: 0.6875rem;
  font-weight: 600;
}

.metric-card__trend--good { color: var(--accent-green); }
.metric-card__trend--warn { color: var(--accent-yellow); }
.metric-card__trend--neutral { color: var(--text-tertiary); }

/* Knowledge graph visual */
.knowledge-graph {
  position: relative;
  width: 220px;
  height: 220px;
}

.kg-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.kg-orbit {
  position: absolute;
  inset: 0;
  animation: spin 30s linear infinite;
}

.kg-orbit--2 {
  animation-duration: 45s;
  animation-direction: reverse;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.kg-dot {
  position: absolute;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

.kg-orbit--1 .kg-dot:nth-child(1) { top: 5%; left: 50%; transform: translateX(-50%); }
.kg-orbit--1 .kg-dot:nth-child(2) { bottom: 15%; left: 5%; }
.kg-orbit--1 .kg-dot:nth-child(3) { bottom: 15%; right: 5%; }

.kg-orbit--2 .kg-dot:nth-child(1) { top: 25%; left: 0; }
.kg-orbit--2 .kg-dot:nth-child(2) { top: 25%; right: 0; }
.kg-orbit--2 .kg-dot:nth-child(3) { bottom: 5%; left: 20%; }
.kg-orbit--2 .kg-dot:nth-child(4) { bottom: 5%; right: 20%; }

/* Counter-rotate text so it stays readable */
.kg-orbit .kg-dot {
  animation: counter-spin 30s linear infinite;
}

.kg-orbit--2 .kg-dot {
  animation-duration: 45s;
  animation-direction: reverse;
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Fix first orbit dot which has translateX */
.kg-orbit--1 .kg-dot:nth-child(1) {
  animation: counter-spin-center 30s linear infinite;
}

@keyframes counter-spin-center {
  from { transform: translateX(-50%) rotate(0deg); }
  to { transform: translateX(-50%) rotate(-360deg); }
}

/* ═══════════════ STATS ═══════════════ */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat__label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.stat__source {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  font-style: italic;
}

/* ═══════════════ INTEGRATIONS ═══════════════ */
.integrations {
  padding: var(--section-gap) 0;
}

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

.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s ease;
}

.integration-card:hover {
  border-color: var(--border-hover);
}

.integration-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.integration-card__desc {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.integration-card--wide {
  grid-column: span 2;
}

.integration-card__items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integration-card__items--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.integration-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.integration-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-primary);
  flex-shrink: 0;
}

.integration-item__icon svg {
  width: 18px;
  height: 18px;
}

.integration-item__icon--text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ═══════════════ USE CASES ═══════════════ */
.use-cases {
  padding: var(--section-gap) 0;
  background: var(--bg-secondary);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.case-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.case-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-subtle);
  color: var(--accent-blue);
  margin-bottom: 24px;
}

.case-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.case-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════════ PRICING ═══════════════ */
.pricing {
  padding: var(--section-gap) 0;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: border-color 0.3s ease;
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card--featured {
  border-color: rgba(249, 115, 22, 0.3);
  background: linear-gradient(180deg, rgba(249, 115, 22, 0.05) 0%, var(--bg-card) 100%);
}

.pricing-card--featured:hover {
  border-color: rgba(249, 115, 22, 0.5);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 100px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.pricing-card__header {
  margin-bottom: 24px;
}

.pricing-card__name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-card__price {
  margin-bottom: 32px;
}

.pricing-card__amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card__features li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.pricing-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  border: 1.5px solid var(--accent-green);
}

/* ═══════════════ CTA ═══════════════ */
.cta {
  padding: var(--section-gap) 0;
}

.cta__inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(249, 115, 22, 0.1), transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  position: relative;
}

.cta__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  position: relative;
}

.cta__form {
  position: relative;
  max-width: 480px;
  margin: 0 auto 16px;
}

.cta__input-group {
  display: flex;
  gap: 8px;
}

.cta__input {
  flex: 1;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hover);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.cta__input::placeholder {
  color: var(--text-tertiary);
}

.cta__input:focus {
  border-color: var(--accent-blue);
}

.cta__note {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  position: relative;
}

/* ═══════════════ FOOTER ═══════════════ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 280px;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 16px;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-tertiary);
  transition: all 0.2s ease;
}

.footer__social-link:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

/* ═══════════════ CODE REVIEW ═══════════════ */
.code-review {
  padding: var(--section-gap) 0;
}

.code-review__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.code-review__desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.code-review__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.code-review__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 20px;
  border-left: 2px solid rgba(249, 115, 22, 0.3);
}

.code-review__list li strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.code-review__list li span {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Code review visual — PR mock */
.cr-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cr-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.cr-card__file {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-secondary);
}

.cr-card__badge {
  margin-left: auto;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.cr-card__badge--warn {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-yellow);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.cr-card__diff {
  padding: 16px 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.75rem;
  line-height: 1.8;
  border-bottom: 1px solid var(--border);
}

.cr-diff-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 0;
}

.cr-diff-num {
  color: var(--text-tertiary);
  min-width: 24px;
  text-align: right;
  user-select: none;
}

.cr-diff-line--remove code {
  color: var(--accent-red);
}

.cr-diff-line--add code {
  color: var(--accent-green);
}

.cr-card__annotation {
  display: flex;
  gap: 12px;
  padding: 20px;
  background: rgba(251, 191, 36, 0.04);
}

.cr-annotation__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.cr-annotation__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 6px;
}

.cr-annotation__body p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.cr-annotation__body strong {
  color: var(--text-primary);
}

/* ═══════════════ BLOG ═══════════════ */
.blog {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  min-height: 100vh;
}

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.blog-card__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 20px;
}

.blog-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

/* Single post */
.blog__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  transition: color 0.2s ease;
}

.blog__back:hover {
  color: var(--accent-blue);
}

.blog-article__header {
  margin-bottom: 48px;
  max-width: 720px;
}

.blog-article__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.blog-article__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.blog-article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.blog-article__sep {
  color: var(--text-tertiary);
}

.blog-article__body {
  max-width: 720px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-article__body h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
}

.blog-article__body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.blog-article__body p {
  margin-bottom: 20px;
}

.blog-article__body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.blog-article__body em {
  color: var(--text-primary);
}

.blog-article__body a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article__body a:hover {
  color: var(--accent-purple);
}

.blog-article__body blockquote {
  border-left: 3px solid var(--accent-blue);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-primary);
  font-style: italic;
}

.blog-article__body ul,
.blog-article__body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.blog-article__body li {
  margin-bottom: 8px;
}

.blog-article__body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.blog-article__body pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.blog-article__body pre code {
  background: none;
  padding: 0;
  border: none;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.blog-article__body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 1024px) {
  .bento__card--lg { grid-column: span 6; }
  .bento__card--md { grid-column: span 3; }
  .bento__card--sm { grid-column: span 3; }

  .layer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .layer__number {
    font-size: 2.5rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --section-gap: 80px;
  }

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

  .code-review__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .nav__links,
  .nav__actions {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

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

  .bento__card--lg,
  .bento__card--md,
  .bento__card--sm {
    grid-column: span 1;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

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

  .integration-card--wide {
    grid-column: span 1;
  }

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

  .pricing__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .cta__input-group {
    flex-direction: column;
  }

  .cta__inner {
    padding: 48px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero__terminal-body pre {
    font-size: 0.6875rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

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

  .stat__value {
    font-size: 2.5rem;
  }
}
