/* ==========================================================================
   AERA BY AMALFI LABS - DESIGN SYSTEM & MASTER STYLESHEET
   ========================================================================== */

@font-face {
  font-family: 'FKGrotesk';
  src: url('assets/fonts/FKGrotesk-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FKGrotesk';
  src: url('assets/fonts/FKGrotesk-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color Palette (Sampled from Aera Logo) */
  --bg-black: #08090b;
  --bg-card: #101217;
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --text-white: #ffffff;
  --text-gray: #9ba1a6;
  --text-dim: #5c6269;
  --accent-blue: #93CFF8;
  --accent-blue-secondary: #91B0FA;
  --accent-blue-light: #ADD0EF;
  --accent-blue-highlight: #D0E8FA;
  --accent-blue-deep: #2E3E50;
  --accent-blue-glow: rgba(147, 207, 248, 0.45);
  
  --brand-gradient: linear-gradient(135deg, #93CFF8 0%, #91B0FA 45%, #A0B4F5 75%, #B8C8F8 100%);
  --brand-gradient-alt: linear-gradient(120deg, #8ECCFA 0%, #91B0FA 40%, #97A7E4 70%, #B0B8F0 100%);
  --brand-glow: 0 0 12px rgba(147, 207, 248, 0.6), 0 0 30px rgba(145, 176, 250, 0.35);
  --border-light: #2e2e2e;
  --border-subtle: rgba(255, 255, 255, 0.12);
  
  /* Typography Tokens */
  --font-heading: 'FKGrotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout Spacing */
  --header-height: 90px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  /* Exponential Smooth Motion Transition */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Core Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-black);
  color: var(--text-white);
  overflow-x: hidden;
  width: 80%;
  margin: 0 auto;
}

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.text-center {
  text-align: center;
}

.overflow-hidden {
  overflow: hidden;
}

/* Typography Utility Classes */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-white);
  line-height: 1.15;
}

.sub-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Buttons System (Liquid Metal Brand Animated Border) */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Liquid Metal Animated Border Ring using Aera Brand Colors (#237bff, #ffffff, #101217) */
.button::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-pill);
  padding: 2px;
  background: linear-gradient(115deg, #237bff 0%, #ffffff 30%, #101217 50%, #237bff 75%, #ffffff 100%);
  background-size: 250% 250%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: liquidMetalSweep 4s ease-in-out infinite alternate;
  opacity: 0.85;
  transition: opacity 0.4s ease, filter 0.4s ease;
}

@keyframes liquidMetalSweep {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.button:hover::before {
  opacity: 1;
  animation-duration: 1.8s;
  filter: drop-shadow(0 0 10px rgba(35, 123, 255, 0.7));
}

.button--white {
  background: linear-gradient(180deg, #ffffff 0%, #e6e8ec 100%);
  color: var(--bg-black);
  border: none;
}

.button--white:hover {
  background: #ffffff;
  color: var(--bg-black);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(35, 123, 255, 0.35);
}

.button--outline-white {
  background: rgba(16, 18, 23, 0.85);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  border: none;
}

.button--outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(35, 123, 255, 0.35);
}

.button--primary {
  background: var(--brand-gradient) !important;
  color: #08090b !important;
  font-weight: 700 !important;
  border: none;
  box-shadow: 0 10px 30px rgba(147, 207, 248, 0.4) !important;
}

.button--primary:hover {
  background: var(--brand-gradient-alt) !important;
  box-shadow: 0 14px 40px rgba(147, 207, 248, 0.6) !important;
  transform: translateY(-2px) scale(1.02);
}

.button--primary:hover {
  background-color: #1a62d6;
  box-shadow: 0 10px 30px var(--accent-blue-glow);
  transform: translateY(-2px) scale(1.02);
}

.w-100 {
  width: 100%;
}

/* ==========================================================================
   STICKY NAVBAR HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(8, 9, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.site-header .container {
  width: 80%;
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.header-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Custom Language Selector Dropdown */
.lang-selector-dropdown {
  position: relative;
  z-index: 100;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  color: var(--text-white);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-subtle);
}

.lang-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-code {
  letter-spacing: 0.5px;
}

.lang-chevron {
  transition: transform var(--transition-fast);
}

.lang-selector-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #111318;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 8px 0;
  width: 140px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none;
  z-index: 1001;
}

