/* ============================================
   STRANIS — Design System
   Base: #d6d6d6  |  Accent: #9f0707
============================================ */

@font-face {
  font-family: 'Inter';
  src: url('Inter_18pt-Medium.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HKGroteskWide';
  src: url('hkgroteskwide-bold.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --base: #d6d6d6;
  --base-2: #ededed;
  --base-3: #d8d8d8;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-3: #5a5a5a;
  --line: rgba(10, 10, 10, 0.12);
  --line-soft: rgba(10, 10, 10, 0.06);
  --accent: #9f0707;
  --accent-2: #c40d0d;
  --accent-soft: rgba(159, 7, 7, 0.08);
  --ok: #1f6b3a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.18);
  --shadow-2: 0 24px 60px -20px rgba(0, 0, 0, 0.3);
  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "HKGroteskWide", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; background: #000; }
body {
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.display {
  font-family: var(--font-display);
  font-size: clamp(48px, 8.5vw, 150px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
}
.h-xl { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 5.5vw, 86px); letter-spacing: -0.01em; line-height: 1.02; text-transform: uppercase; }
.h-l  { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 56px); letter-spacing: -0.005em; line-height: 1.05; text-transform: uppercase; }
.h-m  { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0; line-height: 1.1; text-transform: uppercase; }

.mono { font-family: var(--font-mono); letter-spacing: 0; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 32px; }
section { position: relative; padding: 120px 0; }

@media (max-width: 720px) {
  .wrap, .wrap-narrow { padding: 0 20px; }
  section { padding: 80px 0; }
}

/* ============== Intro ============== */
.intro {
  position: relative;
  height: 220vh;
  width: 100%;
  background: var(--base);
}
.intro__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 1;
  background: #000;
}
.intro__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: scale(var(--intro-img-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
.intro__overlay {
  position: absolute;
  inset: 0;
  background: var(--base);
  -webkit-mask-image:
    linear-gradient(#000, #000),
    url('logo-mask.svg');
  mask-image:
    linear-gradient(#000, #000),
    url('logo-mask.svg');
  -webkit-mask-repeat: no-repeat, no-repeat;
  mask-repeat: no-repeat, no-repeat;
  -webkit-mask-position: center, var(--intro-logo-pos-x, 50%) var(--intro-logo-pos-y, 50%);
  mask-position: center, var(--intro-logo-pos-x, 50%) var(--intro-logo-pos-y, 50%);
  -webkit-mask-size:
    100% 100%,
    var(--intro-logo-size, 32%) auto;
  mask-size:
    100% 100%,
    var(--intro-logo-size, 32%) auto;
  -webkit-mask-composite: source-out;
  mask-composite: exclude;
  will-change: mask-size;
}
.intro__blackout {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--intro-blackout, 0);
  pointer-events: none;
}
.intro--done .intro__sticky { pointer-events: none; }
.nav { transition: opacity 0.5s ease; }

@media (max-width: 720px) {
  .intro { height: 180vh; }
}

/* ============== Nav — Liquid Glass (red) ============== */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 28px);
  max-width: 1200px;
  padding: 8px 10px 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  background:
    linear-gradient(135deg,
      rgba(120, 5, 5, 0.92) 0%,
      rgba(140, 6, 6, 0.85) 45%,
      rgba(159, 7, 7, 0.90) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(1.05) brightness(1.02);
  backdrop-filter: blur(28px) saturate(190%) contrast(1.05) brightness(1.02);
  border: 1px solid rgba(255, 220, 220, 0.45);
  box-shadow:
    inset 0 1.5px 0.5px rgba(255, 200, 200, 0.55),
    inset 0 -1px 1px rgba(0, 0, 0, 0.20),
    inset 1px 0 1px rgba(255, 180, 180, 0.20),
    inset -1px 0 1px rgba(255, 180, 180, 0.20),
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 10px 28px -8px rgba(159, 7, 7, 0.30),
    0 28px 56px -20px rgba(0, 0, 0, 0.18);
  transition: backdrop-filter 0.4s var(--ease), background 0.4s var(--ease);
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(255, 200, 200, 0.25) 0%,
      rgba(255, 255, 255, 0) 38%,
      rgba(255, 255, 255, 0) 62%,
      rgba(0, 0, 0, 0.10) 100%);
  mix-blend-mode: screen;
}
.nav::after {
  content: '';
  position: absolute;
  top: 1px; left: 16%; right: 26%;
  height: 1px;
  border-radius: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,235,235,0.8) 35%,
    rgba(255,235,235,0.8) 65%,
    rgba(255,255,255,0) 100%);
  pointer-events: none;
  opacity: 0.75;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  height: 40px;
  padding: 0 6px;
  position: relative;
  z-index: 1;
}
.nav__brand img,
.nav__brand svg {
  height: 30px;
  width: auto;
  display: block;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}
.nav__menu {
  display: flex;
  gap: 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  box-shadow: none;
}
.nav__menu a {
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 18px;
  border-radius: 999px;
  position: relative;
  transition: color 0.3s var(--ease), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  isolation: isolate;
}
.nav__menu a::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 255, 255, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 6px 16px -6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.78);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  pointer-events: none;
}
.nav__menu a:hover { color: #fff; transform: translateY(-1px); }
.nav__menu a:hover::before { opacity: 1; transform: scale(1); }
.nav__menu a.active { color: var(--accent); }
.nav__menu a.active::before {
  opacity: 1;
  transform: scale(1);
  background: #fff;
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 18px -6px rgba(0, 0, 0, 0.35);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.nav__cart, .nav__user {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  background: transparent;
  color: #fff;
  position: relative;
  transition: color 0.3s var(--ease), transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  isolation: isolate;
}
.nav__cart::before, .nav__user::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.30) 0%,
      rgba(255, 255, 255, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    inset 0 -1px 0 rgba(0, 0, 0, 0.10),
    0 6px 16px -6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: scale(0.78);
  transition:
    opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(6px) saturate(140%);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  pointer-events: none;
}
.nav__cart:hover, .nav__user:hover { color: #fff; transform: translateY(-1px) scale(1.06); }
.nav__cart:hover::before, .nav__user:hover::before { opacity: 1; transform: scale(1); }
.nav__cart .badge {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: #fff;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow:
    0 0 0 2px rgba(159, 7, 7, 0.5),
    0 2px 6px -1px rgba(0, 0, 0, 0.3);
}

@media (max-width: 920px) { .nav__menu { display: none; } }
@media (max-width: 520px) {
  .nav { padding: 6px 8px 6px 14px; gap: 12px; }
  .nav__brand img, .nav__brand svg { height: 18px; }
  .nav__cart, .nav__user { width: 36px; height: 36px; }
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--base); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--base); border-color: var(--ink); }
.btn--full { width: 100%; justify-content: center; }
.btn .arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============== Hero ============== */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero__title { position: relative; margin-bottom: 60px; }
.hero__title .display { display: block; }
.hero__title .display .accent { color: var(--accent); }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stage {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero__visual {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: clamp(640px, 78vh, 1100px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__halo {
  position: absolute;
  inset: 8% 8% 12% 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(159, 7, 7, 0.22) 0%,
    rgba(159, 7, 7, 0.10) 38%,
    rgba(159, 7, 7, 0) 72%);
  filter: blur(8px);
}
.hero__stack {
  position: relative;
  width: 84%;
  height: 84%;
  animation: knobBreathe 6s ease-in-out infinite;
  will-change: transform;
}
.hero__knob, .hero__indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.hero__knob { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.22)); }
.hero__indicator {
  transform: rotate(var(--knob-rot, 0deg));
  transform-origin: 50% 50%;
  will-change: transform;
  filter: drop-shadow(0 0 14px rgba(159, 7, 7, 0.45));
}
@keyframes knobBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}

