@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/PublicSans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #1a0f1e;
  --ground-lift: #241428;
  --surface: #2a1731;
  --surface-high: #3a2143;
  --line: #4e2f5a;
  --line-strong: #7a5a84;
  --ink: #fff6ee;
  --ink-muted: #c0a2b4;
  --gold: #ffc93c;
  --gold-high: #ffdc7a;
  --on-gold: #2a1731;
  --mint: #63e6a8;
  --pink: #ff4f8b;
  --brand-accent: #6c63ff;
  --brand-ink: #0b0b12;
  --brand-paper: #f5f6f8;
  --shell: min(1180px, calc(100vw - 48px));
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 201, 60, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 201, 60, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  pointer-events: none;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--gold-high);
}

:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--on-gold);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(192, 162, 180, 0.22);
  background: rgba(26, 15, 30, 0.94);
  backdrop-filter: blur(14px);
}

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

.product-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.product-mark img {
  width: 44px;
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.language-control {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-control label {
  color: var(--ink-muted);
  font-size: 14px;
}

.language-control select {
  min-width: 172px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 8px 34px 8px 10px;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}

.language-control select:hover {
  border-color: var(--gold);
}

.language-control select:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
  padding-block: clamp(72px, 10vw, 132px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  font-size: clamp(56px, 7.3vw, 104px);
  letter-spacing: -0.055em;
}

h2 {
  max-width: 830px;
  font-size: clamp(42px, 5.3vw, 72px);
  letter-spacing: -0.045em;
}

h3 {
  font-size: clamp(25px, 2.5vw, 34px);
  letter-spacing: -0.025em;
}

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

.hero-lead {
  max-width: 580px;
  margin: 28px 0 0;
  color: var(--ink-muted);
  font-size: clamp(20px, 2vw, 25px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--gold);
  padding: 12px 22px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out, transform 150ms ease-out;
}

.button:hover {
  color: var(--on-gold);
  background: var(--gold-high);
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--on-gold);
}

.button-secondary {
  color: var(--ink);
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  color: var(--ink-muted);
  font-size: 15px;
}

.availability::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
}

.hero-visual {
  position: relative;
  padding: 0 36px 78px 0;
}

.tv-frame {
  overflow: hidden;
  border: 2px solid var(--line-strong);
  border-radius: 22px;
  background: #0c070e;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.tv-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.phone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(148px, 15vw, 214px);
  overflow: hidden;
  border: 7px solid var(--ink);
  border-radius: 30px;
  background: var(--ground);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.phone-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
}

.section {
  border-top: 1px solid var(--line);
  padding-block: clamp(84px, 11vw, 150px);
}

.section-head {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 42px;
  align-items: end;
  margin-bottom: 56px;
}

.section-intro {
  max-width: 560px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 20px;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.mode {
  min-height: 360px;
  padding: 34px 30px;
  border-right: 1px solid var(--line-strong);
}

.mode:last-child {
  border-right: 0;
}

.mode-number {
  display: block;
  margin-bottom: 76px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 14px;
}

.mode p {
  margin: 18px 0 0;
  color: var(--ink-muted);
}

.mode.selected {
  background: var(--surface-high);
}

.base-label {
  margin-left: 12px;
  color: var(--mint);
}

.showcase {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 32px;
  align-items: start;
  margin-top: 54px;
}

.showcase-main,
.showcase-note {
  border: 1px solid var(--line);
  background: var(--ground-lift);
}

.showcase-main {
  padding: 18px;
}

.showcase-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
}

.showcase-note {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
}

.showcase-note p {
  margin: 22px 0 0;
  color: var(--ink-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  min-height: 270px;
  padding: 34px;
  background: var(--ground);
}

.feature-icon {
  display: grid;
  width: 50px;
  height: 50px;
  margin-bottom: 46px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--on-gold);
  font-family: var(--mono);
  font-weight: 700;
}

.feature p {
  max-width: 490px;
  margin: 16px 0 0;
  color: var(--ink-muted);
}

.steps {
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 110px 0.7fr 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  color: var(--gold);
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 15px;
}

.step p {
  margin: 0;
  color: var(--ink-muted);
}

.family-panel {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: clamp(48px, 8vw, 120px);
  padding: clamp(46px, 7vw, 86px);
  background: var(--gold);
  color: var(--on-gold);
}

.family-panel .eyebrow {
  color: var(--on-gold);
}

