/* =========================================================
   Altacore Audio — index.css
   Landing page styles. Bright, clean, premium.
   ========================================================= */

/* ---------- Header ---------- */

header {
  padding: 20px 0;
  position: relative;
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

nav.links {
  display: flex;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

nav.links a {
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
nav.links a:hover { color: var(--ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
}

@media (max-width: 780px) {
  nav.links { display: none; }
  .nav-actions .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin-top: 20px;
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* Waveform visual */
.wave-panel {
  background: var(--bg-raised);
  border-radius: var(--radius-lg);
  padding: 28px 28px 22px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.wave-panel-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-family: 'Space Grotesk', monospace;
}

.wave-svg { width: 100%; height: 120px; display: block; }

.wave-noisy { stroke: var(--noise); }
.wave-clean {
  stroke: var(--accent);
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-clean 3.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .wave-clean { animation: none; stroke-dashoffset: 0; }
}

@keyframes draw-clean {
  0%   { stroke-dashoffset: 900; opacity: 0; }
  14%  { opacity: 1; }
  55%  { stroke-dashoffset: 0; opacity: 1; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

.wave-caption {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-faint);
}

/* ---------- How It Works ---------- */

.how-section {
  padding: 96px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 48px;
  max-width: 56ch;
}

.section-head h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}

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

@media (max-width: 780px) {
  .steps-grid { grid-template-columns: 1fr; }
}

.step {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}

.step-icon svg { width: 22px; height: 22px; }

.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.55; }

/* ---------- Features ---------- */

.features-section {
  padding: 96px 0;
}

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

@media (max-width: 780px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.55; }

/* ---------- Before / After ---------- */

.compare-section {
  padding: 96px 0;
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 700px) {
  .compare-grid { grid-template-columns: 1fr; gap: 20px; }
  .compare-arrow { transform: rotate(90deg); }
}

.compare-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.compare-card-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.compare-card.clean .compare-card-label { color: var(--accent); }

.compare-wave {
  height: 80px;
  background: var(--bg-raised);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.compare-wave svg { width: 100%; height: 60px; }

.compare-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
}

.compare-arrow svg { width: 24px; height: 24px; }

/* ---------- CTA Section ---------- */

.cta-section {
  padding: 96px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: -0.02em;
}

.cta-section p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink-faint);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { text-decoration: none; transition: color 0.15s var(--ease); }
.footer-links a:hover { color: var(--ink-soft); }
