/* Neo Translate Home (production, from the approved mockups/ecosystem/eco.css).
   Neo AI is the centre; four platforms live around it. Mint is the life colour of
   the connections; each platform has a subtle tint you can follow down the page.
   Self-hosted font, no photos, no outside resources. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #FFFFFF; --bg-soft: #F4F8F6; --surface: #FFFFFF;
  --ink: #12201B; --ink-2: #4B5B55; --line: #DCE5E1;
  --mint: #3E9E7C;            /* life colour: lines, pulses, Neo AI */
  --mint-strong: #2A6E58;     /* text and buttons (AA on white) */
  --mint-soft: #E6F4EE;
  --btn-ink: #FFFFFF;
  /* platform tints: quiet, distinct, readable as text in both themes */
  --t-translate: #2E7D5B; --t-studio: #2A6F9A; --t-connect: #9A6A12; --t-developers: #5A5FB0;
  --focus: #1D6FD1; --good: #1E7A4E; --bad: #B3261E; --idle: #7A8781;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1311; --bg-soft: #101A17; --surface: #13201C; --ink: #E7F1ED; --ink-2: #A3B5AE; --line: #22322C;
    --mint: #7DD3B5; --mint-strong: #7DD3B5; --mint-soft: #16302A; --btn-ink: #0B1311;
    --t-translate: #7DD3B5; --t-studio: #86C3EA; --t-connect: #E3B65A; --t-developers: #A9ADF0;
    --focus: #7DB5FF; --good: #6FD3A0; --bad: #FF8A80; --idle: #8E9C96; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1311; --bg-soft: #101A17; --surface: #13201C; --ink: #E7F1ED; --ink-2: #A3B5AE; --line: #22322C;
  --mint: #7DD3B5; --mint-strong: #7DD3B5; --mint-soft: #16302A; --btn-ink: #0B1311;
  --t-translate: #7DD3B5; --t-studio: #86C3EA; --t-connect: #E3B65A; --t-developers: #A9ADF0;
  --focus: #7DB5FF; --good: #6FD3A0; --bad: #FF8A80; --idle: #8E9C96; color-scheme: dark;
}
[data-p="translate"]  { --tint: var(--t-translate); }
[data-p="studio"]     { --tint: var(--t-studio); }
[data-p="connect"]    { --tint: var(--t-connect); }
[data-p="developers"] { --tint: var(--t-developers); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--mint-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { max-width: 42rem; }
.muted { color: var(--ink-2); }
.section { padding: 56px 0; }
@media (min-width: 800px) { .section { padding: 84px 0; } }
.eyebrow { color: var(--mint-strong); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 22px; height: 22px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 10px; font: 650 1rem/1.2 Inter, sans-serif; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: filter .15s, transform .15s, background-color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--mint-strong); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--mint-strong); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--mint); background: var(--mint-soft); }
.btn-tint { background: var(--tint); color: var(--btn-ink); }
.btn-tint:hover { filter: brightness(1.07); transform: translateY(-1px); }

/* Header */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.05rem; min-height: 44px; white-space: nowrap; }
.logo svg { width: 28px; height: 28px; }
.top nav { display: none; gap: 4px; margin-left: 12px; }
.top nav a { color: var(--ink-2); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .95rem; }
.top nav a:hover { color: var(--ink); background: var(--bg-soft); }
.top .signin { margin-left: auto; min-height: 44px; padding: 8px 16px; font-size: .92rem; gap: 0; }
@media (max-width: 480px) { .top .signin .long { display: none; } }
@media (min-width: 900px) { .top nav { display: flex; } }

