/* ============================================
   TIRKEY CORP (NEW) — Oryzo.ai Faithful Clone
   Exact section structure, visual language, and layout
   ============================================ */

/* --- FONT IMPORTS (CDN loaded in HTML) --- */

/* --- DESIGN TOKENS --- */
:root {
  --bg: #050505;
  --bg-alt: #0a0a0a;
  --bg-card: #111111;
  --bg-glass: rgba(15, 15, 15, 0.6);
  --bg-glass-strong: rgba(15, 15, 15, 0.85);

  --text: #f5f5f1;
  --text-dim: #a8a29e;
  --text-muted: #57534e;
  --text-dark: #0a0a0a;

  --accent: #c9a227;
  --accent-light: #e8c547;
  --accent-dark: #a68520;
  --accent-glow: rgba(201, 162, 39, 0.35);
  --accent-subtle: rgba(201, 162, 39, 0.08);

  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.12);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 64px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  overflow-x: hidden;
}
html.lenis, html.lenis-smooth { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { appearance: none; border: none; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

::selection { background: var(--accent); color: var(--text-dark); }

/* --- GRAIN OVERLAY --- */
.grain {
  position: fixed; inset: 0; z-index: 9990;
  pointer-events: none; opacity: 0.03;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  width: 0%; height: 3px; z-index: 99999;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), #f8dc78);
  box-shadow: 0 0 12px rgba(201,162,39,.4), 0 0 30px rgba(201,162,39,.15);
  transition: width 0.1s linear;
  pointer-events: none;
  overflow: hidden;
}

/* UI/UX Pro Max: Constant velocity sweeping glow on fixed-width viewport track */
.scroll-progress::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 150px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  box-shadow: 0 0 8px rgba(255,255,255,0.7);
  animation: scrollSweep 2s infinite linear;
}

@keyframes scrollSweep {
  0% { transform: translateX(-150px); }
  100% { transform: translateX(100vw); }
}

/* ============================================
   CUSTOM GOLD ARROW CURSOR
   ============================================ */
@media (pointer: fine) {
  *, *::before, *::after {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='16' viewBox='0 0 14 16'%3E%3Cpath d='M1 1L1 12L4 9L6.5 14.5L8 13.8L5.5 8.3L9.5 8.3Z' fill='%23c9a227' stroke='%23896d0f' stroke-width='0.6' stroke-linejoin='round'/%3E%3C/svg%3E") 1 1, auto !important;
  }
  a, button, [role="button"], input[type="submit"], .cta__btn, .tier-card__cta, .tc-chip, .tc-send-btn, .tc-chat-launcher {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='20' viewBox='0 0 18 20'%3E%3Cpath d='M6 1C6 0.4 6.4 0 7 0C7.6 0 8 0.4 8 1V9.1C8.3 8.7 8.8 8.4 9.4 8.4C10 8.4 10.6 8.8 10.8 9.4C11.1 9 11.6 8.7 12.2 8.7C12.8 8.7 13.3 9 13.6 9.5C13.9 9.1 14.4 8.9 15 8.9C16.1 8.9 17 9.8 17 10.9V13C17 16.9 13.9 20 10 20H8.4C6.5 20 4.7 19.2 3.4 17.8L0.3 14.5C-0.1 14.1 -0.1 13.4 0.3 13C0.7 12.6 1.4 12.6 1.8 13L3 14.3V1C3 0.4 3.4 0 4 0C4.6 0 5 0.4 5 1V8H6V1Z' fill='%23f0d060' stroke='%23c9a227' stroke-width='0.4'/%3E%3C/svg%3E") 4 0, pointer !important;
  }
}

/* ============================================
   CURSOR PARTICLE TRAIL
   ============================================ */
#cursorTrail {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 99998; pointer-events: none;
}

/* ============================================
   LOADING SCREEN — CINEMATIC
   ============================================ */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: radial-gradient(ellipse at center, #0c0a06 0%, #030303 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .8rem;
  transition: opacity 1.4s cubic-bezier(.22,1,.36,1), visibility 0s 1.4s;
  overflow: hidden;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
#loader.done { opacity: 0; pointer-events: none; visibility: hidden; }

/* CRT scanline overlay — no blend mode for perf */
.loader__scanline {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,.06) 2px,
    rgba(0,0,0,.06) 4px
  );
  transform: translateZ(0);
}

/* Subtle grid overlay */
.loader__gridlines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,162,39,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,162,39,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .6; transform: translateZ(0);
}

/* Rotating hexagons */
.loader__hex {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
}
.loader__hex svg { display: block; }
.loader__hex--1 {
  width: 320px; height: 320px;
  animation: hexSpin 12s linear infinite;
  will-change: transform;
}
.loader__hex--2 {
  width: 440px; height: 440px;
  animation: hexSpin 18s linear infinite reverse;
  will-change: transform;
}
@keyframes hexSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Pulsing rings — 5 layers */
.loader__rings {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.loader__rings span {
  position: absolute; left: 50%; top: 50%;
  border: 1px solid transparent; border-radius: 50%;
  animation: loaderRingPulse 3.5s ease-out infinite;
}
.loader__rings span:nth-child(1) { width:120px;height:120px;margin:-60px 0 0 -60px; animation-delay:0s; }
.loader__rings span:nth-child(2) { width:200px;height:200px;margin:-100px 0 0 -100px; animation-delay:.6s; }
.loader__rings span:nth-child(3) { width:300px;height:300px;margin:-150px 0 0 -150px; animation-delay:1.2s; }
.loader__rings span:nth-child(4) { width:400px;height:400px;margin:-200px 0 0 -200px; animation-delay:1.8s; }
.loader__rings span:nth-child(5) { width:520px;height:520px;margin:-260px 0 0 -260px; animation-delay:2.4s; }
@keyframes loaderRingPulse {
  0% { transform: scale(.6); opacity:.6; border-color: rgba(201,162,39,.25); }
  100% { transform: scale(1.4); opacity:0; border-color: rgba(201,162,39,0); }
}

/* Energy core glow — STRONG (GPU-accelerated) */
.loader__core {
  position: absolute; left: 50%; top: 50%;
  width: 200px; height: 200px; margin: -100px 0 0 -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.3) 0%, rgba(201,162,39,.1) 35%, transparent 70%);
  animation: corePulse 1.8s ease-in-out infinite alternate;
  z-index: 1; will-change: transform, opacity;
  transform: translateZ(0);
}
@keyframes corePulse {
  0% { transform: translateZ(0) scale(.5); opacity: .6; }
  100% { transform: translateZ(0) scale(1.5); opacity: 1; }
}

/* Orbiting particles — 3 rings of 4 */
.loader__orbs {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  pointer-events: none;
}
.loader__orbs span {
  position: absolute; border-radius: 50%;
  background: var(--accent);
  animation: loaderOrbit linear infinite;
  transform-origin: 0 0;
}
/* Inner ring — fast, bright */
.loader__orbs span:nth-child(1)  { width:5px;height:5px; --orbit-r:80px;  animation-duration:3s;  animation-delay:0s;    box-shadow:0 0 10px var(--accent), 0 0 20px rgba(201,162,39,.4); }
.loader__orbs span:nth-child(2)  { width:5px;height:5px; --orbit-r:80px;  animation-duration:3s;  animation-delay:.75s;  box-shadow:0 0 10px var(--accent), 0 0 20px rgba(201,162,39,.4); }
.loader__orbs span:nth-child(3)  { width:5px;height:5px; --orbit-r:80px;  animation-duration:3s;  animation-delay:1.5s;  box-shadow:0 0 10px var(--accent), 0 0 20px rgba(201,162,39,.4); }
.loader__orbs span:nth-child(4)  { width:5px;height:5px; --orbit-r:80px;  animation-duration:3s;  animation-delay:2.25s; box-shadow:0 0 10px var(--accent), 0 0 20px rgba(201,162,39,.4); }
/* Middle ring — medium, softer */
.loader__orbs span:nth-child(5)  { width:3px;height:3px; --orbit-r:140px; animation-duration:5s;  animation-delay:0s;    animation-direction:reverse; opacity:.7; box-shadow:0 0 8px rgba(201,162,39,.5); }
.loader__orbs span:nth-child(6)  { width:3px;height:3px; --orbit-r:140px; animation-duration:5s;  animation-delay:1.25s; animation-direction:reverse; opacity:.7; box-shadow:0 0 8px rgba(201,162,39,.5); }
.loader__orbs span:nth-child(7)  { width:3px;height:3px; --orbit-r:140px; animation-duration:5s;  animation-delay:2.5s;  animation-direction:reverse; opacity:.7; box-shadow:0 0 8px rgba(201,162,39,.5); }
.loader__orbs span:nth-child(8)  { width:3px;height:3px; --orbit-r:140px; animation-duration:5s;  animation-delay:3.75s; animation-direction:reverse; opacity:.7; box-shadow:0 0 8px rgba(201,162,39,.5); }
/* Outer ring — slow, faint */
.loader__orbs span:nth-child(9)  { width:2px;height:2px; --orbit-r:210px; animation-duration:8s;  animation-delay:0s;    opacity:.4; box-shadow:0 0 6px rgba(201,162,39,.3); }
.loader__orbs span:nth-child(10) { width:2px;height:2px; --orbit-r:210px; animation-duration:8s;  animation-delay:2s;    opacity:.4; box-shadow:0 0 6px rgba(201,162,39,.3); }
.loader__orbs span:nth-child(11) { width:2px;height:2px; --orbit-r:210px; animation-duration:8s;  animation-delay:4s;    opacity:.4; box-shadow:0 0 6px rgba(201,162,39,.3); }
.loader__orbs span:nth-child(12) { width:2px;height:2px; --orbit-r:210px; animation-duration:8s;  animation-delay:6s;    opacity:.4; box-shadow:0 0 6px rgba(201,162,39,.3); }
@keyframes loaderOrbit { to { transform: rotate(360deg) translateX(var(--orbit-r, 100px)); } }

