/* ==========================================================================
   Crolinga Dictionary Company — Dark Modern Landing Page
   Palette: Deep Navy (#070E1C / #0B1528), Gold (#F3AC10), Sky Blue (#64A8E0)
   ========================================================================== */

:root {
  --bg-deep: #070e1c;
  --bg-navy: #0b1528;
  --bg-surface: #101e38;
  --bg-surface-hover: #152747;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --gold: #f3ac10;
  --gold-bright: #ffc138;
  --gold-soft: rgba(243, 172, 16, 0.14);
  --gold-glow: rgba(243, 172, 16, 0.28);

  --sky: #64a8e0;
  --sky-soft: rgba(100, 168, 224, 0.14);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.14);

  --text-main: #f3f6fc;
  --text-muted: #9eb0cc;
  --text-dim: #6f82a3;

  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 18px 44px rgba(2, 6, 16, 0.45);
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Ambient Background Glows */
.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
}

.glow-gold {
  width: 540px;
  height: 540px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(243, 172, 16, 0.24), transparent 70%);
}

.glow-blue {
  width: 640px;
  height: 640px;
  top: 260px;
  left: -240px;
  background: radial-gradient(circle, rgba(100, 168, 224, 0.2), transparent 70%);
}

/* Typography Helpers */
h1, h2, h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}

.text-gold {
  color: var(--gold);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-bright);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  font-size: 0.86rem;
  padding: 9px 15px;
  border-radius: 8px;
}

.btn-lg {
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: 12px;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e09600);
  color: #091120;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(243, 172, 16, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-muted {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  color: var(--text-muted);
}

.btn-muted:hover {
  background: rgba(100, 168, 224, 0.14);
  border-color: rgba(100, 168, 224, 0.35);
  color: var(--text-main);
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 14, 28, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  border-radius: 10px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  color: #fff;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a:not(.btn) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ==========================================================================
   Hero Section & Interactive Kindle E-Ink Demo
   ========================================================================== */
.hero {
  padding: 64px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-soft);
  border: 1px solid rgba(243, 172, 16, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

.hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.55rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: #fff;
  line-height: 1.1;
}

.stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

/* Kindle Hardware Mockup */
.kindle-frame {
  position: relative;
  max-width: 470px;
  margin: 0 auto;
  perspective: 1100px;
}

.kindle-frame::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 36px;
  background: radial-gradient(circle at 30% 20%, rgba(243, 172, 16, 0.24), rgba(100, 168, 224, 0.14) 55%, transparent 75%);
  filter: blur(24px);
  z-index: -1;
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 0.85;
}

.kindle-frame:hover::before {
  opacity: 1;
  transform: scale(1.04);
}

.kindle-bezel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #243045 0%, #111827 55%, #0c1220 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 26px;
  padding: 16px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.kindle-frame:hover .kindle-bezel {
  border-color: rgba(243, 172, 16, 0.38);
  box-shadow: 0 38px 86px rgba(0, 0, 0, 0.78), 0 0 36px rgba(243, 172, 16, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.kindle-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(
    360px circle at var(--glare-x, 50%) var(--glare-y, 20%),
    rgba(255, 255, 255, 0.13),
    rgba(243, 172, 16, 0.04) 40%,
    transparent 70%
  );
  transition: opacity 0.3s ease;
}

.kindle-frame:hover .kindle-glare {
  opacity: 1;
}

.kindle-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #96a4ba;
  padding: 0 6px 10px;
  font-weight: 500;
}

.kindle-status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.warmth-toggle {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 2px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.warmth-toggle:hover {
  background: rgba(243, 172, 16, 0.18);
  border-color: rgba(243, 172, 16, 0.45);
  color: #fff;
}

.warmth-toggle[aria-pressed="true"] {
  background: rgba(243, 172, 16, 0.26);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.kindle-screen {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.5), transparent 60%),
    #f5f2ea;
  color: #181a1f;
  border-radius: 14px;
  padding: 15px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.16), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  min-height: 446px;
  display: flex;
  flex-direction: column;
}

