/* TBL Network — site styles */
:root {
  --brand: #5500ff;
  --brand-600: #4300cc;
  --brand-300: #a47dff;
  --brand-50: #f3eeff;
  --ink: #0d0c14;
  --ink-2: #16141f;
  --ink-3: #221f30;
  --text: #1b1a22;
  --muted: #5d5a6b;
  --line: #e6e3ee;
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13,12,20,.04), 0 8px 24px rgba(13,12,20,.06);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.site-footer .brand img { height: 64px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; }
.nav-links a.active { color: var(--brand); }
.nav-links .btn { margin-left: 8px; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; background: var(--brand); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, transform .15s, border-color .15s; font-family: var(--font-body); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-light { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #d9d6e6; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--brand-300); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.section-dark .lead { color: #b5b0c8; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #d9d6e6; padding: 112px 0 104px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(85,0,255,.45), transparent 70%),
    radial-gradient(500px 360px at 0% 100%, rgba(164,125,255,.18), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--brand-300); }
.hero .lead { color: #b5b0c8; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.page-hero { padding: 88px 0 80px; }
.page-hero .lead { max-width: 720px; }
.crumb { font-size: .85rem; color: #8f8aa6; margin-bottom: 18px; }
.crumb a { color: #b5b0c8; }

/* Hero visual */
.hero-visual { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 24px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.hv-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink-3); border-radius: 12px; margin-bottom: 10px; font-size: .9rem; color: #d9d6e6; }
.hv-row > div { flex: 1; margin-right: 16px; }
.hv-row strong { color: #fff; font-family: var(--font-head); }
.hv-tag { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(85,0,255,.25); color: #cbb6ff; }
.hv-bar { height: 6px; border-radius: 3px; background: #2e2a40; margin-top: 8px; overflow: hidden; }
.hv-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-300)); }
.hv-title { font-family: var(--font-head); font-weight: 700; color: #fff; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.hv-title .live { font-size: .72rem; color: #7cf0b5; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-body); font-weight: 600; }
.hv-title .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7cf0b5; box-shadow: 0 0 0 4px rgba(124,240,181,.15); }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.section-dark .card { background: var(--ink-2); border-color: var(--ink-3); box-shadow: none; }
.section-dark .card p { color: #b5b0c8; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.section-dark .icon { background: rgba(85,0,255,.2); color: var(--brand-300); }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: 8px; }
a.card { color: inherit; transition: transform .2s, border-color .2s; display: block; }
a.card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--brand-300); }

/* Pillars on home */
.pillar { position: relative; overflow: hidden; }
.pillar .num { font-family: var(--font-head); font-weight: 800; font-size: .85rem; color: var(--brand); letter-spacing: .1em; margin-bottom: 10px; }
.pillar ul { margin: 14px 0 0; padding: 0; list-style: none; }
.pillar li { padding: 6px 0 6px 24px; position: relative; color: var(--text); font-size: .95rem; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 2px; background: var(--brand); }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }
.checklist { list-style: none; margin: 20px 0 0; padding: 0; }
.checklist li { position: relative; padding: 8px 0 8px 34px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235500ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.section-dark .checklist li::before { background-color: rgba(85,0,255,.25); }

/* Powered-by partner chip */
.powered { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; color: var(--muted); background: #fff; }
.powered b { font-family: var(--font-head); font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-size: .92rem; }
.section-dark .powered, .hero .powered { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #b5b0c8; }
.section-dark .powered b, .hero .powered b { color: #fff; }
.wm-pubmatic b::first-letter { color: #2f6fed; }
.wm-openx b span { color: #f06c00; }

/* Format table / specs */
.specs { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { background: var(--bg-soft); font-family: var(--font-head); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* Size chips */
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sizes span { font-family: var(--font-head); font-weight: 600; font-size: .85rem; padding: 6px 12px; border-radius: 8px; background: var(--brand-50); color: var(--brand-600); }

/* Ad unit mock */
.mock { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.mock-browser { background: #fff; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.mock-bar { height: 30px; background: #f0eef6; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d0e0; }
.mock-body { padding: 16px; display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
.mock-lb { grid-column: 1 / -1; height: 44px; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-300)); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; letter-spacing: .08em; }
.mock-line { height: 9px; border-radius: 4px; background: #ebe8f2; margin-bottom: 9px; }
.mock-line.s { width: 70%; }
.mock-video { aspect-ratio: 16/9; border-radius: 8px; background: var(--ink); margin: 6px 0 12px; display: grid; place-items: center; position: relative; }
.mock-video::after { content: ""; border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.mock-video .badge { position: absolute; top: 8px; left: 8px; font-size: .62rem; font-weight: 700; color: #fff; background: var(--brand); padding: 2px 7px; border-radius: 4px; }
.mock-mpu { height: 200px; border-radius: 6px; background: var(--brand-50); border: 1.5px dashed var(--brand-300); color: var(--brand-600); font-size: .7rem; font-weight: 700; display: grid; place-items: center; text-align: center; }

/* Flow diagram */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; counter-reset: step; }
.flow-step { position: relative; background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 14px; padding: 22px 18px; }
.flow-step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-head); font-weight: 800; font-size: .8rem; color: var(--brand-300); display: block; margin-bottom: 10px; }
.flow-step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p { font-size: .88rem; margin: 0; color: #b5b0c8; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--brand-300); border-right: 2px solid var(--brand-300); transform: translateY(-50%) rotate(45deg); }
.flow-step.hl { background: var(--brand); border-color: var(--brand); }
.flow-step.hl::before, .flow-step.hl p { color: #e6dcff; }

/* Logos row */
.logo-row { display: flex; flex-wrap: wrap; gap: 12px; }
.logo-row span { padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: .92rem; }

/* CTA band */
.cta-band { background: var(--brand); color: #fff; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #e6dcff; margin: 0; font-size: 1.08rem; }
.cta-band .btn-row { margin: 0; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn-ghost { color: #fff; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; background: #fff; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.field textarea { min-height: 140px; resize: vertical; }
.hidden { display: none; }
.contact-info { display: grid; gap: 22px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-info p { margin: 0; color: var(--muted); }
.map { border: 0; width: 100%; height: 300px; border-radius: var(--radius); margin-top: 8px; }

/* Prose (legal) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--muted); }

/* Footer */
.site-footer { background: #131217; color: #9e99b3; padding: 72px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #c9c4da; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--ink-3); margin-top: 48px; padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { right: 50%; top: auto; bottom: -11px; transform: translateX(50%) rotate(135deg); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); display: none; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links .btn { margin: 8px 0 0; justify-content: center; }
  .hero-grid, .split, .cta-band { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .cta-band { padding: 40px 28px; }
  .cta-band .btn-row { justify-content: flex-start; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 72px 0; }
  .grid-2, .grid-3, .grid-4, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-mpu { height: 120px; }
}
