/* ═══════════════════════════════════════════════
   SunSetter AQM+ — Landing Page Styles
   Video-game aesthetic: dark, neon, cinematic
   ═══════════════════════════════════════════════ */

:root {
  --bg: #04060f;
  --fg: #e8eaf0;
  --dim: #6b7280;
  --orange: #ff6b35;
  --pink: #ff3864;
  --purple: #9b4dca;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --green: #22c55e;
  --border: rgba(255,255,255,0.07);
  --glass: rgba(255,255,255,0.025);
  --grad: linear-gradient(135deg, var(--orange), var(--pink), var(--purple));
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
#bg-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.cursor {
  position: fixed; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); mix-blend-mode: screen;
  transition: width 0.15s, height 0.15s, background 0.15s;
}
.cursor-trail {
  position: fixed; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,107,53,0.35); pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* NAV */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  background: rgba(4,6,15,0.8); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: 'Outfit', sans-serif; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-left: 2px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--dim); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.btn-ghost { border: 1px solid var(--border) !important; color: var(--fg) !important; padding: 0.45rem 1.1rem; border-radius: 6px; transition: background 0.2s !important; }
.btn-ghost:hover { background: var(--glass) !important; }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9rem 0 6rem; position: relative; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.hero-text { display: flex; flex-direction: column; align-items: center; max-width: 760px; }
.badge { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); border: 1px solid var(--border); border-radius: 100px; padding: 0.4rem 1rem; margin-bottom: 1.75rem; background: var(--glass); }
.hero-title { font-family: 'Outfit', sans-serif; font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 1.5rem; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.05rem; color: var(--dim); line-height: 1.65; max-width: 600px; margin-bottom: 2rem; }
.install-row { margin-bottom: 1.75rem; }
.install-box { display: inline-flex; align-items: center; gap: 0.75rem; background: #0a0d1a; border: 1px solid rgba(255,107,53,0.25); border-radius: 8px; padding: 0.7rem 1.25rem; box-shadow: 0 0 30px rgba(255,107,53,0.06); transition: border-color 0.3s, box-shadow 0.3s; }
.install-box:hover { border-color: rgba(255,107,53,0.5); box-shadow: 0 0 40px rgba(255,107,53,0.12); }
.install-prompt { color: var(--orange); font-family: 'Fira Code', monospace; font-size: 0.95rem; }
#install-cmd { font-family: 'Fira Code', monospace; font-size: 0.9rem; color: var(--fg); background: none; border: none; outline: none; }
.copy-btn { background: none; border: none; color: var(--dim); cursor: none; padding: 0; transition: color 0.2s; }
.copy-btn:hover { color: var(--orange); }
.hero-ctas { display: flex; gap: 1.5rem; align-items: center; margin-bottom: 1.75rem; }
.btn-primary { background: var(--grad); color: white; text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.75rem 1.8rem; border-radius: 8px; transition: transform 0.2s, box-shadow 0.2s; display: inline-block; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,56,100,0.28); }
.btn-text { color: var(--dim); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; display: inline-flex; align-items: center; gap: 0.3rem; }
.btn-text:hover { color: var(--fg); }
.arrow { transition: transform 0.2s; }
.btn-text:hover .arrow { transform: translateX(3px); }
.db-pills { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.pill-label { font-size: 0.78rem; color: var(--dim); }
.db-pill { font-size: 0.72rem; font-weight: 600; color: var(--fg); border: 1px solid var(--border); border-radius: 4px; padding: 0.25rem 0.65rem; background: var(--glass); }
.hero-3d-label { margin-top: 0.75rem; }
.graph-caption { font-size: 0.68rem; color: rgba(255,107,53,0.45); letter-spacing: 1.5px; text-transform: uppercase; font-family: 'Fira Code', monospace; }
.scroll-hint { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.35; animation: scrollFade 2s ease-in-out infinite alternate; }
.scroll-line { width: 1px; height: 36px; background: linear-gradient(to bottom, transparent, var(--orange)); }
.scroll-hint span { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; color: var(--dim); }
@keyframes scrollFade { from { opacity: 0.2; } to { opacity: 0.5; } }

/* SECTIONS */
.section { padding: 7rem 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.section-header p { color: var(--dim); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* FEATURES */
.features-section { background: rgba(0,0,0,0.45); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.feat-card { background: var(--bg); padding: 1.75rem; transition: background 0.3s; position: relative; overflow: hidden; }
.feat-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at top left, rgba(255,107,53,0.05), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.feat-card:hover { background: #070918; }
.feat-card:hover::before { opacity: 1; }
.feat-icon { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,107,53,0.07); border: 1px solid rgba(255,107,53,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--orange); }
.feat-card h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.feat-card p { font-size: 0.875rem; color: var(--dim); line-height: 1.6; }
.feat-card code { font-family: 'Fira Code', monospace; font-size: 0.78rem; background: rgba(255,107,53,0.08); color: var(--orange); padding: 0.1rem 0.3rem; border-radius: 3px; }

/* OUTPUT */
.output-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 900px) { .output-grid { grid-template-columns: 1fr; } }
.code-panel { background: #060918; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.3s, transform 0.3s; }
.code-panel:hover { border-color: rgba(255,107,53,0.2); transform: translateY(-2px); }
.panel-header { background: #0c0f20; border-bottom: 1px solid var(--border); padding: 0.6rem 1rem; display: flex; align-items: center; gap: 0.75rem; }
.panel-dots { display: flex; gap: 5px; }
.panel-dots span { width: 9px; height: 9px; border-radius: 50%; }
.panel-dots span:nth-child(1) { background: #ff5f56; }
.panel-dots span:nth-child(2) { background: #ffbd2e; }
.panel-dots span:nth-child(3) { background: #27c93f; }
.panel-filename { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--dim); }
.code-panel pre { padding: 1.25rem; overflow-x: auto; }
.code-panel code { font-family: 'Fira Code', monospace; font-size: 0.8rem; line-height: 1.6; white-space: pre; }
.kw { color: #c792ea; } .fn { color: #82aaff; } .va { color: #addb67; } .st { color: #ecc48d; } .num { color: #f78c6c; }
.output-file-list { text-align: center; }
.file-list-label { display: block; font-size: 0.78rem; color: var(--dim); margin-bottom: 0.75rem; }
.file-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; justify-content: center; }
.chip { font-family: 'Fira Code', monospace; font-size: 0.7rem; padding: 0.3rem 0.65rem; border-radius: 4px; background: rgba(59,130,246,0.07); border: 1px solid rgba(59,130,246,0.18); color: #82aaff; }
.new-chip { background: rgba(255,107,53,0.07); border-color: rgba(255,107,53,0.25); color: var(--orange); }

/* DEMO / TERMINAL */
.demo-section { background: rgba(0,0,0,0.45); }
.terminal-wrap { max-width: 860px; margin: 0 auto 3rem; background: #020614; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,107,53,0.07); }
.term-header { background: #0a0d1e; border-bottom: 1px solid var(--border); padding: 0.65rem 1rem; display: flex; align-items: center; gap: 1rem; }
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; }
.term-dots span:nth-child(1) { background: #ff5f56; }
.term-dots span:nth-child(2) { background: #ffbd2e; }
.term-dots span:nth-child(3) { background: #27c93f; }
.term-title { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: #4a5568; }
.term-badge { margin-left: auto; font-size: 0.6rem; font-weight: 700; letter-spacing: 1.5px; color: var(--green); border: 1px solid rgba(34,197,94,0.3); border-radius: 3px; padding: 0.15rem 0.4rem; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.term-body { padding: 1.25rem 1.5rem; font-family: 'Fira Code', monospace; font-size: 0.82rem; line-height: 1.55; min-height: 320px; }
.tline { margin-bottom: 0.3rem; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; }
.tline.show { opacity: 1; transform: none; }
.t-prompt { color: var(--blue); } .t-dim { color: #4a5568; } .t-val { color: var(--cyan); }
.t-ok { color: var(--green); } .t-hl { color: var(--orange); font-weight: 600; } .t-num { color: var(--pink); }
.cmd-grid { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 2px; }
.cmd-row { display: flex; align-items: baseline; gap: 1.5rem; padding: 0.8rem 1rem; border-radius: 6px; background: var(--glass); border: 1px solid var(--border); transition: background 0.2s, border-color 0.2s; }
.cmd-row:hover { background: rgba(255,107,53,0.04); border-color: rgba(255,107,53,0.14); }
.cmd-row code { font-family: 'Fira Code', monospace; font-size: 0.78rem; color: var(--orange); min-width: 330px; flex-shrink: 0; }
.cmd-row span { font-size: 0.82rem; color: var(--dim); }
@media (max-width: 700px) { .cmd-row { flex-direction: column; gap: 0.25rem; } .cmd-row code { min-width: auto; } }

/* MCP */
.mcp-section { padding: 4rem 0 6rem; }
.mcp-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; background: linear-gradient(135deg, rgba(155,77,202,0.06), rgba(6,182,212,0.04)); border: 1px solid rgba(155,77,202,0.14); border-radius: 16px; padding: 3rem; position: relative; overflow: hidden; }
.mcp-card::before { content: ''; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(155,77,202,0.07), transparent 70%); pointer-events: none; }
@media (max-width: 800px) { .mcp-card { grid-template-columns: 1fr; } }
.mcp-glyph { font-size: 2.5rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem; display: block; }
.mcp-left h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.mcp-left p { font-size: 0.875rem; color: var(--dim); line-height: 1.65; margin-bottom: 1.25rem; }
.mcp-left a { color: var(--purple); text-decoration: none; }
.mcp-left a:hover { text-decoration: underline; }
.mcp-cmd { font-family: 'Fira Code', monospace; font-size: 0.85rem; display: inline-block; background: rgba(155,77,202,0.1); border: 1px solid rgba(155,77,202,0.2); padding: 0.45rem 0.9rem; border-radius: 6px; color: #c084fc; }
.mcp-tools { display: flex; flex-direction: column; gap: 0.5rem; }
.mcp-tool { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0.9rem; border-radius: 8px; border: 1px solid rgba(6,182,212,0.1); background: rgba(6,182,212,0.03); transition: background 0.2s, border-color 0.2s; }
.mcp-tool:hover { background: rgba(6,182,212,0.07); border-color: rgba(6,182,212,0.2); }
.tool-name { font-family: 'Fira Code', monospace; font-size: 0.78rem; color: var(--cyan); min-width: 90px; }
.tool-desc { font-size: 0.8rem; color: var(--dim); }

/* CTA */
.cta-section { text-align: center; background: linear-gradient(180deg, transparent 0%, rgba(255,107,53,0.03) 50%, transparent 100%); }
.cta-inner h2 { font-family: 'Outfit', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.cta-inner p { color: var(--dim); font-size: 1rem; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 1.5rem; align-items: center; justify-content: center; }

/* FOOTER */
footer { padding: 2.5rem 0; border-top: 1px solid var(--border); text-align: center; }
.footer-inner p { font-size: 0.82rem; color: var(--dim); }
footer a { color: var(--orange); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* REVEAL ANIMATIONS */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-up.in-view { opacity: 1; transform: none; }
.reveal-card { opacity: 0; transform: translateY(24px) scale(0.98); transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1); }
.reveal-card.in-view { opacity: 1; transform: none; }

/* FOCUS VISIBLE — keyboard users need visible outlines */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .hero-ctas, .cta-btns { flex-direction: column; gap: 1rem; }
  .mcp-card { padding: 1.75rem; }
  body { cursor: auto; }
  .cursor, .cursor-trail { display: none; }
}
