:root {
  --brand: #13a86b;
  --brand-dark: #0e8a57;
  --brand-soft: #e6f6ee;
  --ink: #16181a;
  --ink-2: #5b6168;
  --line: #e9ecef;
  --surface: #f5f7f8;
  --bg: #ffffff;
  --twitch: #9146ff;
  --twitch-dark: #7f37f0;
  --radius-card: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }

/* ---------- logo ---------- */

.logo {
  font-family: "Manrope", "Onest", sans-serif;
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo span { color: var(--brand); }
.logo-sm { font-size: 19px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-twitch { background: var(--twitch); color: #fff; }
.btn-twitch:hover { background: var(--twitch-dark); }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }

.btn-soft { background: var(--surface); color: var(--ink); }
.btn-soft:hover { background: #eaedef; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f1f1f1; }

.btn:focus-visible, .nav-login:focus-visible, .nav-links a:focus-visible,
.theme-tab:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(19, 168, 107, 0.45);
  outline-offset: 3px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-2);
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { font-weight: 600; }

.lang-switch {
  display: flex;
  gap: 2px;
  font-size: 13px;
  font-weight: 600;
}

.lang-switch a {
  padding: 6px 8px;
  border-radius: 8px;
  color: var(--ink-2);
}

.lang-switch a:hover { color: var(--ink); background: var(--surface); }
.lang-switch a[aria-current="page"] { color: var(--ink); background: var(--surface); }

.nav .lang-switch { margin-left: auto; }
.nav .lang-switch + .nav-login { margin-left: 8px; }

.nav-login {
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
}

.nav-login:hover { background: #eaedef; }

/* ---------- hero ---------- */

.hero {
  max-width: 920px;
  text-align: center;
  padding-top: 72px;
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 22px 0 20px;
}

.hero h1 em { font-style: normal; color: var(--brand); }

.lead {
  max-width: 36em;
  margin: 0 auto 32px;
  font-size: 19px;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.fine {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-2);
}

.login-error {
  display: inline-block;
  margin: 18px 0 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff1f0;
  color: #c4312b;
  font-size: 14px;
  font-weight: 500;
}

.login-error[hidden] { display: none; }

/* ---------- stream scene ---------- */

.scene {
  margin-top: 56px;
  padding: 36px;
  border-radius: 32px;
  background: linear-gradient(180deg, var(--brand-soft), #f4fbf7);
}

.stream {
  position: relative;
  height: 480px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(900px 400px at 75% 110%, rgba(19, 168, 107, 0.35), transparent 60%),
    radial-gradient(700px 360px at 10% -10%, rgba(80, 120, 255, 0.28), transparent 60%),
    linear-gradient(135deg, #1c2330, #10141b);
  box-shadow: 0 30px 60px -30px rgba(16, 40, 30, 0.45);
}

.stream-top {
  position: absolute;
  z-index: 1;
  top: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.live {
  background: #e5484d;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
}

.viewers {
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}

.stream-widget, .theme-stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.chips {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
}

svg[aria-hidden] path, svg[aria-hidden] rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn svg path { fill: currentColor; stroke: none; }
.btn-light svg path { fill: var(--twitch); }

.chips svg { width: 18px; height: 18px; color: var(--brand); }

/* ---------- sections ---------- */

.section { padding: 104px 0; }
.section-tinted { background: var(--surface); }

.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--ink-2);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
}

.section-tinted .card { border-color: transparent; }

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  margin-bottom: 20px;
}

.icon-box svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15.5px;
}

/* ---------- steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.steps .card { position: relative; }

.step-label {
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- themes ---------- */

.themes {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.theme-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
}

.theme-tab {
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-tab:hover { color: var(--ink); }
.theme-tab.is-active { background: var(--ink); color: #fff; }

.theme-stage {
  position: relative;
  width: 100%;
  max-width: 720px;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(19, 168, 107, 0.3), transparent 60%),
    linear-gradient(135deg, #1c2330, #10141b);
}

.theme-caption {
  margin: 0;
  font-size: 17px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- features ---------- */

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- obs ---------- */

.obs-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.obs-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.obs-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff;
  font-size: 16.5px;
}

.obs-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 15px;
  margin-top: -3px;
}

.spec h3 { margin-bottom: 16px; }

.spec dl { margin: 0; }

.spec dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.spec dl div:last-child { border-bottom: 0; }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.spec-note {
  margin-top: 16px !important;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 14.5px !important;
}

/* ---------- faq ---------- */

.faq { max-width: 860px; }

.faq-list { display: grid; gap: 12px; }

.faq-list details {
  border-radius: 18px;
  background: var(--surface);
  padding: 0 24px;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  font-size: 17.5px;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}

.faq-list details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }

.faq-list details p {
  margin: 0 0 22px;
  max-width: 44em;
  color: var(--ink-2);
}

.faq-more {
  margin: 28px 0 0;
  color: var(--ink-2);
}

.faq-more a, .footer-link {
  color: var(--brand-dark);
  font-weight: 600;
}

.faq-more a:hover, .footer-link:hover { text-decoration: underline; }

.footer-link { font-size: 14px; }

/* ---------- cta ---------- */

.cta {
  margin: 8px 0 104px;
  padding: 64px 48px;
  border-radius: 32px;
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    var(--brand);
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cta p {
  margin: 14px auto 30px;
  max-width: 32em;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}

.footer p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ---------- hub: widget cards ---------- */

.section-widgets { padding-top: 72px; }

.widget-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.wcard {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.wcard:hover { border-color: #cfd6db; transform: translateY(-2px); }
.wcard:focus-visible { outline: 3px solid rgba(19, 168, 107, 0.35); outline-offset: 3px; }

.wcard-stage {
  position: relative;
  height: 380px;
  background:
    radial-gradient(600px 300px at 80% 110%, rgba(19, 168, 107, 0.32), transparent 60%),
    radial-gradient(500px 260px at 0% -10%, rgba(80, 120, 255, 0.24), transparent 60%),
    linear-gradient(135deg, #1c2330, #10141b);
}

.wcard-stage .live { position: absolute; z-index: 1; top: 14px; left: 16px; }

.wcard-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.wcard-body { padding: 22px 24px 24px; }
.wcard-body h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.wcard-body p { margin: 8px 0 14px; color: var(--ink-2); }

.wcard-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand-dark);
}

.wcard-more svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.wcard:hover .wcard-more svg { transform: translateX(3px); }

.features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- socials: supported networks ---------- */

.networks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.networks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 600;
}

.net-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--net);
  color: var(--net-fg);
}

.net-ico svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.footer-nav a { color: var(--brand-dark); font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */

.nf-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nf {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 88px;
}

/* a price list card in the widget's light style */
.nf-card {
  width: min(100%, 340px);
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.nf-card-title {
  margin: 2px 4px 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
}

.nf-row b {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.nf h1 {
  margin: 40px 0 12px;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.nf .lead { margin-bottom: 28px; }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .obs-grid { grid-template-columns: 1fr; }
  .widget-cards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
  .nav-inner { gap: 24px; }
  .nav-links { gap: 20px; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-inner { gap: 12px; }
  .nav-links { display: none; }
  .nav .lang-switch + .nav-login { margin-left: 0; }
  .hero { padding-top: 48px; }
  .scene { padding: 16px; border-radius: 24px; margin-top: 40px; }
  .stream, .theme-stage { height: 360px; }
  .stream-widget, .theme-stage iframe, .wcard-stage iframe {
    left: 50%;
    width: 650px;
    height: 500px;
    margin-left: -234px;
    transform: scale(0.72);
    transform-origin: top left;
  }
  .wcard-stage { height: 300px; }
  .theme-tabs { flex-wrap: wrap; justify-content: center; border-radius: 20px; }
  .theme-tab { padding: 9px 14px; font-size: 14px; }
  .section-widgets { padding-top: 56px; }
  .networks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
  .steps, .features { grid-template-columns: 1fr; }
  .cta { padding: 48px 24px; margin-bottom: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .theme-tab, .faq-list summary::after { transition: none; }
}
