  /* Newsreader (optical-size serif, close to the engraved roman capitals
     of the logo) + Hanken Grotesk, self-hosted (SIL OFL) — no Google Fonts
     request, so no visitor IP goes to a third party. */
  @font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
  @font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; }
  @font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

  :root {
    /* IPTV Tree palette: #014040 · #02735E · #03A678 · #ADF536 */
    --bg: #012825;
    --bg-deep: #011C1A;
    --bg-alt: #014040;
    --bg-card: #024C41;
    --line: rgba(173, 245, 54, 0.14);
    --line-soft: rgba(234, 246, 239, 0.10);
    --text: #EAF6EF;
    --text-dim: #9CC4B6;
    --accent: #03A678;
    --accent-hover: #1FBF8C;
    --lime: #ADF536;
    --on-accent: #01211E;
    --serif: "Newsreader", Georgia, "Times New Roman", serif;
    --sans: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
    --wrap: 1120px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; height: auto; display: block; }
  a { color: inherit; }
  ::selection { background: rgba(173, 245, 54, 0.32); color: #F4FFF7; }
  :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg-deep); }
  ::-webkit-scrollbar-thumb { background: #02735E; border-radius: 5px; border: 2px solid var(--bg-deep); }

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

  /* ---------- top bar ---------- */
  .top {
    position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .brand img { height: 34px; width: auto; }
  .brand span { font-family: var(--serif); font-size: 21px; font-weight: 450; letter-spacing: 0.005em; }
  .top nav { display: flex; gap: 28px; font-size: 15px; }
  .top nav a { text-decoration: none; color: var(--text-dim); transition: color 0.2s; }
  .top nav a:hover { color: var(--text); }

  /* ---------- hero: forest at night, light falling through the canopy ---------- */
  .hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 140px 0 0;
    background:
      radial-gradient(ellipse 900px 620px at 50% 12%, rgba(173, 245, 54, 0.13), transparent 62%),
      radial-gradient(ellipse 800px 600px at 4% 70%, rgba(3, 166, 120, 0.18), transparent 66%),
      radial-gradient(ellipse 800px 520px at 98% 18%, rgba(2, 115, 94, 0.32), transparent 66%),
      linear-gradient(180deg, #013A34 0%, var(--bg) 58%, var(--bg-deep) 100%);
  }
  .hero-mark {
    height: clamp(150px, 20vw, 210px); width: auto; margin: 0 auto 34px;
    filter: drop-shadow(0 22px 40px rgba(0, 14, 12, 0.55));
  }
  .hero h1 {
    font-family: var(--serif); font-weight: 400; font-variation-settings: "opsz" 72;
    font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; letter-spacing: -0.02em;
    margin: 0 auto; max-width: 15ch; text-wrap: balance;
  }
  .hero h1 em { font-style: italic; color: var(--lime); font-weight: 350; }
  .hero .lede {
    max-width: 58ch; margin: 26px auto 0; color: var(--text-dim); font-size: clamp(17px, 1.6vw, 19px); text-wrap: pretty;
  }
  .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
  .btn {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
    font: 600 16px/1 var(--sans); padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--accent); color: var(--on-accent); }
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-ghost { color: var(--text); border-color: rgba(234, 246, 239, 0.22); }
  .btn-ghost:hover { border-color: var(--lime); }
  .btn svg { width: 18px; height: 18px; }

  /* product shot: the real start screen on a TV */
  .tv { position: relative; max-width: 980px; margin: 76px auto 0; padding: 0 24px; }
  .tv-screen {
    border-radius: 14px 14px 6px 6px; overflow: hidden; background: #000;
    border: 10px solid #0B1413; border-bottom-width: 14px;
    box-shadow: 0 40px 90px rgba(0, 8, 7, 0.65), 0 0 0 1px rgba(173, 245, 54, 0.10);
  }
  .tv-screen img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
  .tv-stand { width: 26%; height: 16px; margin: 0 auto; background: linear-gradient(#0B1413, #061010); border-radius: 0 0 10px 10px; }
  .platforms {
    margin: 34px auto 0; padding: 0 24px 96px; color: var(--text-dim); font-size: 15px; letter-spacing: 0.02em;
  }
  .platforms b { color: var(--text); font-weight: 500; }

  /* ---------- features: text rows, not tiles ---------- */
  section { position: relative; }
  .features { padding: 110px 0 60px; background: var(--bg-deep); }
  .section-title {
    font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.015em;
    margin: 0 0 18px; max-width: 18ch; text-wrap: balance;
  }
  .section-intro { color: var(--text-dim); max-width: 56ch; margin: 0 0 64px; }
  .feature {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px;
    padding: 38px 0; border-top: 1px solid var(--line-soft);
  }
  .feature h3 {
    font-family: var(--serif); font-weight: 450; font-size: 26px; line-height: 1.2; margin: 0;
  }
  .feature p { margin: 0; color: var(--text-dim); max-width: 60ch; }
  .feature p strong { color: var(--text); font-weight: 500; }

  /* ---------- steps ---------- */
  .steps { padding: 90px 0 110px; background: linear-gradient(180deg, var(--bg-deep), var(--bg)); }
  .steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
  .steps li { counter-increment: step; }
  .steps li::before {
    content: counter(step); display: block; font-family: var(--serif); font-size: 64px; line-height: 1; font-weight: 300;
    color: var(--lime); margin-bottom: 18px; font-variant-numeric: lining-nums;
  }
  .steps h3 { font-family: var(--serif); font-weight: 450; font-size: 23px; margin: 0 0 10px; }
  .steps p { margin: 0; color: var(--text-dim); }
  .steps code { font-family: var(--sans); color: var(--text); background: rgba(3, 166, 120, 0.16); padding: 1px 7px; border-radius: 6px; }

  /* ---------- downloads ---------- */
  .downloads {
    padding: 110px 0 70px;
    background:
      radial-gradient(ellipse 700px 460px at 88% 38%, rgba(173, 245, 54, 0.07), transparent 65%),
      var(--bg);
  }
  .dl-list { border-top: 1px solid var(--line); }
  .dl {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center;
    padding: 28px 0; border-bottom: 1px solid var(--line);
  }
  .dl h3 { font-family: var(--serif); font-weight: 450; font-size: 25px; margin: 0 0 4px; }
  .dl p { margin: 0; color: var(--text-dim); font-size: 15.5px; max-width: 62ch; }
  .dl .btn { padding: 13px 22px; font-size: 15px; }
  .note {
    margin: 56px 0 0; padding: 26px 28px; border-radius: 16px;
    background: rgba(1, 64, 64, 0.55); border: 1px solid var(--line);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start;
  }
  .note svg { width: 22px; height: 22px; color: var(--lime); margin-top: 3px; }
  .note p { margin: 0; color: var(--text-dim); max-width: 70ch; }
  .note strong { color: var(--text); font-weight: 500; }

  /* ---------- footer ---------- */
  footer { padding: 56px 0 64px; background: var(--bg-deep); border-top: 1px solid var(--line-soft); font-size: 14.5px; color: var(--text-dim); }
  footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: center; justify-content: space-between; }
  footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

  /* ---------- language ---------- */
  .lang { display: inline-flex; align-items: center; gap: 6px; }
  .lang a { text-decoration: none; color: var(--text-dim); transition: color 0.2s; }
  .lang a:hover { color: var(--text); }
  .lang a[aria-current] { color: var(--lime); }
  .lang span { opacity: 0.4; }

  /* Korean: Newsreader and Hanken Grotesk have no Hangul, so name system
     Korean fonts next in the stack; keep-all stops breaks inside words. */
  :lang(ko) {
    --serif: "Newsreader", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --sans: "Hanken Grotesk", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    word-break: keep-all; overflow-wrap: anywhere;
  }

  /* ---------- the one authored moment: the tree rises into its light ---------- */
  @media (prefers-reduced-motion: no-preference) {
    .hero-mark { animation: rise 1.4s var(--ease-out) both; }
    .hero h1, .hero .lede, .hero .cta { animation: fade 1.1s var(--ease-out) both; }
    .hero h1 { animation-delay: 0.18s; }
    .hero .lede { animation-delay: 0.3s; }
    .hero .cta { animation-delay: 0.42s; }
    .tv { animation: fade-up 1.2s var(--ease-out) 0.5s both; }
    @keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.97); filter: drop-shadow(0 22px 40px rgba(0,14,12,0)) blur(6px); } }
    @keyframes fade { from { opacity: 0; transform: translateY(8px); } }
    @keyframes fade-up { from { opacity: 0; transform: translateY(28px); } }
  }

  /* ---------- small screens ---------- */
  @media (max-width: 760px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .top nav { gap: 14px; }
    .top nav .hide-sm { display: none; }
    .hero { padding-top: 112px; }
    .tv { margin-top: 56px; padding: 0 16px; }
    .tv-screen { border-width: 6px; border-bottom-width: 9px; border-radius: 10px 10px 4px 4px; }
    .platforms { padding-bottom: 72px; }
    .features, .downloads { padding-top: 80px; }
    .feature { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
    .steps ol { grid-template-columns: 1fr; gap: 34px; }
    .steps li::before { font-size: 52px; margin-bottom: 10px; }
    .dl { grid-template-columns: 1fr; gap: 14px; }
    .dl .btn { justify-self: start; }
    .note { padding: 20px; gap: 14px; }
  }