.kindle-screen.eink-screen-refresh {
  animation: einkPageTurn 0.52s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes einkPageTurn {
  0%   { filter: none; }
  18%  { filter: invert(0.86) contrast(1.18); }
  48%  { filter: invert(0.82) contrast(1.15); }
  72%  { filter: invert(0.14) contrast(1.06); }
  100% { filter: none; }
}

.eink-page {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.eink-book-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: #7c828d;
  margin-bottom: 8px;
  font-weight: 600;
}

.eink-book-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: #7c828d;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(24, 26, 31, 0.09);
}

.eink-popup.eink-flash {
  animation: einkRefresh 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes einkRefresh {
  0%   { filter: none; }
  22%  { filter: invert(0.8) contrast(1.15); }
  52%  { filter: invert(0.72) contrast(1.12); }
  78%  { filter: invert(0.12) contrast(1.05); }
  100% { filter: none; }
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(24, 26, 31, 0.12);
}

.demo-tab {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(24, 26, 31, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #3a3f4a;
  cursor: pointer;
  transition: all 0.16s ease;
}

.demo-tab:hover {
  background: #fff;
  color: #0b1528;
}

.demo-tab.active {
  background: #0b1528;
  color: #f3ac10;
  border-color: #0b1528;
}

.eink-sentence {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 0 0 6px;
  min-height: 3.35em;
  color: #1c1f26;
}

.eink-word {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
  border-bottom: 1.5px dashed rgba(11, 21, 40, 0.42);
  padding: 1px 4px;
  margin: 0 -1px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.eink-word:hover {
  background: rgba(11, 21, 40, 0.1);
  border-bottom-color: #0b1528;
}

.eink-word.active {
  background: #181a1f;
  color: #f5f2ea;
  border-bottom-color: transparent;
  font-weight: 600;
}

.eink-hint {
  font-size: 0.73rem;
  color: #6b7280;
  margin: 0 0 12px;
}

.eink-popup {
  background: #ffffff;
  border: 1.5px solid #22252d;
  border-radius: 10px;
  padding: 14px 15px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  min-height: 222px;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

@keyframes popupFade {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-meta {
  margin-bottom: 6px;
}

.popup-lemma-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #eef3fb;
  color: #1b3a6b;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 500;
}

.popup-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.popup-headword {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: #0b1528;
}

.popup-ipa {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #4b5563;
}

.popup-pos {
  font-style: italic;
  font-size: 0.82rem;
  color: #6b7280;
}

.popup-senses {
  margin: 0 0 9px;
  padding-left: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #1f2937;
}

.popup-senses li {
  margin-bottom: 3px;
}

.sense-num {
  font-weight: 700;
  margin-right: 4px;
}

.sense-tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: #475569;
  margin-right: 4px;
}

.popup-example {
  font-size: 0.82rem;
  color: #374151;
  border-top: 1px dashed #d1d5db;
  padding-top: 8px;
  margin-bottom: 10px;
}

.popup-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
  padding-top: 7px;
  margin-top: auto;
  font-weight: 600;
}

.popup-badge {
  background: #0b1528;
  color: #f3ac10;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
}

.kindle-chin {
  text-align: center;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.32);
  padding-top: 12px;
  font-weight: 600;
}

/* ==========================================================================
   Language Trust Strip
   ========================================================================== */
.lang-strip {
  padding: 26px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 30, 56, 0.45);
}

.strip-label {
  text-align: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}

