/* ========================================
   iainote — Neo-Terminal Brutalism Style
   2026 AI Tool Aesthetic
   ======================================== */

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --green: #00ff88;
  --blue: #00d4ff;
  --orange: #ff6b35;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #666;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-ui: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ---- Grid Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ---- Layout Helpers ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon { font-size: 22px; color: var(--green); }
.logo-text { font-family: var(--font-mono); font-weight: 700; font-size: 17px; letter-spacing: -0.5px; }
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-ui);
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
}
.header .btn { margin-left: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #000;
}
.btn-primary:hover { background: #00e07a; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 6px 16px;
  font-size: 13px;
}
.btn-outline:hover { background: rgba(0,255,136,0.08); }
.btn-outline-green {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  padding: 10px 24px;
  font-size: 14px;
}
.btn-outline-green:hover { background: rgba(0,255,136,0.08); }
.btn-lg { padding: 12px 28px; font-size: 15px; }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.hero-inner { max-width: 700px; margin: 0 auto; padding: 0 24px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero-title-accent { color: var(--green); }
.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 40px;
}
.hero-sub code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Terminal Section ---- */
.terminal-section {
  padding: 0 24px 80px;
  position: relative;
  z-index: 1;
}
.terminal-section-inner { max-width: 800px; margin: 0 auto; }
.terminal-window {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,255,136,0.06), 0 20px 40px rgba(0,0,0,0.5);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca41; }
.terminal-title { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); margin: 0 auto; }
.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  min-height: 200px;
}
.terminal-line { margin-bottom: 4px; }
.line-cmd { color: var(--text); }
.line-out { color: var(--text-dim); padding-left: 2px; }
.cursor {
  display: inline-block;
  color: var(--green);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Sections ---- */
.features, .how-it-works, .code-example, .download-cta {
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}
.features-inner, .how-it-works-inner, .code-example-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 48px;
  color: var(--text);
}

/* ---- Features Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg2); }
.feature-icon { margin-bottom: 16px; }
.feature-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}
.feature-desc code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--blue);
}

/* ---- How It Works ---- */
.how-it-works { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 260px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  position: relative;
}
.step-connector {
  font-family: var(--font-mono);
  font-size: 28px;
  color: var(--green);
  padding-top: 80px;
  flex-shrink: 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--bg3);
  border: 2px solid var(--border);
  border-radius: 6px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  letter-spacing: -2px;
}
.step-title {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.step-code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
}
.step-code code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  word-break: break-all;
}

/* ---- Code Example ---- */
.code-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.code-panel { background: var(--bg2); }
.code-panel-label {
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.code-block {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre;
}
.code-comment { color: #555; }
.code-str { color: var(--green); }
.code-key { color: var(--blue); }
.code-num { color: var(--orange); }
mark { background: rgba(0,255,136,0.2); color: var(--green); border-radius: 2px; padding: 0 2px; }

/* ---- Download CTA ---- */
.download-cta { background: var(--bg2); border-top: 1px solid var(--border); }
.download-cta-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.download-box {
  background: var(--bg);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 48px 40px;
}
.download-title {
  font-family: var(--font-mono);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}
.download-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 32px; }
.install-block { margin-bottom: 24px; }
.install-cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 20px;
}
.install-cmd code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
}
.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
  white-space: nowrap;
}
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.platform-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- OSS Banner ---- */
.oss-banner {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.oss-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.oss-icon { flex-shrink: 0; }
.oss-text { flex: 1; min-width: 260px; }
.oss-text h3 { font-family: var(--font-mono); font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.oss-text p { font-size: 14px; color: var(--text-dim); }

/* ---- Footer ---- */
.footer {
  padding: 48px 24px 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-tagline { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 13px; color: var(--text-dim); text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

/* ---- Platform Download Page ---- */
.platform-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.platform-block:last-child { margin-bottom: 0; }
.platform-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}
.platform-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.platform-note { font-size: 13px; color: var(--text-dim); margin-top: 8px; }
.platform-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--blue);
}
.platform-note a { color: var(--green); text-decoration: none; }
.platform-note a:hover { text-decoration: underline; }

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-link { display: none; }
  .nav-link:last-child, .nav-link:nth-last-child(2) { display: flex; }
  .step-connector { display: none; }
  .code-split { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
  .features, .how-it-works, .code-example, .download-cta { padding: 50px 24px; }
  .download-box { padding: 28px 20px; }
  .footer-inner { flex-direction: column; gap: 32px; }
}
