/* ═══ Design Tokens ═══ */
:root {
  --surface-0: #0a0a0f;
  --surface-1: #111118;
  --surface-2: #1a1a24;
  --surface-3: #242430;
  --amber: #f59e0b;
  --amber-dim: #92600a;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --green: #22c55e;
  --red: #ef4444;
  --text-primary: #e8e5e0;
  --text-secondary: #8a8690;
  --text-tertiary: #5a5660;
  --border: #2a2a36;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
}

/* ═══ Reset & Base ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--amber); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; display: block; }

/* ═══ Layout ═══ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 96px 0;
}

/* ═══ Typography ═══ */
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* ═══ Nav ═══ */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); opacity: 1; }

/* ═══ Hero ═══ */
.hero {
  min-height: calc(100vh - 57px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.015) 2px,
    rgba(0, 0, 0, 0.015) 4px
  );
  pointer-events: none;
}
.hero-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%);
  height: 90%;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}
.hero-logo .ripple-1 { animation: ripple-pulse 4s ease-in-out infinite; }
.hero-logo .ripple-2 { animation: ripple-pulse 4s ease-in-out 0.8s infinite; }
.hero-logo .ripple-3 { animation: ripple-pulse 4s ease-in-out 1.6s infinite; }
@keyframes ripple-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.08; transform: scale(1.06); }
}
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}
.hero h1 {
  margin-bottom: 20px;
}
.hero .subtitle {
  margin-bottom: 40px;
}
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--amber);
  color: var(--surface-0);
  box-shadow: 0 0 24px var(--amber-glow), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  opacity: 1;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.25), 0 4px 12px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  opacity: 1;
  border-color: var(--text-tertiary);
  background: var(--surface-1);
}
.btn svg { width: 16px; height: 16px; }

/* ═══ Terminal Window ═══ */
.terminal {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
}
.terminal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: var(--red); opacity: 0.6; }
.terminal-dots span:nth-child(2) { background: var(--amber); opacity: 0.6; }
.terminal-dots span:nth-child(3) { background: var(--green); opacity: 0.6; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.terminal-body {
  padding: 20px;
  position: relative;
}
.terminal-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-body .prompt { color: var(--text-tertiary); }
.terminal-body .cmd { color: var(--amber); }
.terminal-body .flag { color: var(--text-secondary); }
.terminal-body .url { color: var(--text-primary); }
.terminal-body .pipe { color: var(--text-tertiary); }
.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.copy-btn:hover { color: var(--text-primary); border-color: var(--text-tertiary); }
.copy-btn.copied { color: var(--green); border-color: var(--green); }
.copy-btn svg { width: 14px; height: 14px; }
.install-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 16px;
  text-align: center;
}

/* ═══ How It Works ═══ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  flex-shrink: 0;
}
.step-content h3 { color: var(--text-primary); }
.step-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ Features Grid ═══ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 48px;
}
.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.2);
  box-shadow: 0 0 24px var(--amber-glow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--amber);
  margin-bottom: 14px;
  opacity: 0.85;
}
.feature-card h3 { color: var(--text-primary); margin-bottom: 8px; }
.feature-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ Open Source ═══ */
.oss {
  text-align: center;
}
.oss-icon {
  width: 48px;
  height: 48px;
  color: var(--amber);
  margin: 0 auto 20px;
  opacity: 0.7;
}
.oss .subtitle {
  margin: 0 auto 32px;
  text-align: center;
}
.oss-tech {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 24px;
}

/* ═══ Why Toque ═══ */
.why-section {
  text-align: center;
}
.why-body {
  max-width: 600px;
  margin: 32px auto 0;
}
.why-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.why-body p:last-child {
  color: var(--text-primary);
  font-style: italic;
}

/* ═══ Footer ═══ */
footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.footer-links a:hover { color: var(--text-primary); }
.footer-attr {
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  font-size: 11px;
  text-decoration: none;
  transition: color .2s;
}
.footer-logo:hover {
  color: var(--text-secondary);
}
.footer-logo svg {
  width: 60px;
  height: auto;
}

/* ═══ Animations ═══ */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ═══ Responsive ═══ */
@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { gap: 40px; }
}
@media (min-width: 1024px) {
  section { padding: 120px 0; }
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { flex-direction: column; text-align: center; align-items: center; }
}
