@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg: #0d0d0d;
  --bg-elevated: #161616;
  --bg-card: #1a1a1a;
  --bg-code: #0a0a0a;
  --text: #e8e4de;
  --text-muted: #8a8478;
  --text-dim: #5a5549;
  --gold: #FFCE5C;
  --gold-light: #FFD97A;
  --gold-dim: #D4A83A;
  --gold-subtle: rgba(255, 206, 92, 0.07);
  --gold-glow: rgba(255, 206, 92, 0.15);
  --border: #2a2723;
  --border-hover: #3d3830;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'DM Mono', 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

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

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Background grid pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 206, 92, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 206, 92, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

::selection {
  background: var(--gold);
  color: #0d0d0d;
}

/* === NAV === */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 2rem;
}

nav .logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

nav .logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

nav .logo-icon img {
  width: 100%;
  height: 100%;
}

nav .nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  align-items: center;
}

nav .nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

nav .nav-links a:hover {
  color: var(--text);
  background: var(--gold-subtle);
}

nav .nav-links .gh-link {
  color: var(--text-dim);
  border: 1px solid var(--border);
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

nav .nav-links .gh-link:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

nav .nav-links .gh-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* === SECTIONS === */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 2rem;
}

/* === HERO === */
.hero {
  padding-top: 9rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(255, 206, 92, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem 0.35rem 0.5rem;
  background: var(--gold-subtle);
  border: 1px solid rgba(255, 206, 92, 0.18);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
  animation: fadeDown 0.6s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: fadeDown 0.6s ease 0.1s both;
}

.hero h1 .gold {
  color: var(--gold);
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
  animation: fadeDown 0.6s ease 0.2s both;
}

.hero .cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.6s ease 0.3s both;
}

.hero .meta-row {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeDown 0.6s ease 0.4s both;
}

.hero .meta-row span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero .meta-row span::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--gold);
  color: #0d0d0d;
  box-shadow: 0 0 0 0 rgba(255, 206, 92, 0);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #0d0d0d;
  box-shadow: 0 0 32px rgba(255, 206, 92, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-card);
  color: var(--text);
  transform: translateY(-1px);
}

.btn svg {
  width: 14px;
  height: 14px;
}

/* Screenshot */
.screenshot-wrap {
  margin: 4rem auto 0;
  max-width: 960px;
  position: relative;
  animation: fadeDown 0.7s ease 0.5s both;
}

.screenshot-wrap::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(255, 206, 92, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.screenshot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 206, 92, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Divider */
.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 30%, var(--border) 70%, transparent 100%);
}

/* === SECTION HEADINGS === */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 12px;
  height: 1px;
  background: var(--gold-dim);
}

.section-heading {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.section-sub {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 1.02rem;
  margin-bottom: 3rem;
  max-width: 520px;
}

.section-center {
  text-align: center;
}

.section-center .section-label {
  justify-content: center;
}

.section-center .section-label::before {
  display: none;
}

.section-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.feature-card {
  background: var(--bg);
  padding: 1.75rem;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  background: var(--bg-elevated);
}

.feature-card:hover::after {
  opacity: 0.5;
}

.feature-card .feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-subtle);
  border: 1px solid rgba(255, 206, 92, 0.15);
  border-radius: var(--radius-sm);
  color: var(--gold);
  margin-bottom: 1.1rem;
  transition: all 0.3s;
}

.feature-card .feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card:hover .feature-icon {
  background: rgba(255, 206, 92, 0.12);
  border-color: rgba(255, 206, 92, 0.3);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

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

/* === INSTALL === */
.install-wrap {
  max-width: 720px;
}

.install-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}

.install-tabs label {
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
}

.install-tabs label:hover {
  color: var(--text);
}

.install-tabs input[type="radio"] {
  display: none;
}

.install-tabs input[type="radio"]:checked + label {
  background: var(--gold);
  color: #0d0d0d;
  font-weight: 500;
}

.install-block {
  display: none;
}

.install-block.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

.install-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Code blocks */
.code-block {
  position: relative;
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.code-block-dots {
  display: inline-flex;
  gap: 6px;
}

.code-block-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.code-block-dots span:first-child { background: #ff5f57; opacity: 0.6; }
.code-block-dots span:nth-child(2) { background: #febc2e; opacity: 0.6; }
.code-block-dots span:nth-child(3) { background: #28c840; opacity: 0.6; }

.code-block pre {
  background: transparent;
  border: none;
  margin: 0;
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  font-size: 0.83rem;
  line-height: 1.75;
  border-radius: 0;
}

.code-block pre code {
  padding-left: 0;
  display: block;
  font-family: var(--font-mono);
  color: var(--text);
}

.code-block pre code .c { color: var(--text-dim); font-style: italic; }
.code-block pre code .k { color: var(--gold); }
.code-block pre code .s { color: #b5cea8; }

code {
  font-family: var(--font-mono);
}

p > code, li > code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--gold);
}

/* === SHORTCUTS === */
.shortcuts-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
  gap: 1px;
}

.shortcuts-col {
  background: var(--bg);
}

.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
}

.shortcuts-table td {
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.shortcuts-table tr:last-child td {
  border-bottom: none;
}

.shortcuts-table td:first-child {
  white-space: nowrap;
  width: 50%;
}

.shortcuts-table td:last-child {
  color: var(--text-muted);
  font-weight: 300;
  text-align: right;
}

kbd {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  line-height: 1;
  display: inline-block;
  margin: 0 1px;
}

/* === MCP === */
.mcp-content {
  max-width: 720px;
}

.mcp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.mcp-features li {
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.mcp-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--gold-glow);
}

.mcp-content .connect-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* === CTA SECTION === */
.cta-section {
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255, 206, 92, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .cta {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}

footer p {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 300;
}

footer a {
  color: var(--text-dim);
  transition: color 0.2s;
}

footer a:hover {
  color: var(--gold);
}

/* === ANIMATIONS === */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mcp-features {
    grid-template-columns: 1fr;
  }

  .shortcuts-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  section {
    padding: 4rem 1.25rem;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  nav .nav-links {
    gap: 0;
  }

  nav .nav-links li:not(:last-child) {
    display: none;
  }

  nav .nav-links a {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  nav .nav-inner {
    padding: 0 1.25rem;
  }

  .hero .meta-row {
    gap: 1rem;
  }

  .install-tabs {
    width: 100%;
  }

  .install-tabs label {
    flex: 1;
    text-align: center;
    font-size: 0.78rem;
    padding: 0.5rem 0.5rem;
  }

  .shortcuts-table td {
    padding: 0.7rem 1rem;
  }

  .shortcuts-table td:first-child {
    width: auto;
  }
}
