:root {
  --red: #ed1c24;
  --coral: #f1625a;
  --salmon: #f69586;
  --slate: #737f8f;
  --graphite: #667172;
  --mist: #b9c7c9;
  --ink: #1e1f22;
  --text: #33363b;
  --muted: #6b6f76;
  --line: #e4e6e9;
  --card: #f3f3f4;
  --band: #d9dbdd;
  --white: #ffffff;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* brand stripe */
.stripe { display: grid; grid-template-columns: repeat(6, 1fr); height: 8px; }
.stripe span:nth-child(1) { background: var(--red); }
.stripe span:nth-child(2) { background: var(--coral); }
.stripe span:nth-child(3) { background: var(--salmon); }
.stripe span:nth-child(4) { background: var(--slate); }
.stripe span:nth-child(5) { background: var(--graphite); }
.stripe span:nth-child(6) { background: var(--mist); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; line-height: 1; }
.brand img { height: 34px; width: auto; }
.brand small { font-size: 0.78rem; color: var(--slate); font-weight: 600; margin-top: 3px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--card); }
.nav-links a[aria-current="page"] { color: var(--red); }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 10px; padding: 14px 24px; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #d3141b; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.nav-links .btn { padding: 10px 18px; color: var(--white); }
.nav-links .btn:hover { background: #d3141b; }

/* sections */
section { padding: 88px 0; }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46rem; margin-top: 18px; }
.lead strong { color: var(--ink); font-weight: 700; }
.section-head { max-width: 50rem; margin-bottom: 44px; }
.section-head .lead { margin-top: 12px; }
.muted-bg { background: var(--card); }

/* hero */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.page-hero.has-bg { position: relative; padding: 96px 0 84px; margin-bottom: 56px; background: linear-gradient(90deg, rgba(22,23,26,0.94) 0%, rgba(22,23,26,0.82) 50%, rgba(22,23,26,0.45) 100%), var(--hero-img) center / cover no-repeat, var(--ink); }
.page-hero.has-bg h1 { color: var(--white); }
.page-hero.has-bg .lead { color: #d3d6db; }
.page-hero.has-bg .kicker { color: var(--salmon); }
.page-hero.has-bg .btn-ghost { border-color: var(--white); color: var(--white); }
.page-hero.has-bg .btn-ghost:hover { background: var(--white); color: var(--ink); }
.page-hero.has-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red) 0 16.66%, var(--coral) 16.66% 33.33%, var(--salmon) 33.33% 50%, var(--slate) 50% 66.66%, var(--graphite) 66.66% 83.33%, var(--mist) 83.33%); }
.photo.photo-tall img { aspect-ratio: 11 / 5; }