.strip-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.strip-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.86rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.strip-pill:hover {
  border-color: var(--gold);
  color: #fff;
  background: var(--gold-soft);
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  color: #fff;
  margin-bottom: 14px;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   Catalog Section
   ========================================================================== */
.catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.segmented-control {
  display: inline-flex;
  padding: 5px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  gap: 4px;
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.seg-btn:hover {
  color: #fff;
}

.seg-btn.active {
  background: var(--bg-navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--border-strong);
}

.count-pill {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.count-pill.gold {
  background: var(--gold);
  color: #091120;
  font-weight: 700;
}

.catalog-right-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
  min-width: 260px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.currency-select {
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.currency-select:focus,
.currency-select:hover {
  border-color: var(--gold);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
  min-width: 210px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}

#catalogSearch {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

#catalogSearch::placeholder {
  color: var(--text-dim);
}

#catalogSearch:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.lang-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter-chip {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-chip:hover {
  border-color: var(--border-strong);
  color: #fff;
}

.filter-chip.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold-bright);
}

/* Catalog Cards Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(16, 30, 56, 0.92), rgba(11, 21, 40, 0.96));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(243, 172, 16, 0.4);
  box-shadow: 0 24px 54px rgba(2, 6, 16, 0.65);
}

.card-media {
  position: relative;
  padding: 48px 20px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 52%, rgba(100, 168, 224, 0.14), rgba(7, 14, 28, 0.6) 80%);
  border-bottom: 1px solid var(--border-subtle);
  min-height: 256px;
}

.cover-single {
  width: 132px;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: -6px 12px 24px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease;
}

.product-card:hover .cover-single {
  transform: scale(1.04) rotate(-1deg);
}

/* Twin Covers for Bundles */
.cover-pair {
  position: relative;
  width: 190px;
  height: 195px;
}

.cover-pair img {
  position: absolute;
  width: 118px;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: -6px 12px 24px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.3s ease;
}

.cover-pair .cover-back {
  right: 8px;
  top: 2px;
  transform: rotate(4deg);
}

.cover-pair .cover-front {
  left: 8px;
  bottom: 0;
  z-index: 2;
  transform: rotate(-3deg);
}

.product-card:hover .cover-pair .cover-front {
  transform: rotate(-5deg) translateX(-4px) scale(1.03);
}

.product-card:hover .cover-pair .cover-back {
  transform: rotate(6deg) translateX(4px) scale(1.03);
}

.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.status-live {
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-soon {
  background: var(--sky-soft);
  color: var(--sky);
  border: 1px solid rgba(100, 168, 224, 0.3);
}

.status-dev {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(192, 132, 252, 0.36);
}

.save-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gold);
  color: #091120;
  padding: 4px 9px;
  border-radius: 999px;
}

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

.card-dir {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
}

.card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(7, 14, 28, 0.55);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.metric strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.metric span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.price-current {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.price-sale {
  color: var(--gold-bright);
  font-weight: 700;
}

.price-old {
  font-size: 0.88rem;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.catalog-empty {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* ==========================================================================
   Features Bento Grid
   ========================================================================== */
.features-section {
  background: linear-gradient(180deg, transparent, rgba(16, 30, 56, 0.35), transparent);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform var(--transition), border-color var(--transition);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(243, 172, 16, 0.35);
}

.bento-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(243, 172, 16, 0.28);
  font-size: 1.25rem;
  margin-bottom: 18px;
}

.bento-card h3 {
  font-size: 1.12rem;
  color: #fff;
  margin-bottom: 10px;
}

.bento-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Setup Steps Section
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 26px;
}

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

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}

.step-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.compat-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(16, 30, 56, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}

.compat-col > strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.compat-yes > strong {
  color: var(--green);
}

.compat-no > strong {
  color: var(--gold);
}

.compat-col p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}

.faq-item:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-hover);
}

