:root {
  --bg: #05040a;
  --bg-soft: #0d0b16;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #a1a1aa;
  --purple: #a855f7;
  --purple-strong: #7c3aed;
  --cyan: #22d3ee;
  --border: rgba(255, 255, 255, 0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(34, 211, 238, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
}

h2.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

a:hover {
  color: var(--purple);
}

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 4, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Hero Section */
.hero {
  padding: 4.5rem 0 4rem;
  text-align: center;
}

.hero-brand-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 18px;
  filter: drop-shadow(0 14px 24px rgba(37, 99, 235, 0.18));
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, #f8fafc, #a1a1aa);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.product-hunt-badge {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

.product-hunt-badge img {
  display: block;
  height: 54px;
  width: 250px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--purple-strong);
  color: white;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background-color: var(--purple);
  color: white;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background-color: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: var(--panel-strong);
}

/* Terminal Mockup */
.preview-section {
  padding: 2rem 0 5rem;
}

.terminal-mockup {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(168, 85, 247, 0.15);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
}

.traffic-lights {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 0.8rem;
  transform: translateX(-20px); /* Offset traffic lights to true center */
}

.terminal-body {
  padding: 1.5rem;
  color: var(--text);
  line-height: 1.7;
}

.terminal-body .highlight { color: var(--cyan); }
.terminal-body .highlight-alt { color: var(--purple); }
.terminal-body .prompt { color: var(--purple); margin-right: 0.5rem; }
.terminal-body .dim { color: var(--muted); }
.terminal-body .cursor { animation: blink 1s step-end infinite; }

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

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.3);
}

.card h3 {
  color: var(--text);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */
.features-section {
  padding: 4rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* How It Works */
.how-it-works-section {
  padding: 4rem 0;
  background: rgba(0,0,0,0.2);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.step-number {
  font-family: var(--font-mono);
  color: var(--purple);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* What SuperTerminal is Not */
.not-section {
  padding: 4rem 0;
}

.warning-card {
  border-color: rgba(255, 95, 86, 0.2);
}

.not-list {
  list-style: none;
  padding-left: 0;
}

.not-list li {
  color: var(--muted);
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.not-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #ff5f56;
}

/* Security & Privacy */
.privacy-section {
  padding: 4rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-lead {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--cyan);
}

.privacy-list {
  list-style: none;
  padding-left: 0;
}

.privacy-list li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
}

.privacy-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green, #27c93f);
}

/* Download CTA */
.download-section {
  padding: 6rem 0;
  text-align: center;
}

.download-section p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.download-section .disclaimer {
  font-size: 0.85rem;
  margin-top: 2rem;
  opacity: 0.7;
}

/* Footer */
footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-mono);
  color: var(--purple);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .terminal-title {
    transform: none; /* Reset for mobile */
  }
}