/* Logo icon — floating with glow */
.loader__icon {
  position: relative; z-index: 3;
  border-radius: 50%;
  animation: iconFloat 2.5s ease-in-out infinite alternate;
}
@keyframes iconFloat {
  0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 15px rgba(201,162,39,.3)); }
  100% { transform: scale(1.08) translateY(-5px); filter: drop-shadow(0 0 40px rgba(201,162,39,.7)) drop-shadow(0 0 80px rgba(201,162,39,.2)); }
}

/* Logo text — per-letter stagger animation */
.loader__logo {
  position: relative; z-index: 3;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text);
  display: flex; gap: 0;
}
.loader__logo span {
  display: inline-block;
  background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: letterReveal .6s ease both;
}
.loader__logo span:nth-child(1) { animation-delay: .1s; }
.loader__logo span:nth-child(2) { animation-delay: .2s; }
.loader__logo span:nth-child(3) { animation-delay: .3s; }
.loader__logo span:nth-child(4) { animation-delay: .4s; }
.loader__logo span:nth-child(5) { animation-delay: .5s; }
.loader__logo span:nth-child(6) { animation-delay: .6s; }
.loader__logo span:nth-child(7) { animation-delay: .7s; width: .3em; }
.loader__logo span:nth-child(8) { animation-delay: .8s; }
.loader__logo span:nth-child(9) { animation-delay: .9s; }
.loader__logo span:nth-child(10){ animation-delay: 1s; }
.loader__logo span:nth-child(11){ animation-delay: 1.1s; }
.loader__logo-dim {
  -webkit-text-fill-color: var(--text) !important;
  background: none !important;
}
.loader__logo-space { width: .3em !important; }
@keyframes letterReveal {
  0% { opacity: 0; transform: translateY(15px) scale(.8); filter: blur(4px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.loader__tag {
  position: relative; z-index: 3;
  font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--text-muted); margin-top: -.2rem;
  animation: fadeSlideUp 1s 1.3s ease both;
}
@keyframes fadeSlideUp {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.loader__bar {
  position: relative; z-index: 3;
  width: 180px; height: 2px;
  background: rgba(255,255,255,0.04);
  border-radius: 2px; overflow: hidden;
  margin-top: 1.2rem;
}
.loader__fill {
  position: relative;
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-light));
  border-radius: 2px;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(201,162,39,.5), 0 0 30px rgba(201,162,39,.15);
  overflow: hidden;
}

/* UI/UX Pro Max: High-energy traveling neon glow */
.loader__fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
  animation: sweepGlow 1.2s infinite linear;
}

@keyframes sweepGlow {
  0% { left: -100%; }
  100% { left: 200%; }
}

.loader__pct {
  position: relative; z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--accent);
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(201,162,39,.3);
}

/* Corner bracket accents */
.loader__corner {
  position: absolute; width: 40px; height: 40px; z-index: 2;
  border-color: rgba(201,162,39,.15); border-style: solid; border-width: 0;
}
.loader__corner--tl { top: 5%; left: 5%; border-top-width: 1px; border-left-width: 1px; }
.loader__corner--tr { top: 5%; right: 5%; border-top-width: 1px; border-right-width: 1px; }
.loader__corner--bl { bottom: 5%; left: 5%; border-bottom-width: 1px; border-left-width: 1px; }
.loader__corner--br { bottom: 5%; right: 5%; border-bottom-width: 1px; border-right-width: 1px; }

/* ============================================
   NAVIGATION — oryzo-style
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999; height: var(--nav-height);
  display: flex; align-items: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav__wrap {
  width: 100%; max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
}
.nav__brand img { width: 28px; height: 28px; border-radius: 50%; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__link {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.04em;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}
.nav__link:hover {
  color: var(--accent-light);
  text-shadow: 0 0 18px rgba(201,162,39,0.35);
}

/* --- Navigation Dropdown --- */
.nav__item--has-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
.nav__icon {
  margin-left: 0.4rem;
  transition: transform 0.3s var(--ease);
  opacity: 0.6;
}
.nav__item--has-dropdown:hover .nav__icon {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--accent);
}
.nav__dropdown {
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 220px;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  z-index: 1000;
}
.nav__item--has-dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-link {
  display: block;
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-dim);
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav__dropdown-link:hover {
  background: var(--accent-subtle);
  color: var(--accent-light);
  padding-left: 1.25rem;
}


.nav__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1.2rem; text-align: center;
  background: var(--text); color: var(--bg);
  border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  transition: all 0.3s;
}
.nav__cta:hover {
  background: var(--accent); color: var(--text-dark);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px;
}
.nav__hamburger span {
  width: 20px; height: 1.5px; background: var(--text);
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}

/* Premium Mobile Overlay - UI/UX PRO MAX Refinement */
.mob-menu {
  position: fixed; inset: 0; z-index: 10005;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  visibility: hidden;
  transition: all 0.7s cubic-bezier(0.85, 0, 0.15, 1);
  clip-path: circle(0% at top right);
  -webkit-clip-path: circle(0% at top right);
  transform: scale(0.95) translateY(-20px);
  filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}
.mob-menu.open { 
  opacity: 1; pointer-events: auto; 
  visibility: visible;
  clip-path: circle(150% at top right);
  -webkit-clip-path: circle(150% at top right);
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* Kinetic Glass Orbs */
.mob-menu__orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); z-index: -1; opacity: 0.2;
  transition: all 0.8s var(--ease);
}
.mob-menu__orb--1 {
  width: 300px; height: 300px; background: var(--accent);
  top: -10%; left: -10%;
}
.mob-menu__orb--2 {
  width: 250px; height: 250px; background: #4a4a4a;
  bottom: -5%; right: -5%;
}
.mob-menu.open .mob-menu__orb--1 { transform: translate(50px, 50px); }
.mob-menu.open .mob-menu__orb--2 { transform: translate(-50px, -50px); }

.mob-menu__content {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; width: 100%;
}

.mob-menu__item {
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition-delay: calc(var(--i) * 0.08s);
}
.mob-menu.open .mob-menu__item {
  opacity: 1; transform: translateY(0);
}

.mob-menu__link {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 600;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  padding: 1rem 0;
  transition: all 0.3s var(--ease);
}

.mob-menu__sub-header {
  margin-top: 2rem; margin-bottom: 1rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--accent); opacity: 0; transform: translateY(10px);
  transition: all 0.5s var(--ease);
  transition-delay: calc(var(--i) * 0.08s);
}
.mob-menu.open .mob-menu__sub-header {
  opacity: 0.6; transform: translateY(0);
}

.mob-menu__link--sub {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
  padding: 0.6rem 0 !important;
  color: var(--text-dim) !important;
  display: flex !important; align-items: center; justify-content: center; gap: 0.75rem;
}

