/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #09090b;
  color: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* === Layout === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-dark { background: #09090b; border-top: 1px solid #1c1c22; border-bottom: 1px solid #1c1c22; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #1c1c22;
  padding: 14px 0;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 32px; width: auto; border-radius: 4px; }
.logo-text { font-size: 0.95rem; font-weight: 600; color: #fafafa; letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.875rem; color: #71717a; transition: color 0.15s; }
.nav-links a:hover { color: #fafafa; }
.nav-cta { color: #fafafa !important; font-weight: 500; }

/* === Buttons === */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s ease; border: none;
}
.btn-primary {
  background: #fafafa; color: #09090b;
}
.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: #a1a1aa;
  border: 1px solid #27272a;
}
.btn-ghost:hover { color: #fafafa; border-color: #3f3f46; }

/* === Hero === */
.hero {
  padding: 160px 0 120px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -400px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
  pointer-events: none;
}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: #71717a;
  text-transform: uppercase; letter-spacing: 4px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -2px; margin-bottom: 24px;
  color: #fafafa;
}
.hero-accent { color: #a1a1aa; }
.hero-sub {
  font-size: 1.125rem; color: #71717a; max-width: 580px;
  margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* === Section Labels === */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; font-weight: 500;
  color: #71717a; text-transform: uppercase;
  letter-spacing: 3px; margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.75px;
  margin-bottom: 16px; line-height: 1.15;
  color: #fafafa;
}
.section-desc { font-size: 1.05rem; color: #71717a; max-width: 520px; margin-bottom: 48px; line-height: 1.65; }

/* === Products Grid === */
.products-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.product-card {
  background: #09090b;
  border: 1px solid #1c1c22;
  border-radius: 12px; padding: 32px;
  position: relative;
  transition: border-color 0.15s;
}
.product-card:hover { border-color: #27272a; }
.product-featured {
  grid-column: 1 / -1;
  border-color: #27272a;
}
.product-badge {
  position: absolute; top: 20px; right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; font-weight: 500;
  color: #a1a1aa; text-transform: uppercase;
  letter-spacing: 2px;
  background: #18181b;
  border: 1px solid #27272a;
  padding: 3px 10px; border-radius: 6px;
}
.product-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-icon { font-size: 2rem; }
.product-header h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.5px; }
.product-tagline {
  font-size: 0.8rem; color: #52525b;
  font-family: 'JetBrains Mono', monospace;
}
.product-card > p { color: #a1a1aa; font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; max-width: 700px; }
.product-card em { color: #fafafa; font-style: normal; font-weight: 600; }
.product-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px;
  margin-bottom: 20px;
}
.product-features li {
  font-size: 0.85rem; color: #71717a;
  padding-left: 18px; position: relative;
}
.product-features li::before {
  content: '✓'; position: absolute; left: 0;
  color: #a1a1aa; font-weight: 600; font-size: 0.8rem;
}
.product-link {
  font-size: 0.85rem; font-weight: 500; color: #a1a1aa;
  transition: color 0.15s;
  border-bottom: 1px solid #27272a;
  padding-bottom: 1px;
}
.product-link:hover { color: #fafafa; border-color: #52525b; }

/* === Vision === */
.vision-block { max-width: 720px; margin-bottom: 48px; }
.vision-lead {
  font-size: 1.15rem; color: #a1a1aa; line-height: 1.75;
  margin-bottom: 20px;
}
.vision-block p { font-size: 1.05rem; color: #a1a1aa; line-height: 1.75; }
.vision-block strong { color: #fafafa; }
.vision-block em { color: #fafafa; font-style: normal; }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }
.vision-card {
  padding: 28px;
  border: 1px solid #1c1c22;
  border-radius: 12px;
}
.vision-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #fafafa; }
.vision-card p { color: #71717a; font-size: 0.9rem; line-height: 1.65; }
.vision-bottom { max-width: 640px; }
.vision-bottom p { font-size: 1.05rem; color: #71717a; line-height: 1.75; }
.vision-bottom strong { color: #fafafa; }

/* === About === */
.about-content { max-width: 640px; }
.about-content p {
  font-size: 1rem; color: #a1a1aa; line-height: 1.75;
  margin-bottom: 16px;
}
.about-content strong { color: #fafafa; }

/* === Contact === */
.contact-content { text-align: center; }
.contact-form {
  max-width: 560px; margin: 40px auto 0; text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: #a1a1aa; margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  background: #09090b; border: 1px solid #27272a;
  border-radius: 8px; color: #fafafa;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: border-color 0.15s;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3f3f46; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: #52525b; }
.form-group select { cursor: pointer; }
.form-group select option { background: #18181b; }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit { width: 100%; margin-top: 8px; }
.form-status {
  font-size: 0.85rem; margin-top: 12px; text-align: center;
  min-height: 20px;
}
.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }
.contact-social {
  display: flex; gap: 24px; justify-content: center; margin-top: 40px;
}
.social-link {
  font-size: 0.9rem; color: #52525b; transition: color 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.social-link:hover { color: #a1a1aa; }
.social-link span { font-size: 0.85rem; }

/* === Footer === */
.footer {
  padding: 36px 0;
  border-top: 1px solid #1c1c22;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.75rem; color: #3f3f46; }

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 120px 0 60px; }
  .products-grid { grid-template-columns: 1fr; }
  .product-featured { grid-column: auto; }
  .product-features { grid-template-columns: 1fr; }
  .vision-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 8px; text-align: center; }
  .product-badge { position: static; display: inline-block; margin-bottom: 12px; }
}

/* === Articles === */

/* Article Hero (listing page) */
.article-hero {
  padding: 140px 0 80px;
  text-align: center;
}
.article-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -1.5px; margin-bottom: 16px;
  color: #fafafa;
}

/* Articles List */
.articles-list {
  max-width: 800px;
  margin: 0 auto;
}

.article-card {
  border: 1px solid #1c1c22;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  transition: border-color 0.15s;
}
.article-card:hover {
  border-color: #27272a;
}

.article-card-link {
  display: block;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: #71717a;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.article-author {
  color: #a1a1aa;
}

.article-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: #fafafa;
  line-height: 1.25;
}

.article-excerpt {
  font-size: 0.95rem;
  color: #a1a1aa;
  line-height: 1.7;
  margin-bottom: 16px;
}

.article-read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: #71717a;
  transition: color 0.15s;
}
.article-card:hover .article-read-more {
  color: #fafafa;
}

/* Article Page */
.article {
  padding-top: 100px;
}

.article-header {
  max-width: 720px;
  margin: 0 auto 48px;
  padding-top: 40px;
}

.article-back {
  font-size: 0.85rem;
  color: #71717a;
  display: inline-block;
  margin-bottom: 24px;
  transition: color 0.15s;
}
.article-back:hover {
  color: #fafafa;
}

.article-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: #fafafa;
}

.article-meta-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: #71717a;
  font-family: 'JetBrains Mono', monospace;
}

.article-meta-separator {
  color: #3f3f46;
}

/* Article Body Typography */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}

.article-body p {
  font-size: 1.05rem;
  color: #a1a1aa;
  line-height: 1.75;
  margin-bottom: 24px;
}

.article-tldr {
  background: #0d0d10;
  border: 1px solid #1c1c22;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.75px;
  color: #fafafa;
  margin-top: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-body h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #fafafa;
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-body strong {
  color: #fafafa;
  font-weight: 600;
}

.article-body em {
  color: #fafafa;
  font-style: italic;
}

.article-body a {
  color: #fafafa;
  border-bottom: 1px solid #3f3f46;
  padding-bottom: 1px;
  transition: border-color 0.15s;
}
.article-body a:hover {
  border-color: #71717a;
}

.article-body hr {
  border: none;
  border-top: 1px solid #1c1c22;
  margin: 40px 0;
}

/* Code Blocks */
.article-body pre {
  background: #0d0d10;
  border: 1px solid #1c1c22;
  border-radius: 8px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e4e4e7;
}

.article-body p code {
  background: #0d0d10;
  border: 1px solid #1c1c22;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Lists */
.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-body ul li,
.article-body ol li {
  font-size: 1.05rem;
  color: #a1a1aa;
  line-height: 1.75;
  margin-bottom: 8px;
}

.article-body ul {
  list-style-type: disc;
}

.article-body ol {
  list-style-type: decimal;
}

.article-body li strong {
  color: #fafafa;
}

.article-body li code {
  background: #0d0d10;
  border: 1px solid #1c1c22;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* Blockquotes */
.article-body blockquote {
  border-left: 3px solid #27272a;
  padding-left: 24px;
  margin: 24px 0;
  color: #71717a;
  font-style: italic;
}

/* Article Footer */
.article-footer {
  max-width: 720px;
  margin: 60px auto 0;
  padding-top: 40px;
  border-top: 1px solid #1c1c22;
}

.article-back-bottom {
  font-size: 0.9rem;
  color: #71717a;
  transition: color 0.15s;
}
.article-back-bottom:hover {
  color: #fafafa;
}

/* Responsive Articles */
@media (max-width: 768px) {
  .article-hero {
    padding: 100px 0 60px;
  }
  
  .article-hero h1 {
    font-size: 2rem;
  }
  
  .article-card {
    padding: 24px;
  }
  
  .article {
    padding-top: 80px;
  }
  
  .article-header {
    padding-top: 20px;
  }
  
  .article-header h1 {
    font-size: 1.75rem;
  }
  
  .article-body h2 {
    font-size: 1.5rem;
    margin-top: 36px;
  }
  
  .article-body h3 {
    font-size: 1.2rem;
    margin-top: 28px;
  }
  
  .article-body pre {
    padding: 16px;
    font-size: 0.85rem;
  }
  
  .article-body code {
    font-size: 0.85rem;
  }
}
