:root {
  --bg: #0e1220;
  --bg-alt: #121628;
  --card: #171c33;
  --card-border: #2a2f4d;
  --text: #eef0fb;
  --text-dim: #a6acc9;
  --accent: #f2b872;
  --accent-dim: #c9944f;
  --moon: #cdd3f5;
  --radius: 16px;
  --max-width: 1100px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.75em;
}

.center { text-align: center; }
.section-sub.center { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(14, 18, 32, 0.85);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-mark { color: var(--accent); flex-shrink: 0; }

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.15s ease;
}

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

@media (max-width: 760px) {
  .main-nav { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #201304;
}

.btn-primary:hover { transform: translateY(-1px); background: #f7c586; }

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

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small {
  padding: 9px 18px;
  font-size: 0.85rem;
  border: 1px solid var(--card-border);
}

.btn-small:hover { border-color: var(--accent); color: var(--accent); }

.btn-large { padding: 16px 34px; font-size: 1.02rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  text-align: center;
}

.hero-inner { position: relative; z-index: 1; max-width: 720px; }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(closest-side, rgba(242, 184, 114, 0.16), transparent 70%);
  pointer-events: none;
}

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.4em;
}

.section-sub { font-size: 1.02rem; margin-bottom: 3rem; }

/* Player card */
.player-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px;
}

.visualizer-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0e1c;
  margin-bottom: 24px;
}

#visualizer {
  display: block;
  width: 100%;
  height: 140px;
}

.visualizer-label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(242, 184, 114, 0.15);
  color: var(--accent);
  transition: background 0.2s ease, color 0.2s ease;
}

.visualizer-label.is-after {
  background: rgba(125, 211, 192, 0.15);
  color: #7dd3c0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}

.toggle-side {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s ease;
  min-width: 48px;
}

.toggle-side.is-active { color: var(--text); }

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: #0b0e1c;
  cursor: pointer;
  padding: 0;
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease, background 0.2s ease;
}

.toggle-switch[aria-checked="true"] .toggle-knob {
  transform: translateX(26px);
  background: #7dd3c0;
}

.transport-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #201304;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.play-btn:hover { background: #f7c586; }

.time {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--text-dim);
  width: 38px;
}

.time#time-duration { text-align: right; }

.seek {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--card-border);
  outline: none;
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

.player-note {
  text-align: center;
  font-size: 0.82rem;
  margin: 22px 0 0;
  color: var(--text-dim);
}

.player-note code {
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* Service cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
}

.service-card h3 {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.5em;
}

.service-card p { font-size: 0.93rem; margin: 0; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

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

.step-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 0.4em;
}

.step h3 {
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 0.4em;
}

.step p { font-size: 0.9rem; margin: 0; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  display: block;
}

.about-copy .eyebrow { margin-bottom: 0.6em; }

.about-copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  color: var(--text);
}

.about-copy p:not(.eyebrow) {
  font-size: 1rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.testimonial {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}

.testimonial p {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  color: var(--text);
  font-style: italic;
}

.testimonial cite {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-style: normal;
}

/* Contact */
.contact-inner { max-width: 560px; text-align: center; }
.contact-note { font-size: 0.8rem; margin-top: 12px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--card-border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

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