@media (max-width: 900px) {
  .hero__stage { flex-direction: column; min-height: auto; }
  .hero__visual {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 70vw;
    margin: 0 auto 24px;
    order: -1;
  }
  .hero__panel-wrap { width: 100%; }
}

.hero__panel-wrap {
  position: relative;
  z-index: 2;
  width: clamp(560px, 72%, 1020px);
  perspective: 1600px;
  perspective-origin: center 60%;
  animation: panelFloat 7s ease-in-out infinite;
}
@keyframes panelFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.hero__panel {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 48px;
  padding: 64px 56px;
  background:
    radial-gradient(120% 80% at 18% 8%,
      rgba(255, 255, 255, 0.32) 0%,
      rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.28) 0%,
      rgba(255, 255, 255, 0.08) 38%,
      rgba(255, 255, 255, 0.14) 72%,
      rgba(255, 255, 255, 0.22) 100%);
  -webkit-backdrop-filter: blur(46px) saturate(200%) contrast(1.06) brightness(1.05);
  backdrop-filter: blur(46px) saturate(200%) contrast(1.06) brightness(1.05);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 2px 0.5px rgba(255, 255, 255, 0.85),
    inset 0 -1.5px 0.5px rgba(255, 255, 255, 0.15),
    inset 1.5px 0 0.5px rgba(255, 255, 255, 0.28),
    inset -1.5px 0 0.5px rgba(255, 255, 255, 0.28),
    inset 0 -30px 50px -30px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.5),
    0 22px 44px -10px rgba(0, 0, 0, 0.20),
    0 55px 90px -20px rgba(0, 0, 0, 0.14),
    0 90px 140px -40px rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
  transform:
    rotateX(var(--panel-rx, 0deg))
    rotateY(var(--panel-ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(160deg,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0)    32%,
      rgba(255, 255, 255, 0)    66%,
      rgba(255, 255, 255, 0.20) 100%);
  mix-blend-mode: screen;
  opacity: 0.85;
}
.hero__panel::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 8%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0.95) 35%,
    rgba(255,255,255,0.95) 65%,
    rgba(255,255,255,0)    100%);
  border-radius: 1px;
  opacity: 0.95;
  pointer-events: none;
  filter: blur(0.3px);
}
.hero__panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  transform: translateZ(40px);
  transform-style: preserve-3d;
}
.hero__panel-content .hero__title h1 { display: flex; flex-direction: column; gap: 2px; }
.hero__panel-content .display {
  font-size: clamp(36px, 5vw, 84px);
  line-height: 0.98;
  color: var(--ink);
}
.hero__panel-content .display .accent { color: var(--accent); }
.hero__panel-content .hero__bottom { display: flex; flex-direction: column; gap: 20px; }
.hero__panel-content .hero__bottom p {
  max-width: none;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
  margin: 0;
}
.hero__panel-content .hero__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0; }
.hero__panel-content .btn { padding: 11px 20px; font-size: 13px; }