.mob-menu__num {
  font-family: var(--font-mono);
  font-size: 0.65rem; color: var(--accent);
  opacity: 0.7; border: 1px solid var(--accent-subtle);
  padding: 2px 6px; border-radius: 4px;
}

.mob-menu__link:active {
  color: var(--accent);
  transform: scale(0.98);
}

.mob-menu__cta {
  margin-top: 1rem;
  font-size: 0.85rem; font-weight: 700;
  color: var(--text-dark) !important;
  background: var(--text);
  padding: 1rem 3rem !important;
  border-radius: 100px;
  letter-spacing: 0.1em;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mob-menu__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s var(--ease); z-index: 100;
}
.mob-menu__close span {
  position: absolute; width: 16px; height: 1.5px;
  background: var(--text); transition: all 0.4s var(--ease);
  top: 50%; left: 50%;
}

.mob-menu__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.mob-menu__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.mob-menu__close:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

.mob-menu__close:hover span { background: var(--accent); }

/* ============================================
   3D CANVAS CONTAINER (Three.js scene)
   ============================================ */
#three-canvas {
  position: fixed; inset: 0; z-index: 5;
  pointer-events: none;
}

/* ── Ambient floating particles & orbs ── */
.particles {
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none; overflow: hidden;
}
.particles span {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39, var(--glow)) 0%, transparent 70%);
  box-shadow: 0 0 calc(var(--s) * 3) rgba(201,162,39, calc(var(--glow) * 0.5));
  animation:
    particleDrift var(--dur) var(--del) ease-in-out infinite alternate,
    particleFade var(--dur) var(--del) ease-in-out infinite alternate;
}
@keyframes particleDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(30px, -40px); }
  50%  { transform: translate(-20px, -80px); }
  75%  { transform: translate(40px, -30px); }
  100% { transform: translate(-10px, -60px); }
}
@keyframes particleFade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

/* ============================================
   SECTION: HERO — oryzo-style full screen
   ============================================ */
.hero {
  position: relative; z-index: 1;
  height: 100vh; height: 100dvh;
  display: flex; align-items: flex-end;
  padding: 0 clamp(1.5rem, 4vw, 3rem) clamp(3rem, 6vh, 5rem);
  overflow: hidden;
}

.hero__content {
  max-width: 1600px; width: 100%; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: flex-end;
}

.hero__left { max-width: 700px; }

.hero__sub {
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0; transform: translateY(20px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.03em; color: var(--text);
  opacity: 0; transform: translateY(40px);
}
.hero__title em {
  font-style: normal; color: var(--accent);
}

.hero__desc {
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--text-dim); line-height: 1.75;
  margin-top: 1.5rem; max-width: 480px;
  opacity: 0; transform: translateY(20px);
}

.hero__right {
  text-align: right;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-subtle);
  border: 1px solid rgba(201,162,39,0.2);
  border-radius: 999px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-light);
  opacity: 0; transform: translateY(20px);
}
.hero__badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__scroll-hint {
  position: absolute; bottom: 1.2rem;
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 0.5rem;
  opacity: 0;
}
.hero__scroll-hint span {
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.5); }
}

@media (max-width: 768px) {
  .hero { align-items: center; justify-content: center; padding-bottom: 2rem; }
  .hero__content { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .hero__right { width: 100%; display: flex; justify-content: center; }
}

/* ============================================
   FX SECTIONS — Grid-based layout + animated elements
   ============================================ */
.fx-section {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: clamp(4rem,10vh,8rem) clamp(2rem,5vw,4rem);
  overflow: hidden; background: var(--bg);
}
.fx-section:nth-child(even) { background: var(--bg-alt); }

/* Ambient gold gradient spreads — diffuse, seamless per section */
.fx-glow { position: relative; }
.fx-glow::before {
  content: ''; position: absolute; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(201,162,39,.1) 0%, transparent 70%);
  filter: blur(120px);
}

/* Section 1: Consulting — bottom-left, wide */
.fx-glow--1::before {
  width: 1000px; height: 600px;
  bottom: -250px; left: -300px;
}

/* Section 2: 40x AI — centered massive soft orb */
.fx-glow--2::before {
  width: 1100px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,162,39,.12) 0%, transparent 60%);
  filter: blur(140px);
}

/* Section 3: AI Integration — top-right bleed */
.fx-glow--3::before {
  width: 900px; height: 550px;
  top: -200px; right: -250px; left: auto;
}

/* Section 4: Web Design — left edge wash */
.fx-glow--4::before {
  width: 500px; height: 900px;
  top: 50%; left: -200px;
  transform: translateY(-50%);
  filter: blur(130px);
}

/* Section 5: Advertising — wide top horizon */
.fx-glow--5::before {
  width: 1400px; height: 400px;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center top, rgba(201,162,39,.09) 0%, transparent 70%);
  filter: blur(110px);
}

/* Section 6: Ecosystem — bottom-right, large */
.fx-glow--6::before {
  width: 1000px; height: 600px;
  bottom: -250px; right: -300px; left: auto;
}

/* Section 7: Voice Agents — dual-glow focal */
.fx-glow--7::before {
  width: 900px; height: 600px;
  top: 50%; left: -200px;
  transform: translateY(-50%);
  background: radial-gradient(ellipse, rgba(201,162,39,.09) 0%, transparent 65%);
  filter: blur(120px);
}

/* 2-column grid — text NEVER overlaps visual */
.fx-grid {
  max-width: 1400px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem,5vw,5rem); align-items: center;
}
.fx-grid--reverse { direction: rtl; }
.fx-grid--reverse > * { direction: ltr; }

.fx-section__content { position: relative; z-index: 2; max-width: 550px; }
.fx-section--center { justify-content: center; text-align: center; }
.fx-section__content--center { max-width: 900px; margin: 0 auto; }
.fx-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 300px; }

.fx-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body);
  font-size: .65rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1.5rem;
}
.fx-label::before { content:''; width:20px; height:1px; background:var(--accent); }
.fx-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem,4.5vw,3.5rem); font-weight:700;
  line-height: 0.95; color:var(--text); margin-bottom:1.5rem;
}
.fx-heading em { font-style:normal; color:var(--accent); }
.fx-body { font-size:clamp(.85rem,1.1vw,1rem); color:var(--text-dim); line-height:1.8; margin-bottom:1.5rem; }
.fx-tags { display:flex; flex-wrap:wrap; gap:.5rem; }
.fx-tags span {
  padding:.35rem .85rem; background:rgba(201,162,39,.08);
  border:1px solid rgba(201,162,39,.18); border-radius:999px;
  font-size:.7rem; font-weight:600; color:var(--accent-light);
}

/* ── Mini floating cards (glassmorphism) ── */
.fx-minicard {
  position: absolute; padding: .5rem 1rem;
  background: rgba(15,15,15,.7); backdrop-filter: blur(12px);
  border: 1px solid rgba(201,162,39,.2); border-radius: 10px;
  font-size: .7rem; font-weight: 600; color: var(--accent-light);
  animation: floatY 4s ease-in-out infinite alternate;
  white-space: nowrap;
}
.fx-minicard--1 { top: 10%; right: 0; animation-delay: 0s; }
.fx-minicard--2 { bottom: 15%; right: 10%; animation-delay: 1.5s; }
.fx-minicard--3 { bottom: 10%; left: 5%; animation-delay: .8s; }
.fx-minicard--4 { bottom: 5%; right: 0; animation-delay: 2s; }
@keyframes floatY { 0%{transform:translateY(0)} 100%{transform:translateY(-10px)} }

/* SVG icons inside cards */
.fx-minicard svg, .fx-datacard svg, .stat-badge__icon svg, .paper__link svg {
  display: inline-block; vertical-align: -2px; margin-right: 4px;
  stroke: var(--accent-light); flex-shrink: 0;
}

/* ── Data cards (corners of center sections) ── */
.fx-datacard {
  position: absolute; padding: .6rem 1.2rem;
  background: rgba(15,15,15,.65); backdrop-filter: blur(10px);
  border: 1px solid rgba(201,162,39,.15); border-radius: 8px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 600;
  color: var(--accent-light); z-index: 1;
  animation: floatY 5s ease-in-out infinite alternate;
}
.fx-datacard--tl { top: 15%; left: 8%; animation-delay: 0s; }
.fx-datacard--tr { top: 15%; right: 8%; animation-delay: 1s; }
.fx-datacard--bl { bottom: 15%; left: 8%; animation-delay: 2s; }
.fx-datacard--br { bottom: 15%; right: 8%; animation-delay: 3s; }