/* ---------- Opening: text + living ecosystem ---------- */
.hero { padding: 40px 0 24px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 72px 0 40px; } .hero-grid { grid-template-columns: .9fr 1.1fr; gap: 40px; } }
.hero .lead { font-size: clamp(1.08rem, 2.3vw, 1.25rem); color: var(--ink-2); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 24px 0 0; color: var(--ink-2); font-size: .95rem; }
.facts li { position: relative; padding-left: 16px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* The ecosystem figure. Wide screens: Neo AI in the middle, platforms around it.
   Phones: a vertical flow, Neo AI at the top, platforms branching down. */
.eco { position: relative; margin: 0; }
.eco-stage { position: relative; }
.eco-lines { display: none; }
.core { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%; margin: 0 auto;
  background: var(--surface); border: 2px solid var(--mint); color: var(--ink);
  box-shadow: 0 0 0 10px var(--mint-soft), 0 0 0 22px color-mix(in srgb, var(--mint-soft) 55%, transparent); position: relative; z-index: 2; }
.core b { font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; color: var(--mint-strong); }
.core span { font-size: .78rem; color: var(--ink-2); margin-top: 4px; }
.core .breath { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--mint); opacity: 0; animation: breath 4s ease-out infinite; }
@keyframes breath { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.55); opacity: 0; } }

/* Phone layout (default): Neo AI at the head of a spine, platforms branching down it,
   with a pulse flowing from Neo AI along the spine. */
@media (max-width: 719px) {
  .core { width: 96px; height: 96px; margin: 0 0 0 12px; box-shadow: 0 0 0 6px var(--mint-soft), 0 0 0 12px color-mix(in srgb, var(--mint-soft) 55%, transparent); }
  .core b { font-size: 1.3rem; }
}
.nodes { list-style: none; margin: 30px 0 0; padding: 0 0 0 84px; position: relative; display: grid; gap: 12px; }
.nodes::before { content: ""; position: absolute; left: 59px; top: -30px; bottom: 26px; width: 2px; background: color-mix(in srgb, var(--mint) 45%, transparent); }
.nodes::after { content: ""; position: absolute; left: 55px; top: -30px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); animation: spine 3.6s ease-in-out infinite; }
@keyframes spine { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(calc(var(--spine, 320px))); opacity: 0; } }
.nodes li { position: relative; }
.nodes li::before { content: ""; position: absolute; left: -24px; top: 28px; width: 24px; height: 2px; background: color-mix(in srgb, var(--mint) 45%, transparent); }
.node { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 650 1.02rem Inter, sans-serif; cursor: pointer; text-align: left; transition: border-color .2s, box-shadow .2s, transform .2s, background-color .2s; }
.node .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--surface)); flex: none; }
.node small { display: block; font-weight: 450; color: var(--ink-2); font-size: .85rem; }
.node:hover, .node[aria-pressed="true"] { border-color: var(--tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 16%, transparent); }
.node[aria-pressed="true"] { background: color-mix(in srgb, var(--tint) 6%, var(--surface)); }

.eco-panel { margin-top: 16px; min-height: 120px; border-radius: 12px; border: 1px dashed var(--line); padding: 16px 18px; background: var(--bg-soft); transition: border-color .25s, background-color .25s; }
.eco-panel p { margin: 0 0 12px; }
.eco-panel .hint { color: var(--ink-2); margin: 0; }
.eco[data-active] .eco-panel { border-style: solid; border-color: var(--tint); background: color-mix(in srgb, var(--tint) 6%, var(--surface)); }
.eco-panel h3 { font-size: 1.05rem; margin: 0 0 4px; color: var(--tint); }

/* Wide layout: the radial diagram. Coordinates are percentages of the stage. */
@media (min-width: 720px) {
  .eco-stage { aspect-ratio: 5 / 4; }
  .eco-lines { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nodes { position: absolute; inset: 0; margin: 0; padding: 0; display: block; }
  .nodes::before, .nodes::after, .nodes li::before { display: none; }
  .nodes li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: max-content; }
  .node { width: auto; min-width: 176px; }
  .eco-panel { margin-top: 8px; }
}
.line { fill: none; stroke: var(--mint); stroke-width: 2; opacity: .35; stroke-linecap: round; transition: opacity .3s, stroke-width .3s, stroke .3s; }
.line.dash { stroke-dasharray: 2 7; }
.pulse { fill: var(--mint); }
.ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 6; }
.eco[data-active] .line { opacity: .15; }
.eco[data-active="translate"]  .line[data-p="translate"],
.eco[data-active="studio"]     .line[data-p="studio"],
.eco[data-active="connect"]    .line[data-p="connect"],
.eco[data-active="developers"] .line[data-p="developers"] { opacity: 1; stroke: var(--tint); stroke-width: 3; }
.eco[data-active] .pulse { opacity: .25; }
.eco[data-active="translate"]  .pulse[data-p="translate"],
.eco[data-active="studio"]     .pulse[data-p="studio"],
.eco[data-active="connect"]    .pulse[data-p="connect"],
.eco[data-active="developers"] .pulse[data-p="developers"] { opacity: 1; fill: var(--tint); }

