/* ── Reset & Tokens ── */

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

:root {
  --bg: #0a0a0c;
  --bg-surface: #141416;
  --bg-card: #1c1c1e;
  --bg-card-hover: #242426;
  --text: #f5f5f7;
  --text-secondary: #98989d;
  --text-dim: rgba(255, 255, 255, 0.35);
  --accent: #10b981;
  --accent-light: rgba(16, 185, 129, 0.12);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --blue: #60a5fa;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --pink: #ff6482;
  --purple: #a78bfa;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(16, 185, 129, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", "Fira Code", "Cascadia Code", Menlo, monospace;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: -1;
  background:
    radial-gradient(ellipse 900px 700px at 20% 15%, rgba(16, 185, 129, 0.1), transparent),
    radial-gradient(ellipse 600px 500px at 70% 10%, rgba(96, 165, 250, 0.07), transparent),
    radial-gradient(ellipse 800px 600px at 80% 45%, rgba(167, 139, 250, 0.06), transparent),
    radial-gradient(ellipse 700px 500px at 40% 55%, rgba(48, 209, 88, 0.06), transparent),
    radial-gradient(ellipse 500px 400px at 10% 70%, rgba(255, 159, 10, 0.05), transparent),
    radial-gradient(ellipse 600px 500px at 60% 85%, rgba(16, 185, 129, 0.07), transparent);
  animation: driftBlobs 12s ease-in-out infinite alternate;
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: -1;
  background:
    radial-gradient(ellipse 700px 500px at 55% 25%, rgba(96, 165, 250, 0.08), transparent),
    radial-gradient(ellipse 500px 400px at 15% 45%, rgba(16, 185, 129, 0.06), transparent),
    radial-gradient(ellipse 800px 600px at 85% 20%, rgba(48, 209, 88, 0.05), transparent),
    radial-gradient(ellipse 600px 500px at 35% 80%, rgba(167, 139, 250, 0.06), transparent);
  animation: driftBlobs2 15s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes driftBlobs {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  33% { transform: translate(50px, -35px) scale(1.08); opacity: 0.75; }
  66% { transform: translate(-35px, 25px) scale(0.92); opacity: 1; }
  100% { transform: translate(25px, -18px) scale(1.04); opacity: 0.8; }
}
@keyframes driftBlobs2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-40px, 35px) scale(1.12); opacity: 1; }
  100% { transform: translate(35px, -25px) scale(0.93); opacity: 0.75; }
}
a { color: inherit; text-decoration: none; }