.faq-item[open] {
  border-color: rgba(243, 172, 16, 0.4);
  background: var(--bg-surface);
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  font-size: 0.94rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Contact Overlay Modal
   ========================================================================== */
.contact-modal {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(7, 14, 28, 0.72);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
  resize: vertical;
  min-height: 104px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.form-status {
  font-size: 0.86rem;
  font-weight: 500;
}

.form-status.success {
  color: var(--green);
}

.form-status.error {
  color: #f87171;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 28px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Bottom CTA & Footer
   ========================================================================== */
.cta-box {
  text-align: center;
  padding: 58px 28px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top right, rgba(243, 172, 16, 0.2), transparent 55%),
              linear-gradient(145deg, #122342 0%, #0b1528 100%);
  border: 1px solid rgba(243, 172, 16, 0.3);
  box-shadow: var(--shadow-card);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #fff;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.02rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 54px 0 32px;
  background: rgba(5, 10, 21, 0.75);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand {
  max-width: 480px;
}

.footer-note {
  margin: 14px 0 0;
  font-size: 0.83rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-links h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-link-btn:hover {
  color: var(--gold);
}

.footer-link-btn {
  display: block;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--transition);
}

/* ==========================================================================
   Cookie Consent Banner & Preferences Modal
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(11, 21, 40, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(243, 172, 16, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  padding: 18px 22px;
  animation: cookieSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner[hidden] {
  display: none;
}

@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-copy strong {
  display: block;
  font-size: 0.96rem;
  color: #fff;
  margin-bottom: 4px;
}

.cookie-copy p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-policy-link {
  background: none;
  border: none;
  padding: 0;
  margin-left: 4px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-policy-link:hover {
  color: var(--gold-bright);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4, 9, 19, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-backdrop[hidden] {
  display: none;
}

.cookie-modal {
  width: 100%;
  max-width: 520px;
  background: linear-gradient(180deg, #122342, #0b1528);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.72);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cookie-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
}

.cookie-modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
}

.cookie-modal-close:hover {
  color: #fff;
}

.cookie-modal-intro {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(7, 14, 28, 0.55);
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.cookie-option-toggle {
  cursor: pointer;
}

.cookie-option-info strong {
  display: block;
  font-size: 0.92rem;
  color: #fff;
  margin-bottom: 3px;
}

.cookie-option-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cookie-locked {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.cookie-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition);
  margin-top: 2px;
}

.cookie-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}

.cookie-switch:checked {
  background: var(--gold);
}

.cookie-switch:checked::after {
  transform: translateX(18px);
  background: #091120;
}

.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .compat-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(7, 14, 28, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .bento-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
  }

  .catalog-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    max-width: none;
  }
}

/* ==========================================================================
   Launch Promo Banner (Auto-Applied Gumroad Discount)
   ========================================================================== */
.promo-banner {
  position: relative;
  z-index: 101;
  background: linear-gradient(90deg, rgba(243, 172, 16, 0.16), rgba(16, 30, 56, 0.96) 35%, rgba(16, 30, 56, 0.96) 65%, rgba(100, 168, 224, 0.16));
  border-bottom: 1px solid rgba(243, 172, 16, 0.32);
  color: var(--text-main);
  font-size: 0.88rem;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 9px;
  padding-bottom: 9px;
  position: relative;
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  text-align: center;
  padding-right: 28px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: #091120;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.promo-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  color: var(--text-main);
  line-height: 1.4;
}

.promo-text strong {
  color: var(--gold-bright);
  font-weight: 700;
}

.promo-code-pill {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(243, 172, 16, 0.16);
  color: var(--gold-bright);
  border: 1px dashed rgba(243, 172, 16, 0.55);
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.promo-code-pill:hover {
  background: rgba(243, 172, 16, 0.28);
  border-color: var(--gold-bright);
}

.promo-code-pill.copied {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
}

.promo-auto-note {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.promo-close {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.promo-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 640px) {
  .promo-banner {
    font-size: 0.82rem;
  }

  .promo-banner-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .promo-content {
    justify-content: flex-start;
    text-align: left;
    padding-right: 24px;
  }

  .promo-text {
    justify-content: flex-start;
  }

  .promo-close {
    right: 16px;
  }
}
