/**
 * DEXY OTOMASYON SISTEMLERI — Architectural Scrollytelling Stylesheet
 * Pinned 100dvh viewport, rule lines, star intersections, chapter rail, typography.
 */

:root {
  /* Brand Palette */
  --press: #070a10;           /* Deep obsidian navy stage ground */
  --press-elevated: #0b1320;  /* Architectural surface */
  --paper: #f2f1ed;           /* Renaissance warm marble paper */
  --ink: #1d1c19;             /* Classical copperplate etching ink */
  --ink-soft: #33322d;
  --sky: #015186;             /* Neoclassical lapis lazuli / cerulean */
  --sky-electric: #0ea5e9;    /* 0.2s electric cobalt laser */
  --gold: #d9be86;            /* Warm gilded astrolabe bronze */
  --gold-glow: #ffecba;

  /* Typography Scales */
  --title: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --code: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Architectural Grid Variables (Desktop) */
  --v1: 5.3%;                 /* Left vertical axis */
  --v2: 85.6%;                /* Right vertical axis */
  --h1: 5.3vw;                /* Top horizontal axis */
  --h2: calc(65.3% + 50px);   /* Lower horizontal horizon line */
  --colA: 7.98%;              /* Main headline margin offset */
  --colB: 23.7%;              /* Stand text margin offset */
  --mx: calc(var(--v1) + 14.5px);
}

@media (max-width: 720px) {
  :root {
    --v1: 4.75%;
    --v2: 95.25%;
    --h1: 60px;
    --h2: 82%;
    --colA: 2%;
    --colB: 2%;
    --mx: calc(var(--v1) + 10px);
  }
}

/* Box Sizing & Document Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--press);
  color: var(--paper);
  font-family: var(--text);
  overflow-x: clip;
  max-width: 100vw;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--press);
  color: var(--paper);
  overflow-x: clip;
  max-width: 100vw;
  min-height: 100vh;
  position: relative;
}

/* Zero horizontal overflow guarantee */
#root, main {
  max-width: 100vw;
  overflow-x: clip;
}

/* =========================================================================
   1. Pinned Scrollytelling Stage Architecture
   ========================================================================= */

.stage {
  height: 600vh;
  position: relative;
  width: 100%;
}

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

.pin {
  background: var(--press);
  height: 100dvh;
  position: sticky;
  top: 0;
  overflow: clip;
  width: 100%;
}

/* Fullscreen Master WebGL / Canvas Engine */
canvas.gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
  pointer-events: none;
}

/* Backdrop Frosted Scrim */
.nvs {
  position: absolute;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  backdrop-filter: blur(32px) saturate(1.3);
  -webkit-backdrop-filter: blur(32px) saturate(1.3);
  background: rgba(4, 7, 12, 0.88);
  transition: opacity 0.4s var(--ease);
}

body.nav-open .nvs {
  opacity: 1;
  pointer-events: auto;
}

/* SVG Filter Definitions Container */
svg.inkdef, svg.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* =========================================================================
   2. Architectural Grid Overlay & Ornaments (.ov)
   ========================================================================= */