/* ── Nav ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px; background: rgba(10,10,12,0.7); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.logo-icon { width: 28px; height: 28px; border-radius: 6px; }
.logo-icon.small { width: 22px; height: 22px; border-radius: 5px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: var(--text) !important; padding: 7px 18px; border-radius: 20px; font-weight: 600 !important; transition: background 0.15s ease, transform 0.15s ease !important; }
.nav-cta:hover { background: #34d399 !important; transform: translateY(-1px); }

/* ── Hero ── */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 120px 24px 80px; text-align: center; overflow: hidden; }
.hero-glow { position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); opacity: 0.4; pointer-events: none; animation: glowPulse 6s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); } 50% { opacity: 0.55; transform: translateX(-50%) scale(1.05); } }
.hero-content { position: relative; z-index: 1; max-width: 800px; display: flex; align-items: center; gap: 48px; text-align: left; }
.hero-text { flex: 1; min-width: 0; }
.hero-icon { width: 128px; height: 128px; border-radius: 24px; filter: drop-shadow(0 8px 32px rgba(16, 185, 129, 0.3)); flex-shrink: 0; }
.badge { display: inline-block; padding: 6px 16px; background: var(--accent-light); border: 1px solid var(--border-accent); border-radius: 20px; font-size: 13px; font-weight: 500; color: #6ee7b7; letter-spacing: 0.02em; margin-bottom: 28px; }
.hero h1 { font-size: clamp(48px, 8vw, 72px); font-weight: 750; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, #6ee7b7 0%, var(--accent) 50%, #34d399 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 19px; line-height: 1.6; color: var(--text-secondary); max-width: 520px; margin: 0 0 40px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: all 0.2s ease; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 16px rgba(16,185,129,0.3); }
.btn-primary:hover { background: #34d399; box-shadow: 0 6px 24px rgba(16,185,129,0.4); transform: translateY(-2px); }
.btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); }
.btn-secondary:hover { background: var(--bg-card-hover); color: var(--text); border-color: rgba(255,255,255,0.12); transform: translateY(-2px); }

/* ── Hero Mockup ── */
.hero-mockup { position: relative; z-index: 1; margin-top: 64px; width: 100%; max-width: 700px; padding: 0 24px; }
.mockup-window { background: #1a1b26; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.4); text-align: left; }
.mockup-titlebar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); }
.titlebar-text { font-size: 12px; color: var(--text-dim); margin-left: auto; font-family: var(--mono); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.mockup-split { display: flex; min-height: 220px; }
.pane { padding: 14px 16px; flex: 1; min-width: 0; }
.pane-main { flex: 1.4; }
.pane-right { display: flex; flex-direction: column; flex: 1; }
.pane-top, .pane-bottom { flex: 1; }
.pane-split-v { width: 1px; background: rgba(255,255,255,0.08); }
.pane-split-h { height: 1px; background: rgba(255,255,255,0.08); }
.pane-label { font-size: 10px; font-family: var(--mono); font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 10px; }
.pane-line { font-size: 13px; font-family: var(--mono); line-height: 1.7; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-keyword { color: #bb9af7; }
.hl-fn { color: #7aa2f7; }
.hl-type { color: #2ac3de; }
.hl-prompt { color: var(--accent); }
.hl-ok { color: #9ece6a; }
.hl-dim { color: #565f89; }
.hl-cursor { display: inline-block; width: 8px; height: 16px; background: var(--accent); animation: blink 1s step-end infinite; vertical-align: text-bottom; }
.pane-color-1 { background: #1a1b26; }
.pane-color-2 { background: #1e1f2b; }
.pane-color-3 { background: #222330; }
@keyframes blink { 50% { opacity: 0; } }

/* ── Sections ── */
.section-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

/* ── Features ── */
.features { padding: 120px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: all 0.25s ease; }
.feature-card:hover { background: var(--bg-card-hover); border-color: rgba(255,255,255,0.1); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 20px; }
.feature-icon.accent-blue { background: rgba(96,165,250,0.1); color: var(--blue); }
.feature-icon.accent-green { background: rgba(48,209,88,0.1); color: var(--green); }
.feature-icon.accent-orange { background: rgba(255,159,10,0.1); color: var(--orange); }
.feature-icon.accent-pink { background: rgba(255,100,130,0.1); color: var(--pink); }
.feature-icon.accent-purple { background: rgba(167,139,250,0.1); color: var(--purple); }
.feature-card h3 { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; font-family: var(--mono); }
.feature-card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }

/* ── Skill Section ── */
.skill { padding: 120px 0; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.skill-demo { max-width: 680px; margin: 0 auto; }
.skill-step { display: flex; gap: 20px; margin-bottom: 36px; }
.skill-step:last-child { margin-bottom: 0; }
.step-number { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-light); border: 1px solid var(--border-accent); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.step-content { flex: 1; min-width: 0; }
.step-content h3 { font-size: 16px; font-weight: 650; margin-bottom: 12px; }
.code-block { background: #1a1b26; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #a9b1d6; overflow-x: auto; }
.code-block code { white-space: pre-wrap; word-break: break-word; }
.code-block pre { margin: 0; }

/* ── Install Section ── */
.install { padding: 120px 0; }
.install-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.install-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.install-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.install-badge { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent-light); border: 1px solid var(--border-accent); padding: 3px 10px; border-radius: 12px; }
.install-card h3 { font-size: 18px; font-weight: 650; }
.install-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 14px; }
.install-card code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 13px; }
.install-card .code-block { margin-bottom: 16px; }
.install-card .code-block code { background: transparent; padding: 0; }
.install-alt { font-size: 13px !important; color: var(--text-dim) !important; margin-bottom: 10px !important; }

/* ── Download ── */
.download { padding: 120px 0; position: relative; overflow: hidden; }
.download-glow { position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%); opacity: 0.25; pointer-events: none; }
.download-cards { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.download-card { display: flex; align-items: center; gap: 16px; padding: 20px 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); min-width: 280px; transition: all 0.25s ease; cursor: pointer; }
.download-card:hover { background: var(--bg-card-hover); border-color: var(--border-accent); transform: translateY(-3px); box-shadow: 0 8px 32px rgba(16,185,129,0.12); }
.download-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.download-info { display: flex; flex-direction: column; gap: 2px; }
.download-info strong { font-size: 15px; font-weight: 650; }
.download-info span { font-size: 12px; color: var(--text-secondary); }
.download-action { color: var(--text-dim); margin-left: auto; }
.download-note { text-align: center; font-size: 13px; color: var(--text-dim); }
.download-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ── Footer ── */
footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); transition: color 0.15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-dim); }
.footer-copy a { color: var(--text-secondary); transition: color 0.15s ease; }
.footer-copy a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-content { flex-direction: column; text-align: center; }
  .hero-icon { margin-bottom: 16px; }
  .hero-sub { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .download-cards { flex-direction: column; align-items: center; }
  .download-card { width: 100%; max-width: 320px; }
  .mockup-split { flex-direction: column; }
  .pane-split-v { width: auto; height: 1px; }
  .pane-right { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .skill-step { flex-direction: column; gap: 12px; }
}
