:root {
  --bg-black: #000000;
  --burgundy-deep: #1a0508;
  --burgundy-mid: #3d0d15;
  --burgundy-rich: #6b1224;
  --red-accent: #c41e3a;
  --red-bright: #e63946;
  --panel-bg: rgba(18, 4, 8, 0.82);
  --border-color: rgba(196, 30, 58, 0.22);
  --text-primary: #f8f0f2;
  --text-secondary: #b89aa3;
  --success-color: #3ecf6e;
  --gradient-bg: linear-gradient(165deg, #000000 0%, #0d0204 30%, #1a0508 55%, #3b0d15 85%, #4a0e18 100%);
  --gradient-accent: linear-gradient(135deg, #6b1224 0%, #c41e3a 50%, #8b1538 100%);
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --container: min(1120px, calc(100% - 48px));
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: #4a0e18;
  line-height: 1.6;
  min-height: 100vh;
}

.page-bg {
  position: fixed;
  inset: 0;
  background: var(--gradient-bg);
  z-index: -1;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(196, 30, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(107, 18, 36, 0.25), transparent 50%);
  pointer-events: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

a {
  color: var(--red-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  padding: 0.1em 0.45em;
  border-radius: 6px;
  color: #ffd4dc;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.55);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(196, 30, 58, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 28px rgba(196, 30, 58, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-ghost:hover {
  border-color: rgba(230, 57, 70, 0.5);
  background: rgba(196, 30, 58, 0.08);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  padding: 14px 20px;
}

/* Hero */
.hero {
  padding: 72px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--red-bright);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
}

.lead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 52ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Mockup */
.mockup-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.mockup-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.875rem;
}

.mockup-row .label {
  color: var(--text-secondary);
  min-width: 48px;
}

.mockup-row .value {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-live {
  background: rgba(230, 57, 70, 0.2);
  color: #ff8a98;
  border: 1px solid rgba(230, 57, 70, 0.4);
}

.mockup-progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  margin: 18px 0 14px;
  overflow: hidden;
}

.mockup-progress-bar {
  width: 72%;
  height: 100%;
  background: var(--gradient-accent);
  border-radius: inherit;
}

.mockup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.mockup-metrics div {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.mockup-metrics strong {
  display: block;
  font-size: 1.1rem;
}

.mockup-metrics span {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.mockup-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--gradient-accent);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  opacity: 0.85;
}

/* Features */
.features {
  padding: 0 0 88px;
}

.features h2,
.install h2,
.usage h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 32px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(230, 57, 70, 0.35);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* Install */
.install {
  padding: 0 0 88px;
}

.install-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.section-lead {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 60ch;
}

.steps {
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  margin-bottom: 24px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gradient-accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.steps span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.install-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}

.tip-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.tip-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.tip-card ul {
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.925rem;
}

.tip-card li + li {
  margin-top: 6px;
}

.tip-warn {
  border-color: rgba(230, 180, 60, 0.35);
  background: rgba(40, 30, 5, 0.35);
}

.tip-warn p {
  color: var(--text-secondary);
  font-size: 0.925rem;
}

/* Usage */
.usage {
  padding: 0 0 96px;
}

.usage-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.usage-step {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(196, 30, 58, 0.25);
  color: var(--red-bright);
  font-weight: 700;
  margin-bottom: 12px;
}

.usage-step p {
  font-size: 0.925rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 28px 0 40px;
  background: rgba(0, 0, 0, 0.35);
}

.footer-inner {
  text-align: center;
}

.footer-meta {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .usage-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .install-aside {
    position: static;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 600px) {
  .feature-grid,
  .usage-steps {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .brand span {
    font-size: 0.8rem;
  }
}
