:root {
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --text: #122033;
  --muted: #607085;
  --line: rgba(18, 32, 51, 0.1);
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.08);
  --primary: #0f62fe;
  --primary-dark: #0043ce;
  --youtube: #ff0033;
  --tiktok: #111111;
  --facebook: #1877f2;
  --instagram: #d62976;
  --success: #15803d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 98, 254, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(214, 41, 118, 0.08), transparent 25%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.site-header,
.site-footer,
.hero-card,
.platform-card,
.info-panel,
.callout,
.card {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header { position: sticky; top: 16px; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand strong,
.brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand-mark svg,
.platform-icon svg,
.section-icon svg { width: 100%; height: 100%; display: block; }
.site-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  padding: 72px 0 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero h1,
.section h2,
.callout h2 { line-height: 1.05; margin: 0 0 18px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); max-width: 11ch; }
.hero-text,
.section-heading p,
.info-panel,
.callout p,
.site-footer p,
.hero-card p,
li,
.card p { color: var(--muted); line-height: 1.7; }
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 98, 254, 0.24);
}
.button-secondary {
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.hero-card,
.info-panel,
.callout,
.card {
  border-radius: 28px;
  padding: 28px;
}
.hero-card ul,
.info-panel ul,
.card ul { padding-left: 18px; margin: 14px 0 0; }
.status-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 98, 254, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.section { padding: 24px 0; }
.section-heading { max-width: 720px; margin-bottom: 24px; }
.section-heading.with-icon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.section-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.platform-card {
  border-radius: 26px;
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 98, 254, 0.2);
}
.platform-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.platform-card span { font-size: 0.9rem; color: var(--muted); }
.platform-card strong { font-size: 1.35rem; }
.platform-card small { color: var(--muted); }
.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}
.youtube { background: linear-gradient(145deg, rgba(255,0,51,0.12), rgba(255,255,255,0.86)); }
.tiktok { background: linear-gradient(145deg, rgba(17,17,17,0.12), rgba(255,255,255,0.86)); }
.facebook { background: linear-gradient(145deg, rgba(24,119,242,0.14), rgba(255,255,255,0.86)); }
.instagram { background: linear-gradient(145deg, rgba(214,41,118,0.14), rgba(255,255,255,0.86)); }

.two-column {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.callout { margin-top: 20px; }
.site-footer { margin-top: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.subpage-main {
  padding: 64px 0 24px;
}
.subpage-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 40px;
}
.subpage-hero h1 { margin: 0 0 16px; font-size: clamp(2.4rem, 5vw, 4rem); }
.subpage-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 24px;
}
.open-source-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hero,
  .two-column,
  .subpage-layout,
  .platform-grid,
  .section-heading.with-icon {
    grid-template-columns: 1fr;
  }
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
