/* ── Tokens ── */
:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --border: #1a1a1a;
  --border-light: #262626;
  --text: #ededed;
  --text-secondary: #888888;
  --text-tertiary: #555555;
  --accent: #ffffff;
  --green: #22c55e;
  --amber: #f59e0b;
  --purple: #a78bfa;
  --logo-orange: #f87840;
  --logo-magenta: #f858e8;
  --logo-violet: #7058f8;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
  --max-w: 1100px;
  --transition: 150ms ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand { display: flex; align-items: center; }

.nav-logo {
  height: 49px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-secondary);
}

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

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.btn-nav:hover {
  background: var(--bg-card);
  border-color: var(--text-tertiary);
}

.nav-social {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-secondary);
}

.nav-social:hover {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover { opacity: 0.9; }

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
  background: var(--bg-card);
}

/* ── Hero ── */
.hero {
  position: relative;
  padding: 160px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1600px, 180vw);
  height: 760px;
  background:
    radial-gradient(ellipse at center, rgba(248, 88, 232, 0.18) 0%, rgba(248, 88, 232, 0.05) 42%, transparent 78%),
    radial-gradient(ellipse at 18% 35%, rgba(248, 120, 64, 0.15) 0%, transparent 58%),
    radial-gradient(ellipse at 82% 32%, rgba(112, 88, 248, 0.14) 0%, transparent 58%);
  filter: blur(28px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  background: linear-gradient(98deg, var(--logo-orange) 0%, var(--logo-magenta) 52%, var(--logo-violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-install {
  max-width: 640px;
  margin: 10px auto 40px;
  padding: 14px 0 16px;
  text-align: center;
}

.hero-install h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-install > p {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 auto 16px;
}

.hero-install .install-oneliner {
  margin: 0 auto;
}


/* ── Code block ── */
.hero-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.code-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.hero-code pre {
  padding: 20px;
  margin: 0;
  overflow-x: auto;
}

.hero-code code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.c-gray { color: var(--text-tertiary); }
.c-green { color: var(--green); }
.c-amber { color: var(--amber); }
.c-purple { color: var(--purple); }
.c-cyan { color: #22d3ee; }

/* ── Providers ── */
.providers {
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.providers-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.provider-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.provider-grid span {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  transition: all var(--transition);
}

.provider-grid span:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
}

/* ── Section headers ── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ── Features ── */
.features {
  padding: 100px 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--transition);
}

.feature-card:hover {
  border-color: var(--text-tertiary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Dashboard Section ── */
.dashboard-section {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dashboard-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  transition: border-color var(--transition);
}

.dashboard-card:hover {
  border-color: var(--text-tertiary);
}

.dashboard-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--purple);
  margin-bottom: 14px;
}

.dashboard-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.dashboard-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ── Security ── */
.security {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.security-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--transition);
}

.security-card:hover {
  border-color: var(--text-tertiary);
}

.security-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--green);
  margin-bottom: 16px;
}

.security-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.security-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.security-setup {
  max-width: 420px;
  margin: 32px auto 0;
  text-align: center;
}

/* ── Background Tasks ── */
.bg-tasks {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.bg-tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.bg-task-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  transition: border-color var(--transition);
}

.bg-task-card:hover {
  border-color: var(--text-tertiary);
}

.bg-task-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.bg-task-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.bg-task-card code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

.bg-task-code {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 16px;
  margin-top: 12px;
}

.bg-task-code code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
}

/* ── Install ── */
.install {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.step-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 6px;
}

.step-code code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.step-alt {
  font-size: 12px;
  color: var(--text-tertiary);
}

.step-alt code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Install one-liner ── */
.install-oneliner {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
}

.step-code-hero {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 16px 24px;
  margin-bottom: 10px;
}

.step-code-hero code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 35px;
  width: auto;
  opacity: 0.6;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links a:hover { color: var(--text-secondary); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .bg-tasks-grid {
    grid-template-columns: 1fr;
  }

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

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

  .hero { padding: 120px 20px 60px; }
  .hero-install { margin: 8px auto 30px; padding: 10px 0 12px; }
  .hero-install > p { font-size: 14px; }

  .nav-links a:not(.btn-nav) { display: none; }

  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .provider-grid span { font-size: 12px; padding: 6px 14px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
