:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --card: #0d0d0d;
  --line: #1c1c1c;
  --line-strong: #2e2e2e;
  --text: #f5f5f5;
  --muted: #8a8a8a;
  --gray: #2b2b2b;
  --font: 'Inter', system-ui, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 24px 80px rgba(255, 255, 255, 0.05);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
::selection { background: #fff; color: #000; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 110px 0; scroll-margin-top: 80px; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* header */

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 32px; padding: 18px 0; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.08em; }
.logo span { -webkit-text-stroke: 1px var(--text); color: transparent; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); letter-spacing: 0.05em; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* buttons */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: #000; background: #fff; border: 1px solid #fff; padding: 13px 26px; border-radius: var(--r-pill); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; user-select: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25); }
.btn-lg { padding: 17px 38px; font-size: 0.95rem; }
.btn-sm { padding: 10px 18px; font-size: 0.78rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); box-shadow: 0 12px 40px rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; border-radius: var(--r-md); }

/* hero */

.hero { position: relative; padding: 0 0 90px; min-height: 100vh; display: flex; align-items: center; background: url('../img/hero-bg.jpg') center/cover no-repeat; }
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); pointer-events: none; }
.hero-content { position: relative; z-index: 1; text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
.hero-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); letter-spacing: 0.06em; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.9); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; justify-content: center; }

/* divider */

.divider-line { height: 3px; background: var(--text); }

/* section head */

.sec-head { margin-bottom: 64px; max-width: 640px; }
.sec-head h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.01em; margin: 14px 0 12px; }
.sec-head p:last-child { color: var(--muted); }
.sec-tag { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.2em; }

/* grid */

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s; }
.card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }

.media { position: relative; aspect-ratio: 4/3; overflow: hidden; background-color: #0a0a0a; border-bottom: 1px solid var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; filter: grayscale(1) contrast(1.1) brightness(0.95); transition: filter 0.4s, transform 0.5s; }
.card:hover .media img { filter: grayscale(0) brightness(1); transform: scale(1.04); }
.media .ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; }
.media.img-missing .ph { display: flex; }
.ph { font-family: var(--font-mono); font-weight: 700; font-size: 2rem; letter-spacing: 0.25em; color: #161616; }

.card-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title-row { display: flex; align-items: center; gap: 12px; }
.card-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.card-body h3 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }
.desc { font-size: 0.92rem; color: var(--muted); }

.prices { margin-top: auto; border-block: 1px solid var(--line); padding: 6px 0; }
.price-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 0.82rem; }
.price-row span { color: var(--muted); }
.price-row b { font-size: 0.88rem; font-weight: 700; }
.price-row b::after { content: '·'; margin-left: 8px; color: var(--muted); }
.card .btn-block { margin-top: 10px; }

.empty-stock { text-align: center; color: var(--muted); font-size: 1.1rem; padding: 60px 0; }

/* features */

.grid-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feat { border: 1px solid var(--line); background: var(--card); padding: 34px 30px; border-radius: var(--r-lg); transition: border-color 0.3s, transform 0.3s; }
.feat:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.feat-num { display: block; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--gray); letter-spacing: 0.2em; margin-bottom: 26px; }
.feat h3 { font-family: var(--font-head); font-size: 1.25rem; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 0.95rem; }

/* faq */

.container.narrow { max-width: 860px; }
.faq { display: flex; flex-direction: column; }
.faq-item { border: 1px solid var(--line); background: var(--card); margin-bottom: 14px; border-radius: var(--r-md); transition: border-color 0.3s; }
.faq-item.open { border-color: var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: none; color: var(--text); font-family: var(--font-mono); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; padding: 22px 26px; cursor: pointer; border-radius: var(--r-md); }
.faq-q i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq-q i::before, .faq-q i::after { content: ''; position: absolute; background: var(--text); transition: transform 0.3s; }
.faq-q i::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq-q i::after { top: 0; left: 6px; width: 2px; height: 14px; }
.faq-item.open .faq-q i::after { transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s; }
.faq-a p { padding: 0 26px 24px; color: var(--muted); font-size: 0.95rem; max-width: 640px; }

/* footer */

.watermark {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(45%);
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 12vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.04);
  text-align: center;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.footer-desc { color: var(--muted); font-size: 0.92rem; margin-top: 16px; max-width: 340px; }
.site-footer h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--gray); margin-bottom: 18px; }
.site-footer .footer-grid a { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 0.85rem; margin-bottom: 10px; transition: color 0.2s; }
.site-footer .footer-grid a:hover { color: var(--text); }
.footer-bottom { padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.disclaimer { color: #4b4b4b; font-size: 0.72rem; }

/* modal */

.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; max-width: 960px; width: 100%; max-height: 90vh; overflow: hidden; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 10; background: var(--bg-alt); border: 1px solid var(--line-strong); color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.modal-close:hover { background: var(--gray); }
.modal-left { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg-alt); }
.modal-img-wrap { position: relative; overflow: hidden; background: var(--bg); }
.modal-img-wrap img { width: 100%; height: auto; display: block; }
.modal-img-ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; font-family: var(--font-mono); font-weight: 700; font-size: 3rem; letter-spacing: 0.2em; color: #161616; }
.modal-img-ph.show { display: flex; }
.modal-desc-box { padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-alt); }
.modal-desc-text { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.modal-right { flex: 1; min-width: 0; padding: 40px 34px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.modal-right h2 { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.modal-price { font-family: var(--font-head); font-size: 2rem; font-weight: 700; }
.modal-divider { height: 1px; background: var(--line); margin: 4px 0; }
.modal-variant-label { font-size: 0.95rem; font-weight: 600; }
.modal-variants { display: flex; flex-direction: column; gap: 10px; }
.modal-variant { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.modal-variant:hover, .modal-variant.selected { border-color: var(--text); background: rgba(255, 255, 255, 0.03); }
.modal-variant-name { font-weight: 600; }
.modal-variant-info { text-align: right; }
.modal-variant-price { font-weight: 700; font-size: 1rem; }
.modal-variant-stock { font-size: 0.75rem; color: var(--text-secondary, #4ade80); margin-top: 2px; }
.modal-buy-row { margin-top: auto; }
.modal-buy-btn { width: 100%; }

@media (max-width: 700px) {
  .modal { flex-direction: column; max-height: 95vh; }
  .modal-right { padding: 24px 20px; }
}

/* burger */

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--text); transition: transform 0.3s, opacity 0.3s; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* responsive */

@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .nav-links { position: fixed; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: rgba(5, 5, 5, 0.98); border-bottom: 1px solid var(--line); padding: 12px 0; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.25s, transform 0.25s; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { display: block; padding: 13px 6%; font-size: 0.95rem; }
  .burger { display: flex; margin-left: auto; }
  .nav .btn-sm { display: none; }
  .grid-feats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero { padding-top: 150px; }
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
}