/* ==========================================================================
   VORCEL AI / KODA AI — 1:1 PIXEL-PERFECT REPLICA STYLES
   Visual Source of Truth: reference_clean.png
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-canvas: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border-hairline: #E5E7EB;
  --accent-green: #10B981;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Framed Hairline Grid Container */
.grid-container {
  max-width: 1240px;
  margin: 0 auto;
  border-left: 1px solid var(--border-hairline);
  border-right: 1px solid var(--border-hairline);
  background: var(--bg-canvas);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.02);
}

/* ==========================================================================
   1. NAVIGATION BAR
   ========================================================================== */
.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 32px;
  background: #FFFFFF;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-icon {
  font-size: 11px;
  line-height: 1;
}

.brand-name {
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  padding: 6px 12px;
  transition: color 0.15s ease;
}

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

.btn-account {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ECEEF1;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-account:hover {
  background: #E2E5E9;
}

.btn-account:active {
  transform: scale(0.98);
}

/* ==========================================================================
   2. HERO SECTION — ROW 1
   ========================================================================== */
.hero-row-1 {
  display: flex;
  border-bottom: 1px solid var(--border-hairline);
}

.hero-left {
  width: 51.67%;
  border-right: 1px solid var(--border-hairline);
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  display: inline-block;
  flex-shrink: 0;
}

.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #111827;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: 60px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #18181B;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-primary:hover {
  background: #000000;
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-secondary:hover {
  background: #F9FAFB;
}

.btn-secondary:active {
  transform: scale(0.97);
}

.hero-right {
  width: 48.33%;
  padding: 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-description {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 440px;
}

.trusted-by-section {
  margin-top: 48px;
}

.trusted-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: right;
  margin-bottom: 8px;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-muted);
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.logo-bullet {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-light);
  display: inline-block;
}

.logo-symbol {
  font-size: 13px;
  line-height: 1;
}

.logo-icon-svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ==========================================================================
   3. HERO SECTION — ROW 2: TECHNICAL COMPOSITION
   ========================================================================== */
.hero-row-2 {
  position: relative;
  border-bottom: 1px solid var(--border-hairline);
  background: #FFFFFF;
  overflow: hidden;
}

.hero-visual-image {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   4. SECTION 2: EVERYTHING DEVELOPERS NEED TO MOVE FASTER
   ========================================================================== */
.features-section {
  padding: 64px 48px;
  background: #FFFFFF;
}

.features-header-row {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
  align-items: flex-end;
}

.features-headline {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin-top: 16px;
}

.features-description {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 420px;
  padding-bottom: 8px;
}

.features-cards-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.feature-card {
  border-radius: 18px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.icon-tile {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: #F9FAFB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.icon-svg {
  width: 16px;
  height: 16px;
}

.icon-svg.stroke-icon {
  stroke-width: 2px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 16px;
}

.feature-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Code Well Containers */
.code-well {
  margin-top: 24px;
  border-radius: 14px;
  border: 1px solid var(--border-hairline);
  background: #F9FAFB;
  padding: 16px;
}

.code-window {
  border-radius: 10px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.code-window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
  background: #FAFAFA;
  padding: 0 14px;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn {
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-light);
  padding: 2px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.tab-btn.active {
  background: #E5E7EB;
  color: var(--text-primary);
}

.code-bar-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-issues {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 9999px;
  background: #FEE2E2;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: #DC2626;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DC2626;
}

.badge-solved {
  border-radius: 5px;
  background: #1F2937;
  padding: 2px 8px;
  font-size: 9.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.copy-btn {
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

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

.copy-icon {
  width: 12px;
  height: 12px;
}

/* Code Editor Bodies */
.code-body {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  color: #1F2937;
  background: #FFFFFF;
}

.code-body pre {
  margin: 0;
  white-space: pre;
}

.line-num {
  color: #D1D5DB;
  user-select: none;
  margin-right: 12px;
  display: inline-block;
  width: 14px;
  text-align: right;
}

.code-line-error {
  display: block;
  width: 100%;
  background: #FEE2E2;
  color: #DC2626;
  padding: 0 6px;
  margin: 0 -6px;
  border-radius: 4px;
  font-weight: 500;
}

.line-num-error {
  color: #F87171;
  user-select: none;
  margin-right: 12px;
  display: inline-block;
  width: 14px;
  text-align: right;
}

.code-body-suggest {
  position: relative;
  padding: 16px;
  padding-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
  color: #1F2937;
  background: #FFFFFF;
  min-height: 195px;
}

.token-var {
  color: #4B5563;
}

.token-fn {
  color: #2563EB;
}

.token-kw {
  color: #7C3AED;
  font-weight: 600;
}

/* Autocomplete Popover */
.autocomplete-popover {
  position: absolute;
  left: 88px;
  top: 46px;
  width: 184px;
  border-radius: 8px;
  border: 1px solid var(--border-hairline);
  background: #FFFFFF;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 20;
}

.popover-item {
  padding: 6px 12px;
  font-size: 10px;
  color: #64748B;
}

.popover-item.active {
  background: #F0F4F8;
  color: #1E293B;
  font-weight: 500;
}

.popover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111827;
  padding: 4px 12px;
  font-size: 9.5px;
  color: #FFFFFF;
}

.key-pill {
  border-radius: 3px;
  background: #FFFFFF;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  color: #111827;
}

/* ==========================================================================
   5. FOOTER
   ========================================================================= */
.footer {
  border-top: 1px solid var(--border-hairline);
  background: #FFFFFF;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-divider {
  color: #D1D5DB;
}

.footer-subtext {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-row-1 {
    flex-direction: column;
  }
  .hero-left, .hero-right {
    width: 100%;
  }
  .hero-left {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
  }
  .features-header-row {
    grid-template-columns: 1fr;
  }
  .features-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
