/* ===== VoxPipe — Luxury-Utilitarian ===== */

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

:root {
  --bg: #08080a;
  --surface: #101013;
  --surface-hover: #16161a;
  --border: #1f1f25;
  --border-light: #28282f;
  --text: #eae7e1;
  --text-2: #b0b0b8;
  --text-3: #55555f;
  --accent: #d9a83e;
  --accent-hover: #e4b854;
  --accent-dim: rgba(217, 168, 62, 0.10);
  --accent-glow: rgba(217, 168, 62, 0.06);
  --green: #4dd99a;

  --font-heading: 'Satoshi', -apple-system, sans-serif;
  --font-body: 'General Sans', -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  --max-w: 980px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ===== Staggered Reveal ===== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.7s var(--ease) both;
}

.d1 { animation-delay: 0s; }
.d2 { animation-delay: 0.08s; }
.d3 { animation-delay: 0.16s; }
.d4 { animation-delay: 0.24s; }
.d5 { animation-delay: 0.32s; }

/* ===== Layout ===== */

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

/* ===== Hero ===== */

.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(
    ellipse at center,
    var(--accent-glow) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 420px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== Waveform ===== */

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.waveform-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waveform-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.waveform-wrap::after {
  content: "";
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 140px;
  position: relative;
  z-index: 1;
}

.waveform-bar {
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  animation: pulse var(--speed, 1.6s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0.5;
}

@keyframes pulse {
  0%, 100% {
    height: var(--h-min, 10px);
    opacity: 0.25;
  }
  50% {
    height: var(--h-max, 60px);
    opacity: 0.7;
  }
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #08080a;
  box-shadow: 0 0 24px rgba(217, 168, 62, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #08080a;
  box-shadow: 0 0 36px rgba(217, 168, 62, 0.3);
}

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

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface);
}

/* ===== Section Divider ===== */

.section-divide {
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-light) 20%,
    var(--border-light) 80%,
    transparent
  );
}

/* ===== Features ===== */

.features {
  padding: 100px 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.features h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 56px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px;
  transition: background 0.25s;
}

.feature-card:hover {
  background: var(--surface-hover);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== How It Works ===== */

.how-it-works {
  padding: 100px 0;
}

.how-it-works h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

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

.step-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--border-light);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Pricing ===== */

.pricing {
  padding: 100px 0;
}

.pricing h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 48px;
}

.pricing-card {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.price {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.price-note {
  color: var(--text-2);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.trial-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(77, 217, 154, 0.08);
  border: 1px solid rgba(77, 217, 154, 0.18);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.pricing-list {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
}

.pricing-list li {
  padding: 12px 0;
  color: var(--text-2);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-list li:last-child {
  border-bottom: none;
}

.pricing-list li svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  flex-shrink: 0;
}

/* ===== Footer ===== */

footer {
  margin-top: auto;
  padding: 48px 0;
}

footer::before {
  content: "";
  display: block;
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto 48px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
}

.footer-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-3);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-2);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--text);
}

.footer-sep {
  color: var(--border-light);
}

.footer-content nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-content a {
  color: var(--text-3);
  transition: color 0.15s;
}

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

/* ===== Page Content (privacy, success) ===== */

.page-content {
  padding: 80px 0;
  max-width: 640px;
  margin: 0 auto;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.page-content .subtitle {
  color: var(--text-2);
  margin-bottom: 40px;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}

.page-content p {
  color: var(--text-2);
  margin-bottom: 16px;
}

.page-content ul {
  color: var(--text-2);
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
}

/* ===== Success Page ===== */

.success {
  text-align: center;
  padding: 120px 0;
}

.success .checkmark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(77, 217, 154, 0.08);
  border: 2px solid var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.success .checkmark svg {
  width: 32px;
  height: 32px;
  stroke: var(--green);
}

.success h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.success p {
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 70px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero .tagline {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row {
    justify-content: center;
  }

  .waveform-wrap {
    max-width: 220px;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ===== Blog Listing ===== */

.blog-listing {
  padding: 80px 0;
  max-width: 640px;
  margin: 0 auto;
}

.blog-listing h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.post-list {
  display: flex;
  flex-direction: column;
}

.post-entry {
  display: block;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.2s;
}

.post-entry:first-child {
  border-top: 1px solid var(--border);
}

.post-entry:hover {
  background: var(--surface);
}

.post-entry time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.post-entry h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}

.post-entry p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Blog Post ===== */

.blog-post time {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

.back-link:hover {
  color: var(--accent);
}
