.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 78% 30%, rgba(254, 226, 226, .9), rgba(250, 250, 250, 0) 70%); pointer-events: none; }

.hero-grid { position: relative; padding-top: 88px; padding-bottom: 72px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; align-items: center; }

.hero-copy { display: flex; flex-direction: column; gap: 28px; }

.hero-badge { align-self: flex-start; min-height: 32px; padding: 4px 6px 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font: 500 13px/1.3 var(--sans); color: #404040; }
.hero-badge:hover { border-color: rgba(10, 10, 10, .18); color: var(--title); }
.hero-badge span { height: 22px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); display: flex; align-items: center; font: 600 12px/1 var(--sans); color: var(--brand-deep); }

.hero h1 { font: 700 clamp(48px, 6.4vw, 80px)/.98 var(--sans); letter-spacing: -2.8px; color: var(--title); text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }

.hero-lead { max-width: 520px; font: 400 20px/1.55 var(--sans); color: var(--text-2); text-wrap: pretty; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-note { font: 400 14px/1.5 var(--sans); color: var(--muted); }

.demo { --dot: #EF4444; --ring: rgba(239, 68, 68, .55); --fill: radial-gradient(circle at 50% 35%, #3A1414, #1A0B0B); --icon: var(--brand-on-dark); --aura: rgba(220, 38, 38, .28); justify-self: center; width: 100%; max-width: 420px; border-radius: 32px; background: var(--dark); padding: 22px; display: flex; flex-direction: column; gap: 22px; position: relative; overflow: hidden; color: var(--on-dark); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 50px 100px -40px rgba(127, 29, 29, .55), 0 20px 40px -20px rgba(0, 0, 0, .4); }
.demo::before { content: ""; position: absolute; inset: -30% -30% auto; height: 70%; background: radial-gradient(closest-side, var(--aura), transparent); transition: background .6s; pointer-events: none; }
.demo[data-state="connecting"] { --dot: var(--warn); --ring: rgba(239, 68, 68, .8); --icon: #FCA5A5; --aura: rgba(220, 38, 38, .35); }
.demo[data-state="on"] { --dot: var(--ok); --ring: rgba(92, 214, 154, .6); --icon: var(--ok); --aura: rgba(92, 214, 154, .22); }
.demo > * { position: relative; }

.demo-top { display: flex; align-items: center; justify-content: space-between; }
.demo-brand { display: flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); }
.demo-mark { width: 22px; height: 22px; color: var(--brand-on-dark); }
.demo-chip { height: 28px; padding: 0 11px; border-radius: 999px; background: #202020; border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 7px; font: 500 13px/1 var(--sans); color: #D4D4D4; }
.demo-chip i { width: 8px; height: 8px; border-radius: 999px; background: var(--dot); box-shadow: 0 0 10px var(--dot); transition: background .3s; }

.demo-center { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0 4px; text-align: center; }
.demo-power { width: 168px; height: 168px; margin-bottom: 12px; border-radius: 999px; border: 2px solid var(--ring); background: var(--fill); color: var(--icon); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .5s, color .5s, transform .15s; }
.demo-power { position: relative; }
.demo-power::before, .demo-power::after { content: ""; position: absolute; border-radius: inherit; pointer-events: none; opacity: 0; }
.demo-power::before { inset: -2px; border: 2px solid var(--ring); }
.demo-power::after { inset: 0; background: radial-gradient(circle at 50% 35%, rgba(92, 214, 154, .28), #0E1A14); transition: opacity .6s cubic-bezier(.2, .7, .2, 1); }
.demo[data-state="on"] .demo-power::after { opacity: 1; }
.demo-power:hover { transform: scale(1.02); }
.demo-power:active { transform: scale(.98); }
.demo-power .ico { position: relative; z-index: 1; width: 60px; height: 60px; stroke-width: 2.2; }
.demo[data-state="connecting"] .demo-power::before { animation: dpulse 1.2s cubic-bezier(.2, .7, .2, 1) infinite; }
.demo-title { font: 600 22px/1.2 var(--sans); letter-spacing: -.4px; }
.demo-sub { font: 400 14px/1.4 var(--sans); color: var(--on-dark-2); }

.demo-facts { margin: 0; display: grid; grid-template-columns: 1.15fr 1fr 1fr; border-radius: 18px; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); }
.demo-facts div { padding: 12px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.demo-facts div + div { border-left: 1px solid rgba(255, 255, 255, .08); }
.demo-facts dt { font: 600 10px/1 var(--sans); letter-spacing: 1px; text-transform: uppercase; color: #8C8C8C; }
.demo-facts dd { margin: 0; font-size: 12px; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.demo-server { min-height: 56px; border-radius: 18px; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); display: flex; align-items: center; gap: 12px; padding: 0 14px; }
.demo-flag { width: 32px; height: 32px; border-radius: 9px; background: #262626; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.demo-server strong { display: block; font: 600 15px/20px var(--sans); }
.demo-server small { display: block; font: 400 12px/16px var(--sans); color: #8C8C8C; }

.facts { border-top: 1px solid rgba(10, 10, 10, .07); border-bottom: 1px solid rgba(10, 10, 10, .07); background: var(--surface); }
.facts-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.facts-list li { padding: 26px 4px; display: flex; align-items: center; gap: 14px; color: var(--brand); }
.facts-list span { display: flex; flex-direction: column; gap: 2px; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.facts-list strong { font: 600 16px/1.3 var(--sans); color: var(--title); }

@keyframes dpulse { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.22); } }

@media (max-width: 479px) {
  .hero-grid { padding-top: 56px; padding-bottom: 56px; gap: 48px; }
  .demo { padding: 18px; }
  .demo-facts div { padding: 10px 8px; }
  .demo-facts dd { font-size: 11px; }
}
