/* XCoda marketing site — monochrome audio surfaces */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --line: #2e2e2e;
  --line-strong: #3d3d3d;
  --ink: #f5f5f5;
  --muted: #8a8a8a;
  --white: #ffffff;
  --black: #000000;
  --max: 1120px;
  --font: "Segoe UI Variable", "Segoe UI", Roboto, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --radius-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.wavy {
  border-radius: 42% 58% 55% 45% / 55% 42% 58% 45%;
  border: 1px solid var(--line);
  animation: morph 14s ease-in-out infinite;
}
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 55% 45% / 55% 42% 58% 45%; }
  50% { border-radius: 55% 45% 48% 52% / 42% 58% 44% 56%; }
}
@media (prefers-reduced-motion: reduce) {
  .wavy { animation: none; border-radius: 24px; }
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: grid; place-items: center; font-size: 14px; font-weight: 800;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  flex: 0 0 auto;
}
.brand-text { font-size: 16px; letter-spacing: -0.02em; }
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a { font-size: 13px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--white); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 650; border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
.nav a:focus-visible,
.brand:focus-visible,
.faq summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
.btn-white { background: var(--white); color: var(--black); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-lg { padding: 12px 20px; font-size: 14px; }

.hero {
  position: relative;
  padding: 56px 0 40px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; inset: -20% auto auto 40%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  pointer-events: none; filter: blur(10px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px;
}
.brand-hero {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 750; letter-spacing: -0.04em; line-height: 1;
  color: var(--white); margin-bottom: 14px;
}
.hero-lead {
  font-size: 18px; color: var(--muted); max-width: 34ch; margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-panel {
  background: var(--surface);
  padding: 28px 26px;
}
.hero-panel h2 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.price-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.price-row strong { font-size: 20px; letter-spacing: -0.02em; }
.price-row small { font-size: 12px; color: var(--muted); font-weight: 500; }
.price-note { font-size: 12px; color: var(--muted); line-height: 1.5; }

.section { padding: 64px 0; }
.section-head { max-width: 560px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.section-head p { color: var(--muted); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.feature {
  background: var(--surface); padding: 22px 20px;
}
.feature h3 { font-size: 15px; margin-bottom: 8px; }
.feature p { font-size: 13px; color: var(--muted); }

.table-wrap { background: var(--surface); padding: 8px; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
td:nth-child(2), td:nth-child(3), th:nth-child(2), th:nth-child(3) { text-align: center; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.plan {
  background: var(--surface); padding: 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.plan-featured { background: var(--surface-2); border-color: var(--white); }
.plan-badge {
  align-self: flex-start; font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius-pill); background: var(--white); color: var(--black); font-weight: 700;
}
.plan h3 { font-size: 16px; }
.plan-price { font-size: 28px; font-weight: 750; letter-spacing: -0.03em; }
.plan-price span { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-note { font-size: 12px; color: var(--muted); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; flex: 1; }
.plan li { font-size: 13px; color: var(--ink); padding-left: 14px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }

.steps { list-style: none; display: grid; gap: 12px; counter-reset: step; }
.steps li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 16px 18px 16px 56px; position: relative; color: var(--muted); font-size: 14px;
}
.steps li strong { color: var(--white); display: block; margin-bottom: 4px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 16px; top: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); color: var(--black);
  display: grid; place-items: center; font-weight: 750; font-size: 13px;
}

.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 14px 16px; margin-bottom: 8px;
}
.faq summary { cursor: pointer; font-weight: 650; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.faq a { text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 40px 0 28px; margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
.footer-grid h4 { font-size: 12px; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.footer-grid a { display: block; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.footer-legal { font-size: 12px; color: var(--muted); margin-top: 10px; max-width: 36ch; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px;
}

.legal-page { padding: 48px 0 64px; max-width: 720px; }
.legal-page h1 { font-size: 2rem; margin-bottom: 8px; letter-spacing: -0.03em; }
.legal-page .meta { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal-page h2 { font-size: 1.1rem; margin: 24px 0 8px; }
.legal-page p, .legal-page li { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.legal-page ul { padding-left: 18px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .feature-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero-grid, .feature-grid, .pricing-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