.ov {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Rule Lines */
.gv {
  position: absolute;
  width: 1px;
  top: var(--h1);
  bottom: 0;
  left: var(--v1);
  background: rgba(242, 241, 237, 0.12);
  pointer-events: none;
}

.gv--r {
  left: var(--v2);
}

.gh {
  position: absolute;
  height: 1px;
  left: 0;
  right: 0;
  top: var(--h1);
  background: rgba(242, 241, 237, 0.12);
  pointer-events: none;
}

.gh[data-out="d"] {
  top: var(--h2);
}

@media (max-width: 720px) {
  .gv--r {
    top: 0;
    left: var(--v2) !important;
  }
}

/* Rotating 4-Point Star Intersections (✦) */
.gx {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  fill: var(--paper);
  opacity: 0.8;
  z-index: 12;
  pointer-events: none;
  display: block;
  animation: spinStar 10s cubic-bezier(.22, 1, .36, 1) infinite;
}

.gx svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gx[data-out="lu"] { left: var(--v1); top: var(--h1); }
.gx[data-out="ru"] { left: var(--v2); top: var(--h1); }
.gx[data-out="ld"] { left: var(--v1); top: var(--h2); }
.gx[data-out="rd"] { left: var(--v2); top: var(--h2); }

@keyframes spinStar {
  0%, 82%, 100% {
    transform: scale(1) rotate(0deg);
  }
  90% {
    transform: scale(1.4) rotate(90deg);
  }
}

/* Self-Drawing DEXY Monogram Mark */
.mark {
  position: absolute;
  top: calc(var(--h1) + 14px);
  left: calc(var(--v1) + 16px);
  z-index: 20;
  pointer-events: auto;
  display: block;
  width: 44px;
  height: 60px;
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.mark:hover {
  transform: scale(1.04);
}

.mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.mark path {
  stroke: currentColor;
  stroke-width: 32;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s var(--ease);
}

/* 4-Dot Menu Icon Trigger */
.menu {
  position: absolute;
  top: calc(var(--h1) - 34px);
  left: calc(var(--v1) - 30px);
  width: 28px;
  height: 28px;
  z-index: 85;
  pointer-events: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 6px;
  color: var(--paper);
}

.menu span {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.3s var(--ease), background 0.2s;
}

.menu:hover span,
body.nav-open .menu span {
  background: var(--sky-electric);
}

body.nav-open .menu {
  color: var(--sky-electric);
}

@media (max-width: 720px) {
  .menu {
    left: auto;
    right: calc(100% - var(--v2) + 10px);
    top: 18px;
  }
  .mark {
    top: 16px;
    left: calc(var(--v1) + 8px);
    width: 34px;
    height: 46px;
  }
}

/* Persistent Top Header Actions */
.hdr {
  position: absolute;
  top: calc(var(--h1) - 36px);
  right: calc(100% - var(--v2));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}

.btn-catalog-drawer {
  background: rgba(14, 165, 233, 0.12);
  color: var(--paper);
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--code);
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
  pointer-events: auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s var(--ease);
}

.btn-catalog-drawer:hover {
  background: rgba(14, 165, 233, 0.24);
  border-color: var(--sky-electric);
  transform: translateY(-1px);
}

.hdr a.apply {
  background: var(--paper);
  color: var(--press);
  padding: 8px 18px;
  border-radius: 999px;
  font-family: var(--code);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.2s var(--ease);
}

.hdr a.apply:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .hdr {
    top: 16px;
    right: 48px;
  }
  .hdr a.apply {
    display: none;
  }
  .btn-catalog-drawer {
    font-size: 11px;
    padding: 6px 12px;
  }
}

/* Fixed Chapter Rail Navigation */
.rail {
  position: absolute;
  left: var(--v1);
  top: 24%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 22px;
  pointer-events: auto;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--code);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
  transition: all 0.3s var(--ease);
}

.rail a i {
  display: block;
  width: 9px;
  height: 2px;
  background: currentColor;
  transition: width 0.3s var(--ease), background 0.3s, opacity 0.3s;
}

.rail a em {
  font-style: normal;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s var(--ease);
}

.rail a.on {
  opacity: 1;
  color: var(--gold);
}

.rail a.on i {
  width: 24px;
  background: var(--gold);
}

.rail a.on em {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 720px) {
  .rail {
    display: none;
  }
}

/* Full-Screen 4-Dot Chapter Menu Overlay (.nvm) */
.nvm {
  position: absolute;
  inset: 0;
  z-index: 75;
  pointer-events: none;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: calc(var(--v1) + 40px);
  gap: 28px;
  transition: opacity 0.4s var(--ease);
}

body.nav-open .nvm {
  opacity: 1;
  pointer-events: auto;
}

