/* =========================================================
   main.css — Premium futuristic demo UI (lilac + tech)
   Project: The Pieces of My Heart (demo-quality)
   Goals:
   - Premium, modern, futuristic (but warm)
   - Mobile-first, accessible
   - JS-optional (styles work even if interactions are simple)
   - No external fonts/CDNs required
   ========================================================= */

/* ------------------------------
   Design tokens
------------------------------ */
:root{
  /* Base */
  --bg: #0b0a10;
  --bg-2: #0e0c16;

  /* Surfaces (glass) */
  --surface: rgba(255,255,255,.06);
  --surface-2: rgba(255,255,255,.10);
  --surface-3: rgba(255,255,255,.14);

  /* Text */
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --quiet: rgba(255,255,255,.58);
  --faint: rgba(255,255,255,.40);

  /* Borders */
  --border: rgba(255,255,255,.14);
  --border-2: rgba(255,255,255,.22);

  /* Brand palette */
  --brand: #cdb4ff;      /* lilac */
  --brand-2: #9de7ff;    /* tech cyan */
  --brand-3: #ffb4d6;    /* warm pink */
  --lime: #52ffb8;

  /* Semantics */
  --danger: #ff6b6b;
  --ok: #52ffb8;
  --warn: #ffd36e;
  --info: #9de7ff;

  /* Shadows */
  --shadow: 0 24px 90px rgba(0,0,0,.55);
  --shadow-soft: 0 14px 55px rgba(0,0,0,.40);
  --shadow-card: 0 10px 30px rgba(0,0,0,.28);

  /* Radii */
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;

  /* Focus */
  --ring: 0 0 0 4px rgba(205,180,255,.25);
  --ring-strong: 0 0 0 4px rgba(157,231,255,.28);

  /* Layout */
  --max: 1120px;
  --pad: 18px;

  /* Typography scale */
  --step--2: clamp(.78rem, .74rem + .15vw, .86rem);
  --step--1: clamp(.88rem, .84rem + .2vw, .98rem);
  --step-0:  clamp(1rem, .95rem + .35vw, 1.12rem);
  --step-1:  clamp(1.15rem, 1.05rem + .7vw, 1.38rem);
  --step-2:  clamp(1.35rem, 1.15rem + 1.2vw, 1.9rem);
  --step-3:  clamp(1.7rem, 1.35rem + 2.1vw, 2.7rem);
  --step-4:  clamp(2.15rem, 1.65rem + 3.1vw, 3.45rem);

  /* Motion */
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.12,.72,.22,1);
  --speed: 220ms;
  --speed-slow: 420ms;

  /* Hairline */
  --hairline: 1px;
}

/* Light mode (still premium, not boring) */
@media (prefers-color-scheme: light){
  :root{
    --bg:#f7f4ff;
    --bg-2:#ffffff;

    --surface: rgba(255,255,255,.72);
    --surface-2: rgba(255,255,255,.84);
    --surface-3: rgba(255,255,255,.94);

    --text: rgba(10,10,15,.92);
    --muted: rgba(10,10,15,.72);
    --quiet: rgba(10,10,15,.58);
    --faint: rgba(10,10,15,.42);

    --border: rgba(10,10,15,.10);
    --border-2: rgba(10,10,15,.16);

    --shadow: 0 24px 90px rgba(10,10,25,.18);
    --shadow-soft: 0 14px 55px rgba(10,10,25,.14);
    --shadow-card: 0 10px 30px rgba(10,10,25,.10);

    --hairline: 1px;
  }
}