/* ============== Sections ============== */
.section__head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section__head .lead { font-size: 18px; color: var(--ink-2); max-width: 540px; }
@media (max-width: 820px) {
  .section__head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}
.feature:nth-child(even) .feature__visual { order: -1; }
.feature__visual {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2);
}
.feature h3 { margin-bottom: 20px; }
.feature p { color: var(--ink-2); font-size: 17px; max-width: 480px; }
.feature__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: inline-block;
}
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature:nth-child(even) .feature__visual { order: initial; }
}

/* ============== Plugin cards ============== */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .plugin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .plugin-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--base-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
  cursor: pointer;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-1);
}
.card:hover .card__title { color: var(--accent); transition: color 0.2s var(--ease); }
.card__media {
  aspect-ratio: 5 / 4;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(214, 214, 214, 0.95);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.card__badge--accent { background: var(--accent); color: #fff; }
.card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.card__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card__desc {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-top: 4px;
}
.card__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
}
.card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card__price .currency { color: var(--ink-3); font-weight: 400; margin-right: 2px; font-size: 16px; }

.pv {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pv svg { width: 80%; height: 80%; }

/* ============== Contact ============== */
.contact {
  padding: 80px 0 120px;
  background: var(--base);
}
.contact__inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact__head h2 { margin-bottom: 20px; }
.contact__head .lead { color: var(--ink-2); }
.contact__form textarea {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  font-family: var(--font-sans);
  resize: vertical;
  min-height: 120px;
  width: 100%;
}
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
@media (max-width: 760px) {
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ============== Admin: contact messages ============== */
.admin-messages {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.admin-messages__group {
  background: var(--base-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 20px 24px;
}
.admin-messages__email {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.admin-messages__item {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  color: var(--ink-2);
  white-space: pre-wrap;
  line-height: 1.55;
}
.admin-messages__item:last-child { border-bottom: 0; }
.admin-messages__ts {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ============== Footer ============== */
.foot {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: var(--ink);
  color: var(--base);
}
.foot__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.foot__brand-img {
  display: block;
  height: clamp(56px, 9vw, 140px);
  width: auto;
  filter: brightness(0) invert(1);
}
.foot__brand p { color: rgba(214,214,214,0.65); margin-top: 16px; font-size: 14px; max-width: 320px; }
.foot__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214,214,214,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot__col ul li { margin-bottom: 10px; }
.foot__col a {
  color: rgba(214,214,214,0.85);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}
.foot__col a:hover { color: var(--accent); }
.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(214,214,214,0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(214,214,214,0.5);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
}

/* ============== Forms ============== */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field select, .field textarea {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px 16px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.field .hint { font-size: 12px; color: var(--ink-3); }
.field .err { font-size: 12px; color: var(--accent); display: none; }
.field.has-error .err { display: block; }
.field.has-error input { border-color: var(--accent); }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-s);
  font-size: 13px;
  display: none;
}
.alert--ok { background: rgba(31, 107, 58, 0.1); color: var(--ok); display: block; }
.alert--err { background: var(--accent-soft); color: var(--accent); display: block; }

/* ============== Auth ============== */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 3fr 1fr;
  position: relative;
  overflow: hidden;       /* clip the giant knob extending past edges */
  background: var(--base);
}

/* LEFT side — light gray welcome panel */
.auth__side {
  background: var(--base);
  color: var(--ink);
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth__side .display { color: var(--ink); font-size: clamp(64px, 8vw, 120px); }
.auth__side .display .accent { color: var(--accent); }
.auth__side p { color: var(--ink-3); max-width: 380px; margin-top: 24px; }
.auth__side .demo {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--base-2);
  border-radius: var(--radius-s);
  margin-top: 32px;
  max-width: 380px;
}
.auth__side .demo b { color: var(--ink); }
.auth__side .nav__brand img { filter: none; }   /* keep logo dark on light bg */

/* RIGHT side — gray bg behind, single edge-to-edge red glass panel */
.auth__main {
  background: var(--base);   /* same as left side; visible only via blur */
  padding: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* HUGE BIG KNOB — straddles the boundary between the two columns,
   centered at the bottom seam, half of it cut off below the viewport.
   Painted ABOVE the column bgs but BELOW the glass form. */
.auth__knob {
  position: absolute;
  left: 75%;                              /* shifted back left by 20% */
  bottom: 0;
  width: clamp(1100px, 130vh, 1900px);     /* ~1.5× smaller than before */
  height: auto;
  transform: translate(-50%, 50%);         /* centered on `left`, half below */
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.50));
}

/* Red indicator stripe overlaid on the knob — same canvas size, so
   their centers align automatically. Spins continuously around the
   knob's center at 45°/s (= 8s for one full revolution). */
.auth__knob-indicator {
  position: absolute;
  left: 75%;
  bottom: 0;
  width: clamp(1100px, 130vh, 1900px);
  height: auto;
  z-index: 3;
  pointer-events: none;
  transform-origin: center center;
  animation: bigKnobSpin 8s linear infinite;
  filter: drop-shadow(0 0 14px rgba(159, 7, 7, 0.55));
}
@keyframes bigKnobSpin {
  from { transform: translate(-50%, 50%) rotate(0deg); }
  to   { transform: translate(-50%, 50%) rotate(360deg); }
}

/* The form fills the whole right column (top to bottom + edge to edge)
   as one big Apple Liquid Glass panel, tinted #9f0707. The gray of
   .auth__main shows through the backdrop-blur. */
.auth__form {
  position: relative;
  z-index: 5;       /* above .auth__knob (z=2) */
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: 100vh;
  padding: 60px clamp(20px, 3vw, 40px);
  border-radius: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  /* Matches the main page navbar tones — alpha dialed down so the
     BIG KNOB behind shows through as a soft darker shape */
  background:
    linear-gradient(135deg,
      rgba(120, 5, 5, 0.62) 0%,
      rgba(140, 6, 6, 0.55) 45%,
      rgba(159, 7, 7, 0.60) 100%);

  -webkit-backdrop-filter: blur(28px) saturate(190%) contrast(1.05) brightness(1.02);
  backdrop-filter: blur(28px) saturate(190%) contrast(1.05) brightness(1.02);

  border: 1px solid rgba(255, 220, 220, 0.45);
  box-shadow:
    inset 0 1.5px 0.5px rgba(255, 200, 200, 0.55),
    inset 0 -1px 1px rgba(0, 0, 0, 0.20),
    inset 1px 0 1px rgba(255, 180, 180, 0.20),
    inset -1px 0 1px rgba(255, 180, 180, 0.20),
    0 1px 1px rgba(0, 0, 0, 0.04),
    0 10px 28px -8px rgba(159, 7, 7, 0.30),
    0 28px 56px -20px rgba(0, 0, 0, 0.18);

  color: #fff;
}
/* Decorative top sparkle line */
.auth__form::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 12%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0)    0%,
    rgba(255,255,255,0.85) 35%,
    rgba(255,255,255,0.85) 65%,
    rgba(255,255,255,0)    100%);
  border-radius: 1px;
  opacity: 0.95;
  pointer-events: none;
  filter: blur(0.3px);
}

/* Tabs inside the glass panel */
.auth__tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.18);
  padding: 4px;
  border-radius: 999px;
  margin-bottom: 28px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.auth__tab {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: all 0.2s var(--ease);
}
.auth__tab:hover { color: #fff; }
.auth__tab.active { background: #fff; color: var(--accent); }

/* Headings + subtitle */
.auth__form h2 {
  margin-bottom: 8px;
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
}
.auth__form .sub {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
  font-size: 14px;
}

/* Form fields inside the panel */
.auth__form .field label {
  color: rgba(255, 255, 255, 0.75);
}
.auth__form .field input {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.30);
  color: #fff;
  caret-color: #fff;
}
.auth__form .field input:focus {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.65);
}
.auth__form .field input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.auth__form .field .hint {
  color: rgba(255, 255, 255, 0.55);
}

