:root {
  --bg: #0a0908;
  --bg-elev: #141311;
  --bg-card: #1a1816;
  --bg-hover: #221f1b;
  --border: #2b2721;
  --border-strong: #3a342c;

  --text: #ebe6de;
  --text-dim: #a89e8f;
  --text-muted: #6d6459;

  --primary: #ff6b1a;
  --primary-hover: #ff8c3f;
  --primary-soft: rgba(255, 107, 26, 0.12);
  --primary-border: rgba(255, 107, 26, 0.3);

  --accent-yellow: #ffd60a;
  --accent-cyan: #22d3ee;

  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, 0.12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, 0.12);
  --err: #f87171;
  --err-bg: rgba(248, 113, 113, 0.12);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.12);
  --dim: #6b7280;
  --dim-bg: rgba(107, 114, 128, 0.12);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

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

button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Hexagon pattern background */
.hex-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 107, 26, 0.08) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(255, 214, 10, 0.04) 0%, transparent 40%);
  overflow: hidden;
}
.hex-bg::before {
  content: '';
  position: absolute;
  inset: -2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='50,1 95,25 95,75 50,99 5,75 5,25' fill='none' stroke='%23ff6b1a' stroke-width='0.4' opacity='0.08'/></svg>");
  background-size: 80px 80px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 10%, transparent 90%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Navbar */
.nav {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-mark {
  color: var(--primary);
  display: inline-flex;
  animation: hex-spin 20s linear infinite;
}

@keyframes hex-spin { to { transform: rotate(360deg); } }

.nav-links { display: flex; gap: 24px; align-items: center; font-size: 13px; }
.nav-links a { color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--primary); }

/* Hero */
.hero {
  padding: 60px 0 80px;
  text-align: center;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px; background: var(--primary);
  border-radius: 50%; box-shadow: 0 0 8px var(--primary);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: all 0.15s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #1a0d04;
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(255, 107, 26, 0.25);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 24px rgba(255, 107, 26, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
  background: var(--bg-hover);
}

.btn-block { width: 100%; }

/* Section heading */
.section {
  padding: 60px 0;
  position: relative;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head p {
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Product grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--primary-border);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #2b2320 0%, #1a1816 100%);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 9, 8, 0.7) 100%);
}

.status-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(10, 9, 8, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  z-index: 2;
}
.status-chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.status-chip.green  { color: var(--ok); }    .status-chip.green  .dot { background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.status-chip.yellow { color: var(--warn); }  .status-chip.yellow .dot { background: var(--warn); box-shadow: 0 0 6px var(--warn); }
.status-chip.red    { color: var(--err); }   .status-chip.red    .dot { background: var(--err); }
.status-chip.blue   { color: var(--info); }  .status-chip.blue   .dot { background: var(--info); }
.status-chip.gray   { color: var(--dim); }   .status-chip.gray   .dot { background: var(--dim); }
.status-chip.orange { color: var(--primary); } .status-chip.orange .dot { background: var(--primary); box-shadow: 0 0 6px var(--primary); }

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card-tagline {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 12px;
}

.price {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
}
.price .amount {
  color: var(--primary);
  font-weight: 600;
  font-size: 16px;
}

/* Product detail */
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 80px;
}

@media (max-width: 800px) {
  .detail-wrap { grid-template-columns: 1fr; gap: 24px; }
}

.detail-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #2b2320 0%, #1a1816 100%);
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.detail-info h1 {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.detail-info .tagline {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.duration-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.duration-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.15s;
}
.duration-option:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.duration-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.duration-option .label { font-weight: 500; }
.duration-option .price-amount {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--primary);
  font-size: 15px;
}

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border 0.15s;
}
.field input:focus { border-color: var(--primary); }

.err-msg {
  color: var(--err);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

/* Order status page */
.order-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 0;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  text-align: center;
}

.order-status-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 32px;
}
.order-status-icon.ok { background: var(--ok-bg); color: var(--ok); }
.order-status-icon.pending { background: var(--warn-bg); color: var(--warn); }
.order-status-icon.failed { background: var(--err-bg); color: var(--err); }

.order-card h1 {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.order-card p { color: var(--text-dim); margin-bottom: 24px; }

.license-box {
  background: var(--bg);
  border: 1px solid var(--primary-border);
  border-radius: var(--r);
  padding: 20px;
  margin: 16px 0 24px;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.15s;
}
.license-box:hover { background: var(--bg-elev); }

.cmd-box {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary-hover);
  word-break: break-all;
  text-align: left;
  cursor: pointer;
  transition: border 0.15s;
  margin: 10px 0;
}
.cmd-box:hover { border-color: var(--primary); }

.hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 0.9;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  background: var(--bg-elev);
  border: 1px solid var(--primary);
  border-left-width: 3px;
  border-radius: var(--r);
  color: var(--text);
  font-size: 13px;
  z-index: 1000;
  animation: slide-in 180ms ease;
}
@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading { text-align: center; padding: 60px 20px; color: var(--text-muted); }