.family-panel p {
  margin: 0;
  align-self: end;
  font-size: 21px;
}

.faq-list {
  max-width: 900px;
  margin-top: 50px;
}

.faq-list details {
  border-top: 1px solid var(--line-strong);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
  cursor: pointer;
  padding: 24px 46px 24px 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.faq-list p {
  max-width: 740px;
  margin: 0 0 28px;
  color: var(--ink-muted);
}

.prelaunch {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: end;
  padding: clamp(54px, 8vw, 92px);
  background: var(--surface-high);
}

.prelaunch p {
  max-width: 600px;
  margin: 24px 0 0;
  color: var(--ink-muted);
}

.site-footer {
  padding-block: 46px;
  background: var(--brand-ink);
  color: var(--brand-paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: end;
}

.maandrik-wordmark {
  display: block;
  width: 150px;
  height: auto;
  aspect-ratio: 572 / 158;
  margin-bottom: 22px;
}

.maandrik-wordmark .cur {
  animation: mk-cursor-blink 1.1s steps(1, end) infinite;
}

@keyframes mk-cursor-blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.footer-copy {
  margin: 0;
  color: #a8a2b0;
  font-size: 15px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 15px;
}

.legal-main {
  width: min(860px, calc(100vw - 48px));
  margin-inline: auto;
  padding-block: clamp(70px, 9vw, 120px);
}

.legal-main h1 {
  max-width: 820px;
  font-size: clamp(46px, 6vw, 78px);
}

.legal-meta {
  margin: 24px 0 54px;
  color: var(--ink-muted);
  font-family: var(--mono);
  font-size: 14px;
}

.legal-main h2 {
  margin: 64px 0 22px;
  font-size: 34px;
  letter-spacing: -0.025em;
}

.legal-main h3 {
  margin: 34px 0 14px;
  font-family: var(--text);
  font-size: 22px;
}

.legal-main p,
.legal-main li {
  color: var(--ink-muted);
}

.legal-main strong {
  color: var(--ink);
}

.legal-main li + li {
  margin-top: 10px;
}

.legal-callout {
  margin: 42px 0;
  border-left: 5px solid var(--gold);
  padding: 22px 26px;
  background: var(--surface);
}

.legal-callout p {
  margin: 0;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

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

  .hero-visual {
    width: min(820px, 100%);
  }

  .section-head,
  .family-panel,
  .prelaunch {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

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

  .mode:last-child {
    border-bottom: 0;
  }

  .mode-number {
    margin-bottom: 44px;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 70px 1fr;
  }

  .step p {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 32px, 1180px);
  }

  body {
    font-size: 17px;
  }

  .nav {
    min-height: 70px;
    gap: 12px;
  }

  .product-mark {
    flex-shrink: 0;
    gap: 8px;
    font-size: 18px;
    white-space: nowrap;
  }

  .product-mark img {
    width: 38px;
    height: 38px;
  }

  .nav-links > a,
  .language-control label,
  .back-site {
    display: none;
  }

  .language-control select {
    width: min(50vw, 190px);
    min-width: 0;
    padding-right: 26px;
    font-size: 12px;
  }

  .hero {
    gap: 54px;
    padding-block: 58px 78px;
  }

  h1 {
    font-size: clamp(50px, 17vw, 74px);
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-visual {
    padding: 0 18px 66px 0;
  }

  .tv-frame {
    border-radius: 14px;
  }

  .phone-frame {
    width: 132px;
    border-width: 5px;
    border-radius: 22px;
  }

  .section-head {
    gap: 24px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .showcase-main,
  .showcase-note,
  .feature,
  .mode {
    padding: 24px;
  }

  .step {
    grid-template-columns: 48px 1fr;
    gap: 18px;
  }

  .family-panel,
  .prelaunch {
    margin-inline: -16px;
    padding: 42px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-main {
    width: min(100% - 32px, 860px);
  }
}

:lang(hi-IN) h1,
:lang(hi-IN) h2,
:lang(hi-IN) h3,
:lang(zh-CN) h1,
:lang(zh-CN) h2,
:lang(zh-CN) h3,
:lang(ja-JP) h1,
:lang(ja-JP) h2,
:lang(ja-JP) h3 {
  line-height: 1.14;
  letter-spacing: -0.025em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .maandrik-wordmark .cur {
    animation: none;
  }
}