/* Remember me + forgot row */
.auth__form .form > div[style*="space-between"] {
  color: rgba(255, 255, 255, 0.75) !important;
}
.auth__form a {
  color: #fff !important;
  font-weight: 500;
}

/* Sign-in button — white pill instead of red on red */
.auth__form .btn--accent {
  background: #fff;
  color: var(--accent);
  font-weight: 600;
}
.auth__form .btn--accent:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
}
.auth__form .btn--accent .arrow { color: var(--accent); }

/* Bottom back-to-site link */
.auth__form > div:last-child a {
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { padding: 60px 32px 40px; }
  .auth__main { padding: 40px 24px 80px; }
}

/* Auth brand on light bg — dark logo */
.auth__brand {
  color: var(--ink);
  margin-bottom: 60px;
  height: auto;
  padding: 0;
}
.auth__brand img { height: 72px; filter: none !important; }

/* Auth footer copyright */
.auth__footer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* Demo box bits */
.demo__title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  color: var(--accent);
}
.demo__note { margin-top: 8px; opacity: 0.7; }

/* Remember-me / forgot row */
.auth__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}
.auth__remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
}
.auth__remember input[type="checkbox"] { accent-color: #fff; }

/* All inline auth links → white */
.auth__form .auth__link,
.auth__form a.auth__link {
  color: #fff;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s var(--ease);
}
.auth__form .auth__link:hover {
  text-decoration-color: #fff;
}

/* Bottom "New to Stranis? / Already have one?" line */
.auth__switch {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* Bottom "Back to site" link */
.auth__back {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.auth__back a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s var(--ease);
}
.auth__back a:hover { color: #fff; }

/* Alerts inside red glass — white-out the success state for contrast */
.auth__form .alert--ok {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.auth__form .alert--err {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
}

/* ============== Account ============== */
.acct { padding: 120px 0 80px; }
.acct__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 60px;
  flex-wrap: wrap;
  gap: 20px;
}
.acct__hello h1 { font-size: clamp(40px, 6vw, 72px); }
.acct__hello p { color: var(--ink-3); margin-top: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; }

.acct__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.acct__nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acct__nav button {
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s var(--ease);
}
.acct__nav button:hover { background: var(--base-2); }
.acct__nav button.active { background: var(--ink); color: var(--base); }
.acct__nav button.active .dot { background: var(--accent); }
.acct__nav .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.acct__nav .danger { color: var(--accent); margin-top: 12px; border-top: 1px solid var(--line-soft); padding-top: 22px; border-radius: 0; }

.acct__panel {
  background: var(--base-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  padding: 40px;
  display: none;
}
.acct__panel.active { display: block; }
.acct__panel h2 { margin-bottom: 8px; }
.acct__panel > .sub { color: var(--ink-3); margin-bottom: 32px; font-size: 15px; }
@media (max-width: 900px) {
  .acct__grid { grid-template-columns: 1fr; }
  .acct__nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .acct__nav button { white-space: nowrap; }
  .acct__panel { padding: 24px; }
}

.owned {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .owned { grid-template-columns: 1fr; } }
.owned__item {
  background: var(--base);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-s);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.owned__icon {
  width: 56px; height: 56px;
  background: var(--ink);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--base);
}
.owned__info { flex: 1; min-width: 0; }
.owned__info h4 { font-size: 16px; font-weight: 600; }
.owned__info p { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.owned__action {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--ink);
  color: var(--base);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}
.owned__action:hover { background: var(--accent); }
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius-s);
}
.empty .em-title { font-size: 20px; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.empty a { color: var(--accent); }

/* ============== Products page ============== */
.products-hero { padding: 140px 0 60px; }
.products-hero .eyebrow { margin-bottom: 20px; }
.products-hero h1 {
  font-size: clamp(48px, 9vw, 140px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.products-hero .lead { margin-top: 24px; color: var(--ink-2); max-width: 540px; font-size: 17px; }

.filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}
.filters__group { display: flex; gap: 4px; flex-wrap: wrap; }
.filters button.chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}
.filters button.chip:hover { background: var(--base-2); }
.filters button.chip.active { background: var(--ink); color: var(--base); }
.filters__count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============== Cart Drawer ============== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 200;
  backdrop-filter: blur(4px);
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 460px;
  max-width: 100vw;
  background: var(--base);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }
.drawer__head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer__head h3 { font-size: 22px; }
.drawer__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--base-2);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}
.drawer__close:hover { background: var(--ink); color: var(--base); }
.drawer__body { flex: 1; overflow-y: auto; padding: 24px; }
.drawer__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
}
.drawer__item:last-child { border-bottom: none; }
.drawer__item-img {
  width: 64px; height: 64px;
  background: var(--ink);
  border-radius: 8px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--base);
}
.drawer__item-info { flex: 1; min-width: 0; }
.drawer__item-info h5 { font-size: 15px; font-weight: 600; }
.drawer__item-info .meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }
.drawer__item-price { font-weight: 600; font-size: 15px; }
.drawer__item-remove {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 6px;
  transition: color 0.15s var(--ease);
}
.drawer__item-remove:hover { color: var(--accent); }
.drawer__foot {
  padding: 24px;
  border-top: 1px solid var(--line);
  background: var(--base-2);
}
.drawer__line { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.drawer__line--total {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}
.drawer__promo { display: flex; gap: 8px; margin: 16px 0; }
.drawer__promo input {
  flex: 1;
  background: var(--base);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 13px;
  outline: none;
}
.drawer__promo input:focus { border-color: var(--accent); }
.drawer__promo button {
  padding: 10px 16px;
  background: var(--ink);
  color: var(--base);
  border-radius: var(--radius-s);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.drawer__promo button:hover { background: var(--accent); }

/* ============== Faders ============== */
.faders {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--base);
  overflow: visible;
  position: relative;
}
.faders__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 90px 32px;
  height: 360px;
}
.fader {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fader__rail {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--ink);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.10),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.6);
}
.fader__rail::before, .fader__rail::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.fader__rail::before { top: -1px; }
.fader__rail::after  { bottom: -1px; }
.fader::before, .fader::after {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 9px;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 11px,
    rgba(10, 10, 10, 0.32) 11px,
    rgba(10, 10, 10, 0.32) 12px
  );
}
.fader::before { right: calc(50% + 12px); }
.fader::after  { left:  calc(50% + 12px); }
.fader__cap {
  position: relative;
  height: 62%;
  width: auto;
  z-index: 2;
  transform: translateY(var(--cap-y, 0px));
  will-change: transform;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.20));
}
@media (max-width: 720px) {
  .faders__row { gap: 12px; height: 220px; padding: 40px 16px; }
  .fader__cap { height: 70%; }
}