.lang-selector-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-gray);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-option:hover, .lang-option.active {
  background: rgba(35, 123, 255, 0.15);
  color: var(--text-white);
}

/* RTL Layout Styles for Arabic (ar) */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .header-left {
  flex-direction: row-reverse;
}

[dir="rtl"] .lang-dropdown-menu {
  left: auto;
  right: 0;
}

.header-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 3-Dot to X Morphing Button (Exponential Motion Easing) */
.dots-morph-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dots-morph-btn .dot {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: var(--text-white);
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Initial 3-Dot Horizontal State */
.dots-morph-btn .dot-1 { transform: translateX(-10px); }
.dots-morph-btn .dot-2 { transform: translateX(0px); }
.dots-morph-btn .dot-3 { transform: translateX(10px); }
.dots-morph-btn .dot-4 { opacity: 0; transform: translateY(0); }

/* Active Morphed X State */
.dots-morph-btn.active {
  transform: rotate(45deg);
}

.dots-morph-btn.active .dot-1 { transform: translateY(-9px); }
.dots-morph-btn.active .dot-2 { transform: translateY(9px); }
.dots-morph-btn.active .dot-3 { transform: translateX(-9px); }
.dots-morph-btn.active .dot-4 { opacity: 1; transform: translateX(9px); }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.whatsapp-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition-fast);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.whatsapp-nav-link:hover {
  color: #25d366;
  transform: translateY(-1px);
}

.whatsapp-icon-svg {
  fill: currentColor;
  flex-shrink: 0;
  transition: fill var(--transition-fast);
}

/* Full-Screen Navigation Overlay (Exact Match to Screenshot) */
.nav-overlay-fullscreen {
  position: fixed;
  inset: 0;
  background: #0d0d0d;
  z-index: 990;
  display: flex;
  flex-direction: column;
  padding-top: 130px;
  padding-bottom: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.nav-overlay-fullscreen.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.nav-overlay-body {
  display: flex;
  flex-direction: column;
}

.menu-row {
  border-bottom: 1px solid #2e2e2e;
  padding: 36px 0;
}

.menu-main-link {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  transition: color var(--transition-fast);
  display: inline-block;
}

.menu-main-link:hover {
  color: var(--accent-blue);
}

/* Features 2-Column Row Layout */
.menu-row-features {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.menu-sublinks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 10px;
}

.menu-sublinks a {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-white);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.menu-sublinks a:hover {
  color: var(--accent-blue);
  transform: translateX(6px);
}

/* ==========================================================================
   HERO / INTRO SECTION
   ========================================================================== */
.section-hero {
  position: relative;
  padding-top: 190px;
  padding-bottom: 60px;
  background-color: var(--bg-black);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.scroll-down {
  margin-top: 40px;
}

.scroll-chevron-svg {
  color: var(--accent-blue);
}

.angle {
  animation: chevronPulse 2s infinite ease-in-out;
}
.angle--1 { animation-delay: 0s; }
.angle--2 { animation-delay: 0.3s; }
.angle--3 { animation-delay: 0.6s; }

@keyframes chevronPulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

.hero-grid-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
}

.hero-subtext {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #ffffff;
  max-width: 580px;
}

.hero-video-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid var(--border-light);
  transform: scale(0.93);
  transform-origin: center center;
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-showcase-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 480px;
}

.mobile-video { display: none; }
.desktop-video { display: block; }

/* ==========================================================================
   SECTION 2: SCROLL-DRIVEN WORD OPACITY REVEAL ANIMATION
   ========================================================================== */