/* ── Revenue Chart (Consulting) ── */
.fx-chart {
  width: 100%; max-width: 380px;
  background: rgba(10,10,10,.8); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 1.5rem; position: relative;
}
.fx-chart__grid {
  position: absolute; inset: 1.5rem; display: flex; flex-direction: column;
  justify-content: space-between; pointer-events: none;
}
.fx-chart__grid span {
  width: 100%; height: 1px; background: rgba(255,255,255,.04);
}
.fx-chart__bars {
  display: flex; align-items: flex-end; gap: 16px;
  height: 180px; position: relative; z-index: 1; padding-bottom: 20px;
}
.fx-chart__bar {
  flex: 1; border-radius: 6px 6px 0 0; position: relative;
  background: linear-gradient(to top, rgba(201,162,39,.3), rgba(201,162,39,.15));
  height: var(--h, 50%);
  animation: barGrow 1.5s var(--d, 0s) ease-out both;
}
.fx-chart__bar--accent {
  background: linear-gradient(to top, var(--accent), var(--accent-light));
  box-shadow: 0 0 20px rgba(201,162,39,.3);
}
.fx-chart__bar span {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: .6rem; color: var(--text-muted); font-family: var(--font-mono);
}
@keyframes barGrow { from { height: 0; } }
.fx-chart__footer {
  display: flex; gap: 1rem; margin-top: 1.2rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.fx-chart__stat {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 700; color: var(--accent); line-height: 1.2;
}
.fx-chart__stat small {
  display: block; font-size: .6rem; font-weight: 500;
  color: var(--text-muted); margin-top: 2px;
}

/* ── Pulsing Rings (40x section) ── */
.fx-rings {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  z-index:0; pointer-events:none;
}
.fx-rings span {
  position:absolute; left:50%; top:50%;
  border:1px solid rgba(201,162,39,.12); border-radius:50%;
  animation: ringPulse 4s ease-out infinite;
}
.fx-rings span:nth-child(1) { width:200px;height:200px;margin:-100px 0 0 -100px; }
.fx-rings span:nth-child(2) { width:350px;height:350px;margin:-175px 0 0 -175px; animation-delay:.8s; }
.fx-rings span:nth-child(3) { width:500px;height:500px;margin:-250px 0 0 -250px; animation-delay:1.6s; }
.fx-rings span:nth-child(4) { width:650px;height:650px;margin:-325px 0 0 -325px; animation-delay:2.4s; }
@keyframes ringPulse {
  0% { transform:scale(.8); opacity:.4; }
  50% { opacity:.12; }
  100% { transform:scale(1.15); opacity:0; }
}

/* ── Neural Network (AI section) ── */
.fx-neural {
  position: relative; width: 100%; max-width: 400px; height: 300px;
  display: flex; align-items: stretch; justify-content: space-around;
}
.fx-neural__layer {
  display: flex; flex-direction: column; justify-content: space-around;
  gap: 8px; z-index: 1;
}
.fx-neural__layer span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 15px var(--accent-glow);
  animation: nodePulse 3s ease-in-out infinite alternate;
}
.fx-neural__layer:nth-child(2) span { width: 10px; height: 10px; background: rgba(201,162,39,.6); }
.fx-neural__layer:nth-child(3) span { width: 12px; height: 12px; }
.fx-neural__layer:nth-child(4) span { width: 16px; height: 16px; background: var(--accent-light); }
.fx-neural__layer span:nth-child(odd) { animation-delay: 1.5s; }
.fx-neural__svg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.fx-neural__svg line {
  stroke: rgba(201,162,39,.15); stroke-width: 1;
  stroke-dasharray: 6 4; animation: dashMove 6s linear infinite;
}
@keyframes nodePulse { 0%{opacity:.4;transform:scale(.8)} 100%{opacity:1;transform:scale(1.2)} }
@keyframes dashMove { to { stroke-dashoffset:-100; } }

/* ── Voice Waveform Visualizer (Voice Agents section) ── */
.fx-voice {
  position: relative; width: 100%; max-width: 380px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.fx-voice__ring {
  position: absolute; left: 50%; top: 50%;
  border: 1px solid rgba(201,162,39,.12); border-radius: 50%;
  animation: voiceRingPulse 3s ease-in-out infinite;
}
.fx-voice__ring--1 { width: 100px; height: 100px; margin: -50px 0 0 -50px; animation-delay: 0s; }
.fx-voice__ring--2 { width: 170px; height: 170px; margin: -85px 0 0 -85px; animation-delay: 0.6s; }
.fx-voice__ring--3 { width: 240px; height: 240px; margin: -120px 0 0 -120px; animation-delay: 1.2s; }
@keyframes voiceRingPulse {
  0%   { transform: scale(0.85); opacity: 0.5; border-color: rgba(201,162,39,.25); }
  50%  { transform: scale(1.08); opacity: 0.15; border-color: rgba(201,162,39,.15); }
  100% { transform: scale(0.85); opacity: 0.5; border-color: rgba(201,162,39,.25); }
}
.fx-voice__core {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, rgba(201,162,39,.6) 50%, transparent 75%);
  box-shadow: 0 0 40px rgba(201,162,39,.4), 0 0 80px rgba(201,162,39,.15);
  display: flex; align-items: center; justify-content: center;
  animation: voiceCorePulse 2s ease-in-out infinite alternate;
}
.fx-voice__core svg { stroke: var(--bg); width: 28px; height: 28px; }
@keyframes voiceCorePulse {
  0%   { transform: scale(1);   box-shadow: 0 0 40px rgba(201,162,39,.4), 0 0 80px rgba(201,162,39,.15); }
  100% { transform: scale(1.12); box-shadow: 0 0 60px rgba(201,162,39,.6), 0 0 120px rgba(201,162,39,.25); }
}
.fx-voice__bars {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 3px;
  z-index: 1;
}
.fx-voice__bar {
  width: 3px; border-radius: 3px;
  background: linear-gradient(to top, rgba(201,162,39,.2), var(--accent));
  animation: voiceBar var(--dur, 1s) var(--del, 0s) ease-in-out infinite alternate;
}
@keyframes voiceBar {
  0%   { height: var(--h-min, 8px); opacity: 0.3; }
  100% { height: var(--h-max, 40px); opacity: 1; }
}
.fx-voice__wave {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%);
  width: 85%; height: 50px; z-index: 0;
}
.fx-voice__wave path {
  fill: none; stroke: rgba(201,162,39,.18); stroke-width: 1.5;
  stroke-dasharray: 8 4;
  animation: dashMove 4s linear infinite;
}
.fx-voice__label {
  position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .6rem;
  color: var(--accent); opacity: .6;
  letter-spacing: .15em; text-transform: uppercase;
  animation: labelPulse 2s ease-in-out infinite alternate;
}
@keyframes labelPulse { 0%{opacity:.4} 100%{opacity:.8} }