/* ============== Product Modal ============== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  z-index: 220;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  z-index: 221;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: min(1100px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: var(--radius-l);
  background: var(--base);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--base-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  z-index: 3;
  transition: all 0.2s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--base); transform: rotate(90deg); }
.modal__inner { padding: 0; }
.modal__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 540px;
}
@media (max-width: 820px) { .modal__grid { grid-template-columns: 1fr; } }
.modal__gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border-radius: var(--radius-l) 0 0 var(--radius-l);
  overflow: hidden;
}
@media (max-width: 820px) {
  .modal__gallery { border-radius: var(--radius-l) var(--radius-l) 0 0; min-height: 360px; }
}
.gallery__main { position: relative; flex: 1; min-height: 420px; overflow: hidden; }
.gallery__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gallery__media .pv svg { width: 60%; height: 60%; }
.gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.gallery__img.active { opacity: 1; }
.gallery__nav {
  position: absolute;
  top: 50%;
  width: 44px; height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  z-index: 2;
}
.gallery__nav:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-50%) scale(1.06); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__count {
  position: absolute;
  bottom: 14px; right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  z-index: 2;
}
.gallery__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px;
  background: var(--ink);
}
.gallery__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  padding: 0;
}
.gallery__dot:hover { background: rgba(255, 255, 255, 0.5); }
.gallery__dot.active { background: var(--accent); transform: scale(1.3); }
.modal__info {
  padding: 56px 48px 40px;
  display: flex;
  flex-direction: column;
}
.modal__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.modal__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 16px;
}
.modal__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--base-2);
  color: var(--ink-2);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  align-self: flex-start;
}
.modal__tag--accent { background: var(--accent); color: #fff; }
.modal__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
  flex: 1;
}
.modal__price-row {
  display: flex;
  align-items: end;
  margin-bottom: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}
.modal__price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.modal__price .currency {
  color: var(--ink-3);
  font-weight: 400;
  margin-right: 3px;
  font-size: 22px;
}
.modal__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.modal__actions .btn { flex: 1; min-width: 120px; justify-content: center; }
@media (max-width: 540px) {
  .modal__info { padding: 32px 24px 28px; }
  .gallery__main { min-height: 280px; }
}

/* ============== Toast ============== */
.toast-wrap {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--base);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn 0.3s var(--ease) forwards;
  pointer-events: auto;
}
.toast.err { background: var(--accent); }
.toast.ok::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ============== Reveal & helpers ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.divider { height: 1px; background: var(--line); margin: 80px 0; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.text-mute { color: var(--ink-3); }
