:root {
  --ink: #07151c;
  --ink-2: #0b222b;
  --panel: #0e2c36;
  --line: #234852;
  --cyan: #36d7ee;
  --lime: #b9f227;
  --white: #f6fbfd;
  --muted: #9db2b8;
  --paper: #eef4f3;
  --blue: #0f74aa;
  --radius: 8px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.site-header { position: sticky; top: 0; z-index: 40; min-height: 72px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(7,21,28,.94); color: var(--white); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--cyan); border-radius: 6px; background: #0b2d39; color: var(--cyan); font: 800 13px/1 Inter, Arial, sans-serif; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 17px; }
.brand-copy small { color: var(--cyan); font-size: 9px; font-weight: 800; }
.desktop-nav { display: flex; justify-content: flex-end; gap: 28px; }
.desktop-nav a { position: relative; color: #c8d5d8; text-decoration: none; font-size: 14px; font-weight: 650; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--lime); transition: right .2s ease; }
.desktop-nav a:hover::after { right: 0; }
.header-cta { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; border: 1px solid var(--cyan); border-radius: 4px; color: var(--white); text-decoration: none; font-size: 13px; font-weight: 750; }
.menu-button, .mobile-nav { display: none; }
.hero { position: relative; min-height: min(760px, calc(100vh - 72px)); display: grid; align-items: center; overflow: hidden; background: var(--ink); color: var(--white); }
.hero-media { position: absolute; inset: 0; background: url("/assets/sports-api-hero.webp") center/cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,16,23,.96) 0%, rgba(4,16,23,.86) 35%, rgba(4,16,23,.28) 72%, rgba(4,16,23,.18) 100%); }
.hero-content { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 92px 0 110px; }
.eyebrow, .section-index { margin: 0 0 20px; color: var(--cyan); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 2px; background: var(--lime); }
h1 { max-width: 700px; margin: 0; font-size: clamp(64px, 9vw, 126px); line-height: .9; font-weight: 900; }
.hero-lead { max-width: 720px; margin: 28px 0 14px; color: var(--white); font-size: clamp(22px, 3vw, 36px); line-height: 1.35; font-weight: 780; }
.hero-detail { max-width: 610px; margin: 0; color: #b5c7cc; font-size: 17px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 800; }
.button-primary { background: var(--lime); color: #142004; }
.button-primary:hover { background: #d0ff4e; }
.button-secondary { border: 1px solid rgba(255,255,255,.46); color: var(--white); background: rgba(7,21,28,.28); }
.protocols { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.protocols span { padding: 7px 10px; border: 1px solid rgba(54,215,238,.28); border-radius: 3px; background: rgba(7,21,28,.52); color: #bfeaf0; font: 700 10px/1 Inter, Arial, sans-serif; }
.metric-band { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--lime); color: #102004; }
.metric-band div { min-height: 116px; display: grid; align-content: center; gap: 7px; padding: 24px 28px; border-right: 1px solid rgba(16,32,4,.2); }
.metric-band div:last-child { border: 0; }
.metric-band strong { font-size: 19px; }
.metric-band span { font-size: 12px; line-height: 1.6; }
.section { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2 { margin: 0 0 18px; font-size: clamp(34px, 5vw, 58px); line-height: 1.12; }
.section-heading > p:last-child { max-width: 650px; margin: 0; color: #4f676c; font-size: 17px; line-height: 1.8; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b8c9c8; border-left: 1px solid #b8c9c8; }
.capability-grid article { min-height: 246px; padding: 28px; border-right: 1px solid #b8c9c8; border-bottom: 1px solid #b8c9c8; background: rgba(255,255,255,.46); }
.capability-grid article > span { display: block; color: var(--blue); font-size: 11px; font-weight: 850; }
.capability-grid h3 { margin: 46px 0 12px; font-size: 21px; }
.capability-grid p { margin: 0; color: #53686d; line-height: 1.75; font-size: 14px; }
.demo-section { padding: 110px max(24px, calc((100vw - var(--max)) / 2)); background: var(--ink); color: var(--white); }
.section-heading-light { margin-bottom: 32px; }
.sport-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; }
.sport-tab { min-width: 90px; min-height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #9cb2b8; cursor: pointer; font: 750 13px/1 inherit; }
.sport-tab.active { border-color: var(--lime); background: var(--lime); color: #142004; }
.data-demo { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 520px; border: 1px solid var(--line); }
.match-panel, .json-panel { min-width: 0; background: #0a2029; }
.json-panel { border-left: 1px solid var(--line); background: #06141b; }
.panel-head { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--line); color: #bed0d4; font-size: 11px; font-weight: 800; }
.live-status { display: flex; align-items: center; gap: 7px; color: var(--lime); }
.live-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(185,242,39,.1); }
.match-row { min-height: 154px; display: grid; grid-template-columns: 60px 1fr auto 1fr; align-items: center; gap: 18px; padding: 24px; border-bottom: 1px solid var(--line); }
.match-row time { color: var(--cyan); font-size: 13px; font-weight: 850; }
.match-row div { display: grid; gap: 7px; }
.match-row strong { font-size: 16px; }
.match-row small { color: #748f96; font-size: 11px; }
.match-row b { color: var(--white); font-size: 30px; }
.match-row .away { text-align: right; }
.event-strip { display: flex; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.event-strip span { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #214450; border-radius: 3px; color: #91aab0; font-size: 10px; }
.event-strip .current { border-color: var(--lime); color: var(--lime); }
.standings { padding: 16px 22px 24px; }
.standings > div { display: grid; grid-template-columns: 50px 1fr 80px 60px; align-items: center; min-height: 46px; border-bottom: 1px solid rgba(35,72,82,.7); color: #b5c8cc; font-size: 12px; }
.standings .table-head { color: #66828a; font-size: 10px; text-transform: uppercase; }
.standings strong { color: var(--lime); }
.json-panel pre { margin: 0; padding: 30px 26px; color: #aedfe8; font: 13px/1.9 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.integration-section { background: #f7faf9; }
.integration-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.steps { display: grid; gap: 0; border-top: 1px solid #bccac9; }
.steps article { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid #bccac9; }
.steps article > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 4px; background: var(--ink); color: var(--cyan); font-size: 11px; font-weight: 850; }
.steps h3 { margin: 2px 0 8px; font-size: 18px; }
.steps p { margin: 0; color: #61767a; font-size: 13px; line-height: 1.7; }
.code-sample { border: 1px solid #244650; background: var(--ink); color: var(--white); }
.code-toolbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #244650; color: #8ca7ae; font-size: 10px; font-weight: 850; }
.code-toolbar button { min-height: 30px; padding: 0 10px; border: 1px solid #3b626d; border-radius: 3px; background: #0d2a34; color: #d6e7e9; cursor: pointer; }
.code-sample pre { margin: 0; padding: 34px 24px; color: #bde6ed; font: 13px/1.9 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-notes { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; border-top: 1px solid #244650; }
.code-notes span { padding: 6px 8px; border: 1px solid #244650; border-radius: 3px; color: #91abb0; font-size: 9px; font-weight: 800; }
.contact-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 74px max(24px, calc((100vw - var(--max)) / 2)); background: var(--cyan); color: #06202a; }
.contact-band h2 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 52px); }
.contact-band p:last-child { max-width: 720px; margin: 0; line-height: 1.7; }
.contact-band .section-index { color: #0a5c72; }
.telegram-button { min-width: 236px; min-height: 70px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 2px solid #06202a; border-radius: 5px; text-decoration: none; }
.telegram-button > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 4px; background: #06202a; color: var(--cyan); font-size: 20px; }
.telegram-button div { display: grid; gap: 3px; }
.telegram-button small { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.telegram-button strong { font-size: 17px; }
.site-footer { min-height: 110px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; padding: 24px max(24px, calc((100vw - var(--max)) / 2)); background: #041016; color: #859da3; font-size: 12px; }
.site-footer div { display: grid; gap: 5px; }
.site-footer strong { color: var(--white); font-size: 15px; }
.site-footer a { color: var(--cyan); text-decoration: none; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 11px 15px; border-radius: 4px; background: var(--lime); color: #142004; font-size: 12px; font-weight: 850; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 960px) {
  .desktop-nav, .header-cta { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; padding-inline: 22px; }
  .menu-button { grid-column: 3; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border: 1px solid #33535c; border-radius: 4px; background: transparent; }
  .menu-button span { width: 20px; height: 2px; background: var(--white); }
  .mobile-nav { position: absolute; left: 0; right: 0; top: 72px; display: none; padding: 12px 22px 20px; border-bottom: 1px solid #294751; background: #07151c; }
  .mobile-nav.open { display: grid; }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid #203c45; color: #d4e1e3; text-decoration: none; font-weight: 700; }
  .metric-band { grid-template-columns: repeat(2, 1fr); }
  .metric-band div:nth-child(2) { border-right: 0; }
  .metric-band div:nth-child(-n+2) { border-bottom: 1px solid rgba(16,32,4,.2); }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .data-demo, .integration-layout { grid-template-columns: 1fr; }
  .json-panel { border-left: 0; border-top: 1px solid var(--line); }
  .contact-band { grid-template-columns: 1fr; }
  .telegram-button { width: fit-content; }
}
@media (max-width: 640px) {
  .site-header { min-height: 66px; }
  .mobile-nav { top: 66px; }
  .brand-copy small { display: none; }
  .hero { min-height: 690px; }
  .hero-media { background-position: 62% center; }
  .hero-shade { background: linear-gradient(180deg, rgba(4,16,23,.62) 0%, rgba(4,16,23,.93) 55%, rgba(4,16,23,.98) 100%); }
  .hero-content { width: calc(100% - 36px); padding: 128px 0 70px; align-self: end; }
  h1 { font-size: clamp(58px, 20vw, 84px); }
  .hero-lead { font-size: 23px; }
  .hero-detail { font-size: 14px; }
  .button { width: 100%; }
  .metric-band { grid-template-columns: 1fr; }
  .metric-band div { min-height: 94px; border-right: 0; border-bottom: 1px solid rgba(16,32,4,.2); }
  .section, .demo-section { padding-block: 78px; }
  .section-heading { margin-bottom: 36px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 210px; }
  .match-row { grid-template-columns: 48px 1fr auto; gap: 12px; padding: 18px; }
  .match-row .away { grid-column: 2 / -1; text-align: left; padding-left: 0; }
  .standings { padding-inline: 16px; }
  .standings > div { grid-template-columns: 42px 1fr 48px 42px; }
  .json-panel pre, .code-sample pre { font-size: 11px; padding: 22px 16px; }
  .contact-band { padding-block: 58px; }
  .telegram-button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 14px; padding-block: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
