/* ────────────────────────────────────────────────────────
   Kaizen GenSpoofer — Clean Dark Theme
   Inspired by the provided reference designs
──────────────────────────────────────────────────────── */

:root {
  --bg:        #000000;
  --bg-card:   #0c0c0c;
  --bg-hover:  #111111;
  --border:    #1a1a1a;
  --border-md: #252525;
  --white:     #ffffff;
  --off-white: #e8e8e8;
  --gray:      #6b6b6b;
  --gray-lt:   #999999;
  --green:     #22c55e;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--white); font-family: var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; }
ul { list-style: none; }
canvas#stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ────────── ANNOUNCEMENT BANNER ────────── */
.ann-bar {
  display: none; position: fixed;
  top: 60px; left: 0; right: 0; z-index: 300;
  padding: 10px 48px; text-align: center;
  font-size: 13px; font-weight: 500; letter-spacing: .2px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  align-items: center; justify-content: center; gap: 12px;
  animation: drop .3s cubic-bezier(.4,0,.2,1);
}
.ann-bar.visible { display: flex; }
.ann-bar.info    { background: rgba(255,255,255,.04); }
.ann-bar.warning { background: rgba(255,200,50,.07); color: #fbbf24; border-color: rgba(251,191,36,.2); }
.ann-bar.update  { background: rgba(34,197,94,.07); color: var(--green); border-color: rgba(34,197,94,.2); }
.ann-bar.maintenance { background: rgba(255,255,255,.03); color: #9ca3af; }
.ann-bar-close { position: absolute; right: 20px; background: none; border: none; color: inherit; opacity: .4; font-size: 16px; line-height: 1; transition: opacity .2s; }
.ann-bar-close:hover { opacity: 1; }
@keyframes drop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ────────── NAVIGATION ────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  transition: background .3s, border-color .3s;
}
.nav.solid {
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--white); }
.nav-brand img { width: 28px; height: 28px; border-radius: 5px; object-fit: cover; flex-shrink: 0; display: block; }
.nav-brand-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.nav-brand-icon svg { width: 24px; height: 24px; }
.nav-center { display: flex; align-items: center; gap: 32px; }
.nav-center a { font-size: 13px; font-weight: 500; color: var(--gray); transition: color .2s; letter-spacing: .2px; }
.nav-center a:hover { color: var(--white); }
.nav-status { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 13px; font-weight: 600; color: var(--gray-lt); padding: 7px 14px; border-radius: 6px; transition: color .2s; }
.nav-login:hover { color: var(--white); }
.btn-solid { background: var(--white); color: var(--bg); font-size: 13px; font-weight: 700; padding: 8px 18px; border-radius: 6px; border: none; letter-spacing: .3px; transition: all .2s; display: inline-block; }
.btn-solid:hover { background: var(--off-white); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,255,255,.12); }
.btn-ghost-sm { background: none; border: 1px solid var(--border-md); color: var(--gray-lt); font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 6px; transition: all .2s; display: inline-block; }
.btn-ghost-sm:hover { border-color: var(--gray); color: var(--white); }

/* Mobile hamburger */
.hamburger { display: none; background: none; border: 1px solid var(--border-md); color: var(--white); width: 36px; height: 36px; border-radius: 6px; font-size: 17px; align-items: center; justify-content: center; }
.mobile-nav { display: none; position: fixed; top: 60px; left: 0; right: 0; z-index: 190; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; flex-direction: column; gap: 2px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 15px; color: var(--gray); padding: 12px 0; border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border: none; }

