:root {
  --bg: #090a0d;
  --bg-elev: #111318;
  --bg-card: #151820;
  --bg-code: #0d0f14;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --text-secondary: #a1a7b3;
  --text-muted: #6b7280;
  --accent: #f04e23;
  --accent-bright: #ff6238;
  --accent-soft: rgba(240, 78, 35, 0.14);
  --green: #22c55e;
  --blue: #60a5fa;
  --amber: #f59e0b;
  --purple: #c084fc;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Ambient technical grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(ellipse 75% 45% at 50% -10%, rgba(240, 78, 35, 0.16), transparent 65%),
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 100% 100%, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.12) 100%);
}

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

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 10, 13, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(240, 78, 35, 0.35);
  background: var(--accent-soft);
  color: #ff8a65;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn:hover { border-color: rgba(255,255,255,0.28); background: #191d26; }
.btn-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 28px rgba(240, 78, 35, 0.28);
}
.btn-primary:hover {
  background: var(--accent-bright);
  border-color: transparent;
  transform: translateY(-1px);
}
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-danger {
  background: rgba(239,68,68,0.14);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

/* Hero */
.hero {
  padding: 76px 0 56px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.hero h1 {
  margin: 0 auto 20px;
  max-width: 860px;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #ff7043 0%, #f04e23 48%, #ff9876 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin: 0 auto 32px;
  max-width: 700px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.68;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-meta span strong { color: var(--text-secondary); font-weight: 600; }

/* Interactive Workbench Showcase */
.workbench-frame {
  margin: 44px auto 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 36px 95px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(240, 78, 35, 0.08);
}
.wb-titlebar {
  height: 42px;
  padding: 0 16px;
  background: #0d0f14;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.wb-dots { display: flex; gap: 7px; }
.wb-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.wb-dots i:nth-child(1) { background: #ef4444; }
.wb-dots i:nth-child(2) { background: #f59e0b; }
.wb-dots i:nth-child(3) { background: #22c55e; }
.wb-tabs {
  display: flex;
  gap: 6px;
}
.wb-tab {
  padding: 4px 12px;
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
}
.wb-tab.active {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.wb-pills {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.wb-pill {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(240,78,35,0.35);
  background: rgba(240,78,35,0.12);
  color: #ff8a65;
}
.wb-pill.ok {
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.1);
  color: #86efac;
}
.wb-body {
  display: grid;
  grid-template-columns: 210px 1fr 1fr;
  min-height: 360px;
}
.wb-sidebar {
  border-right: 1px solid var(--border);
  background: #0c0e13;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.wb-sidebar-title {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.wb-fn {
  padding: 6px 9px;
  border-radius: 7px;
  color: var(--text-secondary);
  margin-bottom: 3px;
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
}
.wb-fn.active {
  background: rgba(240,78,35,0.14);
  color: var(--text);
  border: 1px solid rgba(240,78,35,0.35);
}
.wb-pane {
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.72;
  background: var(--bg-code);
  overflow-x: auto;
}
.wb-pane + .wb-pane { border-left: 1px solid var(--border); }
.wb-pane-hdr {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.code-line { white-space: pre; }
.ln { color: #4b5563; display: inline-block; width: 26px; user-select: none; }
.kw { color: #f472b6; }
.ty { color: #38bdf8; }
.fn { color: #fbbf24; }
.cm { color: #6b7280; }
.num { color: #a78bfa; }
.str { color: #4ade80; }
.fld { color: #ff8a65; }
.addr { color: #6b7280; }
.mn { color: #f04e23; font-weight: 600; }

.wb-statusbar {
  padding: 8px 16px;
  background: #0c0e13;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Sections */
.section { padding: 80px 0; }
.section-hdr { max-width: 680px; margin-bottom: 44px; }
.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 10px;
}
.section-hdr h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.03em;
  line-height: 1.18;
}
.section-hdr p { margin: 0; color: var(--text-secondary); font-size: 15.5px; }

/* Feature Bento Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: rgba(240, 78, 35, 0.35);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid rgba(240, 78, 35, 0.28);
  color: var(--accent-bright);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.015em; }
.card p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.62; }
.tag-list {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* Architecture highlight */
.arch-box {
  background: linear-gradient(135deg, rgba(240,78,35,0.08), rgba(17,19,24,0.96) 45%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.stat-card {
  background: rgba(9, 10, 13, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.stat-val .accent { color: var(--accent-bright); }
.stat-lbl { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

/* Pricing / Editions */
.edition-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.edition-card.featured {
  border-color: rgba(240, 78, 35, 0.55);
  background: linear-gradient(180deg, rgba(240,78,35,0.09), var(--bg-card) 42%);
  box-shadow: 0 24px 60px rgba(240,78,35,0.12);
}
.edition-badge {
  display: inline-block;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8a65;
  margin-bottom: 12px;
}
.edition-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 26px;
  flex: 1;
}
.edition-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  gap: 9px;
  align-items: baseline;
}
.edition-list li::before {
  content: "✓";
  color: var(--accent-bright);
  font-weight: 700;
}

/* Portal / Admin Forms & Tables */
.portal-wrap { padding: 42px 0 80px; }
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
}
.panel h2, .panel h3 { margin: 0 0 14px; letter-spacing: -0.02em; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-code);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,78,35,0.16);
}
.msg {
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.msg.show { display: block; }
.msg.ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #86efac; }
.msg.err { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #fca5a5; }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
code.key {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
}
.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill-green { background: rgba(34,197,94,0.14); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.pill-amber { background: rgba(245,158,11,0.14); color: #fcd34d; border: 1px solid rgba(245,158,11,0.3); }
.pill-red { background: rgba(239,68,68,0.14); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-muted);
  font-size: 13px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-secondary);
}
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.health-dot.up { background: var(--green); box-shadow: 0 0 8px var(--green); }

@media (max-width: 960px) {
  .wb-body { grid-template-columns: 1fr; }
  .wb-sidebar { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2, .arch-box { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