.section-scroll-reveal {
  padding: 120px 0;
  background-color: var(--bg-black);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.reveal-text-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.reveal-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.reveal-word, .reveal-word-2 {
  display: inline-block;
  opacity: 0.35;
  color: rgba(255, 255, 255, 0.45);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-right: 0.22em;
}

.reveal-word.lit, .reveal-word-2.lit {
  opacity: 1 !important;
  color: #ffffff !important;
}

.reveal-word.word-blue.lit, .reveal-word-2.word-blue.lit, .word-blue {
  background: var(--brand-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: var(--brand-glow) !important;
  opacity: 1 !important;
}

/* ==========================================================================
   SECTION 3: DELIVER EXTRAORDINARY SALES EXPERIENCE (Screenshot 1 Match)
   ========================================================================== */
.section-sales {
  padding: 100px 0;
  background-color: var(--bg-black);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
}

.sales-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}

.sales-main-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.sales-col-right {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.sales-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sales-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.12rem;
  color: #ffffff;
  line-height: 1.6;
}

.sales-bullets-list li span {
  color: #ffffff;
}

.blue-dot {
  color: var(--accent-blue);
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}

/* Clean 3-Column Stats Row Below Bullets */
.sales-stats-clean-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 30px 0 0 0;
  border-top: 1px solid var(--border-light);
}

.stat-clean-col {
  padding: 0 24px;
  border-right: 1px solid var(--border-light);
}

.stat-clean-col:first-child {
  padding-left: 0;
}

.stat-clean-col:last-child {
  border-right: none;
  padding-right: 0;
}

.stat-clean-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.stat-clean-label {
  font-size: 0.95rem;
  color: var(--text-gray);
}

/* ==========================================================================
   SECTION 4: iPad 3D STICKY PINNING, TEXT REVEAL & FADE TO BLACK (User Spec)
   ========================================================================== */
.section-ipad-sticky {
  position: relative;
  height: 260vh; /* Scroll track for pinning */
  background-color: #000;
}

.ipad-sticky-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
  z-index: 10;
}

.ipad-device-frame {
  position: relative;
  width: 88%;
  max-width: 1240px;
  height: 75vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  border: 1px solid var(--border-light);
  transform: scale(0.70);
  transform-origin: center center;
  transition: transform 0.05s ease-out;
  will-change: transform;
}

.ipad-screen-bezel {
  width: 100%;
  height: 100%;
  background: #000;
  padding: 8px;
  border-radius: 28px;
}

.ipad-showcase-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
  pointer-events: none;
  touch-action: pan-y;
}

.hero-showcase-video,
.viewer-video,
.tab-pane-video {
  pointer-events: none;
  touch-action: pan-y;
}

.ipad-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.45);
  padding: 40px;
  z-index: 15;
}

.second-reveal-wrap {
  margin: 0 auto;
}

.fade-black-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 25;
  transition: opacity 0.1s linear;
}

/* ==========================================================================
   SECTION 5: KEY FEATURES SECTION (Exact Match to Screenshot 2)
   ========================================================================== */
.section-features {
  padding: 120px 0;
  background-color: var(--bg-black);
}

.features-header {
  margin-bottom: 60px;
}

.key-section-head {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

/* Tab Navigation Bar (Exact 5-Column Grid matching Screenshot 2) */
.tab__nav {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin: 0 auto 70px auto;
  padding: 0;
  width: 100%;
  max-width: 1280px;
}

.tab__item {
  width: 100%;
}

.tab__link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  cursor: pointer;
}

.tab__link:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.06);
}

.tab__link.active {
  background: var(--brand-gradient) !important;
  border-color: #93CFF8 !important;
  color: #08090b !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 28px rgba(147, 207, 248, 0.45) !important;
}

.tab__link.active .tab__text {
  color: #08090b !important;
  font-weight: 700 !important;
}

.tab__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.tab__link.active .tab__icon {
  background: rgba(8, 9, 11, 0.2) !important;
  color: #08090b !important;
}

.tab__text {
  line-height: 1.25;
  text-align: left;
}

.tab-pane {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
}

.tab-pane.active {
  display: block;
  opacity: 1;
}

.tab-pane__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 40px;
}

.tab-heading {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.18;
  color: var(--text-white);
}

.tab-desc, .tab-pane-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 48px !important;
  line-height: 1.7;
}

.tab-pane-content .button, .tab-pane__text .button {
  margin-top: 24px !important;
  margin-bottom: 48px !important;
}