.nvm a {
  display: flex;
  align-items: baseline;
  gap: 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: clamp(36px, 5.8vw, 72px);
  font-family: var(--title);
  letter-spacing: -0.01em;
  padding: 10px 24px;
  border-radius: 16px;
  transition: transform 0.3s var(--ease), color 0.2s, background 0.3s;
  width: fit-content;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.nvm a b {
  font-family: var(--code);
  font-size: clamp(14px, 1.8vw, 22px);
  color: var(--sky-electric);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 10px rgba(14, 165, 233, 0.5);
}

.nvm a em {
  font-style: normal;
  font-weight: 500;
  color: #ffffff;
}

.nvm a:hover {
  transform: translateX(16px);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

.nvm a:hover em {
  color: var(--gold);
}

/* Chapter 1 Editorial Kinetic Beats */
.col-head {
  position: absolute;
  left: calc(var(--v1) + var(--colA));
  top: 22%;
  z-index: 15;
  pointer-events: auto;
  max-width: 760px;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.col-stand {
  position: absolute;
  left: calc(var(--v1) + var(--colB));
  top: 60%;
  z-index: 15;
  pointer-events: auto;
  max-width: 520px;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.col-head .bk, .col-stand .bk {
  display: block;
  transition: opacity 0.4s var(--ease);
}

.col-head .bk[data-beat="1"],
.col-head .bk[data-beat="2"],
.col-head .bk[data-beat="3"],
.col-stand .bk[data-beat="1"],
.col-stand .bk[data-beat="2"],
.col-stand .bk[data-beat="3"] {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}

.col-head h1 {
  font-family: var(--title);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.col-head .subhead {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(242, 241, 237, 0.78);
  margin-top: 18px;
  font-family: var(--text);
}

.col-head .beat {
  font-family: var(--title);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.1;
  margin-top: 12px;
}

.col-stand .stand {
  font-size: clamp(14px, 1.6vw, 17px);
  line-height: 1.65;
  color: rgba(242, 241, 237, 0.72);
}

.ln {
  overflow: hidden;
  display: block;
}

.ln i {
  display: block;
  font-style: normal;
  transform: translateY(0);
  transition: transform 0.6s var(--ease);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--press);
  font-family: var(--code);
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.cta:hover {
  background: #ffffff;
  transform: translateY(-2px);
}

.tag {
  position: absolute;
  bottom: 28px;
  left: calc(var(--v1) + 16px);
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242, 241, 237, 0.7);
  background: rgba(7, 10, 16, 0.4);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 15;
}

@media (max-width: 720px) {
  .col-head {
    top: 18%;
    right: 20px;
    max-width: 90%;
  }
  .col-stand {
    top: 62%;
    left: calc(var(--v1) + 10px);
    right: 20px;
    max-width: 90%;
  }
  .tag {
    display: none;
  }
}

/* =========================================================================
   3. SVG Ink Filter Classes
   ========================================================================= */

.ink-applied {
  filter: url(#inkf);
}

.tear-applied {
  filter: url(#fqTear);
}

/* =========================================================================
   4. Chapter 2: Automation Suite Vertical Scale Ruler (.pf)
   ========================================================================= */

.pf {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.pf-in {
  position: absolute;
  left: calc(var(--v1) + 20px);
  top: 22%;
  bottom: 60px;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
}

.pf-head b {
  font-family: var(--code);
  font-size: 14px;
  color: var(--sky-electric);
  letter-spacing: 0.1em;
}

.pf-fix {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 600px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding-right: 8px;
  pointer-events: auto;
}

.pf-g {
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(11, 19, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pf-chip {
  display: inline-block;
  font-family: var(--code);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--sky-electric);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.pf-h {
  font-family: var(--title);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 10px;
}

.pf-b {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242, 241, 237, 0.75);
}

.pf-actions {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.pf-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--code);
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.pf-btn-demo {
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, 0.35);
}

.pf-btn-order {
  background: var(--paper);
  color: var(--press);
  font-weight: 600;
}

/* =========================================================================
   5. Chapter 3: Web Architecture & Terms (.fin)
   ========================================================================= */

.fin {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.fin-g {
  max-width: 900px;
  width: 90%;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 24px 0 40px;
  pointer-events: auto;
  text-align: center;
}

.fin-h {
  font-family: var(--title);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
}

.fin-l {
  font-size: clamp(15px, 1.8vw, 20px);
  line-height: 1.6;
  color: rgba(242, 241, 237, 0.85);
  margin-bottom: 32px;
}

.fin-demos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  text-align: left;
}

.fin-card {
  padding: 20px;
  border-radius: 14px;
  background: rgba(11, 19, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fin-chip {
  font-family: var(--code);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.fin-card h3 {
  font-family: var(--title);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
}

.fin-card p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 241, 237, 0.7);
}

.fin-card .demo-price {
  font-family: var(--code);
  font-size: 12px;
  color: var(--sky-electric);
  font-weight: 600;
  margin-top: auto;
}

.fin-card a.demo-link {
  font-family: var(--code);
  font-size: 11px;
  color: #7dd3fc;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* =========================================================================
   6. Chapter 4: 3D Rotating FAQ Carousel (.faq)
   ========================================================================= */

.faq {
  position: absolute;
  inset: 0;
  perspective: 1500px;
  perspective-origin: 50% 46%;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.faq-lead {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.fq {
  width: 320px;
  min-height: 350px;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  position: absolute;
  left: 50%;
  top: 48%;
  padding: 32px 28px;
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.88) 0%, rgba(7, 10, 16, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.fq[data-index="0"] { transform: translate(-50%, -50%) rotateY(0deg) translateZ(440px) scale(1.02); z-index: 10; }
.fq[data-index="1"] { transform: translate(-50%, -50%) rotateY(45deg) translateZ(440px) scale(0.92); opacity: 0.72; }
.fq[data-index="2"] { transform: translate(-50%, -50%) rotateY(90deg) translateZ(440px) scale(0.8); opacity: 0.35; }
.fq[data-index="3"] { transform: translate(-50%, -50%) rotateY(270deg) translateZ(440px) scale(0.8); opacity: 0.35; }
.fq[data-index="4"] { transform: translate(-50%, -50%) rotateY(315deg) translateZ(440px) scale(0.92); opacity: 0.72; }

.fq.on {
  border-color: rgba(14, 165, 233, 0.65);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 32px rgba(14, 165, 233, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.fq:hover {
  border-color: rgba(14, 165, 233, 0.9);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(14, 165, 233, 0.35);
}

.fq-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fq-badge span {
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-electric);
  background: rgba(14, 165, 233, 0.12);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-weight: 600;
}

.fq-badge .arw {
  color: var(--gold);
  font-size: 14px;
}

.fq h3 {
  font-family: var(--title);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 14px;
}

.fq p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(242, 241, 237, 0.82);
  opacity: 0.85;
  flex: 1;
  transition: opacity 0.3s;
}

.fq.on p {
  opacity: 1;
}

.fq-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(242, 241, 237, 0.6);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 999px;
  width: fit-content;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  transition: all 0.25s var(--ease);
}

.fq:hover .fq-tip, .fq.on .fq-tip {
  color: var(--sky-electric);
  background: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.4);
}

/* FAQ Carousel Navigation & Dots */
.faq-nav {
  position: absolute;
  bottom: calc(var(--h1) + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 30;
  pointer-events: auto;
  background: rgba(7, 10, 16, 0.7);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.faq-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--paper);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.faq-nav-btn:hover {
  background: var(--sky-electric);
  color: #fff;
  border-color: var(--sky-electric);
  transform: scale(1.08);
}

.faq-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.faq-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.faq-dot.active {
  width: 24px;
  border-radius: 999px;
  background: var(--sky-electric);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

@media (max-width: 720px) {
  .faq {
    perspective: 1000px;
  }
  .fq {
    width: 270px;
    min-height: 310px;
    padding: 22px 20px;
    border-radius: 22px;
  }
  .fq h3 {
    font-size: 19px;
  }
  .faq-nav {
    bottom: 24px;
  }
}

/* =========================================================================
   7. Chapter 4: 3D Perspective Glassmorphic Order Form (.cf)
   ========================================================================= */

.cf {
  perspective: 1700px;
  perspective-origin: 50% 50%;
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.cf-in {
  width: 90%;
  max-width: 640px;
  padding: 36px 32px;
  border-radius: 24px;
  transform-style: preserve-3d;
  pointer-events: auto;
  position: relative;
  background: linear-gradient(157deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 40%, rgba(14, 165, 233, 0.08) 100%);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.cf .rim, .cf .rim2 {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  pointer-events: none;
  padding: 1px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.5), transparent, rgba(217, 190, 134, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.cf-lead {
  text-align: center;
  margin-bottom: 24px;
}

.cf-lead b {
  font-family: var(--title);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.cf-lead p {
  font-size: 14px;
  color: rgba(242, 241, 237, 0.7);
}

.cf-f {
  margin-bottom: 14px;
}

.cf-f input, .cf-f textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.cf-f input:focus, .cf-f textarea:focus {
  border-color: var(--sky-electric);
}

.cf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.cf-cta {
  padding: 11px 20px;
  border-radius: 999px;
  font-family: var(--code);
  font-size: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.cf-tg {
  background: #0ea5e9;
  color: #fff;
}

.cf-wa {
  background: #22c55e;
  color: #fff;
}

.cf-iban {
  background: rgba(255, 255, 255, 0.08);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cf-cta:hover {
  transform: translateY(-2px);
}

.iban-display {
  margin-top: 18px;
  text-align: center;
  font-family: var(--code);
  font-size: 11px;
  color: rgba(242, 241, 237, 0.6);
  letter-spacing: 0.08em;
}

.iban-display span {
  color: var(--gold);
}

/* =========================================================================
   8. Finale Architectural Box & Footer (.ft)
   ========================================================================= */

.ft {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.ft-in {
  text-align: center;
  pointer-events: auto;
  max-width: 640px;
  padding: 40px 24px;
  border-radius: 24px;
  background: rgba(7, 10, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ft-mark {
  font-family: var(--title);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.ft-tag {
  font-size: 16px;
  color: rgba(242, 241, 237, 0.75);
  margin-bottom: 24px;
}

.ft-meta {
  font-family: var(--code);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(242, 241, 237, 0.5);
  text-transform: uppercase;
}

.ft-meta a {
  color: var(--sky-electric);
  text-decoration: none;
}

/* =========================================================================
   9. Interactive Catalog Drawer Modal (.catalog-drawer)
   ========================================================================= */

.catalog-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

body.catalog-open .catalog-drawer,
.catalog-drawer[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 16, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 90%;
  max-width: 520px;
  background: var(--press-elevated);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.7);
}

body.catalog-open .drawer-panel,
.catalog-drawer[aria-hidden="false"] .drawer-panel {
  transform: translateX(0%);
}

.drawer-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h3 {
  font-family: var(--title);
  font-size: 24px;
  font-weight: 400;
  color: #fff;
  margin-top: 4px;
}

.drawer-chip {
  font-family: var(--code);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky-electric);
}

.drawer-close {
  background: none;
  border: none;
  color: var(--paper);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.drawer-close:hover {
  opacity: 1;
}

.drawer-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--code);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
}

.drawer-tab.active {
  background: var(--paper);
  color: var(--press);
  font-weight: 600;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-item {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-item h4 {
  font-family: var(--title);
  font-size: 18px;
  font-weight: 400;
  color: #fff;
}

.drawer-item p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(242, 241, 237, 0.7);
}

.drawer-item-price {
  font-family: var(--code);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.drawer-item-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.drawer-item-actions a {
  font-family: var(--code);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  text-decoration: none;
}

/* Toast Notification for Clipboard Copy */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: rgba(11, 19, 32, 0.95);
  color: var(--paper);
  border: 1px solid rgba(14, 165, 233, 0.4);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--code);
  font-size: 12px;
  letter-spacing: 0.06em;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
