/* ═══════════════════════════════════════════════════════════════
   KOTBI REIMAGINED — Monochrome Terminal Aesthetic
   A minimal, text-forward design with selective color accents.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Surface tones */
  --bg: #09090b;
  --bg-alt: #0c0c0f;
  --surface: #131316;
  --surface-hover: #1a1a1f;
  --border: #27272a;
  --border-subtle: #1c1c1f;
  
  /* Text */
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  
  /* Accent — a single hue used sparingly */
  --accent: #3b82f6;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.15);
  
  /* Success/Status */
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Layout */
  --max-width: 1200px;
  --radius: 6px;
  --radius-lg: 10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ── NAVIGATION ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-xl);
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-bracket {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-cta {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

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

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--bg);
  padding: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-link.cta {
  color: var(--accent);
  border: none;
  margin-top: var(--space-lg);
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  padding: 8rem var(--space-xl) var(--space-4xl);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

.hero-grid-bg {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(39, 39, 42, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 39, 42, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 10%, transparent 70%);
  z-index: -1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── TERMINAL WINDOW ──────────────────────────────────────────── */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px var(--border-subtle),
    0 20px 60px -10px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: var(--red); opacity: 0.8; }
.terminal-dot.yellow { background: var(--yellow); opacity: 0.8; }
.terminal-dot.green { background: var(--green); opacity: 0.8; }

.terminal-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.terminal-body {
  padding: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.terminal-body code {
  white-space: pre;
}

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-output { color: var(--text-muted); }
.t-string { color: var(--green); }
.t-success { color: var(--green); }
.t-cursor { 
  color: var(--accent); 
  animation: blink 1s steps(1) infinite;
}

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

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.7rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

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

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

/* ── SECTIONS ─────────────────────────────────────────────────── */
.section {
  padding: var(--space-4xl) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-alt);
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-alt > .section-header,
.section-alt > .filter-bar,
.section-alt > .marketplace-grid,
.section-alt > .journal-grid,
.section-alt > .teaser-grid,
.section-alt > .teaser-cta {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

.section-header {
  margin-bottom: var(--space-3xl);
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  display: block;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-size: 0.95rem;
}

/* ── PROJECT GRID ─────────────────────────────────────────────── */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.project-card:hover::before {
  opacity: 1;
}

.project-card.featured {
  grid-column: span 2;
  border-color: var(--accent);
  border-opacity: 0.3;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.project-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 2px 8px;
  background: var(--accent-glow);
  border-radius: 3px;
}

.project-version {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: auto;
}

.project-stack span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 3px 8px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 3px;
}

.project-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: var(--space-sm);
  transition: opacity 0.2s;
}

.project-link:hover {
  opacity: 0.7;
}

/* ── FILTER BAR ───────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.filter-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* ── MARKETPLACE GRID ─────────────────────────────────────────── */
.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.3s;
}

.product-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--accent);
}

.product-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
}

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
}

.product-buy {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}

.product-buy:hover {
  opacity: 0.7;
}

/* ── ABOUT ────────────────────────────────────────────────────── */
.about-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-intro {
  font-size: 1.15rem;
  line-height: 1.7;
}

.about-intro strong {
  color: var(--accent);
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.7;
}

.about-links {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.about-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: all 0.2s;
}

.about-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.about-card {
  position: sticky;
  top: 6rem;
}

.about-card-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.about-card-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
}

.stack-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stack-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.stack-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── JOURNAL ──────────────────────────────────────────────────── */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.journal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all 0.3s;
}

.journal-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.journal-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.journal-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.journal-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.journal-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity 0.2s;
}

.journal-link:hover {
  opacity: 0.7;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-dim);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-right {
  display: flex;
  gap: var(--space-lg);
}

.footer-right a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 7rem;
    gap: var(--space-2xl);
  }
  
  .hero-terminal {
    max-width: 500px;
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .about-card {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-4xl: 4rem;
  }
  
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    padding-top: 6rem;
  }
  
  .hero-stats {
    gap: var(--space-lg);
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .marketplace-grid {
    grid-template-columns: 1fr;
  }
  
  .journal-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .footer-left {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-sm);
  }
  
  .filter-btn {
    white-space: nowrap;
  }
}

/* ── UTILITY: smooth reveal on scroll ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── PAGE LAYOUT (content pages) ──────────────────────────────── */
.page-main {
  padding-top: 5rem;
}

.page-hero {
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: var(--space-md);
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  line-height: 1.7;
  margin-top: var(--space-md);
}

/* ── PRODUCT DETAIL ───────────────────────────────────────────── */
.product-detail-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-3xl);
  align-items: start;
}

.product-detail-sidebar {
  position: sticky;
  top: 6rem;
}

.detail-heading {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-item {
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.feature-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CODE BLOCK ───────────────────────────────────────────────── */
.code-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.code-header {
  padding: 0.6rem 1rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.code-block pre {
  padding: var(--space-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── BENCHMARKS ───────────────────────────────────────────────── */
.benchmarks {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.benchmark-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benchmark-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.benchmark-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}

.benchmark-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.benchmark-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
}

/* ── CONTACT FORM ─────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371717a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.contact-info {
  position: sticky;
  top: 6rem;
}

/* ── BLOG ARTICLE ─────────────────────────────────────────────── */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4xl) var(--space-xl);
}

.blog-header {
  margin-bottom: var(--space-3xl);
}

.blog-back {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.blog-back:hover {
  color: var(--accent);
}

.blog-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.blog-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.blog-content p {
  margin-bottom: 1.25rem;
}

.blog-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.5rem;
}

.blog-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border-subtle);
}

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

/* ── RESPONSIVE (content pages) ───────────────────────────────── */
@media (max-width: 1024px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .product-detail-sidebar {
    position: static;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    position: static;
  }
}


/* ── TEASER COMPONENTS (index page) ───────────────────────────── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.teaser-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  text-decoration: none;
}

.teaser-item:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.teaser-icon {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  flex-shrink: 0;
}

.teaser-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.teaser-price {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.teaser-cta {
  margin-top: var(--space-xl);
  text-align: center;
}

/* ── ABOUT TEASER ─────────────────────────────────────────────── */
.about-teaser {
  max-width: 700px;
}

.about-teaser .about-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: var(--space-xl);
}

.about-teaser-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

@media (max-width: 480px) {
  .teaser-grid {
    grid-template-columns: 1fr;
  }

  .about-teaser-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }
}
