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

:root {
  /* Deep Dark */
  --bg-base:      #000000;
  --bg-surface:   #09090b;
  --bg-card:      #111113;
  --bg-card2:     #161619;
  --bg-input:     #050505;
  --bg-hover:     #1d1d20;

  /* Rose-Red Accent */
  --red:          #e11d48;
  --red-bright:   #f43f5e;
  --red-dim:      #be123c;
  --red-glow:     rgba(244, 63, 94, 0.3);
  --red-glow-sm:  rgba(244, 63, 94, 0.12);
  --red-glow-xs:  rgba(244, 63, 94, 0.06);

  /* Text */
  --text-primary:   #ececec;
  --text-secondary: #888888;
  --text-muted:     #444444;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-med:    rgba(255, 255, 255, 0.12);
  --border-red:    rgba(244, 63, 94, 0.3);
  --border-red-hi: rgba(244, 63, 94, 0.55);

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Typography */
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Motion */
  --t: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(to right, rgba(244, 63, 94, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 63, 94, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 40%, transparent 100%);
}

#cursor-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow-xs) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo i {
  color: var(--red-bright);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #fff, #a1a1aa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Code block */
.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 14px;
  color: #a1a1aa;
  text-align: left;
  overflow-x: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  margin-bottom: 24px;
}

.code-block .keyword { color: var(--red-bright); }
.code-block .string { color: #a3e635; }
.code-block .tag { color: #60a5fa; }
.code-block .attr { color: #c084fc; }

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--r-xs);
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t);
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-btn:hover {
  background: var(--bg-card2);
  color: var(--text-primary);
  border-color: var(--border-med);
}

.copy-btn i {
  font-size: 14px;
}

/* Sections */
.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title::before {
  content: '';
  display: block;
  width: 4px;
  height: 24px;
  background: var(--red-bright);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--red-glow);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Features Table */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.feature-table th, .feature-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.feature-table th {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255,255,255,0.02);
}

.feature-table th:first-child {
  border-top-left-radius: var(--r-sm);
}
.feature-table th:last-child {
  border-top-right-radius: var(--r-sm);
}

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

.feature-table td {
  color: var(--text-secondary);
}

.feature-table td:first-child {
  color: var(--text-primary);
}

.check { color: var(--success); }
.cross { color: var(--text-muted); }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
}

.step-num {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 10px var(--red-glow);
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 12px;
  margin-top: 8px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 80px;
}

footer a {
  color: var(--red-bright);
  text-decoration: none;
  transition: color var(--t);
}

footer a:hover {
  color: #fff;
}

/* Demo Section */
.demo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  background: var(--bg-surface);
  border: 1px dashed var(--border-med);
  border-radius: var(--r-lg);
  margin-bottom: 40px;
}

/* Base button styles to show what people can slot in */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 14px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fb7185, var(--red-bright));
  box-shadow: 0 6px 20px var(--red-glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--red-glow);
}
