/* Octavo Train — one-pager website
   Ported from the finalized design canvas (Main.dc.html / Mobile.dc.html).
   Desktop-first; the single @media (max-width: 880px) block folds it to mobile. */

:root {
  --bg: #010f29;
  --surface: #041533;
  --surface-2: #0d2248;
  --border: #1b4a66;
  --text: #edf7ff;
  --muted: #8bb3c9;
  --accent: #2ec8f0;
  --accent-hover: #5dd9ff;
  --gold: #d2a46a;
  --success: #3dd9a0;
  --error: #f4867a;
  --staff-line: #859397;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 12px;
  --display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a[disabled] {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: pretty;
}
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #01152b;
  border-radius: 0 0 var(--r-md) 0;
  font-family: var(--display);
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: #01152b;
}

.page {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 12% 2%, rgba(46, 200, 240, 0.12), transparent 60%),
    radial-gradient(50% 40% at 92% 16%, rgba(210, 164, 106, 0.09), transparent 55%),
    radial-gradient(60% 45% at 88% 94%, rgba(46, 200, 240, 0.07), transparent 60%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 40px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.btn--primary {
  background: var(--accent);
  color: #01152b;
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: #01152b;
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* nav */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 26px 40px;
  gap: 20px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
}
.nav__brand img {
  width: 34px;
  height: 34px;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  color: var(--muted);
}
.nav__links a {
  color: var(--muted);
}
.nav__links a:hover {
  color: var(--text);
}
.nav__links a.btn--primary {
  color: #01152b;
  padding: 9px 16px;
  font-size: 13.5px;
}
.nav__links a.btn--primary:hover {
  color: #01152b;
}

/* language switcher */
.langs {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.langs a {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1;
}
.langs a:hover {
  color: var(--text);
}
.langs a[aria-current="true"] {
  background: var(--accent);
  color: #01152b;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  padding: 48px 40px 72px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.08;
}
.hero__sub {
  font-size: 18px;
  color: var(--muted);
  margin-top: 22px;
  max-width: 42ch;
}
.hero__cta {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero__plat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.hero__plat .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}
.tag {
  font-size: 12px;
  padding: 3px 8px;
  border: 1px dashed var(--border);
  border-radius: 999px;
  color: var(--muted);
}

/* app-screen mockup */
.screen {
  border-radius: 24px;
  padding: 12px;
  background: linear-gradient(160deg, #12233d, #050d1c);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}
.screen__inner {
  width: 100%;
  aspect-ratio: 852 / 393;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(90% 100% at 8% 0%, rgba(46, 200, 240, 0.1), transparent 60%),
    radial-gradient(80% 90% at 98% 100%, rgba(210, 164, 106, 0.08), transparent 55%), var(--bg);
  display: flex;
  flex-direction: column;
}
.screen__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.screen__bar > i {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}
.screen__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
}
.screen__readout {
  display: flex;
  flex-direction: column;
}
.screen__readout small {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.screen__readout b {
  font-size: 17px;
  color: var(--accent);
  font-family: var(--display);
}
.screen__pill {
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--muted);
  white-space: nowrap;
}
.screen__pill--plain {
  border: none;
}
.screen__pill--gold {
  border-color: rgba(210, 164, 106, 0.4);
  background: rgba(210, 164, 106, 0.1);
  color: var(--gold);
}
.screen__grow {
  flex: 1;
}
.screen__body {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  min-height: 0;
}
.screen__staff {
  width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.staff-lines {
  position: relative;
  width: 74px;
  height: 52px;
}
.staff-lines i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--staff-line);
}
.staff-note {
  position: absolute;
  left: 40px;
  top: 20px;
  width: 15px;
  height: 11px;
  border-radius: 50%;
  background: #a2eeff;
  transform: rotate(-18deg);
}
.staff-note::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 5px;
  width: 2px;
  height: 34px;
  background: #a2eeff;
}
.screen__neck {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0a1c38, #06122a);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.screen__nut {
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(90deg, #eaf5fb, #93b4c8);
  z-index: 3;
}
.screen__string {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.screen__string i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 2px;
}
.screen__hit {
  position: absolute;
  left: 42%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #04281c;
  box-shadow:
    0 0 0 4px rgba(61, 217, 160, 0.22),
    0 0 20px rgba(61, 217, 160, 0.5);
}
.screen__frets {
  display: flex;
  gap: 2px;
  padding: 3px 6px 5px 26px;
}
.screen__frets span {
  flex: 1;
  text-align: center;
  font-size: 8px;
  color: var(--muted);
}

/* section shell */
.section {
  padding: 62px 0;
  position: relative;
  z-index: 1;
}
.section--alt {
  background: rgba(4, 21, 51, 0.6);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section__head {
  max-width: 640px;
}
.section__head h2 {
  font-size: 34px;
  line-height: 1.15;
  margin-top: 14px;
}
.section__head p {
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 26px;
}
.step__n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.step h3 {
  font-size: 19px;
  margin-top: 10px;
}
.step p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 8px;
}

/* features */
.feat {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.feat__cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feat__cell svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
.feat__cell h3 {
  font-size: 16px;
}
.feat__cell p {
  color: var(--muted);
  font-size: 14px;
}

/* instruments */
.inst {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}
.inst__panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.inst__cap {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.inst__cap:first-child {
  margin-top: 0;
}

.kb {
  position: relative;
  display: flex;
  height: 128px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #9cb8cc;
}
.kb__whites {
  display: flex;
  flex: 1;
}
.kb__whites span {
  flex: 1;
  background: #f4f9fd;
  border-right: 1px solid #9cb8cc;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 9px;
  font-size: 10px;
  font-weight: 700;
  color: #3d5f78;
}
.kb__whites span:last-child {
  border-right: none;
}
.kb__whites span.on {
  background: #b8e4f7;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.kb__black {
  position: absolute;
  top: 0;
  width: 9%;
  height: 62%;
  z-index: 2;
  border: 1px solid #05101f;
  border-top: none;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #2a5a78 0%, #0f2d4a 55%, #081a30 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  font-size: 7px;
  font-weight: 700;
  color: #e8f4fc;
}

/* fretboards */
.fb {
  display: flex;
  gap: 7px;
  align-items: stretch;
}
.fb__labels {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 15px;
  text-align: right;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
}
.fb__board {
  flex: 1;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(180deg, #0a1c38, #06122a);
}
.fb--bass .fb__board {
  height: 84px;
}
.fb--guitar .fb__board {
  height: 116px;
}
.fb__nut {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(90deg, #eaf5fb, #93b4c8);
  z-index: 3;
}
.fb__fret {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.09);
}
.fb__marker {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  transform: translate(-50%, -50%);
}
.fb__strings {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 2;
}
.fb__string {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.fb__string i {
  position: absolute;
  left: 4px;
  right: 0;
  height: 1.5px;
  background: var(--accent);
  opacity: 0.5;
  border-radius: 2px;
}
.fb--guitar .fb__string:nth-last-child(-n + 2) i {
  height: 2px;
}
.fb__hit {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(210, 164, 106, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: #2a1c08;
  transform: translateX(-50%);
}

.inst__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
}
.inst__list li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}
.inst__list b {
  color: var(--text);
  font-weight: 600;
}
.inst__list svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex: none;
  margin-top: 2px;
}

/* final cta */
.section:has(.final) {
  padding: 0;
} /* .final brings its own vertical rhythm */
.final {
  text-align: center;
  padding: 78px 0;
}
.final h2 {
  font-size: 40px;
}
.final p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 16px;
}
.final .hero__cta {
  justify-content: center;
  margin-top: 32px;
}
.final .hero__plat {
  justify-content: center;
}

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  position: relative;
  z-index: 1;
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  color: var(--text);
}
.footer__brand img {
  width: 26px;
  height: 26px;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__links a {
  color: var(--muted);
}
.footer__links a:hover {
  color: var(--text);
}

/* ---- mobile ---- */
@media (max-width: 880px) {
  .wrap {
    padding: 0 22px;
  }
  .nav {
    padding: 18px 22px;
  }
  .nav__brand {
    font-size: 15px;
  }
  .nav__brand img {
    width: 30px;
    height: 30px;
  }
  .nav__links {
    gap: 12px;
  }
  .nav__links > a:not(.btn) {
    display: none;
  }
  /* the hero carries a full-width CTA on mobile — keep only the language switcher here */
  .nav__links a.btn--primary {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 26px 22px 44px;
  }
  .hero h1 {
    font-size: 33px;
    line-height: 1.1;
  }
  .hero__sub {
    font-size: 16px;
    margin-top: 16px;
    max-width: none;
  }
  .hero__cta {
    flex-direction: column;
    margin-top: 24px;
  }
  .hero__cta .btn {
    width: 100%;
  }

  .screen {
    border-radius: 20px;
    padding: 9px;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.5);
  }
  .screen__staff {
    width: 34%;
  }

  .section {
    padding: 44px 0;
  }
  .section__head h2 {
    font-size: 25px;
    line-height: 1.18;
  }
  .section__head p {
    font-size: 15px;
  }

  .steps,
  .feat {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  .step,
  .feat__cell {
    padding: 20px;
  }
  .step h3 {
    font-size: 17px;
  }

  .inst {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .final {
    padding: 56px 0;
  }
  .final h2 {
    font-size: 28px;
  }
  .final p {
    font-size: 15px;
  }

  .footer__row {
    justify-content: flex-start;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 29px;
  }
}

/* Legal pages (English only) */

.nav--legal {
  position: relative;
  z-index: 1;
  padding: 20px 0;
}

.legal {
  position: relative;
  z-index: 1;
  padding: 48px 0 72px;
  max-width: 720px;
}

.legal__head {
  margin-bottom: 36px;
}

.legal__head h1 {
  font-size: 36px;
  line-height: 1.15;
}

.legal__updated {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.legal__section + .legal__section {
  margin-top: 28px;
}

.legal__section h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.legal__section p {
  color: var(--muted);
}

.legal__section p + p {
  margin-top: 10px;
}

.footer--legal {
  position: relative;
  z-index: 1;
}

@media (max-width: 880px) {
  .legal {
    padding: 36px 0 56px;
  }
  .legal__head h1 {
    font-size: 28px;
  }
}