/* ------------------------------
   Base reset + defaults
------------------------------ */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.55;
  letter-spacing:.01em;
  overflow-x:hidden;
  text-rendering: optimizeLegibility;
}
img, video{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
button, input, textarea, select{ font:inherit; color:inherit; }
p{ margin: 0 0 1rem; color: var(--muted); }
h1,h2,h3,h4{ margin:0 0 .6rem; line-height:1.12; letter-spacing:-.02em; }
h1{ font-size: var(--step-4); }
h2{ font-size: var(--step-3); }
h3{ font-size: var(--step-2); }
h4{ font-size: var(--step-1); }
small{ color: var(--quiet); font-size: var(--step--1); }

::selection{
  background: rgba(205,180,255,.28);
}

:focus-visible{
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* ------------------------------
   Premium layered background
   - Add <div class="site-bg"></div> + <div class="site-fx"></div> in body (optional)
------------------------------ */
.site-bg{
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(1100px 850px at 12% 6%, rgba(205,180,255,.36), transparent 62%),
    radial-gradient(900px 700px at 88% 12%, rgba(157,231,255,.28), transparent 58%),
    radial-gradient(900px 800px at 55% 88%, rgba(255,180,214,.18), transparent 65%),
    linear-gradient(180deg, rgba(255,255,255,.05), transparent 45%),
    radial-gradient(1200px 900px at 50% 50%, rgba(255,255,255,.02), transparent 70%);
  filter: saturate(1.08);
}

/* Animated soft aurora (optional) */
.site-fx{
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events:none;
  opacity: .32;
  background:
    conic-gradient(from 220deg,
      rgba(205,180,255,.25),
      rgba(157,231,255,.18),
      rgba(255,180,214,.16),
      rgba(205,180,255,.25)
    );
  filter: blur(40px);
  transform: translateZ(0);
  animation: aurora 18s linear infinite;
}
@keyframes aurora{
  0%{ transform: translate3d(0,0,0) rotate(0deg); }
  50%{ transform: translate3d(2%, -1%, 0) rotate(180deg); }
  100%{ transform: translate3d(0,0,0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .site-fx{ animation:none; }
}

/* Subtle grain (optional file). If missing, it still looks great */
.site-grain{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events:none;
  opacity: .08;
  background-image: url("/assets/images/ui/grain.png");
  background-size: 260px 260px;
  mix-blend-mode: overlay;
}
@supports not (mix-blend-mode: overlay){
  .site-grain{ display:none; }
}

/* ------------------------------
   Layout helpers
------------------------------ */
.container{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section{
  padding: clamp(26px, 4vw, 62px) 0;
}

.stack{ display:flex; flex-direction:column; gap: 16px; }
.row{ display:flex; gap: 12px; align-items:center; flex-wrap:wrap; }
.spread{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }

.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 18px 0;
}

/* Responsive grids */
.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.grid-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.grid-4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px){
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .grid-4{ grid-template-columns: 1fr; }
}

/* ------------------------------
   Glass cards + elevated panels
------------------------------ */
.card{
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,.03));
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card.pad{ padding: 18px; }
.card.pad-lg{ padding: clamp(18px, 2vw, 28px); }

.card.hover{
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.card.hover:hover{
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-soft);
}

/* Gradient border “premium” option */
.card.glow{
  position: relative;
  overflow:hidden;
}
.card.glow:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(135deg, rgba(205,180,255,.55), rgba(157,231,255,.38), rgba(255,180,214,.30));
  filter: blur(12px);
  opacity: .35;
  pointer-events:none;
}
.card.glow > *{ position: relative; }

/* ------------------------------
   Top header / nav
------------------------------ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10,10,16,.52);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
@media (prefers-color-scheme: light){
  .site-header{
    background: rgba(247,244,255,.78);
    border-bottom-color: rgba(10,10,15,.10);
  }
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 200px;
}
.brand .mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(135deg, rgba(205,180,255,.95), rgba(157,231,255,.78));
  box-shadow: 0 16px 40px rgba(205,180,255,.20);
  border: 1px solid rgba(255,255,255,.18);
}
.brand .name{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}
.brand .name strong{
  font-size: 1rem;
  letter-spacing:-.01em;
}
.brand .name span{
  font-size: .86rem;
  color: var(--quiet);
}

/* Desktop nav links */
.nav-links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap:wrap;
}

.nav a.link{
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), color var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.nav a.link:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.nav-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Mobile nav button placeholder */
.nav-toggle{ display:none; }
@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-toggle{ display:inline-flex; }
}

/* Mobile drawer (style-only; your JS can toggle .open on .nav-drawer) */
.nav-drawer{
  position: fixed;
  inset: 0;
  z-index: 90;
  display:none;
}
.nav-drawer.open{ display:block; }
.nav-drawer .backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
}
.nav-drawer .panel{
  position:absolute;
  right: 0; top: 0; bottom: 0;
  width: min(360px, 88vw);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  border-left: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.nav-drawer a{
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.nav-drawer a:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.20);
}

