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

:root {
  --bg: #0a0a0e;
  --surface: #13131a;
  --surface2: #1c1c26;
  --border: rgba(255,255,255,0.07);
  --accent: #4c9eff;
  --accent-dim: rgba(76,158,255,0.15);
  --green: #4ade80;
  --text: #e8e8f0;
  --text-muted: #7878a0;
  --radius: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,14,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

nav a:hover { color: var(--text); }

.btn-nav {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text) !important;
  padding: 0.38rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.btn-nav:hover { border-color: var(--accent); }

/* HERO */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.version-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.25);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.tagline {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-muted);
  padding: 0.7rem 1.6rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* DECK MOCKUP */
.hero-art { display: flex; justify-content: center; }

.deck-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  width: 290px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.7);
}

.deck-screen {
  background: #070710;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.8rem;
}

.browser-ui { font-size: 0.78rem; }

.browser-header {
  background: var(--surface2);
  padding: 0.5rem 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
}

.browser-path { font-family: monospace; }

.browser-list { padding: 0.4rem 0; }

.browser-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.8rem;
  color: var(--text-muted);
}

.browser-item.folder { color: var(--accent); }

.browser-item.selected {
  background: var(--accent-dim);
  color: var(--text);
}

.item-icon { font-size: 0.85rem; }

.resume-tag {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--green);
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.2);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

.deck-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0 0.2rem;
}

.deck-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 700;
}

.btn-a { background: rgba(74,222,128,0.2); color: var(--green); }
.btn-b { background: rgba(255,100,100,0.2); color: #f87171; }

/* FEATURES */
.features {
  background: var(--surface);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.feature-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(76,158,255,0.35);
  transform: translateY(-2px);
}

.feature-icon { font-size: 1.6rem; margin-bottom: 0.7rem; }

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-card code {
  font-family: monospace;
  font-size: 0.85em;
  color: var(--accent);
}

/* CONTROLS */
.controls-section {
  padding: 5rem 2rem;
}

.controls-inner {
  max-width: 900px;
  margin: 0 auto;
}

.controls-section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2.5rem;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.controls-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.controls-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.controls-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.key {
  display: inline-block;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  white-space: nowrap;
  font-family: monospace;
}

.controls-note {
  font-size: 0.83rem;
  color: var(--text-muted);
}

.controls-note a { color: var(--accent); text-decoration: none; }
.controls-note a:hover { text-decoration: underline; }

/* INSTALL */
.install-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}

.install-inner {
  max-width: 680px;
  margin: 0 auto;
}

.install-section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.6rem;
}

.install-section > .install-inner > p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(76,158,255,0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.step pre {
  margin-top: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  overflow-x: auto;
}

.step pre code {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.step code {
  font-family: monospace;
  font-size: 0.85em;
  color: var(--accent);
}

/* FOOTER */
footer {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-copy a { color: var(--text-muted); text-decoration: none; }
.footer-copy a:hover { color: var(--text); }

/* RESPONSIVE */
@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
    padding-top: 3rem;
  }
  .tagline, .hero-ctas { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-art { order: -1; }
}