/* ── Browser + Phone Mockup (Web Design) ── */
.fx-devices { display: flex; align-items: flex-start; gap: 16px; }
.fx-browser {
  width: 300px; border: 1px solid var(--border-light); border-radius: 12px;
  overflow: hidden; background: var(--bg-alt);
}
.fx-browser__bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.fx-browser__bar > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .5; }
.fx-browser__bar > span:nth-child(2) { background: #555; }
.fx-browser__bar > span:nth-child(3) { background: #333; }
.fx-browser__url {
  margin-left: auto; font-size: .55rem; color: var(--text-muted);
  padding: 2px 8px; background: var(--border); border-radius: 4px;
  font-family: var(--font-mono);
}
.fx-browser__screen { padding: 10px; }
.fx-browser__nav { height: 6px; width: 55%; border-radius: 3px; background: var(--border); margin-bottom: 10px; }
.fx-browser__hero {
  height: 60px; border-radius: 8px; margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(201,162,39,.15), rgba(201,162,39,.05));
  animation: shimmer 3s ease-in-out infinite alternate;
}
.fx-browser__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.fx-browser__grid span { height: 40px; border-radius: 5px; background: var(--border); }
.fx-browser__cta { height: 8px; width: 35%; margin: 0 auto; border-radius: 4px; background: var(--accent); opacity: .4; }
@keyframes shimmer { 0%{opacity:.4} 100%{opacity:1} }

.fx-phone {
  width: 100px; background: var(--bg-alt); border: 1px solid var(--border-light);
  border-radius: 16px; padding: 8px; position: relative; margin-top: 30px;
}
.fx-phone__notch {
  width: 40px; height: 4px; background: var(--border); border-radius: 2px;
  margin: 0 auto 10px;
}
.fx-phone__content { display: flex; flex-direction: column; gap: 6px; }
.fx-phone__header { height: 10px; width: 70%; border-radius: 3px; background: var(--border); }
.fx-phone__card {
  height: 40px; border-radius: 6px;
  background: linear-gradient(135deg, rgba(201,162,39,.1), rgba(201,162,39,.03));
  border: 1px solid var(--border);
}
.fx-phone__card--sm { height: 25px; }

/* ── Scanning Line (Advertising) ── */
.fx-scan { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
.fx-scan::after {
  content:''; position:absolute; left:0; right:0;
  height:2px; background:linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanDown 4s ease-in-out infinite;
  box-shadow: 0 0 40px 10px var(--accent-glow);
}
@keyframes scanDown { 0%{top:0} 50%{top:100%} 100%{top:0} }

/* ── Orbit Diagram (Ecosystem — inside grid, no overlap) ── */
.fx-orbit {
  position: relative; width: 280px; height: 280px; margin: 0 auto;
}
.fx-orbit__center {
  position:absolute; left:50%;top:50%; transform:translate(-50%,-50%);
  width:50px;height:50px; border-radius:50%;
  background:var(--accent); color:var(--bg); font-weight:700;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display); font-size:.85rem;
  box-shadow:0 0 30px var(--accent-glow);
}
.fx-orbit__ring {
  position:absolute; left:50%;top:50%; border:1px solid rgba(201,162,39,.12);
  border-radius:50%;
}
.fx-orbit__ring--1 { width:140px;height:140px;margin:-70px 0 0 -70px; }
.fx-orbit__ring--2 { width:220px;height:220px;margin:-110px 0 0 -110px; }
.fx-orbit__ring--3 { width:280px;height:280px;margin:-140px 0 0 -140px; }
.fx-orbit__dot {
  position:absolute; left:50%;top:50%;
  width:34px;height:34px; margin:-17px 0 0 -17px;
  border-radius:50%; background:var(--bg-card);
  border:1px solid rgba(201,162,39,.25);
  display:flex;align-items:center;justify-content:center;
  font-size:.55rem;font-weight:700;color:var(--accent-light);
  font-family:var(--font-display);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a)));
  animation: orbitFloat 20s linear infinite;
}
@keyframes orbitFloat {
  to { transform: rotate(calc(var(--a, 0deg) + 360deg)) translateX(var(--r, 80px)) rotate(calc(-1 * var(--a, 0deg) - 360deg)); }
}

@media (max-width: 900px) {
  .fx-grid { grid-template-columns: 1fr; }
  .fx-grid--reverse { direction: ltr; }
  .fx-visual { min-height: 200px; }
  .fx-devices { flex-direction: column; align-items: center; }
}

/* --- Big text feature (oryzo "Smart Flip" / "Sustainability" style) --- */
.big-text-section {
  position: relative; z-index: 2;
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(6rem, 15vh, 12rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.big-text-section__bg {
  position: absolute; inset: 0; pointer-events: none;
}
.big-text-section__bg-word {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 20rem);
  font-weight: 800; line-height: 1;
  color: rgba(255,255,255,0.02);
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.big-text-section__content {
  position: relative; z-index: 2; max-width: 900px;
}
.big-text-section__heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 1.5rem;
}
.big-text-section__heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.big-text-section__sub {
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: var(--text-dim); line-height: 1.8;
  max-width: 600px; margin: 0 auto;
}

/* ============================================
   STATS ROW (oryzo "runs on edge" / "always on" badges)
   ============================================ */
.stats-row {
  position: relative; z-index: 2;
  padding: clamp(3rem, 6vh, 5rem) clamp(1.5rem, 4vw, 3rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.stats-row__inner {
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.stat-badge {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}
.stat-badge:hover {
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-2px);
}
.stat-badge__icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.stat-badge__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700; color: var(--accent);
  line-height: 1;
}
.stat-badge__label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .stats-row__inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .stats-row__inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   TESTIMONIALS — oryzo horizontal scroll style
   ============================================ */
.testimonials {
  position: relative; z-index: 2;
  padding: clamp(5rem, 10vh, 8rem) 0 clamp(4rem, 8vh, 6rem);
  background: var(--bg);
  overflow: hidden;
}
.testimonials__header {
  text-align: center;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  margin-bottom: clamp(3rem, 5vh, 4rem);
}
.testimonials__label {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.testimonials__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; line-height: 0.95;
  color: var(--text);
}
.testimonials__title em {
  font-style: normal; color: var(--accent);
}

.testimonials__track {
  display: flex; gap: 1.25rem;
  padding: 0 clamp(1.5rem, 4vw, 3rem) 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  justify-content: center;
}
.testimonials__track::-webkit-scrollbar { display: none; }

.t-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex; flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s;
}
.t-card:hover { border-color: rgba(201,162,39,0.2); transform: translateY(-3px); }

.t-card__stars { color: var(--accent); font-size: 0.85rem; letter-spacing: 0.15em; }
.t-card__text {
  font-size: 0.9rem; color: var(--text-dim);
  line-height: 1.8; font-style: italic; flex: 1;
}
.t-card__author {
  display: flex; align-items: center; gap: 0.75rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.t-card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(201,162,39,0.3);
  object-fit: cover;
}
.t-card__name {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
}
.t-card__role { font-size: 0.7rem; color: var(--text-muted); }

@media (max-width: 640px) {
  .t-card { flex: 0 0 300px; padding: 1.5rem; }
}

/* ============================================
   PRODUCT TIERS — oryzo "choose your own" cards
   ============================================ */
.tiers {
  position: relative; z-index: 2;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--bg-alt);
}
.tiers__header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vh, 4rem);
}
.tiers__label {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.tiers__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; line-height: 0.95;
  color: var(--text);
}

.tiers__grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.tier-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  transition: all 0.4s var(--ease);
  position: relative; overflow: hidden;
}
.tier-card:hover {
  border-color: rgba(201,162,39,0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.tier-card--featured {
  border-color: rgba(201,162,39,0.3);
  background: linear-gradient(180deg, rgba(201,162,39,0.06) 0%, var(--bg) 40%);
}

.tier-card__badge {
  display: inline-flex; align-self: flex-start;
  padding: 0.25rem 0.65rem;
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.6rem; font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.tier-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem;
}
.tier-card__desc {
  font-size: 0.85rem; color: var(--text-dim);
  margin-bottom: 2rem; line-height: 1.75;
}
.tier-card__features {
  display: flex; flex-direction: column; gap: 0.75rem;
  flex: 1; margin-bottom: 2rem;
}
.tier-card__feat {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; color: var(--text-dim);
}
.tier-card__feat::before {
  content: '✦'; color: var(--accent);
  font-size: 0.6rem; flex-shrink: 0;
}
.tier-card__cta {
  display: flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  transition: all 0.3s;
}
.tier-card__cta--primary {
  background: var(--accent); color: var(--text-dark);
}
.tier-card__cta--primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.tier-card__cta--outline {
  border: 1.5px solid var(--border-light);
  color: var(--text);
}
.tier-card__cta--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

@media (max-width: 900px) {
  .tiers__grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ============================================
   PAPER / METHODOLOGY — oryzo "research paper" style
   ============================================ */
.paper {
  position: relative; z-index: 2;
  padding: clamp(5rem, 10vh, 8rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.paper__inner {
  max-width: 900px; margin: 0 auto;
}
.paper__label {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.paper__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 0.95;
  color: var(--text);
  margin-bottom: 2rem;
}
.paper__links {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.paper__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; color: var(--text-dim);
  transition: all 0.3s;
}
.paper__link:hover { border-color: var(--accent); color: var(--accent-light); }

.paper__block {
  margin-bottom: 2rem;
}
.paper__block-title {
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text); margin-bottom: 0.75rem;
}
.paper__block-text {
  font-size: 0.85rem; color: var(--text-dim);
  line-height: 1.8;
}
.paper__code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem; color: var(--text-dim);
  line-height: 1.8; overflow-x: auto;
  white-space: pre;
}

/* ============================================
   CTA / CONTACT — oryzo "We caught your attention" style
   ============================================ */
.cta {
  position: relative; z-index: 2;
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(5rem, 12vh, 10rem) clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  background: var(--bg);
}
.cta__glow {
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1000px; height: 500px;
  background: radial-gradient(ellipse at center bottom, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px); pointer-events: none;
}
.cta__content { position: relative; z-index: 2; max-width: 900px; }

.cta__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700; line-height: 0.95;
  letter-spacing: -0.02em; color: var(--text);
  margin-bottom: 1.5rem;
}
.cta__heading em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta__sub {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--text-dim); line-height: 1.8;
  max-width: 600px; margin: 0 auto 2.5rem;
}

.cta__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cta__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 2rem; text-align: center;
  border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.3s;
}
.cta__btn--primary {
  background: var(--accent); color: var(--text-dark);
}
.cta__btn--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.cta__btn--outline {
  border: 1.5px solid var(--border-light);
  color: var(--text);
}
.cta__btn--outline:hover {
  border-color: var(--accent); color: var(--accent-light);
}