/* Compact copy of the ecosystem beside the chooser */
.eco--mini .node { min-width: 0; font-size: .9rem; min-height: 44px; padding: 6px 10px; }
.eco--mini .node small { display: none; }
.eco--mini .node .dot { width: 28px; height: 28px; }
.eco--mini .core { width: 96px; height: 96px; }
.eco--mini .core b { font-size: 1.25rem; }
.eco--mini .eco-panel { display: none; }

/* ---------- Shared foundations: layers beneath everything ---------- */
.foundations { background: var(--bg-soft); border-block: 1px solid var(--line); }
.layers { display: grid; gap: 0; margin-top: 28px; max-width: 900px; }
.layer { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.layer + .layer { margin-top: -6px; }
.layer:nth-child(1) { margin-right: 0; z-index: 3; }
.layer:nth-child(2) { margin-left: 18px; z-index: 2; }
.layer:nth-child(3) { margin-left: 36px; z-index: 1; }
.layer .badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-strong); }
.layer h3 { font-size: 1.1rem; margin: 0 0 4px; }
.layer p { margin: 0; color: var(--ink-2); }
.layer .under { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; color: var(--tint, var(--ink-2)); background: color-mix(in srgb, var(--tint, var(--ink-2)) 11%, var(--surface)); white-space: nowrap; }
@media (min-width: 800px) { .layer:nth-child(2) { margin-left: 40px; } .layer:nth-child(3) { margin-left: 80px; } }

