:root {
  --ink: #111311;
  --paper: #f7f4ed;
  --muted: #676962;
  --line: rgba(17, 19, 17, 0.14);
  --teal: #1f8a83;
  --amber: #d7923b;
  --red: #b75345;
  --cream: #fffaf0;
  --shadow: 0 24px 80px rgba(17, 19, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 244, 237, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.loop-range,
.control-row {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  gap: 3px;
  width: 30px;
  height: 30px;
  padding: 7px 8px;
  background: var(--ink);
  border-radius: 8px;
}

.brand-mark span {
  width: 4px;
  background: var(--amber);
  border-radius: 4px;
}

.brand-mark span:nth-child(1) {
  height: 8px;
}

.brand-mark span:nth-child(2) {
  height: 15px;
  background: var(--teal);
}

.brand-mark span:nth-child(3) {
  height: 11px;
  background: var(--red);
}

.nav-links {
  gap: 24px;
  color: #383b36;
  font-size: 0.94rem;
}

.nav-action {
  min-height: 40px;
  padding: 9px 15px;
  color: var(--cream);
  background: var(--ink);
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  min-height: calc(100svh - 72px);
  padding: clamp(44px, 7vw, 92px) clamp(20px, 5vw, 72px) 44px;
  overflow: hidden;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.feature-number,
small {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 13vw, 10.5rem);
  line-height: 0.88;
}

.hero-text {
  max-width: 610px;
  margin-bottom: 30px;
  color: #42453f;
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: var(--cream);
  background: var(--ink);
}

.button.secondary {
  background: transparent;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: min(100%, 760px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 240, 0.48);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: #fffaf0;
}

.feature-strip article {
  min-height: 280px;
  padding: clamp(26px, 4vw, 46px);
  border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip h2 {
  max-width: 280px;
  margin: 18px 0 14px;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  line-height: 1;
}

.feature-strip p,
.practice p {
  color: var(--muted);
}

.practice {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 72px);
}

.practice-copy h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
}

.practice-copy p {
  max-width: 660px;
  font-size: 1.08rem;
}

.practice-panel {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(31, 138, 131, 0.16), transparent 42%),
    #171a17;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.waveform {
  display: grid;
  grid-template-columns: repeat(12, minmax(10px, 1fr));
  align-items: center;
  gap: 8px;
  height: 168px;
  padding: 16px;
  border: 1px solid rgba(255, 250, 240, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.06);
}

.waveform span {
  height: var(--h);
  min-height: 24px;
  background: linear-gradient(180deg, var(--amber), var(--teal));
  border-radius: 999px;
}

.loop-range {
  gap: 12px;
  margin: 22px 0;
  color: var(--cream);
  font-weight: 800;
}

.loop-range div {
  flex: 1;
  height: 4px;
  background: linear-gradient(90deg, var(--amber), var(--red));
  border-radius: 999px;
}

.control-row {
  gap: 10px;
}

.control-row div {
  flex: 1;
  min-width: 0;
  padding: 14px;
  color: var(--cream);
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.08);
}

.control-row small {
  display: block;
  margin-bottom: 4px;
  color: #9bd4ca;
}

.control-row strong {
  font-size: 1.35rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #53564f;
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header,
  .nav-links,
  .site-footer {
    align-items: flex-start;
  }

  .site-header {
    position: static;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .practice,
  .feature-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-visual {
    order: -1;
  }

  .feature-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.5rem, 20vw, 5rem);
  }

  .control-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}