/* playlist mock */
.mock { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px -30px rgba(30,31,34,0.35), 0 8px 20px -12px rgba(30,31,34,0.18); overflow: hidden; }
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fafafa; }
.mock-title { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.mock-title span { color: var(--muted); font-weight: 600; }
.mock-tabs { display: flex; gap: 6px; }
.mock-tabs b { font-size: 0.72rem; font-weight: 700; padding: 4px 9px; border-radius: 6px; background: var(--card); color: var(--muted); }
.mock-tabs b.on { background: var(--ink); color: var(--white); }
.mock-rows { font-variant-numeric: tabular-nums; }
.row { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 11px 18px; border-bottom: 1px solid #f0f1f2; font-size: 0.88rem; }
.row:last-child { border-bottom: 0; }
.row time { font-weight: 700; color: var(--ink); font-size: 0.86rem; }
.row .t { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; color: var(--muted); font-weight: 400; font-size: 0.78rem; }
.tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.tag-prog { background: #eceff2; color: var(--slate); }
.tag-break { background: #fde3e4; color: #c4141b; }
.tag-promo { background: #fdebe6; color: #c2472f; }
.tag-gfx { background: #e7eeef; color: var(--graphite); }
.row.live { background: #fff6f6; box-shadow: inset 3px 0 0 var(--red); }
.mock-foot { display: flex; justify-content: space-between; padding: 12px 18px; background: #fafafa; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.mock-foot .ok { color: #2f7d4f; }

/* lifecycle ribbon */
.ribbon { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; }
.ribbon div { position: relative; padding: 16px 14px 16px 30px; color: var(--white); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); margin-right: -10px; }
.ribbon div:first-child { clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%); padding-left: 16px; }
.ribbon div:nth-child(1) { background: var(--mist); color: var(--ink); }
.ribbon div:nth-child(2) { background: var(--slate); }
.ribbon div:nth-child(3) { background: var(--graphite); }
.ribbon div:nth-child(4) { background: var(--coral); }
.ribbon div:nth-child(5) { background: var(--red); }

/* pillars */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pillar { background: var(--card); border-radius: var(--radius); padding: 34px; border-top: 6px solid var(--slate); }
.pillar.monetize { border-top-color: var(--red); }
.pillar h3 { font-size: 1.7rem; font-weight: 800; }
.pillar > p { color: var(--muted); margin-top: 6px; }
.pillar dl { margin: 22px 0 0; }
.pillar dt { font-weight: 700; color: var(--ink); margin-top: 16px; }
.pillar.monetize dt { color: var(--red); }
.pillar dd { margin: 2px 0 0; color: var(--text); font-size: 0.97rem; }

/* day steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 210px 1fr; gap: 18px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: var(--white); font-weight: 800; align-self: center; }
.steps b { color: var(--ink); font-weight: 700; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: var(--white); border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 10px 30px -18px rgba(30,31,34,0.35); }
.stat strong { display: flex; align-items: center; gap: 10px; font-size: clamp(2.4rem, 4.4vw, 3.4rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat strong::before { content: ""; border-left: 11px solid var(--red); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.stat:nth-child(2) strong::before { border-left-color: var(--slate); }
.stat:nth-child(3) strong::before { border-left-color: var(--coral); }
.stat:nth-child(4) strong::before { border-left-color: var(--mist); }
.stat span { display: block; color: var(--muted); margin-top: 8px; }
.band { background: var(--band); }

/* cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); padding: 30px; }
.card.edge { border-left: 6px solid var(--red); }
.card h3 + p { color: var(--muted); font-weight: 600; font-size: 0.95rem; margin-top: 6px; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--red); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
ul.dots { list-style: none; padding: 0; margin: 16px 0 0; }
ul.dots li { position: relative; padding-left: 18px; margin-top: 8px; font-size: 0.97rem; }
ul.dots li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* module blocks */
.module { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; }
.module h3 { font-size: 1.55rem; font-weight: 800; display: flex; align-items: center; gap: 12px; }
.module h3::before { content: ""; width: 6px; height: 1.2em; background: var(--red); border-radius: 2px; }
.module .intro { color: var(--muted); margin-top: 10px; }
.module ul.dots { margin-top: 0; columns: 2; column-gap: 40px; }
.module ul.dots li { break-inside: avoid; margin: 0 0 12px; }
.module ul.dots li b { color: var(--ink); }

/* why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.why h3 { display: flex; align-items: center; gap: 10px; font-size: 1.08rem; }
.why h3::before { content: ""; border-left: 10px solid var(--red); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.why div:nth-child(2) h3::before { border-left-color: var(--slate); }
.why div:nth-child(3) h3::before { border-left-color: var(--coral); }
.why div:nth-child(4) h3::before { border-left-color: var(--mist); }
.why p { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }

/* horizons */
.horizons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; }
.horizons div { padding: 30px; color: var(--white); }
.horizons div:nth-child(1) { background: var(--graphite); }
.horizons div:nth-child(2) { background: var(--coral); }
.horizons div:nth-child(3) { background: var(--red); }
.horizons h3 { color: var(--white); font-size: 1.35rem; font-weight: 800; }
.horizons small { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; opacity: 0.85; margin-bottom: 6px; }
.horizons p { margin-top: 8px; opacity: 0.95; font-size: 0.97rem; }

/* logos */
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.logo-tile { background: var(--white); border-radius: 12px; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 16px; box-shadow: 0 6px 18px -12px rgba(30,31,34,0.3); }
.logo-tile { min-width: 0; overflow: hidden; }
.logo-tile img { max-height: 70%; max-width: 100%; width: auto; height: auto; object-fit: contain; }

/* engineers note */
.note { margin-top: 28px; padding: 18px 22px; border-radius: 12px; background: var(--white); border: 1px dashed var(--mist); color: var(--muted); font-size: 0.95rem; }
.note b { color: var(--ink); }

/* CTA */
.cta { padding: 0 0 88px; }
.cta-box { background: var(--ink); color: var(--white); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: linear-gradient(90deg, var(--red) 0 16.66%, var(--coral) 16.66% 33.33%, var(--salmon) 33.33% 50%, var(--slate) 50% 66.66%, var(--graphite) 66.66% 83.33%, var(--mist) 83.33%); }
.cta-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,31,34,0.96) 0%, rgba(30,31,34,0.88) 45%, rgba(30,31,34,0.55) 100%), var(--cta-img) center / cover no-repeat; z-index: 0; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: var(--white); }
.photo { margin: 0 0 64px; border-radius: 18px; overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: auto; aspect-ratio: 32 / 9; object-fit: cover; }
.cta-box p { color: #c8cbd0; margin-top: 10px; font-size: 1.1rem; }
.band + .cta, .muted-bg + .cta { padding-top: 88px; }

/* form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea, .form select { font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: 10px; border: 1.5px solid #cfd3d8; background: var(--white); color: var(--ink); }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(237,28,36,0.15); }
.form textarea { min-height: 130px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; align-items: start; }
.contact-side h3 { margin-bottom: 10px; }
.contact-side a.mail { font-size: 1.4rem; font-weight: 800; color: var(--red); text-decoration: none; }
.contact-side ul.dots { margin-top: 18px; }

/* footer */
.site-footer { background: var(--card); padding: 56px 0 0; margin-top: 0; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot a { text-decoration: none; color: var(--ink); font-weight: 600; }
.foot a:hover { color: var(--red); }
.foot p { color: var(--muted); margin-top: 14px; max-width: 22rem; font-size: 0.95rem; }
.legal { border-top: 1px solid #dfe1e4; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.86rem; flex-wrap: wrap; }
.legal a { color: var(--muted); }

/* responsive */
@media (max-width: 1020px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .stats, .grid-4, .why { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .module { grid-template-columns: 1fr; gap: 18px; }
  .cta-box { grid-template-columns: 1fr; padding: 40px; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-links .btn { justify-content: center; }
  .ribbon { grid-template-columns: 1fr; gap: 6px; }
  .ribbon div, .ribbon div:first-child { clip-path: none; margin: 0; border-radius: 8px; padding: 12px 16px; text-align: left; }
  .pillars, .grid-2, .grid-3, .horizons, .form { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 34px 1fr; gap: 6px 14px; }
  .steps li span { grid-column: 2; }
  .module ul.dots { columns: 1; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 60px 0; }
  .hero { padding: 44px 0 48px; }
  .stats, .grid-4, .why { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { aspect-ratio: 3 / 2; padding: 14px 20px; }
  .pillar, .card { padding: 24px; }
  .cta-box { padding: 30px 22px 38px; }
  .row { grid-template-columns: 58px 1fr auto; padding: 10px 12px; gap: 8px; }
  .mock-tabs { display: none; }
  .foot { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .photo { margin-bottom: 40px; border-radius: 12px; }
  .photo img { aspect-ratio: 16 / 9; }
}