/* ------------------------------
   Buttons + chips + icons
------------------------------ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  cursor:pointer;
  transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.24);
  box-shadow: 0 16px 34px rgba(0,0,0,.26);
}
.btn:active{ transform: translateY(0); }

.btn.primary{
  border-color: rgba(205,180,255,.42);
  background: linear-gradient(135deg, rgba(205,180,255,.95), rgba(157,231,255,.72));
  color: rgba(10,10,15,.92);
  box-shadow: 0 22px 55px rgba(205,180,255,.20);
}
.btn.primary:hover{
  border-color: rgba(255,255,255,.38);
  box-shadow: 0 28px 70px rgba(205,180,255,.24);
}

.btn.secondary{
  border-color: rgba(157,231,255,.32);
  background: linear-gradient(135deg, rgba(157,231,255,.25), rgba(255,255,255,.06));
}

.btn.ghost{
  background: transparent;
  border-color: rgba(255,255,255,.18);
  color: var(--muted);
}
.btn.ghost:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.btn.small{
  padding: 9px 11px;
  border-radius: 14px;
  font-size: .92rem;
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: var(--step--1);
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: var(--step--2);
}

.pill.ok{ border-color: rgba(82,255,184,.25); }
.pill.warn{ border-color: rgba(255,211,110,.25); }
.pill.info{ border-color: rgba(157,231,255,.25); }
.pill.danger{ border-color: rgba(255,107,107,.25); }

/* Simple icon bubble (works with SVG or text) */
.icon{
  width: 34px; height: 34px;
  display:grid;
  place-items:center;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
}

/* ------------------------------
   Hero (demo-grade)
------------------------------ */
.hero{
  padding: clamp(28px, 5vw, 74px) 0 22px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 14px;
  align-items:stretch;
}
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.hero-card{
  position: relative;
  overflow:hidden;
}
.hero-card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 320px at 16% 10%, rgba(205,180,255,.38), transparent 62%),
    radial-gradient(560px 320px at 88% 30%, rgba(157,231,255,.26), transparent 60%),
    radial-gradient(520px 340px at 62% 92%, rgba(255,180,214,.16), transparent 64%);
  filter: blur(10px);
  opacity: .95;
  pointer-events:none;
}
.hero-card:after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), transparent 30%),
    radial-gradient(900px 500px at 30% 40%, rgba(255,255,255,.03), transparent 60%);
  pointer-events:none;
}
.hero-card > *{ position: relative; }

.kicker{
  font-size: var(--step--1);
  color: var(--quiet);
  display:flex;
  align-items:center;
  gap:10px;
}
.kicker .dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(82,255,184,.92);
  box-shadow: 0 0 0 6px rgba(82,255,184,.14);
}

.lead{
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 14px;
}

/* “Trust row” */
.trust-row{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  margin-top: 12px;
}
.trust-row .chip{
  background: rgba(255,255,255,.05);
}

/* Side panel stats */
.hero-side{
  display:flex;
  flex-direction:column;
  gap: 12px;
}
.stat{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
}
.stat strong{ color: var(--text); }
.stat span{ color: var(--quiet); font-size: var(--step--1); }

/* ------------------------------
   Feature cards
------------------------------ */
.feature{
  padding: 18px;
}
.feature h3{
  font-size: var(--step-1);
  margin-bottom: 6px;
}
.feature p{
  margin:0;
  color: var(--muted);
}

/* ------------------------------
   Steps / timeline (demo sections)
------------------------------ */
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
}
.step{
  position:relative;
  padding: 18px;
}
.step:before{
  content:"";
  position:absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(205,180,255,.10), rgba(157,231,255,.06));
  opacity:.65;
  pointer-events:none;
}
.step > *{ position:relative; }
.step .num{
  width: 38px; height: 38px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, rgba(205,180,255,.95), rgba(157,231,255,.70));
  color: rgba(10,10,15,.92);
  font-weight: 700;
  box-shadow: 0 14px 35px rgba(205,180,255,.18);
  margin-bottom: 10px;
}
.step p{ margin:0; }

/* ------------------------------
   Catalog grid + items
------------------------------ */
.catalog{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.catalog .item{
  grid-column: span 4;
  overflow:hidden;
}
@media (max-width: 980px){
  .catalog .item{ grid-column: span 6; }
}
@media (max-width: 640px){
  .catalog .item{ grid-column: span 12; }
}

.item{
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.item:hover{
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-soft);
}

.item .thumb{
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  position: relative;
}
.item .thumb:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.25));
  pointer-events:none;
}
@media (prefers-color-scheme: light){
  .item .thumb:after{ background: linear-gradient(180deg, transparent 40%, rgba(10,10,15,.12)); }
}
.item .thumb img{
  width:100%; height:100%;
  object-fit: cover;
}