/* Tablet Device Frame & Screen Containment */
.tablet-device-frame {
  position: relative;
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0d0e12;
  border: 2px solid #2a2d35;
  padding: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.tablet-screen-bezel {
  padding: 0;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
}

.interactive-viewer {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  border-radius: 24px;
  background: #08090b;
  cursor: default !important;
}

.viewer-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
  cursor: default !important;
}

.tablet-device-frame,
.tablet-screen-bezel,
.viewer-video,
.tab-pane-video,
.tab-pane-visual,
.tab-pane-grid,
.tab-pane-content {
  cursor: default !important;
}

.btn-try-3d-experience,
.btn-request-contact {
  cursor: pointer !important;
}

/* Features Pagination Navigator Positioned Below Button */
.features-paginator-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.tab-paginator-control {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 0;
}

.paginator-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color var(--transition-fast);
  display: inline-flex;
  gap: 3px;
}

.paginator-btn:hover {
  color: var(--text-white);
}

.paginator-counter {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 0.12em;
}

/* ==========================================================================
   SECTION 6: ACCELERATE SALES SECTION
   ========================================================================== */
.section-drive {
  padding: 100px 0;
  background-color: var(--bg-black);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.drive-title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

.drive-3col-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.drive-col-box {
  padding: 50px 30px;
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.drive-col-box:last-child {
  border-right: none;
}

.powered-label-sm {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.unreal-engine-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.unreal-logo {
  height: 54px;
  width: auto;
}

.unreal-text {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-gray);
}

.stat-large-val {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  font-style: italic;
}

.stat-large-lbl {
  font-size: 1rem;
  color: var(--text-gray);
}

/* ==========================================================================
   CONTACT FORM & FOOTER
   ========================================================================== */
.contact-form {
  padding: 100px 0;
  background-color: var(--bg-black);
}

.form-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px auto;
}

.form-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.form-subtext {
  font-size: 1.1rem;
  color: var(--text-gray);
}

.lead-form {
  max-width: 900px;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col-md-6 {
  width: 50%;
  padding: 0 12px;
}

.col-12 {
  width: 100%;
  padding: 0 12px;
}

.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-blue);
  background-color: rgba(255, 255, 255, 0.07);
}

textarea.form-control {
  resize: vertical;
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ff4d4d;
  margin-top: 6px;
}

.contact-form__btn {
  text-align: center;
  margin-top: 10px;
}

