/* === Tokens === */
:root {
  --bg:        #0e0c0a;
  --bg-alt:    #161210;
  --surface:   #1e1a16;
  --border:    #2e2820;
  --text:      #e8ddd0;
  --text-dim:  #a08e7a;
  --accent:    #c8956c;
  --accent-h:  #daa87e;
  --kube:      #38bdf8;
  --kube-h:    #7dd3fc;
  --kube-dim:  rgba(56,189,248,0.12);
  --coffee:    #6f4e37;
  --coffee-l:  #8b6548;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --max:       1080px;
  --radius:    10px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }
code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
pre { margin: 0; }
pre code { background: none; padding: 0; font-size: 0.85rem; }
img { max-width: 100%; height: auto; }

/* === Layout === */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(14, 12, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.6rem 1.3rem; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; transition: all 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.btn-primary {
  background: var(--accent); color: var(--bg); border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-h); color: var(--bg); }
.btn-kube {
  background: var(--kube); color: var(--bg); border-color: var(--kube);
}
.btn-kube:hover { background: var(--kube-h); color: var(--bg); }
.btn-outline {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text-dim); color: var(--text); }
.btn-coffee {
  background: var(--coffee); color: #fff; border-color: var(--coffee);
}
.btn-coffee:hover { background: var(--coffee-l); color: #fff; }

/* === Hero === */
.hero {
  padding: 10rem 1.5rem 6rem;
  text-align: center;
  background: radial-gradient(ellipse at 30% 0%, rgba(200,149,108,0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 0%, rgba(56,189,248,0.06) 0%, transparent 50%);
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); background: rgba(200,149,108,0.1);
  padding: 0.3rem 0.8rem; border-radius: 20px; margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700;
  line-height: 1.1; margin-bottom: 1rem;
  color: var(--text);
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim); max-width: 560px;
  margin: 0 auto 2.5rem; line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* === Product Sections === */
.product-section {
  padding: 6rem 0 4rem;
  border-top: 1px solid var(--border);
}
.product-mittens {
  background: linear-gradient(180deg, rgba(200,149,108,0.04) 0%, var(--bg) 40%);
}
.product-kubikles {
  background: linear-gradient(180deg, rgba(56,189,248,0.04) 0%, var(--bg) 40%);
}

.product-header {
  display: flex; gap: 2.5rem; align-items: flex-start;
  margin-bottom: 3rem;
}
.product-logo { flex-shrink: 0; border-radius: 16px; }
.mittens-glow { filter: drop-shadow(0 4px 24px rgba(200,149,108,0.15)); }
.kubikles-glow { filter: drop-shadow(0 4px 24px rgba(56,189,248,0.2)); }

.product-header h2 {
  font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem;
}
.product-tagline {
  font-size: 1.15rem; color: var(--accent); font-weight: 500;
  margin-bottom: 0.75rem; font-style: italic;
}
.product-kubikles .product-tagline { color: var(--kube); }
.product-desc {
  color: var(--text-dim); font-size: 1rem; line-height: 1.7;
  max-width: 520px; margin-bottom: 1.25rem;
}
.product-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* === Subsections === */
.subsection { margin-bottom: 3rem; }
.subsection h3 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem;
}
.subsection-sub {
  color: var(--text-dim); max-width: 560px; margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* === Terminal === */
.terminal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-width: 580px; margin-bottom: 3rem;
}
.terminal-bar {
  display: flex; gap: 6px; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.terminal pre { padding: 1rem 1.25rem; line-height: 1.8; }
.t-prompt { color: var(--accent); }
.t-comment { color: var(--text-dim); }

/* === Sections (generic) === */
.section { padding: 5rem 0; }
.section h2 {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 0.75rem; text-align: center;
}
.section-sub {
  color: var(--text-dim); text-align: center;
  max-width: 560px; margin: 0 auto 2.5rem; font-size: 1.05rem;
}

/* === Grids === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* === Cards === */
.card, .feature, .provider-card, .platform-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.card h4, .feature h4, .provider-card h4, .platform-card h4 {
  margin-bottom: 0.5rem; font-weight: 600;
}
.card p, .feature p, .provider-card p, .platform-card p {
  color: var(--text-dim); font-size: 0.92rem; line-height: 1.6;
}

/* Kubikles-themed cards */
.feature-kube { border-color: rgba(56,189,248,0.1); }
.feature-kube:hover { border-color: rgba(56,189,248,0.25); }
.feature-kube h4 { color: var(--kube-h); }
.provider-card-kube { border-color: rgba(56,189,248,0.1); }

.provider-models { font-size: 0.82rem !important; margin-bottom: 0.75rem; }
.provider-card code { font-size: 0.8rem; }

/* === Steps === */
.steps { max-width: 600px; display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.25rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.step-num-mittens { background: var(--accent); }
.step-num-kube { background: var(--kube); }
.step-body { flex: 1; }
.step-body h4 { margin-bottom: 0.5rem; font-weight: 600; }
.step-body pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem; line-height: 1.7;
}

/* === Coffee/Support === */
.section-coffee {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(111,78,55,0.08) 100%);
  text-align: center; padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.support-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.sponsors { margin-top: 1rem; }
.sponsors-label { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.sponsor-logo {
  border-radius: 12px; opacity: 0.7; transition: opacity 0.2s;
}
.sponsor-logo:hover { opacity: 1; }

/* === Footer === */
.footer {
  border-top: 1px solid var(--border); padding: 1.5rem 0;
  font-size: 0.85rem; color: var(--text-dim);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* === Responsive === */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 8rem 1.5rem 3rem; }
  .product-section { padding: 4rem 0 3rem; }
  .product-header { flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; }
  .product-desc { margin-left: auto; margin-right: auto; }
  .product-actions { justify-content: center; }
  .nav-links a:not(.btn) { display: none; }
  .footer-inner { flex-direction: column; gap: 0.75rem; }
}
