
:root {
  --bg: #05060a;
  --bg-2: #080a10;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-3: rgba(16, 20, 34, 0.78);
  --ink: #f7f8ff;
  --muted: #a3abbd;
  --soft: #737b8f;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7c5cff;
  --accent-2: #18d0ff;
  --accent-3: #69f0ae;
  --danger: #ff5c8a;
  --ok: #69f0ae;
  --warn: #ffd166;
  --brand-mark: url("/static/assets/brand/heyserver-mark.svg");
  --body-bg:
    radial-gradient(900px 620px at 18% -10%, rgba(124, 92, 255, 0.24), transparent 62%),
    radial-gradient(850px 520px at 78% 0%, rgba(24, 208, 255, 0.18), transparent 60%),
    radial-gradient(720px 520px at 50% 115%, rgba(105, 240, 174, 0.10), transparent 60%),
    linear-gradient(180deg, #05060a 0%, #080a10 48%, #05060a 100%);
  --header-bg: rgba(5, 6, 10, 0.76);
  --nav-hover: rgba(255, 255, 255, 0.06);
  --dropdown-bg: rgba(12, 15, 25, 0.96);
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --pill-fg: #cbd2e5;
  --console-bg: rgba(4, 6, 12, 0.75);
  --console-fg: #dce6ff;
  --float-bg: rgba(9, 12, 22, 0.92);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f7f9ff;
  --bg-2: #eef3ff;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-2: rgba(255, 255, 255, 0.96);
  --panel-3: rgba(255, 255, 255, 0.86);
  --ink: #071121;
  --muted: #526079;
  --soft: #768198;
  --line: rgba(16, 29, 56, 0.12);
  --line-strong: rgba(16, 29, 56, 0.22);
  --accent: #6848f5;
  --accent-2: #007ddf;
  --accent-3: #00a878;
  --ok: #00a878;
  --body-bg:
    radial-gradient(900px 620px at 18% -10%, rgba(124, 92, 255, 0.17), transparent 62%),
    radial-gradient(850px 520px at 78% 0%, rgba(24, 208, 255, 0.18), transparent 60%),
    radial-gradient(720px 520px at 50% 115%, rgba(105, 240, 174, 0.12), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #edf3ff 52%, #f9fbff 100%);
  --header-bg: rgba(255, 255, 255, 0.74);
  --nav-hover: rgba(104, 72, 245, 0.09);
  --dropdown-bg: rgba(255, 255, 255, 0.96);
  --ghost-bg: rgba(255, 255, 255, 0.7);
  --pill-fg: #35425b;
  --console-bg: rgba(7, 17, 33, 0.92);
  --console-fg: #e9f0ff;
  --float-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 80px rgba(42, 55, 90, 0.18);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  color: var(--ink);
  background: var(--body-bg);
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 11px; position: relative; background: var(--brand-mark) center / cover no-repeat; box-shadow: 0 0 32px rgba(124,92,255,.38); flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .dropbtn, .menu-link { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 520; padding: 9px 10px; border-radius: 999px; cursor: pointer; }
.nav-links a:hover, .dropbtn:hover, .dropdown:focus-within .dropbtn, .menu-link.active { color: var(--ink); background: var(--nav-hover); }
.dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--dropdown-bg); box-shadow: var(--shadow); }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: grid; gap: 3px; }
.dropdown-menu a { border-radius: 11px; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 15px; border-radius: 999px; border: 1px solid var(--line); font-weight: 650; font-size: .93rem; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--accent), #4d8dff 48%, var(--accent-2)); box-shadow: 0 18px 42px rgba(75, 103, 255, .32); }
.btn.ghost { background: var(--ghost-bg); color: var(--ink); }

.hero { min-height: 720px; display: grid; grid-template-columns: 1fr .92fr; gap: 44px; align-items: center; padding: 84px 0 70px; }
.hero-copy { max-width: 690px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; color: #d9ddff; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.045); padding: 8px 12px; font-size: .82rem; font-weight: 650; letter-spacing: .01em; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 18px var(--ok); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 20px 0 20px; font-size: clamp(3rem, 8vw, 6.35rem); line-height: .91; letter-spacing: -0.07em; font-weight: 650; text-wrap: balance; }
h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: .98; letter-spacing: -0.055em; font-weight: 620; text-wrap: balance; }
h3 { margin-bottom: 10px; letter-spacing: -0.025em; }
.lead, .hero p { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.28rem); line-height: 1.65; text-wrap: pretty; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.pill { border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--pill-fg); padding: 8px 11px; font-size: .84rem; font-weight: 560; }