.cta__info {
  display: flex; justify-content: center;
  gap: clamp(2rem, 5vw, 4rem); flex-wrap: wrap;
}
.cta__info-item { text-align: center; }
.cta__info-label {
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 0.25rem; display: block;
}
.cta__info-val { font-size: 0.85rem; color: var(--accent-light); transition: color 0.3s; }
.cta__info-val a { color: var(--accent-light); }
.cta__info-val a:hover { color: var(--accent); }

/* ============================================
   FOOTER — oryzo-style minimal
   ============================================ */
.footer {
  position: relative; z-index: 2;
  padding: clamp(3rem, 5vh, 4rem) clamp(1.5rem, 4vw, 3rem) clamp(2rem, 3vh, 2.5rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__inner {
  max-width: 1600px; margin: 0 auto;
}
.footer__top {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text); margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.footer__brand-name img { width: 28px; height: 28px; border-radius: 50%; }
.footer__brand-tag {
  font-size: 0.8rem; color: var(--text-muted);
  line-height: 1.6; max-width: 260px;
  margin-bottom: 0.75rem;
}
.footer__dedication {
  font-size: 0.72rem; color: var(--text-dim); /* Slightly brighter than text-muted for visibility */
  line-height: 1.5;
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.5rem;
}
.heart-glow {
  color: var(--accent);
  filter: drop-shadow(0 0 4px var(--accent-glow));
  font-size: 0.8rem;
  animation: heartPulse 1.8s infinite;
}


@keyframes heartPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  15% { transform: scale(1.2); filter: brightness(1.4); }
  30% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(1.2); filter: brightness(1.4); }
  60% { transform: scale(1); filter: brightness(1); }
}
.footer__cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text); margin-bottom: 0.75rem;
}
.footer__link {
  display: block; font-size: 0.8rem;
  color: var(--text-muted); padding: 0.25rem 0;
  transition: color 0.3s;
}
.footer__link:hover { color: var(--accent-light); }

.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
  padding-top: 2rem;
}
.footer__copy { font-size: 0.7rem; color: var(--text-muted); justify-self: start; }
.footer__credit { font-size: 0.7rem; color: var(--text-muted); justify-self: end; }
.footer__credit a { color: var(--accent); font-weight: 600; }

@media (max-width: 768px) {
  .footer__top { flex-direction: column; }
  .footer__bottom { display: flex; flex-direction: column; text-align: center; }
  .footer__dedication { white-space: normal; width: auto; justify-content: center; }
}

/* ============================================
   SCROLL REVEAL UTILITIES — ENHANCED
   ============================================ */
