:root {
  --bg: #08090b;
  --panel: #0e1014;
  --panel-2: #12151a;
  --line: #262b33;
  --line-soft: #1a1e24;
  --text: #eef1f5;
  --muted: #9199a5;
  --quiet: #59616c;
  --signal: #66e198;
  --danger: #ff8e8e;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--sans); }
a { color: inherit; }
button, input, select { font: inherit; }
button { border: 0; }

.product-body { min-height: 100vh; background-image: radial-gradient(circle at 75% 10%, rgba(55, 111, 78, .12), transparent 29%); }
.product-nav { height: 68px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(8, 9, 11, .88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.product-brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.product-brand img { width: 28px; height: 28px; object-fit: contain; }
.product-brand span { display: flex; flex-direction: column; gap: 3px; }
.product-brand strong { font: 11px/1 var(--mono); letter-spacing: .12em; }
.product-brand small { color: var(--quiet); font: 7px/1 var(--mono); letter-spacing: .15em; }
.product-nav nav { display: flex; align-items: center; gap: 7px; }
.product-nav nav > a, .product-nav nav button { padding: 10px 12px; color: var(--muted); background: transparent; text-decoration: none; cursor: pointer; font: 9px/1 var(--mono); letter-spacing: .08em; }
.product-nav nav > a:hover, .product-nav nav button:hover { color: var(--text); }
.product-nav nav form { margin: 0; }
.product-nav .nav-cta { color: #07110b; background: var(--signal); }

.hero { min-height: 650px; max-width: 1240px; margin: 0 auto; padding: 90px 24px 78px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: 86px; }
.kicker { margin: 0 0 22px; display: flex; align-items: center; gap: 9px; color: var(--muted); font: 9px/1 var(--mono); letter-spacing: .14em; }
.kicker span { width: 6px; height: 6px; background: var(--signal); box-shadow: 0 0 12px rgba(102, 225, 152, .8); }
.hero h1, .page-heading h1, .plans-section h2 { margin: 0; max-width: 690px; font-size: clamp(44px, 5.4vw, 78px); line-height: .98; letter-spacing: -.055em; font-weight: 530; }
.hero h1 em { color: var(--signal); font-style: normal; }
.hero-lead { max-width: 620px; margin: 27px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-actions { margin-top: 34px; display: flex; gap: 10px; }
.button { min-height: 43px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 1px solid var(--line); cursor: pointer; font: 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.button.primary { color: #07110b; background: var(--signal); border-color: var(--signal); }
.button.primary:hover { background: #8cebad; }
.button.ghost { color: var(--muted); background: var(--panel); }
.button.ghost:hover { color: var(--text); border-color: #46505c; }
.hero-proof { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 18px; color: var(--quiet); font: 8px/1 var(--mono); letter-spacing: .07em; }
.hero-proof span::before { content: "✓"; margin-right: 6px; color: var(--signal); }

.hero-visual { min-width: 0; border: 1px solid #303640; background: #060709; box-shadow: 0 40px 100px rgba(0,0,0,.5), 0 0 70px rgba(57, 152, 94, .07); transform: perspective(1100px) rotateY(-4deg) rotateX(2deg); }
.visual-head, .visual-foot { height: 43px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: var(--quiet); background: #0c0e12; font: 8px/1 var(--mono); letter-spacing: .09em; }
.visual-head { border-bottom: 1px solid var(--line); }
.visual-foot { border-top: 1px solid var(--line); }
.live-dot { color: var(--signal); }
.live-dot::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 6px; background: var(--signal); }
.hero-visual pre { min-height: 430px; margin: 0; display: grid; place-items: center; overflow: hidden; color: #70dda0; background-image: radial-gradient(circle at center, rgba(65, 190, 113, .13), transparent 55%), linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px); background-size: auto, 18px 18px, 18px 18px; text-shadow: 0 0 10px rgba(70, 217, 128, .38); font: clamp(8px, 1.1vw, 13px)/1.18 var(--mono); }

.feature-strip { max-width: 1240px; margin: 0 auto; padding: 0 24px 86px; display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-strip article { min-height: 190px; padding: 25px; border: 1px solid var(--line); border-right: 0; background: rgba(14,16,20,.65); }
.feature-strip article:last-child { border-right: 1px solid var(--line); }
.feature-strip article > span { color: var(--signal); font: 9px/1 var(--mono); }
.feature-strip h2 { margin: 42px 0 10px; font-size: 20px; font-weight: 550; }
.feature-strip p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feature-strip .development { background: repeating-linear-gradient(-45deg, #0d1014, #0d1014 8px, #101318 8px, #101318 16px); }
.feature-strip .development > span { color: #e6b86a; }

.plans-section { padding: 90px max(24px, calc((100vw - 1240px) / 2)) 110px; border-top: 1px solid var(--line); background: #0b0d10; }
.plans-section > div:first-child { display: flex; align-items: end; justify-content: space-between; }
.plans-section h2 { font-size: clamp(34px, 4vw, 54px); }
.plan-row { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.plan-card { min-height: 310px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.plan-card.featured { border-color: #37684c; }
.plan-card > span { color: var(--signal); font: 9px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.plan-card > strong { margin-top: 27px; font-size: 30px; font-weight: 530; }
.plan-card > p { min-height: 48px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.plan-card ul, .billing-card ul { margin: auto 0 0; padding: 0; list-style: none; color: var(--muted); font: 10px/2 var(--mono); }
.plan-card li::before, .billing-card li::before { content: "+"; margin-right: 8px; color: var(--signal); }

.auth-shell { min-height: calc(100vh - 68px); padding: 70px 24px; display: grid; place-items: center; }
.auth-card { width: min(460px, 100%); padding: 38px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.auth-card h1 { margin: 0; font-size: 36px; letter-spacing: -.04em; font-weight: 550; }
.auth-card > p:not(.kicker) { margin: 13px 0 0; color: var(--muted); line-height: 1.55; }
.auth-card > small { display: block; margin-top: 21px; color: var(--quiet); text-align: center; font: 10px/1.4 var(--mono); }
.auth-card > small a { color: var(--signal); }
.product-form { margin-top: 30px; display: grid; gap: 15px; }
.product-form label { display: grid; gap: 8px; }
.product-form label span { color: var(--muted); font: 9px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.product-form input { height: 44px; padding: 0 12px; color: var(--text); background: #080a0d; border: 1px solid #303640; outline: none; }
.product-form input:focus { border-color: var(--signal); }
.product-form .button { width: 100%; margin-top: 5px; }

.flash-stack { position: fixed; top: 80px; left: 50%; z-index: 50; width: min(520px, calc(100vw - 32px)); transform: translateX(-50%); }
.flash { margin-bottom: 7px; padding: 13px 15px; color: var(--text); background: #15191f; border: 1px solid #414854; box-shadow: 0 16px 50px #000; font: 10px/1.4 var(--mono); }
.flash-error { color: #ffc4c4; border-color: #7f3b43; }
.flash-success { color: #bdf5d2; border-color: #37684c; }

.dashboard-shell { max-width: 1240px; margin: 0 auto; padding: 64px 24px 100px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.page-heading h1 { font-size: clamp(38px, 5vw, 62px); }
.page-heading > div > p:last-child { margin: 16px 0 0; color: var(--muted); }
.metric-grid { margin-top: 45px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.metric-grid article { min-height: 150px; padding: 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid article > span { color: var(--quiet); font: 8px/1 var(--mono); letter-spacing: .1em; }
.metric-grid strong { margin-top: 28px; font-size: 25px; font-weight: 520; }
.metric-grid strong i { color: var(--quiet); font-size: 12px; font-style: normal; }
.metric-grid small, .metric-grid a { margin-top: auto; color: var(--muted); font: 9px/1.2 var(--mono); }
.metric-grid a { color: var(--signal); text-decoration: none; }
progress { width: 100%; height: 3px; margin-top: auto; appearance: none; }
progress::-webkit-progress-bar { background: #272c34; }
progress::-webkit-progress-value { background: var(--signal); }
progress::-moz-progress-bar { background: var(--signal); }
.panel-section { margin-top: 26px; border: 1px solid var(--line); background: var(--panel); }
.section-title { min-height: 78px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.section-title > div { display: grid; gap: 7px; }
.section-title span { color: var(--quiet); font: 8px/1 var(--mono); letter-spacing: .1em; }
.section-title h2 { margin: 0; font-size: 19px; font-weight: 520; }
.asset-list > a { min-height: 72px; padding: 0 20px; display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line-soft); text-decoration: none; }
.asset-list > a:last-child { border-bottom: 0; }
.asset-list > a:hover { background: #12151a; }
.asset-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--signal); border: 1px solid #31523f; font: 10px/1 var(--mono); }
.asset-list a > span:nth-child(2) { display: grid; gap: 6px; }
.asset-list strong { font: 10px/1 var(--mono); letter-spacing: .06em; }
.asset-list small { color: var(--quiet); font: 8px/1 var(--mono); }
.asset-list b { color: var(--muted); font: 8px/1 var(--mono); }
.empty-panel { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.empty-panel > span { color: var(--signal); font: 28px/1 var(--mono); }
.empty-panel p { margin: 0; }
.empty-panel a { color: var(--signal); font: 9px/1 var(--mono); }

.billing-notice { margin-top: 40px; padding: 18px 20px; display: grid; grid-template-columns: 190px 1fr; gap: 20px; border: 1px solid #5f4d2c; background: #17140e; }
.billing-notice span { color: #efc574; font: 9px/1.4 var(--mono); letter-spacing: .08em; }
.billing-notice p { margin: 0; color: #b5a98e; font-size: 12px; line-height: 1.5; }
.billing-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.billing-card { min-height: 420px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); }
.billing-card.current { border-color: #3d7252; box-shadow: inset 0 2px var(--signal); }
.billing-card > div { display: flex; justify-content: space-between; color: var(--signal); font: 9px/1 var(--mono); text-transform: uppercase; }
.billing-card > div b { padding: 4px 6px; color: #07110b; background: var(--signal); font-size: 7px; }
.billing-card > strong { margin-top: 35px; font-size: 31px; font-weight: 520; }
.billing-card > strong small { color: var(--quiet); font: 10px/1 var(--mono); }
.billing-card > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.billing-card button { height: 42px; margin-top: 25px; color: var(--quiet); background: #161a20; border: 1px solid var(--line); font: 8px/1 var(--mono); letter-spacing: .08em; }

.admin-metrics { grid-template-columns: repeat(4, 1fr); }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.admin-table th { height: 42px; padding: 0 13px; color: var(--quiet); border-bottom: 1px solid var(--line); text-align: left; font: 8px/1 var(--mono); letter-spacing: .08em; }
.admin-table td { height: 72px; padding: 0 13px; border-bottom: 1px solid var(--line-soft); }
.admin-table td:first-child, .admin-table td:nth-child(2) { display: table-cell; }
.admin-table td strong, .admin-table td small { display: block; }
.admin-table td strong { font: 10px/1.2 var(--mono); }
.admin-table td small { margin-top: 6px; color: var(--quiet); font: 8px/1 var(--mono); }
.admin-table select { height: 31px; color: var(--muted); background: #090b0e; border: 1px solid #2c323a; font: 8px/1 var(--mono); }
.admin-table button { height: 31px; padding: 0 10px; color: #07110b; background: var(--signal); cursor: pointer; font: 8px/1 var(--mono); }
.error-shell { min-height: calc(100vh - 68px); display: grid; place-content: center; justify-items: center; gap: 17px; text-align: center; }
.error-shell > span { color: var(--signal); font: 64px/1 var(--mono); }
.error-shell h1 { max-width: 600px; margin: 0; font-size: 28px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 65px; }
  .hero-visual { transform: none; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); }
  .feature-strip article:nth-child(2) { border-right: 1px solid var(--line); }
  .feature-strip article:nth-child(n+3) { border-top: 0; }
  .plan-row, .billing-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article:nth-child(2) { border-right: 0; }
  .metric-grid article:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .product-nav { height: 58px; padding: 0 13px; }
  .product-nav nav { gap: 0; }
  .product-nav nav > a, .product-nav nav button { padding: 9px 7px; font-size: 8px; }
  .product-nav nav > a:nth-child(3) { display: none; }
  .product-brand small { display: none; }
  .hero { padding: 52px 16px 60px; }
  .hero h1 { font-size: 46px; }
  .hero-visual pre { min-height: 330px; font-size: 8px; }
  .hero-proof { gap: 10px; }
  .feature-strip { padding: 0 16px 60px; grid-template-columns: 1fr; }
  .feature-strip article, .feature-strip article:nth-child(2) { border-right: 1px solid var(--line); border-top: 0; }
  .feature-strip article:first-child { border-top: 1px solid var(--line); }
  .plans-section { padding: 65px 16px; }
  .auth-card { padding: 27px 20px; }
  .dashboard-shell { padding: 45px 14px 70px; }
  .page-heading { align-items: start; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { border-right: 0; border-top: 1px solid var(--line); }
  .metric-grid article:first-child { border-top: 0; }
  .billing-notice { grid-template-columns: 1fr; }
  .asset-list > a { grid-template-columns: 38px 1fr; }
  .asset-list b { display: none; }
}
