/* Landing page (Index). Same tokens as portal.css; the mock cards of the hero use .card here. */
  @import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@500;700&family=Inter:wght@400;500;600;700&display=swap");
  /* Layout: dark-first landing page — sticky header, hero with app mock, value band,
     feature grid, selective-routing highlight, protocol strip, audience cards, footer.
     Brand: Comfortaa wordmark ("Peta" in text colour, "VPN" red #FF0000); Inter for the rest. */
  :root {
    --bg: #0b0d12; --bg-2: #11141b; --bg-3: #171b24;
    --fg: #e7e9ee; --fg-strong: #ffffff; --muted: #99a0b0;
    --line: rgba(255,255,255,0.09); --line-2: rgba(255,255,255,0.14);
    --red: #ff0000; --red-soft: #ff3b3b;
    --blue: #3b82f6; --green: #30c58f;
    --shadow: 0 24px 60px rgba(0,0,0,0.45);
    --font-brand: "Comfortaa", "Trebuchet MS", sans-serif;
    --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
  }
  @media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
      --bg: #ffffff; --bg-2: #f6f7f9; --bg-3: #eceff4;
      --fg: #333843; --fg-strong: #0a0c10; --muted: #5b6270;
      --line: rgba(0,0,0,0.10); --line-2: rgba(0,0,0,0.16);
      --blue: #005fb8; --green: #16a06f;
      --shadow: 0 24px 60px rgba(13,20,40,0.14);
      color-scheme: light;
    }
  }
  :root[data-theme="light"] {
    --bg: #ffffff; --bg-2: #f6f7f9; --bg-3: #eceff4;
    --fg: #333843; --fg-strong: #0a0c10; --muted: #5b6270;
    --line: rgba(0,0,0,0.10); --line-2: rgba(0,0,0,0.16);
    --blue: #005fb8; --green: #16a06f;
    --shadow: 0 24px 60px rgba(13,20,40,0.14);
    color-scheme: light;
  }

  * { box-sizing: border-box; }
  body {
    margin: 0; background: var(--bg); color: var(--fg);
    font-family: var(--font-ui); line-height: 1.6;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
  }
  body::before {
    content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
    z-index: 60; background: var(--bg);
  }
  a { color: inherit; }
  h1, h2, h3 { color: var(--fg-strong); text-wrap: balance; margin: 0; }
  .wrap {
    width: 100%; max-width: 1120px; margin: 0 auto;
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
  .eyebrow {
    font-family: var(--font-brand); font-weight: 700; font-size: 0.72rem;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--red);
  }

  /* Wordmark */
  .mark { display: inline-flex; align-items: center; gap: 0.5em; text-decoration: none; }
  .mark img { width: 1.5em; height: 1.5em; display: block; }
  .lm { width: 2em; height: 2em; display: block; color: var(--fg-strong); flex: none; }
  .lm .sh { fill: currentColor; }
  .lm .pad { fill: var(--bg); }
  .lm .pad-s { fill: none; stroke: var(--bg); stroke-width: 3.4; stroke-linecap: round; }
  .lm .kh { fill: var(--red); }
  .mock-bar .lm { width: 1.7em; height: 1.7em; }
  .mock-bar .lm .pad, .mock-bar .lm .pad-s { fill: var(--bg-3); stroke: var(--bg-3); }
  .foot .lm { width: 2em; height: 2em; }
  .word { font-family: var(--font-brand); font-weight: 700; letter-spacing: -0.01em; color: var(--fg-strong); }
  .word .vpn { color: var(--red); }

  /* Header */
  header {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
  .nav .word { font-size: 1.3rem; }
  .nav .lm { width: 2.4em; height: 2.4em; }
  .nav-right { display: flex; align-items: center; gap: 0.35rem; }
  .links { display: flex; gap: 1.4rem; margin-right: 0.6rem; }
  .links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
  .links a:hover { color: var(--fg-strong); }
  .seg {
    display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px;
    overflow: hidden; background: var(--bg-2);
  }
  .seg button {
    appearance: none; border: 0; background: transparent; color: var(--muted);
    font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem;
    padding: 0.32rem 0.7rem; cursor: pointer;
  }
  .seg button[aria-pressed="true"] { background: var(--red); color: #fff; }
  .theme-seg button { padding: 0.34rem 0.52rem; display: inline-flex; align-items: center; }
  .theme-seg button svg { width: 15px; height: 15px; display: block; }

  .btn {
    display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
    font-weight: 600; font-size: 0.95rem; border-radius: 10px; padding: 0.7rem 1.15rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--red); color: #fff; }
  .btn-primary:hover { background: var(--red-soft); }
  .btn-ghost { background: transparent; color: var(--fg-strong); border-color: var(--line-2); }
  .btn-ghost:hover { border-color: var(--fg-strong); }
  .btn-sm { padding: 0.5rem 0.85rem; font-size: 0.86rem; }

  /* Hero */
  .hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
  .hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
  .hero h1 { font-family: var(--font-brand); font-weight: 700; font-size: clamp(2.3rem, 6vw, 3.6rem); line-height: 1.05; margin: 0.9rem 0 0; }
  .hero h1 .vpn { color: var(--red); }
  .hero .lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 34ch; margin: 1.1rem 0 0; }
  .hero-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.7rem; }
  .pill-os {
    display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem;
    font-size: 0.82rem; color: var(--muted);
  }
  .pill-os .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

  /* App mock */
  .mock {
    background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px;
    box-shadow: var(--shadow); overflow: hidden; width: 100%;
  }
  .mock-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--bg-3); }
  .mock-bar .word { font-size: 0.92rem; }
  .mock-bar img { width: 1.1em; height: 1.1em; }
  .status { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; font-weight: 600; color: var(--green); }
  .status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 25%, transparent); }
  .mock-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; padding: 0.9rem; }
  .card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 0.9rem; min-width: 0; }
  .card.span { grid-column: 1 / -1; }
  .card .k { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .card .v { font-size: 1.02rem; font-weight: 600; color: var(--fg-strong); margin-top: 0.25rem; }
  .card .sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.1rem; }
  .spark { display: block; width: 100%; height: 44px; margin-top: 0.5rem; }
  .spark polyline { stroke: var(--blue); }
  .plist { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.6rem; }
  .prow { display: flex; align-items: center; gap: 0.6rem; font-size: 0.86rem; }
  .prow .tag { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
  .prow.on .tag { background: var(--green); }
  .prow .nm { color: var(--fg-strong); font-weight: 500; }
  .prow .app { color: var(--muted); margin-left: auto; font-size: 0.78rem; }
  .prow.sel { background: color-mix(in srgb, var(--blue) 16%, transparent); outline: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); border-radius: 7px; padding: 0.25rem 0.4rem; margin: -0.25rem -0.4rem; }

  /* Sections */
  section { padding-block: clamp(3rem, 7vw, 5rem); }
  .band { background: var(--bg-2); border-block: 1px solid var(--line); }
  .sec-head { max-width: 42rem; }
  .sec-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-top: 0.6rem; }
  .sec-head p { color: var(--muted); font-size: 1.05rem; margin: 0.8rem 0 0; }

  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; }
  .feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem; }
  .band .feature { background: var(--bg); }
  .feature .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 14%, transparent); color: var(--red); margin-bottom: 0.9rem; }
  .feature .ic svg { width: 20px; height: 20px; }
  .feature h3 { font-size: 1.08rem; }
  .feature p { color: var(--muted); font-size: 0.94rem; margin: 0.45rem 0 0; }

  /* Split highlight */
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
  .split h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
  .split p { color: var(--muted); font-size: 1.05rem; margin-top: 0.9rem; }
  .flowbox { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 1.3rem; box-shadow: var(--shadow); }
  .flow { display: flex; flex-direction: column; gap: 0.75rem; }
  .flownode { display: flex; align-items: center; gap: 0.8rem; font-size: 0.92rem; }
  .flownode .chip { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px; flex: none; }
  .chip.tunnel { background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
  .chip.direct { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
  .flownode .ds { color: var(--muted); }

  /* Protocol strip */
  .chips { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.8rem; }
  .chips span { border: 1px solid var(--line-2); border-radius: 999px; padding: 0.42rem 0.85rem; font-size: 0.88rem; font-weight: 500; color: var(--fg-strong); background: var(--bg-2); }
  .note { color: var(--muted); font-size: 0.9rem; margin-top: 1.3rem; max-width: 46rem; }

  /* Audience */
  .aud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.2rem; }
  .acard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 1.3rem 1.4rem; }
  .acard h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
  .acard h3 .ic { color: var(--red); display: inline-flex; }
  .acard h3 .ic svg { width: 19px; height: 19px; }
  .acard p { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; }

  /* CTA */
  .cta { text-align: center; }
  .cta .flowbox { margin: 0 auto; }
  .cta h2 { font-family: var(--font-brand); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .cta p { color: var(--muted); font-size: 1.08rem; margin: 1rem auto 0; max-width: 40ch; }
  .cta .hero-cta { justify-content: center; }

  /* Footer */
  footer { border-top: 1px solid var(--line); padding-block: 2.4rem; }
  .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
  .foot .word { font-size: 1.1rem; }
  .foot .muted { color: var(--muted); font-size: 0.86rem; }
  .brandline { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-brand); font-weight: 700; font-size: 0.95rem; }
  .brandline img { width: 1.1em; height: 1.1em; }
  .brandline .b { color: var(--red); }

  @media (max-width: 860px) {
    .hero-grid, .split { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr 1fr; }
    .hero-mock-wrap { order: -1; }
  }
  @media (max-width: 560px) {
    .links { display: none; }
    .features, .aud { grid-template-columns: 1fr; }
    .mock-body { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
  html { scroll-behavior: smooth; }
  :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

  /* Language switch: links to the same page in the other language. */
  .seg a {
    color: var(--muted); font-family: var(--font-ui); font-weight: 600; font-size: 0.8rem;
    padding: 0.32rem 0.7rem; text-decoration: none; display: inline-flex; align-items: center;
  }
  .seg a[aria-current="true"] { background: var(--red); color: #fff; }

  /* petabyte brand: "peta" white on dark and black on light, "byte" #FF0000, in Comfortaa. */
  .brandline { color: #ffffff; }
  @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brandline { color: #000000; } }
  :root[data-theme="light"] .brandline { color: #000000; }