.hero-visual { position: relative; min-height: 540px; }
.hero-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: -160px -120px auto auto; width: 320px; height: 320px; background: radial-gradient(circle, rgba(24,208,255,.32), transparent 68%); }
.console { border-radius: 22px; border: 1px solid var(--line); background: var(--console-bg); overflow: hidden; }
.console-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.dots { display:flex; gap:6px; } .dots span { width:9px; height:9px; border-radius:50%; background: var(--soft); } .dots span:nth-child(1){background:#ff6b8a}.dots span:nth-child(2){background:#ffd166}.dots span:nth-child(3){background:#69f0ae}
.console-body { padding: 17px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88rem; line-height: 1.72; color: var(--console-fg); }
.command { color: var(--accent-3); } .dim { color: #707a91; } .cyan { color: var(--accent-2); } .violet { color: #a997ff; }
.metric-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.metric { border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 16px; padding: 13px; }
.metric strong { display: block; font-size: 1.35rem; letter-spacing: -0.04em; } .metric span { color: var(--muted); font-size: .82rem; }
.float-card { position:absolute; border:1px solid var(--line); background: var(--float-bg); backdrop-filter: blur(14px); border-radius: 18px; padding: 14px; box-shadow: 0 18px 52px rgba(0,0,0,.35); }
.float-card.one { left:-18px; bottom:76px; width: 215px; } .float-card.two { right:-8px; top:54px; width: 228px; }
.status-line { display:flex; align-items:center; justify-content:space-between; gap:10px; color:var(--muted); font-size:.84rem; margin-top:8px; }
.status-dot { width:8px; height:8px; border-radius:50%; background: var(--ok); box-shadow:0 0 12px var(--ok); }

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom: 28px; }
.section-head p { max-width: 610px; }
.grid-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card, .hero-card, .price { border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.card { padding: 22px; }
.card:hover { background: var(--panel-2); border-color: var(--line-strong); }
.feature p, .card p, .price p { color: var(--muted); line-height: 1.62; }
.card .icon { width: 42px; height:42px; border-radius: 14px; display:grid; place-items:center; margin-bottom:16px; background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(24,208,255,.18)); border:1px solid var(--line); }
.game-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.game-card { overflow:hidden; padding:0; }
.game-card img { width:100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.game-card .body { padding: 16px; }
.game-card small { color: var(--soft); }
.product-shot { min-height: 420px; padding: 18px; overflow: hidden; position: relative; }
.hosting-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.server-rack { display:grid; gap:10px; }
.rack-row { display:grid; grid-template-columns: 96px 1fr 70px; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.035); color:var(--muted); }
.bar { height:7px; border-radius:999px; background:rgba(255,255,255,.08); overflow:hidden; }.bar i{display:block;height:100%;background:linear-gradient(90deg,var(--accent),var(--accent-2));border-radius:inherit;}
.price { padding: 24px; position: relative; overflow:hidden; }
.price.featured { border-color: rgba(124,92,255,.58); background: linear-gradient(180deg, rgba(124,92,255,.13), rgba(255,255,255,.035)); }
.cost { font-size: 2.55rem; line-height:1; letter-spacing:-.055em; font-weight: 650; margin: 18px 0 10px; }
.list { list-style:none; padding:0; margin:16px 0 0; display:grid; gap:10px; color:var(--muted); }
.list li { display:flex; gap:9px; }.list li::before{content:"✓"; color:var(--ok);}
.table-like { width:100%; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--line); border-radius:20px; background:var(--panel); }
.table-like th, .table-like td { text-align:left; padding:15px 16px; border-bottom:1px solid var(--line); color:var(--muted); } .table-like th { color:var(--ink); }
.table-like tr:last-child th, .table-like tr:last-child td { border-bottom:0; }
.cta-band { border:1px solid var(--line); border-radius: 30px; padding: 34px; display:grid; grid-template-columns: 1fr auto; align-items:center; gap:20px; background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(24,208,255,.09)); }
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); }
.footer-grid { display:grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 22px; }
.footer-list { display:grid; gap:8px; }
.theme-toggle {
  gap: 8px;
  padding-inline: 12px;
}
.theme-toggle::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff 0 22%, #ffd166 23% 42%, transparent 43%), linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(124, 92, 255, .32);
}
html[data-theme="light"] .theme-toggle::before {
  background: radial-gradient(circle at 60% 42%, #fff 0 18%, transparent 19%), linear-gradient(135deg, #071121, #6848f5);
}
html[data-theme="light"] .card .icon {
  background: linear-gradient(135deg, rgba(104,72,245,.14), rgba(0,125,223,.10));
}
html[data-theme="light"] .console {
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}

.reveal { animation: rise .65s ease both; } @keyframes rise { from { opacity:0; transform: translateY(16px);} to {opacity:1; transform:none;} }

.app-title { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.auth-page { min-height: calc(100vh - 74px); display: grid; align-items: center; padding: clamp(28px, 5vw, 64px) 0; overflow: hidden; }
.auth-grid { width: 100%; display: grid; grid-template-columns: minmax(0, .95fr) minmax(360px, 480px); gap: clamp(24px, 5vw, 72px); align-items: center; }
.auth-hero { max-width: 560px; margin: 0; }
.auth-hero .app-title { margin: 18px 0 16px; font-size: clamp(2.45rem, 4.8vw, 4.35rem); line-height: .97; letter-spacing: -0.06em; }
.auth-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.auth-proof .metric { background: var(--panel); }
.auth-stack { max-width: 520px; margin: 0 auto; }
.auth-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }
.auth-card::before { content: ""; position: absolute; inset: -180px -120px auto auto; width: 320px; height: 320px; border-radius: 999px; background: radial-gradient(circle, rgba(124,92,255,.18), transparent 66%); pointer-events: none; }
.auth-card > * { position: relative; z-index: 1; }
.auth-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.auth-card h2 { margin: 0 0 6px; font-size: clamp(1.6rem, 3vw, 2.45rem); letter-spacing: -0.045em; }
.auth-card p { color: var(--muted); line-height: 1.58; }
.auth-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--pill-fg); background: var(--ghost-bg); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.auth-badge::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 14px var(--ok); }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; color: var(--ink); font-size: .9rem; font-weight: 720; letter-spacing: -.01em; }
.auth-field input { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 16px; padding: 0 16px; background: rgba(255,255,255,.055); color: var(--ink); font: inherit; font-size: 1rem; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.auth-field input::placeholder { color: var(--soft); }
.auth-field input:focus { border-color: rgba(124,92,255,.72); box-shadow: 0 0 0 4px rgba(124,92,255,.16); background: rgba(255,255,255,.09); }
.auth-submit { width: 100%; min-height: 56px; margin-top: 2px; border-radius: 16px; font-size: 1rem; }
.auth-status { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.auth-side { display: grid; gap: 14px; }
.auth-side-card { border: 1px solid var(--line); border-radius: 28px; background: var(--panel); padding: clamp(20px, 2.5vw, 30px); }
.auth-side-card h3 { margin: 0 0 10px; font-size: 1.45rem; }
.auth-side-card .list { margin-top: 12px; }
.auth-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.auth-links a { color: var(--ink); border: 1px solid var(--line); background: var(--ghost-bg); border-radius: 999px; padding: 9px 12px; font-weight: 700; font-size: .9rem; }
.auth-links a:hover { border-color: var(--line-strong); }
html[data-theme="light"] .auth-card, html[data-theme="light"] .auth-side-card { background: rgba(255,255,255,.84); }
html[data-theme="light"] .auth-field input { background: #fff; border-color: rgba(16, 29, 56, .16); }
html[data-theme="light"] .auth-field input:focus { background: #fff; }
.app-metrics { margin-top: 28px; }
.dashboard-layout, .service-detail-layout { display:grid; grid-template-columns: 1.35fr .85fr; gap: 16px; align-items:start; }
.section-head.compact { margin-bottom: 18px; }
.service-row { display:grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items:center; padding: 14px; border:1px solid var(--line); border-radius:16px; background: rgba(255,255,255,.035); margin-bottom:10px; }
.service-row strong { display:block; }
.service-row span { color: var(--muted); font-size: .9rem; }
.status-chip { display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:1px solid var(--line); padding: 7px 10px; font-size:.78rem; font-weight:700; white-space:nowrap; }
.status-chip.ok { color: var(--ok); background: rgba(105,240,174,.08); }
.status-chip.warn { color: var(--warn); background: rgba(255,209,102,.10); }
.agent-panel .prompt-card, .prompt-card { border:1px solid var(--line); background: rgba(255,255,255,.045); border-radius:16px; padding:14px; color:var(--muted); margin: 10px 0; }
.prompt-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 16px 0; }
.prompt-card strong, .prompt-card span { display:block; }
.prompt-card strong { color: var(--ink); margin-bottom: 4px; }
.agent-panel.wide { min-height: 560px; }
.service-console { margin-top: 18px; }
.service-side-panel .btn { margin-top: 16px; width: 100%; }
.service-table .service-row:last-child { margin-bottom: 0; }
.service-type-grid .btn { margin-top: 12px; }
@media (max-width: 940px) { .dashboard-layout, .service-detail-layout, .prompt-grid, .auth-grid { grid-template-columns:1fr; } .auth-proof { grid-template-columns:1fr; } .service-row { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 940px) { .hero, .hosting-grid, .grid-2, .cta-band { grid-template-columns:1fr; } .game-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } .nav-links { display:none; } .hero { min-height:auto; padding-top:48px; } .float-card { position:relative; inset:auto!important; width:auto!important; margin-top:12px; } }
@media (max-width: 620px) { .shell { width:min(100% - 24px, 1180px); } .game-grid, .grid-3, .metric-strip { grid-template-columns:1fr; } .nav { height:auto; min-height:70px; flex-wrap:wrap; padding:12px 0; } .nav-actions { width:100%; } .nav-actions .btn { flex:1; } h1 { font-size: 3.2rem; } .section { padding: 58px 0; } }