/* ────────── HERO ────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border-md); border-radius: 24px;
  padding: 6px 16px; font-size: 12px; font-weight: 500;
  color: var(--gray-lt); letter-spacing: .4px;
  margin-bottom: 32px;
}
.hero h1 {
  font-size: clamp(52px, 9vw, 100px);
  font-weight: 900; line-height: .97;
  letter-spacing: -4px; max-width: 900px;
}
.hero h1 em { color: var(--gray); font-style: normal; font-weight: 300; }
.hero-desc {
  margin-top: 24px; font-size: 16px; font-weight: 400;
  color: var(--gray); line-height: 1.7; max-width: 520px;
}
.hero-actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn-hero { background: var(--white); color: var(--bg); font-size: 14px; font-weight: 700; padding: 13px 28px; border-radius: 6px; border: none; letter-spacing: .3px; transition: all .22s; }
.btn-hero:hover { background: var(--off-white); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,.1); }
.btn-hero-ghost { background: none; border: 1px solid var(--border-md); color: var(--white); font-size: 14px; font-weight: 600; padding: 13px 28px; border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; transition: all .22s; }
.btn-hero-ghost:hover { border-color: var(--gray); background: rgba(255,255,255,.03); }

/* Stock */
.stock-row {
  margin-top: 56px; display: flex; gap: 0;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden; background: var(--bg-card);
}
.stock-cell { flex: 1; padding: 16px 28px; display: flex; align-items: center; gap: 14px; border-right: 1px solid var(--border); }
.stock-cell:last-child { border-right: none; }
.stock-platform { font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: .5px; text-transform: uppercase; }
.stock-count { font-size: 20px; font-weight: 800; line-height: 1; }
.stock-label { font-size: 11px; color: var(--gray); margin-top: 1px; }
.stock-indicator { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.stock-indicator.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.stock-indicator.offline { background: #ef4444; box-shadow: 0 0 6px #ef4444; }

/* Stats */
.stats-row { margin-top: 64px; display: flex; gap: 80px; flex-wrap: wrap; justify-content: center; }
.stat-item { text-align: center; }
.stat-num { font-size: 48px; font-weight: 900; letter-spacing: -2px; }
.stat-lbl { font-size: 11px; letter-spacing: 2px; color: var(--gray); text-transform: uppercase; margin-top: 4px; }

/* ────────── SECTION BASE ────────── */
.section { position: relative; z-index: 1; padding: 120px 48px; }
.section.bg-card { background: var(--bg-card); }
.section-wrap { max-width: 1120px; margin: 0 auto; }
.section-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--gray); text-transform: uppercase; margin-bottom: 16px; }
.section-title { font-size: clamp(34px, 4vw, 56px); font-weight: 900; letter-spacing: -2px; text-align: center; margin-bottom: 14px; }
.section-sub { text-align: center; color: var(--gray); font-size: 15px; line-height: 1.6; margin-bottom: 64px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ────────── FEATURES ────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feat-cell {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background .25s;
}
.feat-cell:nth-child(3n) { border-right: none; }
.feat-cell:nth-child(4), .feat-cell:nth-child(5), .feat-cell:nth-child(6) { border-bottom: none; }
.feat-cell:hover { background: var(--bg-hover); }
.feat-icon-wrap {
  width: 40px; height: 40px;
  border: 1px solid var(--border-md); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feat-icon-wrap svg { width: 18px; height: 18px; color: var(--gray-lt); }
.feat-cell h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; letter-spacing: -.3px; }
.feat-cell p { font-size: 14px; color: var(--gray); line-height: 1.65; }
.feat-border { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }

/* ────────── PRICING ────────── */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; padding: 36px 28px; position: relative;
  transition: border-color .25s, transform .25s;
}
.price-card:hover { border-color: var(--border-md); transform: translateY(-4px); }
.price-card.highlight { border-color: var(--white); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--bg);
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  padding: 4px 14px; border-radius: 24px; white-space: nowrap;
}
.price-badge.dim { background: var(--border-md); color: var(--white); }
.price-name { font-size: 17px; font-weight: 800; letter-spacing: -.3px; margin-bottom: 8px; }
.price-amount { font-size: 46px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.price-amount sup { font-size: 22px; font-weight: 700; vertical-align: top; margin-top: 10px; display: inline-block; }
.price-period { font-size: 12px; color: var(--gray); margin-top: 4px; margin-bottom: 28px; }
.price-list { margin-bottom: 32px; }
.price-list li { font-size: 13px; color: var(--gray); padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.price-list li:last-child { border-bottom: none; }
.check { width: 14px; height: 14px; flex-shrink: 0; }
.check svg { width: 14px; height: 14px; color: var(--white); }
.price-btn { display: block; width: 100%; text-align: center; padding: 12px; font-size: 13px; font-weight: 700; letter-spacing: .3px; border-radius: 6px; transition: all .2s; }
.price-btn.solid { background: var(--white); color: var(--bg); border: none; }
.price-btn.solid:hover { background: var(--off-white); }
.price-btn.ghost { background: none; border: 1px solid var(--border-md); color: var(--white); }
.price-btn.ghost:hover { border-color: var(--gray); background: rgba(255,255,255,.03); }

/* ────────── FAQ ────────── */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-trigger { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 15px; font-weight: 600; cursor: pointer; letter-spacing: -.2px; transition: color .2s; width: 100%; background: none; border: none; color: var(--white); text-align: left; gap: 16px; }
.faq-trigger:hover { color: var(--gray-lt); }
.faq-icon { flex-shrink: 0; transition: transform .25s cubic-bezier(.4,0,.2,1); }
.faq-icon svg { width: 16px; height: 16px; color: var(--gray); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-body { font-size: 14px; color: var(--gray); line-height: 1.7; padding-bottom: 22px; display: none; }
.faq-item.open .faq-body { display: block; }

/* ────────── FOOTER ────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border); padding: 40px 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
}
.footer-brand { font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.footer-by { font-size: 12px; color: var(--border-md); margin-top: 4px; }
.footer-by span { color: var(--gray); }
.footer-links { display: flex; gap: 28px; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--gray); transition: color .2s; }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; color: var(--border-md); text-align: right; }

/* ────────── PORTAL / LOGIN ────────── */
.full-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; z-index: 1; }
.portal-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 52px 44px; width: 100%; max-width: 440px; text-align: center; }
.portal-icon { width: 44px; height: 44px; background: var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.portal-icon svg { width: 22px; height: 22px; color: var(--white); }
.portal-box h1 { font-size: 20px; font-weight: 800; letter-spacing: 1.5px; margin-bottom: 8px; }
.portal-desc { font-size: 13px; color: var(--gray); margin-bottom: 36px; line-height: 1.5; }
.f-group { margin-bottom: 14px; text-align: left; }
.f-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.f-input { width: 100%; background: #0a0a0a; border: 1px solid var(--border); border-radius: 7px; padding: 13px 16px; color: var(--white); font-size: 14px; font-family: var(--font); outline: none; transition: border-color .2s; }
.f-input:focus { border-color: var(--border-md); }
.f-input::placeholder { color: var(--border-md); }
.f-input.mono { font-family: 'SF Mono', 'Fira Code', monospace; letter-spacing: .5px; }
select.f-input { cursor: pointer; }
textarea.f-input { resize: vertical; min-height: 88px; }
.f-error { font-size: 13px; color: #ef4444; margin-bottom: 12px; text-align: left; }
.f-ok { font-size: 13px; color: var(--green); }
.portal-footer { margin-top: 24px; font-size: 12px; color: var(--border-md); }
.portal-footer a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.btn-submit { width: 100%; background: var(--white); color: var(--bg); border: none; border-radius: 7px; padding: 14px; font-size: 14px; font-weight: 700; letter-spacing: .3px; cursor: pointer; margin-top: 8px; transition: all .2s; }
.btn-submit:hover { background: var(--off-white); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ────────── DASHBOARD ────────── */
.dash-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; background: rgba(0,0,0,.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.dash-main { padding: 92px 48px 64px; max-width: 1260px; margin: 0 auto; position: relative; z-index: 1; }
.dash-heading { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 6px; }
.dash-sub-text { font-size: 14px; color: var(--gray); margin-bottom: 44px; }
.dash-layout { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.d-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 28px; margin-bottom: 16px; }
.d-card:last-child { margin-bottom: 0; }
.d-card-title { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: var(--gray); text-transform: uppercase; margin-bottom: 20px; }
.d-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.d-row:last-child { border-bottom: none; }
.d-row-key { color: var(--gray); }
.d-row-val { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; font-weight: 600; max-width: 230px; text-align: right; word-break: break-all; }
.badge-active { color: var(--green); font-weight: 700; font-family: var(--font); font-size: 12px; }
.badge-expired { color: #ef4444; font-weight: 700; font-family: var(--font); font-size: 12px; }
.d-reset-btn { width: 100%; margin-top: 20px; background: none; border: 1px solid var(--border); color: var(--white); padding: 11px; font-size: 13px; font-weight: 600; border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s; }
.d-reset-btn:hover { border-color: var(--border-md); background: var(--bg-hover); }
.d-reset-note { font-size: 11px; color: var(--border-md); margin-top: 8px; text-align: center; }
.dl-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.dl-icon-wrap { width: 52px; height: 52px; background: var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.dl-icon-wrap svg { width: 24px; height: 24px; color: var(--gray-lt); }
.dl-card h3 { font-size: 16px; font-weight: 700; }
.dl-card p { font-size: 13px; color: var(--gray); line-height: 1.55; }
.dl-card .btn-submit { margin-top: 8px; }
.dl-compat { font-size: 11px; color: var(--border-md); margin-top: 2px; }
.log-item { background: #080808; border: 1px solid var(--border); border-left: 2px solid var(--gray); border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; }
.log-item.info { border-left-color: var(--gray); }
.log-item.update { border-left-color: var(--green); }
.log-item.warning { border-left-color: #fbbf24; }
.log-item.maintenance { border-left-color: #9ca3af; }
.log-msg { font-size: 13px; line-height: 1.5; }
.log-meta { font-size: 11px; color: var(--border-md); margin-top: 6px; display: flex; gap: 10px; }
.log-meta span:first-child { text-transform: uppercase; letter-spacing: .5px; }
.no-logs { font-size: 13px; color: var(--border-md); }

/* ────────── ADMIN ────────── */
.admin-main { padding: 92px 48px 64px; max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.a-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 28px; margin-bottom: 20px; }
.a-card-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; margin-bottom: 6px; }
.a-card-sub { font-size: 13px; color: var(--gray); margin-bottom: 24px; line-height: 1.5; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
.btn-admin { flex: 1; padding: 12px; font-size: 13px; font-weight: 700; border-radius: 6px; letter-spacing: .3px; transition: all .2s; }
.btn-admin.solid { background: var(--white); color: var(--bg); border: none; }
.btn-admin.solid:hover { background: var(--off-white); }
.btn-admin.outline { background: none; border: 1px solid var(--border-md); color: var(--white); }
.btn-admin.outline:hover { border-color: var(--gray); background: var(--bg-hover); }
.btn-admin.danger-outline { background: none; border: 1px solid rgba(239,68,68,.3); color: #ef4444; }
.btn-admin.danger-outline:hover { border-color: #ef4444; background: rgba(239,68,68,.05); }
.status-line { font-size: 13px; margin-top: 12px; display: none; }
.status-line.ok { color: var(--green); }
.status-line.err { color: #ef4444; }
.ann-admin-row { display: flex; justify-content: space-between; align-items: flex-start; background: #080808; border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; margin-bottom: 10px; font-size: 13px; }
.ann-row-tag { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gray); margin-right: 8px; }
.ann-row-date { font-size: 11px; color: var(--border-md); margin-top: 4px; }
.del-btn { background: none; border: 1px solid var(--border); color: var(--gray); font-size: 11px; font-weight: 500; padding: 5px 12px; border-radius: 5px; cursor: pointer; transition: all .2s; white-space: nowrap; margin-left: 12px; flex-shrink: 0; }
.del-btn:hover { border-color: #ef4444; color: #ef4444; }
.no-items { font-size: 13px; color: var(--border-md); }
.count-badge { font-size: 12px; font-weight: 500; color: var(--gray); margin-left: 6px; }

/* ────────── RESPONSIVE ────────── */
@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-cell:nth-child(3n) { border-right: 1px solid var(--border); }
  .feat-cell:nth-child(2n) { border-right: none; }
  .feat-cell:nth-child(3), .feat-cell:nth-child(4) { border-bottom: 1px solid var(--border); }
  .feat-cell:nth-child(5), .feat-cell:nth-child(6) { border-bottom: none; }
  .price-grid { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-copy { text-align: center; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; }
  .nav-center, .nav-login { display: none; }
  .hamburger { display: flex; }
  .section, .dash-main, .admin-main { padding-left: 20px; padding-right: 20px; }
  .feat-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .stock-row { flex-direction: column; }
  .stock-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stock-cell:last-child { border-bottom: none; }
  footer { padding: 28px 20px; }
  .dash-nav, .dash-main { padding-left: 20px; padding-right: 20px; }
}
