/* ===== BWL Technology — AI Studio · base theme ===== */
:root {
  --ink: #0a0a0b;
  --ink-soft: #4b4b52;
  --line: rgba(10, 10, 11, 0.10);
  --bg: #ffffff;
  --accent: #1a52ff;            /* electric blue */
  --face-bg: #ffffff;
  --face-shadow: 0 30px 80px -30px rgba(10, 10, 11, 0.28);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;                /* the box owns the scroll */
}

/* particle canvas sits behind everything, fills viewport */
#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Brand mark ===== */
.brand {
  position: fixed;
  top: clamp(16px, 3vw, 34px);
  left: clamp(16px, 3vw, 40px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand img { display: block; }
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand-name em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.brand-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 14px -8px rgba(10, 10, 11, 0.25);
}

/* ===== Stage / the rolling box ===== */
.stage {
  position: relative;
  z-index: 10;
  height: 100dvh;
  display: grid;
  place-items: center;
}

.mainCube {
  width: 70vw;
  height: 62vh;
  max-width: 1080px;
  overflow: visible;               /* let the cube rotate outside bounds */
}

/* one face of the box */
.face {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--face-bg);
  border-radius: var(--radius);
  box-shadow: var(--face-shadow);
  border: 1px solid var(--line);
  padding: clamp(28px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* ===== Typography in faces ===== */
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.face h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.face h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.lede { margin: 20px 0 0; font-size: clamp(16px, 1.5vw, 21px); color: var(--ink-soft); max-width: 46ch; }


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

/* ===== Glass / transparency buttons (Apple-ish) ===== */
.glass-btn {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 6px rgba(10, 10, 11, 0.04),
    0 8px 24px -10px rgba(10, 10, 11, 0.30);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.glass-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 34px -12px rgba(10, 10, 11, 0.38);
}
.glass-btn:active { transform: translateY(0); }
.glass-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* primary = vibrant glass (tinted), not a solid fill */
.glass-btn--primary {
  color: var(--accent);
  border-color: rgba(26, 82, 255, 0.30);
  background: rgba(26, 82, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 6px rgba(26, 82, 255, 0.06),
    0 10px 28px -12px rgba(26, 82, 255, 0.45);
}
.glass-btn--primary:hover {
  background: rgba(26, 82, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 32px -12px rgba(26, 82, 255, 0.5);
}

.glass-btn--round {
  width: 46px; height: 46px; padding: 0;
  font-size: 24px; line-height: 1;
  display: grid; place-items: center;
}

/* ===== Pillar = a single box; content slides flat inside it ===== */
.face--pillar { padding-bottom: clamp(78px, 12vh, 110px); }   /* room for controls */
.face--pillar h2 { font-size: clamp(28px, 4vw, 56px); }

.subSwiper {
  width: 100%;
  overflow: hidden;          /* clip sliding content at the box edge */
}
.sub-content { max-width: 52ch; }
.sub-content .lede { margin-top: 18px; }

/* controls overlay, centered at the bottom of the box */
.sub-controls {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vh, 30px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
}
.glass-btn--round { width: 42px; height: 42px; font-size: 22px; }

/* ===== Proof / Contact ===== */
.proof-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; max-width: 52ch; }
.proof-list li { font-size: clamp(15px, 1.5vw, 19px); color: var(--ink-soft); line-height: 1.4; }
.proof-list strong { color: var(--ink); font-weight: 700; }
.copyright { margin-top: auto; padding-top: 22px; font-size: 13px; color: var(--ink-soft); }

/* ===== Glass direction indicator (transparency mode) ===== */
.roll-hint {
  position: fixed;
  left: 50%;
  bottom: clamp(14px, 3vh, 28px);
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 8px 24px -12px rgba(10, 10, 11, 0.30);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease);
}
.roll-hint:hover { background: rgba(255, 255, 255, 0.62); transform: translateX(-50%) translateY(-2px); }
.roll-hint:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.roll-hint__arrow { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
.roll-hint[data-dir="up"] .roll-hint__arrow { animation-name: bobUp; }
.roll-hint[data-dir="right"] .roll-hint__arrow { animation-name: bobRight; }
@keyframes bob      { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes bobUp    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes bobRight { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ===== Responsive: portrait box on small screens ===== */
@media (max-width: 899px) {
  .mainCube { width: 90vw; height: 80dvh; max-width: none; }
  
  .brand-tag { display: none; }
}

/* ===== Reduced motion: no 3D roll, calmer everything ===== */
@media (prefers-reduced-motion: reduce) {
  .roll-hint__arrow { animation: none; }
}
