/* =====================================================
   NONAME CHEAT — Stylesheet
   Dark terminal / cyberpunk parody shop.
   ===================================================== */

:root {
  /* Colors */
  --bg: #060807;
  --bg-soft: #080b09;
  --surface: #0c110d;
  --surface-alt: #101711;
  --border: #1c2b1e;
  --border-bright: #2c4a30;
  --text: #d8f5df;
  --text-muted: #7a9483;
  --green: #39ff8f;
  --green-dim: #1f9c56;
  --green-glow: rgba(57, 255, 143, 0.35);
  --red: #ff5f56;
  --yellow: #ffbd2e;
  --danger: #ff6b6b;

  /* Type */
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

h1, h2 {
  margin: 0;
}

p {
  margin: 0;
}

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

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* =====================================================
   Decorative background: grid + scanline
   ===================================================== */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(57, 255, 143, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57, 255, 143, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

.bg-scanline {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  background: repeating-linear-gradient(
    to bottom,
    #ffffff 0px,
    #ffffff 1px,
    transparent 1px,
    transparent 3px
  );
}

.navbar, main, .footer, .cart-drawer, .overlay, .modal-overlay {
  position: relative;
  z-index: 2;
}

/* =====================================================
   Navbar
   ===================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 8, 7, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-bright);
  box-shadow: 0 1px 0 rgba(57, 255, 143, 0.08);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
}

.logo__prompt {
  color: var(--green-dim);
}

.nav-links {
  display: flex;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.nav-links a:hover {
  color: var(--green);
  text-shadow: 0 0 8px var(--green-glow);
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.cart-button:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px -4px var(--green-glow);
  transform: translateY(-1px);
}

.cart-button__bracket {
  color: var(--green-dim);
}

.cart-count {
  color: var(--green);
  font-weight: 700;
}

/* =====================================================
   Buttons (shared)
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  border: 1px solid var(--border-bright);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--green);
  color: #04140a;
  border-color: var(--green);
  box-shadow: 0 0 0 rgba(57, 255, 143, 0);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px -4px var(--green-glow);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 20px -8px var(--green-glow);
}

.btn--full {
  width: 100%;
}

.btn--small {
  padding: 9px 14px;
  font-size: 0.78rem;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
  color: var(--green);
  background: var(--surface-alt);
}

/* =====================================================
   Hero
   ===================================================== */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--green);
  border: 1px solid var(--border-bright);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-shadow: 0 0 30px rgba(57, 255, 143, 0.15);
}

.hero__subtitle {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* =====================================================
   Terminal panel (hero + about + checkout)
   ===================================================== */

.terminal-panel {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: 0 0 40px -18px var(--green-glow), inset 0 0 60px -40px var(--green-glow);
  overflow: hidden;
}

.terminal-panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot--red { background: var(--red); }
.dot--yellow { background: var(--yellow); }
.dot--green { background: var(--green-dim); }

.terminal-panel__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.terminal-panel__body {
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  min-height: 220px;
  color: var(--green);
}

.terminal-panel__body p {
  margin-bottom: 8px;
  white-space: pre-wrap;
}

.terminal-line {
  opacity: 0;
  animation: line-in 0.25s ease forwards;
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(2px); }
  to { opacity: 1; transform: translateY(0); }
}

.terminal-panel__body--static {
  color: var(--text);
  min-height: 0;
}

.terminal-panel__body--static .prompt {
  color: var(--green);
  font-weight: 700;
}

.about__line {
  color: var(--text-muted);
  font-family: var(--font-body);
  margin: 14px 0;
  line-height: 1.6;
}

.cursor-blink {
  display: inline-block;
  color: var(--green);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* =====================================================
   Shop
   ===================================================== */

.shop {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 110px;
}

.section-head {
  margin-bottom: 40px;
}

.section-head__eyebrow {
  font-family: var(--font-mono);
  color: var(--green-dim);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
}

.section-head__sub {
  margin-top: 10px;
  color: var(--text-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 0 34px -12px var(--green-glow);
}

.product-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.product-card__status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  border: 1px solid var(--border-bright);
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

.product-card__name {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.product-card__desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

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

.product-card__price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green);
}

/* =====================================================
   About
   ===================================================== */

.about {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.about__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 90px 24px;
}

.terminal-panel--about {
  box-shadow: 0 0 50px -20px var(--green-glow);
}

/* =====================================================
   Footer
   ===================================================== */

.footer {
  border-top: 1px solid var(--border-bright);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--green);
}

.footer__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 20px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.82rem;
}

.footer__links a:hover {
  color: var(--green);
}

.footer__copy {
  width: 100%;
  color: var(--text-muted);
  font-size: 0.78rem;
  order: 3;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* =====================================================
   Cart drawer
   ===================================================== */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, 0.65);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 45;
}

.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--border-bright);
  box-shadow: -20px 0 50px -30px var(--green-glow);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border);
}

.cart-drawer__header h2 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--green);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  padding: 50px 0;
  font-family: var(--font-mono);
}

.cart-empty__title {
  color: var(--green-dim);
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.cart-empty__sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item__name {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.cart-item__price {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 3px;
  font-family: var(--font-mono);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  background: var(--surface-alt);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  line-height: 1;
  font-family: var(--font-mono);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.qty-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.cart-item__qty span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.cart-item__line-total {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
}

.remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font-mono);
}

.remove-btn:hover {
  color: var(--danger);
}

.cart-drawer__footer {
  padding: 20px 22px 26px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-muted);
}

#cartTotal {
  color: var(--green);
  font-size: 1.2rem;
  font-weight: 700;
}

/* =====================================================
   Checkout modal
   ===================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, 0.75);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 24px;
}

.modal-overlay.is-visible {
  display: flex;
}

.modal {
  max-width: 460px;
  width: 100%;
}

.modal .terminal-panel__bar {
  position: relative;
}

.modal__close {
  margin-left: auto;
}

.modal__body {
  text-align: left;
}

.modal__body h2 {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--green);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

.modal__text {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.integration-box {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 24px;
  background: var(--surface-alt);
}

.integration-box__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green-dim);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.integration-box__text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================================================
   Responsive
   ===================================================== */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

  .hero__visual {
    order: -1;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 520px) {
  .navbar__inner {
    padding: 14px 16px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .cart-drawer {
    width: 100%;
  }

  .terminal-panel__body {
    font-size: 0.8rem;
    padding: 16px;
  }
}