.item .meta{
  padding: 14px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.item .title{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  align-items:flex-start;
}
.item .title strong{
  font-size: 1.02rem;
  letter-spacing:-.01em;
}
.item .tags{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.tag{
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.05);
  color: var(--muted);
}

/* ------------------------------
   Gallery / 3D frame styling (works for canvas or iframe)
------------------------------ */
.gallery-frame{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  position: relative;
}
.gallery-frame:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(135deg, rgba(205,180,255,.35), rgba(157,231,255,.20), rgba(255,180,214,.18));
  filter: blur(16px);
  opacity: .25;
  pointer-events:none;
}
.gallery-frame > *{ position: relative; }

.gallery-frame .stage{
  aspect-ratio: 16 / 9;
  width:100%;
  background: radial-gradient(900px 500px at 30% 20%, rgba(205,180,255,.12), transparent 55%),
              radial-gradient(900px 500px at 80% 50%, rgba(157,231,255,.10), transparent 55%),
              rgba(255,255,255,.04);
  display:grid;
  place-items:center;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.gallery-frame .stage canvas,
.gallery-frame .stage iframe,
.gallery-frame .stage video{
  width:100%;
  height:100%;
  display:block;
}

/* ------------------------------
   Modal (safe base styling)
------------------------------ */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  place-items:center;
  padding: 18px;
  background: rgba(0,0,0,.58);
  z-index: 100;
}
.modal[aria-hidden="false"]{ display:grid; }
.modal .panel{
  width: min(920px, 100%);
  max-height: min(85vh, 920px);
  overflow:auto;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.modal .panel .top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky;
  top: 0;
  background: rgba(10,10,16,.42);
  backdrop-filter: blur(14px);
}
@media (prefers-color-scheme: light){
  .modal .panel .top{ background: rgba(247,244,255,.88); }
}
.modal .panel .body{ padding: 14px; }

/* ------------------------------
   Forms
------------------------------ */
.field{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin: 10px 0;
}
label{
  font-size: .92rem;
  color: var(--quiet);
}
.input, textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
textarea{ min-height: 120px; resize: vertical; }
.input:focus, textarea:focus, select:focus{
  border-color: rgba(205,180,255,.45);
  box-shadow: var(--ring);
  background: rgba(255,255,255,.08);
}
.help{
  font-size: .86rem;
  color: var(--quiet);
}

/* Inline validation styles (optional) */
.input.is-invalid, textarea.is-invalid{
  border-color: rgba(255,107,107,.45);
  box-shadow: 0 0 0 4px rgba(255,107,107,.18);
}
.input.is-valid, textarea.is-valid{
  border-color: rgba(82,255,184,.35);
  box-shadow: 0 0 0 4px rgba(82,255,184,.14);
}

/* ------------------------------
   Testimonials (demo section)
------------------------------ */
.quote{
  position: relative;
  padding: 18px;
}
.quote:before{
  content:"“";
  position:absolute;
  top: 6px;
  left: 12px;
  font-size: 56px;
  line-height:1;
  color: rgba(205,180,255,.25);
  pointer-events:none;
}
.quote p{
  margin: 0;
  color: var(--muted);
}
.quote .who{
  display:flex;
  align-items:center;
  gap: 10px;
  margin-top: 12px;
}
.quote .avatar{
  width: 38px; height: 38px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(205,180,255,.35), rgba(157,231,255,.18));
}
.quote .who strong{ color: var(--text); }
.quote .who span{ color: var(--quiet); font-size: var(--step--1); }