.site-footer {
  padding: 80px 0 40px 0;
  background-color: #050607;
  border-top: 1px solid var(--border-light);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand-logos-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.footer-logo-img {
  max-height: 46px;
  height: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0.95);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.footer-logo-img.main-logo {
  max-height: 48px;
}

.footer-logo-img.hna-logo {
  max-height: 42px;
}

.footer-logo-img.spiral-logo {
  filter: invert(1) brightness(1.2);
  max-height: 42px;
}

.footer-logo-img.amalfi-logo {
  max-height: 44px;
}

.footer-logo-img:hover {
  transform: none;
}

.footer-tagline {
  color: var(--text-gray);
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-link {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link a {
  color: var(--text-gray);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-link a:hover {
  color: var(--accent-blue);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.newsletter-form .form-control {
  padding: 12px 16px;
}

.btn-send {
  padding: 12px 24px;
  background-color: var(--accent-blue);
  color: var(--text-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-send:hover {
  background-color: #1a62d6;
}

.social-links-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 3000;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop:not(.active),
.modal-backdrop:not(.active) * {
  display: none !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #111318;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.modal-card-cal {
  max-width: 860px;
  width: 92%;
  padding: 20px;
  background: #111318;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  position: relative;
}

.modal-card-3d {
  max-width: 1320px;
  width: 96vw;
  height: 88vh;
  padding: 12px;
  background: #0b0f19;
  border-radius: 20px;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-card-3d {
  transform: scale(1) translateY(0);
}

.modal-iframe-wrap {
  width: 100%;
  height: 650px;
  border-radius: 16px;
  overflow: hidden;
}

.modal-iframe-wrap-3d {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  touch-action: none;
}

.modal-iframe-wrap-3d iframe {
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.modal-backdrop.active .modal-iframe-wrap-3d iframe {
  pointer-events: auto !important;
  touch-action: none !important;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: var(--text-gray);
  line-height: 1;
}

.modal-header {
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.modal-header p {
  color: var(--text-gray);
  font-size: 0.95rem;
}

/* Scroll Animations */
.animate-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-up.in-view, .section-hero .animate-up {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    padding: 0 28px;
  }
}

@media (max-width: 1024px) {
  body {
    width: 92%;
  }

  .site-header .container {
    width: 92%;
  }

  .tab__nav {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
  }

  .tab__item {
    flex-shrink: 0;
  }
}

@media (max-width: 992px) {
  .site-header {
    padding: 16px 0;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .header-left {
    gap: 8px;
  }

  .header-center {
    display: none !important;
  }

  .header-right {
    gap: 6px;
  }

  .whatsapp-nav-link {
    padding: 4px 6px;
    margin: 0;
  }

  .whatsapp-text {
    display: none !important;
  }

  .brand-logo {
    height: 52px;
  }

  .section-hero {
    padding-top: 160px;
    padding-bottom: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sales-2col-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sales-stats-clean-row {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0 0 0;
  }

  .stat-clean-col {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
  }

  .stat-clean-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .tab-pane__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .drive-3col-grid {
    grid-template-columns: 1fr;
  }

  .drive-col-box {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    padding: 36px 20px;
  }

  .drive-col-box:last-child {
    border-bottom: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .menu-row-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .desktop-video { display: none; }
  .mobile-video { display: block; }

  .section-ipad-sticky {
    height: 160vh;
    touch-action: pan-y;
  }

  .ipad-sticky-pin,
  .ipad-device-frame,
  .ipad-screen-bezel {
    touch-action: pan-y;
  }

  .whatsapp-text {
    display: none !important;
  }

  .modal-backdrop#experience-3d-modal {
    padding: 0;
  }

  .modal-card-3d {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 0;
  }

  .modal-iframe-wrap-3d {
    border-radius: 0;
    -webkit-overflow-scrolling: touch;
  }

  #modal-3d-close-btn {
    top: 14px;
    right: 14px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .mobile-swipe-hint,
  .mobile-swipe-dots {
    display: flex;
  }

  .tab-container {
    touch-action: pan-y;
  }
}

.mobile-swipe-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: swipePulseHint 2s infinite ease-in-out;
}

@keyframes swipePulseHint {
  0%, 100% { opacity: 0.7; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-4px); }
}

.mobile-swipe-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.swipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.swipe-dot.active {
  width: 28px;
  border-radius: 12px;
  background: var(--accent-blue);
  box-shadow: 0 0 12px var(--accent-blue-glow);
}

@media (max-width: 576px) {
  body {
    width: 100%;
  }

  .site-header .container {
    width: 100%;
    padding: 0 18px;
  }

  .container {
    padding: 0 18px;
  }

  .brand-logo {
    height: 44px;
  }

  .header-right .button {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  .section-hero {
    padding-top: 135px;
  }

  .col-md-6 {
    width: 100%;
  }

  .tab__link {
    padding: 10px 18px;
    font-size: 0.85rem;
  }

  .interactive-viewer {
    height: 280px;
  }

  .menu-main-link {
    font-size: 2.2rem;
  }

  .stat-large-val {
    font-size: 2.2rem;
  }
}

/* ==========================================================================
   FOOTER LEGAL LINKS & BOTTOM BAR
   ========================================================================== */
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-legal-link {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-legal-link:hover,
.footer-legal-link.active {
  color: var(--accent-blue);
}

.footer-legal-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

/* ==========================================================================
   LEGAL PAGES (Privacy Policy, Terms, Cookies)
   ========================================================================== */
.legal-page {
  background-color: var(--bg-black);
  color: var(--text-white);
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  transition: all var(--transition-fast);
}

.legal-back-btn:hover {
  background: rgba(35, 123, 255, 0.15);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateX(-4px);
}

.legal-main {
  padding-top: 140px;
  padding-bottom: 100px;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.legal-hero {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 60px auto;
}

.legal-title {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 12px 0 20px 0;
}

.legal-subtitle {
  font-size: 1.15rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.legal-meta-bar a {
  color: var(--accent-blue);
  text-decoration: underline;
}

.btn-manage-cookies-inline {
  background: rgba(35, 123, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(35, 123, 255, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-manage-cookies-inline:hover {
  background: var(--accent-blue);
  color: #ffffff;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  background: rgba(17, 19, 24, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.legal-toc h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.legal-toc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-toc a {
  font-size: 0.88rem;
  color: var(--text-gray);
  transition: color var(--transition-fast);
  line-height: 1.4;
  display: block;
}

.legal-toc a:hover {
  color: #ffffff;
}

.legal-content {
  background: #0d0f14;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 48px;
}

.legal-section {
  margin-bottom: 48px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section p {
  color: #c5cbd8;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-section ul {
  margin-left: 20px;
  margin-bottom: 18px;
  color: #c5cbd8;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 10px;
}

.legal-highlight-box {
  background: rgba(35, 123, 255, 0.06);
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-highlight-box p {
  margin-bottom: 10px;
  color: #ffffff;
}

.legal-highlight-box ul {
  margin-bottom: 0;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.legal-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 14px 18px;
  font-weight: 600;
  color: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

.legal-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #c5cbd8;
  vertical-align: top;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-blue-light);
  font-size: 0.85em;
}

.legal-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}

.legal-card-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 22px;
}

.legal-card-item h4 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #ffffff;
}

.legal-card-item p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: var(--text-gray);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.badge-required {
  background: rgba(35, 123, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(35, 123, 255, 0.3);
}

.badge-optional {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.legal-notice {
  font-size: 0.9rem !important;
  color: var(--text-dim) !important;
  font-style: italic;
  margin-top: 12px;
}

.legal-cta-box {
  margin: 24px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  text-align: center;
}

.legal-contact-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.legal-contact-box p {
  margin-bottom: 6px;
}

.legal-contact-box a {
  color: var(--accent-blue);
}

@media (max-width: 992px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    display: none;
  }

  .legal-content {
    padding: 28px 20px;
  }

  .legal-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1080px;
  background: rgba(14, 16, 21, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 1px rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  z-index: 2500;
  padding: 24px 32px;
  animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translate(-50%, 30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

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

.cookie-banner-text h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  font-size: 0.88rem;
  color: #c5cbd8;
  line-height: 1.5;
  margin: 0;
}

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

.btn-cookie-action {
  padding: 10px 20px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.btn-cookie-settings-trigger {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 12px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.btn-cookie-settings-trigger:hover {
  color: var(--accent-blue);
}

@media (max-width: 900px) {
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 20px;
  }

  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .cookie-banner-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cookie-banner-actions .button {
    width: 100%;
    text-align: center;
  }

  .btn-cookie-settings-trigger {
    text-align: center;
  }
}

/* ==========================================================================
   COOKIE PREFERENCES MODAL
   ========================================================================== */
.cookie-pref-card {
  max-width: 680px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  background: #101217;
  border: 1px solid var(--border-light);
  border-radius: 24px;
}

.cookie-pref-header {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-pref-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.cookie-pref-header p {
  font-size: 0.9rem;
  color: var(--text-gray);
  line-height: 1.5;
  margin: 0;
}

.cookie-pref-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.cookie-category-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cookie-category-title-wrap strong {
  font-size: 1rem;
  color: #ffffff;
}

.cookie-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.cookie-badge-required {
  background: rgba(35, 123, 255, 0.15);
  color: var(--accent-blue);
  border: 1px solid rgba(35, 123, 255, 0.3);
}

.cookie-category-info p {
  font-size: 0.85rem;
  color: #a2a8b8;
  line-height: 1.4;
  margin: 0;
}

/* Custom Accessible Toggle Switch */
.cookie-toggle-wrap {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cookie-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-toggle-label {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  transition: background-color var(--transition-fast);
}

.cookie-toggle-label::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.cookie-toggle-input:checked + .cookie-toggle-label {
  background-color: var(--accent-blue);
}

.cookie-toggle-input:checked + .cookie-toggle-label::before {
  transform: translateX(22px);
}

.cookie-toggle-label.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-pref-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