.reveal {
  opacity: 0; transform: translateY(30px); filter: blur(12px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 0.9s ease;
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1; transform: translateY(0); filter: blur(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ============================================
   TEXT ANIMATION PRIMITIVES
   ============================================ */
.char, .word {
  display: inline-block;
  will-change: transform, opacity;
}

/* Gradient shimmer on em/accent text */
.fx-heading em, .big-text-section__heading em {
  background: linear-gradient(90deg, var(--accent), #f8dc78, var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
}
@keyframes textShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ── ORYZO-STYLE TEXT ANIMATIONS ── */

/* Split-line reveal: lines slide up from behind a clip mask */
.anim-line {
  display: block;
  overflow: hidden;
}
.anim-line > span {
  display: inline-block;
  transform: translateY(110%);
  filter: blur(6px);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}
.anim-line.is-visible > span {
  transform: translateY(0);
  filter: blur(0);
}

/* Staggered word fade — each word fades up in sequence */
.anim-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  filter: blur(5px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1), filter 0.7s ease;
}
.anim-word.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Clip-wipe reveal: text clips open like a curtain */
.anim-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-clip.is-visible {
  clip-path: inset(0 0% 0 0);
}

/* Counter roll: numbers roll into view like an odometer */
.anim-counter {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.anim-counter > span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.anim-counter.is-visible > span {
  transform: translateY(0);
}

/* ============================================
   ORYZO-STYLE UNIVERSAL TEXT ANIMATIONS
   ============================================ */

/* ── anim-reveal-up: body text, subtitles — blur fade from below */
.anim-reveal-up {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s ease;
}
.anim-reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ── anim-chars-wrap: container for per-char animations */
.anim-chars-wrap {
  display: inline;
}
.anim-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotateX(-45deg);
  filter: blur(5px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.55s ease;
  transform-origin: center bottom;
}
.anim-char.is-space {
  display: inline;
  width: 0.3em; /* Ensure visible word gap */
  min-width: 0.3em;
}
.anim-chars-wrap.is-visible .anim-char,
.anim-chars-wrap.is-visible .anim-char.is-space {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
  filter: blur(0);
}

/* ── anim-slide-left: elements slide in from left */
.anim-slide-left {
  opacity: 0;
  transform: translateX(-45px);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}
.anim-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* ── anim-slide-right: elements slide in from right */
.anim-slide-right {
  opacity: 0;
  transform: translateX(45px);
  filter: blur(8px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.8s ease;
}
.anim-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* ── anim-fade-scale: subtle scale-up for labels, badges */
.anim-fade-scale {
  opacity: 0;
  transform: scale(0.88) translateY(12px);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.6s ease;
}
.anim-fade-scale.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

/* ── anim-line-wipe: gold underline wipe on section labels */
.anim-line-wipe {
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1), filter 0.5s ease;
}
.anim-line-wipe::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--tc-primary, #c9a227), transparent);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
.anim-line-wipe.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.anim-line-wipe.is-visible::after {
  width: 100%;
}

/* Reduce motion — respect OS preference */
@media (prefers-reduced-motion: reduce) {
  .reveal, .anim-reveal-up, .anim-char, .anim-slide-left,
  .anim-slide-right, .anim-fade-scale, .anim-line-wipe {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .anim-line > span { transform: none !important; filter: none !important; transition: none !important; }
  .anim-chars-wrap .anim-char { opacity: 1 !important; transform: none !important; filter: none !important; }
  .anim-line-wipe::after { width: 100% !important; }
}


/* ============================================
   CARD DEPTH & HOVER EFFECTS
   ============================================ */
.stat-badge, .tier-card, .t-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.stat-badge { transition: all 0.4s cubic-bezier(0.23,1,0.32,1); }
.stat-badge:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 50px rgba(201,162,39,.12), 0 0 30px rgba(201,162,39,.06);
}

.tier-card {
  transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s ease;
}
.tier-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,.3), 0 0 40px rgba(201,162,39,.08);
}

/* Tag hover glow */
.fx-tags span {
  transition: all 0.3s ease;
  cursor: default;
}
.fx-tags span:hover {
  background: rgba(201,162,39,.15);
  border-color: rgba(201,162,39,.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201,162,39,.1);
}

/* Minicard float */
.fx-minicard {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.fx-minicard:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 30px rgba(201,162,39,.08);
}

/* ============================================
   CHATBOT VARIABLE OVERRIDES
   ============================================ */
:root {
  --tc-primary: var(--accent);
  --tc-primary-dark: var(--accent-dark);
  --tc-primary-light: var(--accent-subtle);
  --tc-surface: #0f0f0f;
  --tc-surface-msg: #111111;
  --tc-text: var(--text);
  --tc-text-muted: var(--text-muted);
  --tc-user-msg-bg: var(--accent);
  --tc-user-msg-text: var(--text-dark);
  --tc-border: var(--border);
  --tc-font: var(--font-body);
  --tc-font-serif: var(--font-display);
  --color-bg: var(--bg);
  --color-amber: var(--accent);
  --color-amber-dark: var(--accent-dark);
}

/* ============================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   ============================================ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  .fx-section { min-height: auto; padding: clamp(3rem,8vh,6rem) clamp(1.5rem,4vw,3rem); }
  .fx-grid { gap: 2rem; }
  .fx-heading { font-size: clamp(1.8rem,3.5vw,2.8rem); }
  .fx-visual { min-height: 250px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  /* Hero */
  .hero { min-height: 100svh; padding-bottom: 2rem; }
  .hero__content { flex-direction: column; gap: 1.5rem; }
  .hero__title { font-size: clamp(2rem,8vw,3.5rem); }
  .hero__desc { font-size: 0.85rem; max-width: 90%; }
  .hero__right { text-align: left; }
  .hero__badge { font-size: 0.6rem; padding: 8px 16px; }

  /* FX Sections */
  .fx-section { min-height: auto; padding: 3rem 1.25rem; }
  .fx-grid { grid-template-columns: 1fr !important; gap: 2rem; }
  .fx-grid--reverse { direction: ltr; }
  .fx-heading { font-size: clamp(1.5rem,6vw,2.2rem); }
  .fx-body { font-size: 0.85rem; }
  .fx-label { font-size: 0.55rem; }
  .fx-visual { min-height: 180px; order: -1; }
  .fx-devices { flex-direction: column; align-items: center; }
  .fx-tags span { font-size: 0.6rem; padding: 0.3rem 0.7rem; }

  /* Big Text Sections */
  .big-text-section { min-height: 40vh; padding: 4rem 1.25rem; }
  .big-text-section__heading { font-size: clamp(1.5rem,7vw,2.5rem); }
  .big-text-section__sub { font-size: 0.85rem; max-width: 95%; }

  /* Stats */
  .stats-row { padding: 3rem 1.25rem; }
  .stats-row__track { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .stat-badge { flex: 0 0 calc(50% - 0.5rem); min-width: auto; padding: 1rem; }
  .stat-badge__val { font-size: 1.2rem; }

  /* Testimonials */
  .testimonials { padding: 3rem 0; }
  .testimonials__track { justify-content: flex-start; padding: 0 1.25rem 1.5rem; scroll-padding-left: 1.25rem; }
  .t-card { flex: 0 0 85vw; min-width: 0; }

  /* Tiers */
  .tiers { padding: 3rem 1.25rem; }
  .tiers__grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .tier-card { padding: 1.5rem; }

  /* Paper / Methodology */
  .paper { padding: 3rem 1.25rem; }
  .paper__inner { padding: 2rem 1.25rem; }
  .paper__title { font-size: clamp(1.5rem,5vw,2.2rem); }
  .paper__code { font-size: 0.6rem; overflow-x: auto; }

  /* CTA */
  .cta { min-height: 60vh; padding: 4rem 1.25rem; }
  .cta__heading { font-size: clamp(1.5rem,6vw,2.5rem); }
  .cta__actions { flex-direction: column; gap: 0.75rem; }
  .cta__btn { width: 100%; text-align: center; }
  .cta__info { flex-direction: column; gap: 1rem; }

  /* Footer */
  .footer__top { flex-direction: column; gap: 2rem; }
  .footer__cols { flex-direction: column; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer__dedication { order: -1; }
  .footer__copy { order: 0; }
  .footer__credit { order: 1; }

  /* Navigation */
  .nav__links { display: none; }
  .nav__cta { display: none; }

  /* Mobile menu: show Book a Call */
  .mob-menu .nav__cta {
    display: inline-flex;
    font-size: clamp(0.85rem, 3vw, 1rem);
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 999px;
  }

  /* Medallion: better visibility on mobile */
  #three-canvas { opacity: 1 !important; }

  /* Gradient glows: reduce for perf */
  .fx-glow::before { filter: blur(80px) !important; width: 300px !important; height: 300px !important; }

  /* Datacards: hide on mobile */
  .fx-datacard { display: none; }

  /* Cursor trail: hide on touch */
  #cursorTrail { display: none; }

  /* Animation perf: simplify heavy effects and prevent iOS blur locking on mobile */
  .anim-char {
    transform: translateY(16px);
    filter: none !important;
    -webkit-filter: none !important;
    transition: opacity 0.45s ease, transform 0.45s ease !important;
  }
  .anim-reveal-up {
    filter: none !important;
    -webkit-filter: none !important;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease !important;
  }
  .anim-word {
    filter: none !important;
    -webkit-filter: none !important;
    transition: opacity 0.65s ease, transform 0.65s ease !important;
  }
  .reveal, .anim-line-wipe, .big-text-section__sub, .paper__block, .tier-card__name, .big-text-section__heading {
    filter: none !important;
    -webkit-filter: none !important;
    will-change: opacity, transform !important;
  }
  /* Disable 3D transforms on mobile — no GPU cost */
  .stat-badge, .tier-card, .t-card { transform-style: flat; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  .hero__title { font-size: clamp(1.6rem,9vw,2.5rem); }
  .hero__sub { font-size: 0.6rem; }
  .big-text-section__heading { font-size: clamp(1.3rem,8vw,2rem); }
  .fx-heading { font-size: clamp(1.3rem,7vw,1.8rem); }
  .stat-badge { flex: 0 0 100%; }
  .t-card { flex: 0 0 88vw; min-width: 0; }
  .cta__heading { font-size: clamp(1.3rem,7vw,2rem); }
  .faq-section__title { font-size: 1.3rem; }
  .faq-item__q { font-size: 0.85rem; padding: 1rem 2.5rem 1rem 1rem; }
  .faq-item__a { font-size: 0.8rem; padding: 0 1rem 1rem; }
}

/* ============================================
   FAQ SECTION — Premium Accordion Styling
   ============================================ */
.faq-section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.faq-section__inner { width: 100%; }
.faq-section__header { text-align: center; margin-bottom: 3rem; }
.faq-section__label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.faq-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 0.95;
  color: var(--text);
}
.faq-section__grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}
.faq-item[open] {
  border-color: var(--border-light);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.04);
}
.faq-item__q {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 1.25rem 3rem 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s;
  line-height: 1.5;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { display: none; content: ''; }
.faq-item__q::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-item__q::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item__q:hover { color: var(--accent-light); }
.faq-item__a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-dim);
  padding: 0 1.5rem 1.5rem;
  animation: faqSlideIn 0.3s var(--ease) forwards;
}
@keyframes faqSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* FAQ responsive */
@media (max-width: 768px) {
  .faq-section { padding: 4rem 1.25rem; }
  .faq-item__q { font-size: 0.88rem; padding: 1rem 2.5rem 1rem 1.25rem; }
  .faq-item__a { font-size: 0.82rem; padding: 0 1.25rem 1.25rem; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .char, .word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .anim-line > span, .anim-counter > span { transform: none !important; }
  .anim-word { opacity: 1 !important; transform: none !important; filter: none !important; }
  .anim-clip { clip-path: none !important; }
}

/* --- SCRAMBLE VISIBILITY FIX --- */
/* Scoped to scramble elements ONLY — must NOT touch .anim-chars-wrap
   which has its own per-char animation system */
[id*="scramble"] span, .scramble-span {
  display: inline-block !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ═══════════════════════════════════════════════
   MEDALLION INTERACTION SYSTEM
   ═══════════════════════════════════════════════ */

/* ── Cursor states during interaction ── */
body.medallion-dragging,
body.medallion-dragging * { cursor: grabbing !important; }
body.medallion-resizing,
body.medallion-resizing * { cursor: nwse-resize !important; }

/* ── Medallion Tooltip — Dramatic Glassmorphism Bubble ── */
.medallion-tooltip {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(15px) scale(0.85);
  transition: opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: opacity, transform;
}

.medallion-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.medallion-tooltip.dismissing {
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* The Glass Bubble */
.medallion-tooltip__bubble {
  position: relative;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: 16px;
  padding: 1.2rem 1.8rem;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 162, 39, 0.15);
  text-align: center;
}

/* Traveling glow on border (Niva toast effect) */
.medallion-tooltip__bubble::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: 17px;
  background: conic-gradient(
    from var(--glow-angle, 0deg),
    transparent 0%,
    rgba(201,162,39,.35) 8%,
    rgba(201,162,39,.7) 12%,
    rgba(201,162,39,.35) 16%,
    transparent 25%,
    transparent 100%
  );
  z-index: -1; pointer-events: none;
  animation: borderGlowTravel 4s linear infinite;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor; -webkit-mask-composite: xor;
  padding: 1.5px;
}
@property --glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes borderGlowTravel {
  to { --glow-angle: 360deg; }
}

/* Ambient outer glow pulse (Niva toast effect) */
.medallion-tooltip__bubble::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 20px; background: transparent;
  box-shadow: 0 0 25px rgba(201,162,39,.08);
  z-index: -2; pointer-events: none;
  animation: toastAmbient 3s ease-in-out infinite alternate;
}
@keyframes toastAmbient {
  0% { box-shadow: 0 0 20px rgba(201,162,39,.04); }
  100% { box-shadow: 0 0 40px rgba(201,162,39,.15); }
}

