@charset "UTF-8";
/* Tracklign website — direction "I": split hero, plum glow, live sync demo. */
:root {
  --bg: #121115; --bg-deep: #0d0c10; --stack: #1b1a20; --row: #222128; --raised: #2a2931; --line: #2a2931;
  --text: #f3f1f6; --muted: #9d99a8; --faint: #6f6b7a;
  --accent: #ff4fa3; --accent-hi: #ff7ab8; --on-accent: #121115; --ok: #5fe39a; --ok-bg: #10281c; --warn: #f2c14e;
  --sans: "IBM Plex Sans", "IBM Plex Sans Cyrillic", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 24px; font-weight: 600; text-decoration: none; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; white-space: nowrap; }
.btn-p { background: var(--accent); color: var(--on-accent); }
.btn-p:hover { background: var(--accent-hi); }
.btn-s { background: var(--raised); color: var(--text); }
.btn-s:hover { background: #34333c; }
.btn-off, .btn-off:hover { background: var(--raised); color: var(--muted); cursor: default; opacity: .75; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--faint); font-size: 13px; margin-top: 14px; }
.kicker { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-hi); margin: 0 0 10px; }
h1, h2, h3 { letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 40px; line-height: 1.1; margin-bottom: 14px; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(18,17,21,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.nav a.link { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav a.link:hover { color: var(--text); }
.langpick { position: relative; }
.langpick summary { list-style: none; cursor: pointer; font-size: 14px; color: var(--muted); padding: 7px 12px; border-radius: 12px; background: var(--stack); white-space: nowrap; }
.langpick summary::-webkit-details-marker { display: none; }
.langpick summary::after { content: " ▾"; font-size: 11px; }
.langpick[open] summary, .langpick summary:hover { color: var(--text); }
.langpick .menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--stack); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 180px; z-index: 30; display: grid; }
.langpick .menu a { padding: 7px 12px; border-radius: 9px; text-decoration: none; color: var(--muted); font-size: 14px; }
.langpick .menu a:hover { background: var(--raised); color: var(--text); }
.langpick .menu a.on { color: var(--accent-hi); }
@media (max-width: 860px) { .nav a.link { display: none; } .nav .wrap { gap: 12px; } }
.langpick .ln-code { display: none; }
@media (max-width: 360px) { .langpick .ln-full { display: none; } .langpick .ln-code { display: inline; } }
@media (max-width: 420px) { .nav .wrap { gap: 8px; } .nav .btn-sm { padding: 0 12px; font-size: 13px; } .langpick summary { padding: 7px 8px; font-size: 13px; } }

/* hero */
.hero { background: radial-gradient(1100px 560px at 50% -14%, #2c1424 0%, var(--bg) 62%); }
.hero .wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 88px; }
.hero h1 { font-size: 58px; line-height: 1.03; margin-bottom: 18px; }
.hero h1 em, h2 em { font-style: normal; color: var(--accent-hi); }
.hero .lead { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.pill { display: inline-block; background: var(--stack); border-radius: 14px; padding: 5px 14px; font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.pill b { color: var(--accent-hi); font-weight: 600; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 56px; } .hero h1 { font-size: 40px; } }
@media (max-width: 480px) { .hero h1 { font-size: 32px; } }
/* Grid items default to min-width:auto, so a long word or the demo window would widen the
   column past a phone screen; let them shrink and wrap instead. */
.hero .wrap > *, .facts .wrap > *, .steps > *, .features > *, .price-wrap > *, .download .box > * { min-width: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }

/* demo window (see demo.js) */
.window { background: #17161c; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.titlebar { display: flex; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--row); align-items: center; }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: var(--raised); display: inline-block; }
.titlebar .name { margin-left: 8px; font: 12px var(--mono); color: var(--faint); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: inline-flex; background: var(--bg); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 12px var(--sans); padding: 5px 11px; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--raised); color: var(--text); }
.replay { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; margin-left: 6px; }
.replay:hover, .seg button:hover { color: var(--text); }
.stage { position: relative; padding: 12px 16px 14px; }
.ruler { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--faint); padding: 0 0 8px var(--gutter); }
.tracks { position: relative; }
.track { display: flex; align-items: center; height: 40px; margin-top: 6px; }
.tname { width: var(--gutter); flex-shrink: 0; white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--muted); }
.tname .ok { width: 14px; height: 14px; border-radius: 7px; background: var(--ok-bg); color: var(--ok); font-size: 10px; line-height: 14px; text-align: center; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .25s; }
.track.matched .tname .ok { opacity: 1; transform: scale(1); }
.lane { position: relative; flex: 1; height: 32px; overflow: hidden; border-radius: 8px; }
.clip { position: absolute; top: 0; height: 32px; border-radius: 8px; overflow: hidden; transition: left .9s cubic-bezier(.2,.85,.25,1); }
.clip svg { display: block; width: 100%; height: 100%; }
.clip .clap { transition: fill .3s; }
.demo.aligned .clip .clap { fill: #fff; }
.scan { position: absolute; top: -4px; bottom: -4px; width: 70px; margin-left: -70px; left: var(--gutter); pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(255,79,163,0) 0%, rgba(255,79,163,.16) 80%, rgba(255,122,184,.9) 100%); }
.demo.scanning .scan { opacity: 1; transition: left 1.5s linear, opacity .2s; }
.sync-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; opacity: 0; box-shadow: 0 0 16px 3px rgba(255,122,184,.55); transition: opacity .35s; pointer-events: none; }
.demo.aligned .sync-line { opacity: .85; }
.demo.flash .sync-line { opacity: 1; box-shadow: 0 0 26px 8px rgba(255,122,184,.75); }
.playhead { position: absolute; top: -8px; bottom: -6px; width: 2px; background: var(--accent); opacity: 0; pointer-events: none; }
.playhead::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 8px; border-radius: 2px; background: var(--accent); }
.demo.playing .playhead { opacity: 1; }
.status { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--row); padding: 10px 16px; font: 12px var(--mono); color: var(--muted); min-height: 40px; }
.status .dot { width: 8px; height: 8px; border-radius: 4px; background: var(--warn); flex-shrink: 0; }
.status.ok { color: var(--ok); } .status.ok .dot { background: var(--ok); } .status.busy .dot { background: var(--accent); }
.status .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; max-width: 160px; margin-left: auto; }
.status .bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.demo { --gutter: 92px; }
@media (max-width: 860px) { .demo { --gutter: 76px; } .tname { font-size: 10px; } .seg button { padding: 5px 8px; } }
@media (prefers-reduced-motion: reduce) { .clip, .scan, .sync-line, .tname .ok { transition: none !important; } html { scroll-behavior: auto; } }

/* facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 24px; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; } .fact:last-child { border-right: 0; }
.fact b { display: block; font-size: 24px; }
.fact span { color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact { padding: 18px 0; border-right: 0; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--stack); border-radius: 20px; padding: 26px; }
.step .n { font: 500 13px var(--mono); color: var(--accent-hi); margin-bottom: 14px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px; }
.feature .ic { width: 38px; height: 38px; border-radius: 12px; background: #2a1622; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* pricing */
.pricing { background: var(--bg-deep); }
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; }
.plan { background: var(--stack); border-radius: 22px; padding: 30px; border: 2px solid transparent; }
.plan.main { border-color: var(--accent); }
.plan h3 { font-size: 18px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.plan .tag { display: inline-block; font: 600 11px var(--mono); color: var(--accent-hi); background: #2a1622; border-radius: 8px; padding: 3px 8px; margin-left: 8px; vertical-align: middle; }
.plan .price { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; }
.plan .per { color: var(--muted); font-size: 15px; margin-left: 4px; }
.plan .note { color: var(--faint); font-size: 13px; min-height: 20px; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; }
.plan li { padding: 8px 0; border-top: 1px solid var(--row); color: var(--muted); font-size: 15px; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; color: var(--ok); margin-right: 10px; font-weight: 600; }
.plan .btn { width: 100%; }
.price-foot { color: var(--faint); font-size: 13px; margin-top: 18px; max-width: 880px; }
@media (max-width: 760px) { .price-wrap { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; max-width: 720px; }

/* download */
.download .box { background: var(--stack); border-radius: 22px; padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.download ol { margin: 0; padding-left: 20px; color: var(--muted); }
.download ol li { padding: 4px 0; }
.download ol b { color: var(--text); font-weight: 600; }
@media (max-width: 860px) { .download .box { grid-template-columns: 1fr; padding: 24px; } }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 48px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .grow { flex: 1; }
footer .mor { width: 100%; font-size: 12px; margin-top: 6px; }

/* legal pages */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: 40px; margin-bottom: 6px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 34px; }
.legal h2 { font-size: 22px; margin: 34px 0 10px; }
.legal p, .legal li { color: #cfcbd6; }
.legal a { color: var(--accent-hi); }
.legal .todo { background: #352c12; color: var(--warn); border-radius: 10px; padding: 12px 16px; font-size: 14px; }

h2, .section-head, .plan, .step, .feature { scroll-margin-top: 80px; }
section[id] { scroll-margin-top: 60px; }
