:root {
  color-scheme: dark;
  --bg: #0c0e11;
  --panel: #12161c;
  --panel-2: #171c23;
  --panel-3: #0f1318;
  --text: #edf0f4;
  --muted: #9aa3af;
  --soft: #c8ced7;
  --line: rgba(255,255,255,.09);
  --line-2: rgba(255,255,255,.15);
  --accent: #d9c7a3;
  --accent-2: #95b8ff;
  --ok: #7ed6a7;
  --warn: #e4c178;
  --bad: #ef8d8d;
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  --radius-xl: 28px;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(217,199,163,.11), transparent 32rem),
    radial-gradient(circle at 82% 0%, rgba(149,184,255,.09), transparent 34rem),
    linear-gradient(180deg, #0c0e11, #090b0e 58%, #0b0d10);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 12px; background: white; color: #111; padding: 10px 14px; border-radius: 10px; z-index: 999; }
.skip:focus { left: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(12,14,17,.76);
  backdrop-filter: blur(16px);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 690; letter-spacing: -.025em; }
.mark {
  width: 33px;
  height: 33px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e3d1ad, #8fb2f2);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 12px 32px rgba(149,184,255,.16);
}
.mark::before { content: ""; position: absolute; inset: 9px; border: 2px solid rgba(10,12,15,.68); border-radius: 999px; }
.mark::after { content: ""; position: absolute; right: 7px; bottom: 7px; width: 7px; height: 7px; border-radius: 50%; background: rgba(10,12,15,.78); }
.navlinks { display: flex; align-items: center; gap: 3px; color: var(--muted); font-size: 14px; }
.navlinks a { padding: 9px 12px; border-radius: 999px; }
.navlinks a:hover, .navlinks a.active { color: var(--text); background: rgba(255,255,255,.055); }
.account { display: flex; align-items: center; gap: 9px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 14px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.btn.primary { color: #11141a; background: #efe5d2; border-color: transparent; box-shadow: 0 14px 28px rgba(217,199,163,.13); }
.btn.primary:hover { background: #fff0d9; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.block { width: 100%; }

main { padding-bottom: 52px; }
.hero { padding: 70px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 42px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px; color: var(--soft); border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); font-size: 13px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 5px rgba(126,214,167,.09); }
h1 { margin: 18px 0 18px; max-width: 770px; font-size: clamp(38px, 6vw, 70px); line-height: .96; letter-spacing: -.065em; font-weight: 760; }
.lede { margin: 0; max-width: 640px; color: var(--soft); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.fine { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.fine span { display: inline-flex; align-items: center; gap: 7px; }
.fine span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.shell {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  padding: 10px;
  overflow: hidden;
}
.window { border: 1px solid rgba(255,255,255,.06); border-radius: 22px; overflow: hidden; background: #0b0f15; }
.window-head { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.18); }
.preview { padding: 18px; display: grid; gap: 14px; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  padding: 18px;
}
.card-title { margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.metric { font-size: 30px; font-weight: 730; letter-spacing: -.045em; }
.metric small { font-size: 13px; color: var(--muted); font-weight: 500; }
.rows { display: grid; gap: 10px; }
.row { display: flex; justify-content: space-between; gap: 16px; color: var(--soft); font-size: 14px; }
.row span:last-child { color: var(--text); }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.section { padding: 38px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h2 { margin: 0; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.05; letter-spacing: -.045em; }
.sub { margin: 10px 0 0; color: var(--muted); max-width: 650px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature h3, .panel h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.feature p, .panel p { margin: 0; color: var(--muted); }
.feature { min-height: 180px; }
.feature .num { color: var(--accent); margin-bottom: 36px; font-size: 13px; }

.table { width: 100%; border-collapse: collapse; overflow: hidden; }
.table th, .table td { padding: 15px 0; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-weight: 560; font-size: 13px; }
.table td { color: var(--soft); }
.table tr:last-child td { border-bottom: 0; }

.page { padding: 52px 0; }
.page-narrow { max-width: 850px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.copy { color: var(--soft); font-size: 17px; }

.auth-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 44px 0; }
.auth-card { width: min(460px, calc(100vw - 40px)); border: 1px solid var(--line-2); border-radius: 26px; background: rgba(18,22,28,.82); box-shadow: var(--shadow); padding: 28px; }
.auth-card h1 { font-size: 34px; line-height: 1.02; margin: 14px 0 8px; letter-spacing: -.05em; }
.form { display: grid; gap: 12px; margin-top: 22px; }
label { display: grid; gap: 7px; color: var(--soft); font-size: 14px; }
input {
  width: 100%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.045);
  color: var(--text);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 13px;
  outline: none;
}
input:focus { border-color: rgba(217,199,163,.55); box-shadow: 0 0 0 4px rgba(217,199,163,.08); }
.error { min-height: 21px; color: var(--bad); font-size: 14px; }
.auth-foot { margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-foot a { color: var(--accent); }

.console-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; align-items: start; }
.sidebar { position: sticky; top: 88px; }
.avatar { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: #efe5d2; color: #12161c; font-weight: 760; }
.userline { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.stack { display: grid; gap: 14px; }
.feed { display: grid; gap: 10px; }
.feed-item { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 14px; }
.tag { color: var(--muted); font-size: 13px; }
.code { position: relative; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 16px; background: #090c10; overflow: hidden; }
.code pre { margin: 0; padding: 18px; overflow: auto; color: #dfe6ee; font-size: 13px; }
.code .copy-btn { position: absolute; right: 10px; top: 10px; min-height: 32px; padding: 6px 10px; font-size: 12px; }
.searchbox { max-width: 320px; }
.doc-list { display: grid; gap: 12px; margin-top: 18px; }
.doc-item[hidden] { display: none; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer a { color: var(--soft); margin-left: 14px; }

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .console-layout { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .sidebar { position: static; }
  .section-head { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .account .btn.ghost { display: none; }
  .hero { padding-top: 46px; }
  .preview-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 22px; }
}
