/* gpuai.shop - dark technical design system */

:root {
  --bg:        #0a0d14;
  --bg-2:      #0e131c;
  --panel:     #111823;
  --panel-2:   #151d2a;
  --line:      #1e2836;
  --line-2:    #2a3646;
  --text:      #e6edf7;
  --text-2:    #9aa8bd;
  --text-3:    #6b7a91;
  --accent:    #4ff0dc;
  --accent-2:  #3b8cff;
  --warn:      #ffb84d;
  --danger:    #ff6b6b;
  --ok:        #4fe08a;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --r: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .6em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--text-2); }

code, kbd, pre, .mono { font-family: var(--mono); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, .86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.05rem; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); font-size: .93rem; }
.nav a:hover, .nav a.on { color: var(--text); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.burger { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 8px; padding: 7px 10px; cursor: pointer; margin-left: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px; font-size: .92rem; font-weight: 600;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--text-3); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a; border-color: transparent; font-weight: 700;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; }
.btn-danger { border-color: #52262c; color: var(--danger); background: #1a1013; }
.btn-sm { padding: 6px 12px; font-size: .83rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- layout blocks ---------- */
section { padding: 72px 0; }
section.tight { padding: 44px 0; }
.eyebrow {
  font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; display: block;
}
.lede { font-size: 1.12rem; color: var(--text-2); max-width: 62ch; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-hover:hover { border-color: var(--line-2); background: var(--panel-2); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.panel-head h3 { margin: 0; font-size: .95rem; }
.panel-body { padding: 18px; }

/* ---------- hero ---------- */
.hero { padding: 90px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 30% 40% -10%;
  background: radial-gradient(closest-side, rgba(79,240,220,.10), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .28; pointer-events: none;
  mask-image: radial-gradient(closest-side at 30% 40%, #000, transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero .lede { font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.stat-row { display: flex; gap: 36px; flex-wrap: wrap; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font: 700 1.55rem/1.1 var(--mono); color: var(--text); }
.stat span { font-size: .85rem; color: var(--text-3); }

/* ---------- tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font: 600 .74rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--bg-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--panel-2); }
td.num, th.num { text-align: right; font-family: var(--mono); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px;
  border-radius: 999px; font: 600 .72rem/1.5 var(--mono); border: 1px solid var(--line-2);
  color: var(--text-2); background: var(--panel-2); text-transform: uppercase; letter-spacing: .06em;
}
.badge-ok     { color: var(--ok);     border-color: #1d4433; background: #0d1b16; }
.badge-warn   { color: var(--warn);   border-color: #4a3a1c; background: #1a1710; }
.badge-danger { color: var(--danger); border-color: #4d2429; background: #1a1113; }
.badge-info   { color: var(--accent); border-color: #1d4a48; background: #0c1a1c; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot-pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); }
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -10px; left: 22px;
  background: var(--accent); color: #04121a; font: 700 .68rem/1 var(--mono);
  padding: 5px 10px; border-radius: 5px; text-transform: uppercase; letter-spacing: .08em;
}
.price { font: 700 2.2rem/1 var(--mono); color: var(--text); margin: 8px 0 2px; }
.price small { font-size: .9rem; color: var(--text-3); font-weight: 400; }
.spec-list { list-style: none; padding: 0; margin: 16px 0 0; font-size: .88rem; }
.spec-list li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.spec-list li b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.check { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.check li { padding: 6px 0 6px 24px; position: relative; color: var(--text-2); }
.check li::before { content: "+"; position: absolute; left: 0; color: var(--accent); font-family: var(--mono); font-weight: 700; }

/* ---------- terminal / logs ---------- */
.term {
  background: #05070c; border: 1px solid var(--line); border-radius: var(--r);
  font: 13px/1.75 var(--mono); padding: 16px; max-height: 460px; overflow-y: auto;
}
.term .ln { display: flex; gap: 12px; white-space: pre-wrap; word-break: break-word; }
.term .t { color: var(--text-3); flex: none; }
.term .lv { flex: none; width: 52px; text-transform: uppercase; font-size: 11px; padding-top: 2px; }
.term .lv-info  { color: var(--accent-2); }
.term .lv-warn  { color: var(--warn); }
.term .lv-ready { color: var(--ok); }
.term .m { color: #c6d3e4; }
.term::-webkit-scrollbar { width: 9px; }
.term::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 9px; }

/* ---------- progress / meters ---------- */
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .6s ease; }
.meter { margin-bottom: 14px; }
.meter-top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 6px; }
.meter-top span { color: var(--text-3); }
.meter-top b { font-family: var(--mono); color: var(--text); font-weight: 600; }

/* ---------- forms ---------- */
label { display: block; font-size: .85rem; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 8px; font: 15px var(--sans);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field { margin-bottom: 16px; }
.hint { font-size: .8rem; color: var(--text-3); margin-top: 5px; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: .9rem; margin-bottom: 18px; border: 1px solid; }
.alert-err  { background: #1a1113; border-color: #4d2429; color: #ffb1b1; }
.alert-ok   { background: #0d1b16; border-color: #1d4433; color: #a5f0c6; }
.alert-info { background: #0c1620; border-color: #1d3a4a; color: #b6dcf0; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0 70px; }
.side { position: sticky; top: 88px; align-self: start; }
.side a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--text-2); font-size: .9rem; margin-bottom: 2px;
}
.side a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.side a.on { background: var(--panel-2); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side .grp { font: 600 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 20px 0 8px 12px; }

.balance { background: linear-gradient(135deg, #0f2a2b, #101a2c); border: 1px solid #1d4a48; border-radius: var(--r); padding: 16px; margin-bottom: 18px; }
.balance b { display: block; font: 700 1.7rem/1.1 var(--mono); color: var(--accent); }
.balance span { font-size: .78rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.foot-grid h4 { font: 600 .74rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--text-2); font-size: .88rem; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: var(--text-3); }

/* ---------- misc ---------- */
.crumbs { font-size: .84rem; color: var(--text-3); padding: 18px 0 0; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--text-2); }
.page-head { padding: 34px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--text-2); padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose table { min-width: 0; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.mt0 { margin-top: 0 } .mb0 { margin-bottom: 0 }
.flex { display: flex; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.wrap-gap { flex-wrap: wrap; }

.cta-band { background: linear-gradient(135deg, #0d1f2b, #101526); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .app { grid-template-columns: 1fr; }
  .side { position: static; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }
  .side .grp, .side .balance { display: none; }
  .side a { white-space: nowrap; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 16px 20px; gap: 4px; align-items: stretch;
  }
  .nav.open a { padding: 9px 0; }
  .burger { display: block; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
  .stat-row { gap: 24px; }
}