/* ------------------------------
   FAQ accordion (style-only)
------------------------------ */
.faq{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.faq details{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  overflow:hidden;
}
.faq summary{
  list-style:none;
  cursor:pointer;
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  color: var(--text);
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary .chev{
  width: 30px; height: 30px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  transition: transform var(--speed) var(--ease);
}
.faq details[open] summary .chev{
  transform: rotate(180deg);
}
.faq .answer{
  padding: 0 14px 14px;
  color: var(--muted);
}

/* ------------------------------
   Alerts / callouts
------------------------------ */
.callout{
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
}
.callout strong{ color: var(--text); }
.callout.ok{ border-color: rgba(82,255,184,.25); }
.callout.warn{ border-color: rgba(255,211,110,.25); }
.callout.danger{ border-color: rgba(255,107,107,.25); }
.callout.info{ border-color: rgba(157,231,255,.25); }

/* ------------------------------
   Toast (optional)
------------------------------ */
.toast{
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 120;
  width: min(420px, calc(100vw - 28px));
  display:none;
}
.toast.show{ display:block; }
.toast .card{
  padding: 12px 12px;
  border-radius: 18px;
}

/* ------------------------------
   Skeleton loading (optional)
------------------------------ */
.skel{
  background: linear-gradient(90deg,
    rgba(255,255,255,.05),
    rgba(255,255,255,.10),
    rgba(255,255,255,.05)
  );
  background-size: 200% 100%;
  border-radius: 14px;
  animation: skel 1.2s var(--ease) infinite;
}
@keyframes skel{
  0%{ background-position: 0% 0%; }
  100%{ background-position: 200% 0%; }
}
@media (prefers-reduced-motion: reduce){
  .skel{ animation:none; }
}

/* ------------------------------
   Footer
------------------------------ */
.site-footer{
  padding: 26px 0 42px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.02);
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  align-items:start;
}
@media (max-width: 860px){
  .footer-grid{ grid-template-columns: 1fr; }
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.footer-links a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
}
.footer-links a:hover{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

/* ------------------------------
   Floating language toggle support
------------------------------ */
.lang-fab{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 70;
}
.lang-fab .btn{
  border-radius: 999px;
  padding: 10px 12px;
  backdrop-filter: blur(14px);
}

/* ------------------------------
   Utility helpers
------------------------------ */
.center{ text-align:center; }
.right{ text-align:right; }
.muted{ color: var(--muted) !important; }
.quiet{ color: var(--quiet) !important; }
.faint{ color: var(--faint) !important; }
.hide{ display:none !important; }

/* Nice scrolling (respects reduced motion above) */
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
/* =========================================================
   UPGRADE LAYER (append-only)
   - Makes Catalog/Request/inner pages match the premium look
   - Adds consistent data-reveal everywhere
   - Adds safe performance tuning
   - DOES NOT break existing .nav/.btn/.card/.catalog rules
========================================================= */

/* ---- Safe performance tweaks ---- */
body{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.section, .hero, .site-footer{
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}
img{ image-rendering: auto; }

/* ---- Global “glass panel” normalization for pages that don’t use .card ---- */
main{
  position: relative;
  z-index: 1;
}

/* If your pages are built from generic sections/blocks, this helps */
.section > .container{
  /* wrap-like feel without needing markup changes */
  display: block;
}

/* A universal panel you can add anywhere: class="panel" */
.panel{
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: clamp(16px, 2vw, 22px);
}

/* Make fieldsets look premium (Request page screenshots) */
fieldset{
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
legend{
  padding: 0 10px;
  color: var(--text);
  font-weight: 700;
}

/* Make “basic” inputs match your premium .input */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
textarea,
select{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease), background var(--speed) var(--ease);
}
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus{
  border-color: rgba(205,180,255,.45);
  box-shadow: var(--ring);
  background: rgba(255,255,255,.08);
}

/* ---- Fix “broken image / placeholder box” look in Catalog ---- */
/* If images fail or are missing, keep the area looking intentional */
img{
  border-radius: 14px;
}
img[alt=""], img:not([alt]){
  outline: 1px dashed rgba(255,255,255,.18);
  outline-offset: 6px;
}

/* A generic media frame you can use: <div class="media"><img .../></div> */
.media{
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  overflow: hidden;
}
.media img, .media video, .media iframe, .media canvas{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ---- Consistent data-reveal everywhere (premium motion) ---- */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--speed-slow) var(--ease-out), transform var(--speed-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion support (keep yours, but ensure reveal doesn’t hide content) */
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Make “callout / notice” boxes consistent across pages ---- */
.notice,
.notice-box{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 14px;
}

/* ---- Make generic link lists (footer/legal) look cleaner ---- */
.site-footer a{
  border-radius: 14px;
}

/* ---- Optional: unify spacing on pages that look cramped ---- */
.section{
  padding: clamp(22px, 4vw, 54px) 0;
}