/* Text styles */
.medallion-tooltip__title {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
  background: linear-gradient(90deg, rgba(201,162,39,1), #f8dc78, rgba(201,162,39,1));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  animation: textShimmer 3.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(201,162,39,0.3));
}

.medallion-tooltip__text {
  font-family: 'Caveat', 'Permanent Marker', cursive;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 10px rgba(201, 162, 39, 0.6);
  line-height: 1.5;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: block;
  white-space: nowrap; /* Force exactly two lines total (1 for block title, 1 for block text) */
}

.medallion-tooltip.visible .medallion-tooltip__text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s; /* reduced delay */
}

/* Device-specific text */
.medallion-tooltip__text--desktop { display: none; }
.medallion-tooltip__text--mobile { display: inline-block; }

@media (min-width: 769px) {
  .medallion-tooltip__text--desktop { display: inline-block; }
  .medallion-tooltip__text--mobile { display: none; }
  
  /* Desktop: keep bubble to the right of the medallion */
  .medallion-tooltip {
    top: 50%;
    right: 2vw; /* Right edge of the screen, next to the right-aligned medallion */
    left: auto;
    transform: translateY(-50%) scale(0.85);
    width: max-content;
    max-width: none;
  }
  .medallion-tooltip.visible {
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 768px) {
  /* Mobile: Center EXACT over the medallion, ensure wide bubble to prevent squishing */
  .medallion-tooltip {
    top: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 96vw;
    text-align: center;
    transform: translateY(-50%) scale(0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .medallion-tooltip.visible {
    transform: translateY(-50%) scale(1);
  }
}

/* ── Reduced Motion for medallion tooltip ── */
@media (prefers-reduced-motion: reduce) {
  .medallion-tooltip__path,
  .medallion-tooltip__head {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none !important;
  }
  .medallion-tooltip__dot { animation: none !important; opacity: 0.4; }
  .medallion-tooltip__text { transition: none !important; opacity: 1; transform: none; }
  .medallion-tooltip.visible { animation: none !important; }
  body.medallion-dragging,
  body.medallion-resizing { cursor: default !important; }
}

/* ═══════════════════════════════════════════════
   COOKIE CONSENT BANNER (GDPR / CCPA)
   ═══════════════════════════════════════════════ */
.tc-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  padding: 1rem;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  visibility: hidden; /* GSAP reveals this */
}
.tc-cookie-banner__inner {
  background: rgba(10, 10, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  /* NO overflow:hidden — it causes webkit stacking context bug with backdrop-filter
     that traps z-index:-1 pseudo-elements, hiding banner content on iOS Safari */
  border-radius: 20px;
  padding: 1.5rem 2rem;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  position: relative;
  /* Animated gold border — works on all browsers, no @property / mask-composite needed */
  border: 1.5px solid transparent;
  background-clip: padding-box;
  animation: cookieBorderPulse 3s ease-in-out infinite alternate;
}
@keyframes cookieBorderPulse {
  0%  { box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1.5px rgba(201,162,39,0.15); }
  50% { box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1.5px rgba(201,162,39,0.5), 0 0 20px rgba(201,162,39,0.1); }
  100%{ box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1.5px rgba(201,162,39,0.15); }
}
/* Sweep shimmer line across the banner — universal, no webkit hacks */
.tc-cookie-banner__inner::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,162,39,0.06), transparent);
  animation: cookieSweep 6s ease-in-out infinite;
  pointer-events: none;
  border-radius: 20px;
}
@keyframes cookieSweep {
  0%   { left: -60%; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}

.tc-cookie-banner__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tc-cookie-banner__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0;
}
.tc-cookie-banner__text {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}
.tc-cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.tc-cookie-banner__btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Space Grotesk', sans-serif;
  position: relative;
  overflow: hidden;
}
/* Sweep shimmer on hover for buttons */
.tc-cookie-banner__btn::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0s;
  pointer-events: none;
}
.tc-cookie-banner__btn:hover::after {
  left: 150%;
  transition: left 0.55s ease;
}
.tc-btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}
.tc-btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.tc-btn--primary {
  background: #c9a227;
  border: 1px solid #c9a227;
  color: #000;
  font-weight: 700;
}
.tc-btn--primary:hover {
  background: #f0d060;
  border-color: #f0d060;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(201, 162, 39, 0.4), 0 4px 16px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
  .tc-cookie-banner {
    padding: 2rem;
  }
  .tc-cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .tc-cookie-banner__actions {
    flex-shrink: 0;
  }
}

/* ═══════════════════════════════════════════════
   COOKIE MANAGE MODAL
   ═══════════════════════════════════════════════ */
.tc-cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.tc-cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.tc-cookie-modal-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}
.tc-cookie-modal {
  position: relative;
  z-index: 1;
  background: rgba(10, 10, 14, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(30px) scale(0.97);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  /* NO overflow:hidden — same webkit stacking bug as banner */
  animation: modalBorderPulse 4s ease-in-out infinite alternate;
}
@keyframes modalBorderPulse {
  0%  { box-shadow: 0 40px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px rgba(201,162,39,0.12); }
  50% { box-shadow: 0 40px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1.5px rgba(201,162,39,0.4), 0 0 24px rgba(201,162,39,0.08); }
  100%{ box-shadow: 0 40px 80px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 0 1px rgba(201,162,39,0.12); }
}
.tc-cookie-modal-overlay.open .tc-cookie-modal {
  transform: translateY(0) scale(1);
}

.tc-cookie-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}
.tc-cookie-modal__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.2;
}
.tc-cookie-modal__title span {
  background: linear-gradient(135deg, #c9a227, #f0d060);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tc-cookie-modal__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.tc-cookie-modal__close:hover {
  border-color: rgba(201,162,39,0.4);
  color: #c9a227;
  background: rgba(201,162,39,0.08);
}
.tc-cookie-modal__close svg {
  width: 14px; height: 14px;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Cookie category rows */
.tc-cookie-modal__cats {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tc-cookie-cat {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s ease;
}
.tc-cookie-cat:last-child { border-bottom: none; }
.tc-cookie-cat__info { flex: 1; min-width: 0; }
.tc-cookie-cat__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tc-cookie-cat__badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  background: rgba(201,162,39,0.15);
  color: #c9a227;
  border: 1px solid rgba(201,162,39,0.25);
}
.tc-cookie-cat__badge--locked {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.1);
}
.tc-cookie-cat__desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

/* Toggle Switch */
.tc-toggle {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 26px;
  margin-top: 2px;
}
.tc-toggle input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.tc-toggle__track {
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.tc-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), background 0.3s ease;
}
.tc-toggle input:checked + .tc-toggle__track {
  background: rgba(201,162,39,0.25);
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 0 12px rgba(201,162,39,0.2);
}
.tc-toggle input:checked + .tc-toggle__track::after {
  transform: translateX(22px);
  background: #c9a227;
  box-shadow: 0 0 8px rgba(201,162,39,0.5);
}
.tc-toggle--locked .tc-toggle__track {
  cursor: not-allowed;
  opacity: 0.6;
}
.tc-toggle--locked input:checked + .tc-toggle__track {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  box-shadow: none;
}
.tc-toggle--locked input:checked + .tc-toggle__track::after {
  background: rgba(255,255,255,0.6);
  box-shadow: none;
}

/* Modal footer actions */
.tc-cookie-modal__footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.tc-cookie-modal__footer .tc-cookie-banner__btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tc-cookie-banner__inner,
  .tc-cookie-banner__inner::after,
  .tc-cookie-modal {
    animation: none !important;
  }
  .tc-cookie-banner__btn::after { display: none; }
}