/* ---------- Platforms, each threaded back to Neo AI ---------- */
.thread { position: relative; margin-top: 36px; padding-left: 40px; display: grid; gap: 28px; }
.thread::before { content: ""; position: absolute; left: 13px; top: 0; bottom: 36px; width: 2px; background: linear-gradient(var(--mint), color-mix(in srgb, var(--mint) 25%, transparent)); }
.thread-head { position: absolute; left: 0; top: -18px; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--mint-strong); font-size: .9rem; }
.thread-head i { min-width: 28px; height: 28px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; background: var(--surface); border: 2px solid var(--mint); display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.platform { position: relative; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tint); border-radius: var(--radius); padding: 26px 26px 26px 24px; scroll-margin-top: 84px; transition: box-shadow .25s, border-color .25s; }
.platform::before { content: ""; position: absolute; left: -31px; top: 40px; width: 27px; height: 2px; background: color-mix(in srgb, var(--mint) 60%, transparent); }
.platform::after { content: ""; position: absolute; left: -36px; top: 35px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--tint); }
.platform:hover, .platform.is-lit { box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 14%, transparent); }
.platform header { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.platform header .dot { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, var(--surface)); }
.platform h3 { margin: 0; }
.platform .purpose { font-size: 1.05rem; margin-bottom: 12px; }
.platform .for { font-size: .95rem; color: var(--ink-2); margin-bottom: 12px; }
.platform .for b { color: var(--ink); font-weight: 650; }
.platform ul { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
@media (min-width: 800px) { .platform ul { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.platform li { position: relative; padding-left: 26px; font-size: .97rem; }
.platform li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 5px; border-left: 2px solid var(--tint); border-bottom: 2px solid var(--tint); transform: rotate(-45deg); }
.platform .note { font-size: .88rem; color: var(--ink-2); margin: -6px 0 16px; }

/* ---------- Chooser beside a compact ecosystem ---------- */
.chooser-grid { display: grid; gap: 28px; margin-top: 28px; align-items: start; }
@media (min-width: 900px) { .chooser-grid { grid-template-columns: 1fr 1fr; gap: 48px; } .chooser-side { position: sticky; top: 96px; } }
.chooser-side { display: none; }
@media (min-width: 720px) { .chooser-side { display: block; } }
.chooser { display: grid; gap: 12px; }
.choice { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.choice[open] { border-color: var(--tint); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint) 12%, transparent); }
.choice summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; min-height: 56px; font-weight: 600; }
.choice summary::-webkit-details-marker { display: none; }
.choice summary .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tint); flex: none; }
.choice summary .chev { margin-left: auto; width: 20px; height: 20px; color: var(--ink-2); transition: transform .25s ease; flex: none; }
.choice[open] summary .chev { transform: rotate(180deg); }
.choice .answer { padding: 0 18px 18px 40px; color: var(--ink-2); }
.choice .answer p { margin-bottom: 14px; }
.choice::details-content { block-size: 0; overflow: hidden; transition: block-size .28s ease, content-visibility .28s allow-discrete; }
.choice[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ---------- Languages flowing out of Neo AI ---------- */
.flow { display: grid; gap: 10px; margin: 26px 0 30px; position: relative; padding-left: 44px; max-width: 560px; }
.flow::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 22px; width: 2px; background: color-mix(in srgb, var(--mint) 50%, transparent); }
.flow .src { margin-left: -44px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--mint-strong); }
.flow .src i { min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 999px; white-space: nowrap; border: 2px solid var(--mint); display: grid; place-items: center; font-style: normal; font-size: .72rem; background: var(--surface); }
.flow .to { position: relative; display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.flow .to::before { content: ""; position: absolute; left: -29px; top: 50%; width: 22px; height: 2px; background: color-mix(in srgb, var(--mint) 50%, transparent); }
.flow .to b { color: var(--tint); }
.flow .to .chip { margin-left: auto; }
.lang-tools { display: grid; gap: 12px; margin: 0 0 16px; max-width: 46rem; }
.lang-tools label { font-weight: 600; font-size: .95rem; }
.lang-tools input { width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.lang-tools input:focus { outline: 3px solid var(--focus); border-color: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 .92rem Inter, sans-serif; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--mint-soft); border-color: var(--mint); color: var(--mint-strong); font-weight: 650; }
.lang-count { color: var(--ink-2); font-size: .92rem; margin: 0 0 10px; }
.langs { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); max-height: 460px; overflow-y: auto; }
@media (min-width: 800px) { .langs { grid-template-columns: 1fr 1fr; } }
.langs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.langs .native { font-weight: 600; }
.langs .english { color: var(--ink-2); font-size: .9rem; margin-left: 6px; }
.langs .tags { display: flex; gap: 6px; flex: none; }
.langs .empty { justify-content: center; color: var(--ink-2); padding: 24px; grid-column: 1 / -1; }

/* ---------- Footer ---------- */
/* Neo Translate family bar and footer (neo-family.css): line them up with this page's content. */
:root { --ntf-site-max: 1152px; --ntf-site-pad: 16px; }
/* The status strip, just above the family footer. */
.site-status { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 18px 0; font-size: .95rem; }
.site-status .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.site-status h2 { font-size: .95rem; margin: 0; }
.site-status ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.status li { display: flex; align-items: center; gap: 8px; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; }
.status .st-bad i { background: var(--bad); } .status .st-idle i { background: var(--idle); }
.status span { color: var(--ink-2); }

/* Reviewer controls (not part of the design) */

/* Motion off: everything at rest (pulses are also paused from the script). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after, .choice::details-content { animation: none !important; transition: none !important; }
  .pulse { display: none; }
  .btn-primary:hover, .btn-tint:hover { transform: none; }
}
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
.calm .pulse { display: none; }
.eco-panel .more { display: inline-block; margin: 10px 0 0 12px; font-size: .92rem; white-space: nowrap; }

/* Production additions (2026-09-28) */
.chip.early { --tint: var(--ink-2); }
.soon { display: inline-block; margin-left: 8px; font-size: .75rem; font-weight: 650; padding: 2px 9px; border-radius: 999px; color: var(--t-developers); background: color-mix(in srgb, var(--t-developers) 12%, var(--surface)); vertical-align: 3px; }
.prose { max-width: 42rem; }
.prose h2 { margin-top: 28px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 4px 0; }
.draft { background: #FFF2CC; color: #3a2e00; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; }
