/* ===== CSS Variables ===== */
:root {
  /* Shader-green inspired palette (from hero video) */
  --rara-green: #0e2a12;
  --rara-green-rgb: 14, 42, 18;
  --rara-green-dark: #081a0a;
  --rara-green-dark-rgb: 8, 26, 10;
  --rara-green-deep: #051008;
  --rara-green-mid: #1f4d1c;
  --rara-green-mid-rgb: 31, 77, 28;
  --rara-green-light: #3c9e32;
  --rara-green-light-rgb: 60, 158, 50;
  --rara-green-bright: #52dc45;
  --rara-green-bright-rgb: 82, 220, 69;
  --rara-green-glow: #6bff5a;
  --rara-green-neon: #42fe36;
  --rara-cream: #e9f4e6;
  --rara-cream-muted: #c5ddb8;
  --rara-cream-rgb: 233, 244, 230;

  /* Semantic tokens */
  --bg-dark: var(--rara-green);
  --bg-black: var(--rara-green-dark);
  --orange: var(--rara-green-light);
  --orange-bright: var(--rara-green-bright);
  --gold: var(--rara-cream-muted);
  --white: #ffffff;
  --gray: rgba(255, 255, 255, 0.62);
  --gray-dark: var(--rara-green-mid);
  --border: rgba(255, 255, 255, 0.09);
  --accent-soft: rgba(var(--rara-green-bright-rgb), 0.42);
  --accent-glow: rgba(var(--rara-green-bright-rgb), 0.28);
  --accent-fill: rgba(var(--rara-green-light-rgb), 0.16);
  --font: 'Neue Montreal', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font);
  --font-mono: 'DM Mono', monospace;
  --max-width: 1200px;
  --header-height: 78px;
  --transition: 0.3s ease;
}

/* ===== Font Faces ===== */
@font-face {
  font-family: 'Neue Montreal';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/ppneuemontreal-book.woff') format('woff');
}

@font-face {
  font-family: 'Neue Montreal';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/NeueMontreal-Medium.otf') format('opentype');
}

@font-face {
  font-family: 'Neue Montreal';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('../assets/fonts/NeueMontreal-Bold.otf') format('opentype');
}

/* ===== Font themes ===== */
html[data-font='montreal'] {
  --font: 'Neue Montreal', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font);
}

html[data-font='dm-sans'] {
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font);
}

html[data-font='space-grotesk'] {
  --font: 'Space Grotesk', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: var(--font);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 90% 55% at 15% -5%, rgba(var(--rara-green-bright-rgb), 0.14), transparent 55%),
    radial-gradient(ellipse 70% 45% at 95% 15%, rgba(var(--rara-green-light-rgb), 0.1), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(var(--rara-green-mid-rgb), 0.35), transparent 60%),
    var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  body {
    cursor: none;
  }

  a, button, .btn, .tab-btn, .accordion-header, .faq-question, .menu-toggle, .announcement-close {
    cursor: none;
  }
}

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

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Announcement Bar ===== */
.announcement-bar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  max-height: 48px;
  overflow: hidden;
  opacity: 1;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.announcement-bar.is-hidden {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.announcement-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.announcement-center {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.announcement-center img {
  width: 18px;
  height: 18px;
}

.announcement-center a {
  text-decoration: underline;
}

.announcement-close {
  position: absolute;
  right: max(8px, env(safe-area-inset-right));
  background: transparent;
  color: var(--white);
  font-size: 18px;
  padding: 4px 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(var(--rara-green-rgb), 0.38);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  transition: top var(--transition), background var(--transition), box-shadow var(--transition);
}

.header.with-announcement {
  top: 40px;
}

.header.is-scrolled {
  background: rgba(var(--rara-green-rgb), 0.68);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: transparent;
  justify-self: start;
}

.logo img {
  height: 54px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.nav a:hover,
.nav a.is-active {
  opacity: 1;
}

.nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-cta {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

.menu-toggle {
  display: none;
  color: var(--white);
  font-size: 24px;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 1;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.menu-toggle svg {
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.menu-toggle .menu-toggle-icon--close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.85);
}

.menu-toggle.is-open .menu-toggle-icon--menu {
  opacity: 0;
  transform: rotate(90deg) scale(0.85);
}

.menu-toggle.is-open .menu-toggle-icon--close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

body.mobile-nav-open .menu-toggle {
  position: relative;
  z-index: 1102;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  min-height: 44px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rara-green-glow), var(--rara-green-light) 55%, var(--rara-green-mid));
  color: var(--rara-green-deep);
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow), 0 0 20px rgba(var(--rara-green-bright-rgb), 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn svg {
  width: 15px;
  height: 15px;
}

/* Shimmer effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: shimmer 1.2s ease infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 160%; }
}

/* ===== Section Label ===== */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 24px;
}

.section-label .dash {
  width: 16px;
  height: 3px;
  background: var(--orange-bright);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--gray);
  max-width: 600px;
  margin-top: 16px;
}

.highlight {
  color: var(--rara-green-glow);
  text-shadow: 0 0 24px rgba(var(--rara-green-bright-rgb), 0.35);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100vh + var(--header-height));
  margin-top: calc(-1 * var(--header-height));
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--rara-green);
}

.hero-shader,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(var(--rara-green-dark-rgb), 0.2) 0%,
      rgba(var(--rara-green-dark-rgb), 0.48) 100%
    ),
    linear-gradient(
      105deg,
      rgba(var(--rara-green-bright-rgb), 0.06) 0%,
      transparent 45%,
      rgba(var(--rara-green-light-rgb), 0.05) 100%
    );
  z-index: 1;
  pointer-events: none;
}

.hero-wave-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(24vh, 180px);
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
}

.hero-wave {
  position: absolute;
  left: -30%;
  width: 160%;
  height: 36px;
  background-repeat: repeat-x;
  background-size: 520px 36px;
  opacity: 0.5;
  filter: blur(10px);
  animation: heroWaveDrift linear infinite;
  will-change: transform;
}

.hero-wave--1 {
  bottom: 28%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 36'%3E%3Cpath d='M0 18 C65 6 130 30 195 18 S325 6 390 18 S455 30 520 18' fill='none' stroke='rgba(107,255,90,0.8)' stroke-width='1.5'/%3E%3C/svg%3E");
  animation-duration: 22s;
  filter: blur(12px);
  opacity: 0.42;
}

.hero-wave--2 {
  bottom: 14%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 36'%3E%3Cpath d='M0 20 C43 32 86 8 130 20 S216 32 260 20 S346 8 390 20 S433 32 520 20' fill='none' stroke='rgba(233,244,230,0.55)' stroke-width='1.25'/%3E%3C/svg%3E");
  animation-duration: 28s;
  animation-direction: reverse;
  filter: blur(8px);
  opacity: 0.38;
}

.hero-wave--3 {
  bottom: 2%;
  height: 28px;
  background-size: 480px 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 28'%3E%3Cpath d='M0 14 C60 4 120 24 180 14 S300 4 360 14 S420 24 480 14' fill='none' stroke='rgba(82,220,69,0.55)' stroke-width='1'/%3E%3C/svg%3E");
  animation-duration: 34s;
  filter: blur(14px);
  opacity: 0.32;
}

@keyframes heroWaveDrift {
  0% {
    transform: translateX(0) translateY(0);
  }

  50% {
    transform: translateX(-8%) translateY(-6px);
  }

  100% {
    transform: translateX(-16%) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-wave {
    animation: none;
  }
}

@media (max-width: 768px) {
  .hero-wave-layer {
    height: min(20vh, 140px);
  }

  .hero-wave {
    height: 28px;
    background-size: 420px 28px;
    filter: blur(8px);
  }

  .hero-wave--1 {
    filter: blur(10px);
    opacity: 0.35;
  }

  .hero-wave--3 {
    filter: blur(11px);
    opacity: 0.28;
  }
}

.hero-shader-controls {
  position: absolute;
  right: 24px;
  bottom: 32px;
  z-index: 3;
}

.shader-controls-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(4, 26, 20, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.shader-controls-toggle:hover,
.hero-shader-controls.is-open .shader-controls-toggle {
  background: rgba(var(--rara-green-mid-rgb), 0.78);
  border-color: var(--accent-soft);
}

.shader-controls-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(4, 26, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.shader-panel-scroll {
  max-height: min(72vh, 620px);
  overflow-y: auto;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) transparent;
}

.shader-panel-scroll::-webkit-scrollbar {
  width: 6px;
}

.shader-panel-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-soft);
  border-radius: 999px;
}

.shader-section {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shader-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.shader-controls-label {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}

.shader-variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.shader-preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.shader-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.shader-preset-btn:hover,
.shader-preset-btn.active {
  border-color: var(--accent-soft);
  background: var(--accent-fill);
  color: var(--white);
}

.shader-preset-swatch {
  width: 28px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.shader-color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.shader-color-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.shader-color-field input[type="color"] {
  width: 100%;
  height: 32px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.shader-color-field input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 2px;
}

.shader-color-field input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

.shader-position-preview {
  position: relative;
  height: 72px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.shader-preview-text {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  z-index: 2;
}

.shader-preview-glow {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  pointer-events: none;
  transition: left 0.15s ease, top 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  z-index: 1;
}

.shader-actions {
  padding-top: 8px;
}

.shader-reset-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.shader-reset-btn:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.shader-variant-btn {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.shader-variant-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(var(--rara-green-bright-rgb), 0.35);
}

.shader-variant-btn.active {
  background: rgba(var(--rara-green-light-rgb), 0.22);
  border-color: var(--orange-bright);
  color: var(--white);
}

.shader-variant-name {
  display: block;
  line-height: 1.3;
}

.shader-sliders {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.shader-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray);
}

.shader-slider span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shader-slider output {
  color: var(--orange-bright);
  font-size: 11px;
}

.shader-slider input[type="range"] {
  width: 100%;
  height: 4px;
  appearance: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
}

.shader-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange-bright);
  border: 2px solid var(--rara-green-dark);
}

.shader-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange-bright);
  border: 2px solid var(--rara-green-dark);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 140px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray);
}

.stat-item .dash {
  width: 11px;
  height: 2px;
  background: var(--orange-bright);
}

.hero-title {
  font-size: clamp(1.54rem, 3.85vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 630px;
  margin-bottom: 28px;
  text-wrap: balance;
}

.hero-buttons {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  font-size: 10px;
  padding: 8px 17px;
}

.hero-buttons .btn svg {
  width: 11px;
  height: 11px;
}

/* ===== Trusted By ===== */
.trusted {
  padding: 80px 0;
  background: var(--bg-dark);
}

.trusted .section-label {
  justify-content: center;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px dashed var(--border);
  border-left: 1px dashed var(--border);
  margin-top: 40px;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 30px;
  border-right: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}

.logo-cell img {
  max-width: 90px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.logo-cell img:hover {
  opacity: 1;
}

.logo-cell.small img {
  max-width: 70px;
}

/* ===== Gallery Marquee ===== */
.gallery-marquee {
  padding: 0 0 40px;
  background: var(--bg-dark);
  overflow: hidden;
}

.gallery-marquee .marquee-row {
  overflow: hidden;
  padding: 10px 0;
}

.gallery-marquee .marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
}

.gallery-marquee .marquee-left {
  animation: marqueeLeft 40s linear infinite;
}

.gallery-marquee .marquee-right {
  animation: marqueeRight 40s linear infinite;
}

.gallery-marquee.is-paused .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.gallery-marquee .marquee-item {
  flex-shrink: 0;
  margin: 0;
}

.gallery-marquee .marquee-item img {
  height: 280px;
  width: auto;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .gallery-marquee .marquee-item img {
    height: 180px;
  }

  .gallery-marquee .marquee-left {
    animation-duration: 30s;
  }

  .gallery-marquee .marquee-right {
    animation-duration: 30s;
  }
}

/* ===== About ===== */
.about {
  padding: 100px 0;
  background: var(--bg-black);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--gray);
}

.about-text strong,
.about-text .highlight-text {
  color: var(--white);
  font-weight: 500;
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  text-align: left;
  transition: color var(--transition);
}

.accordion-header:hover {
  color: var(--gold);
}

.accordion-icon {
  font-size: 24px;
  font-weight: 300;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-body {
  max-height: 200px;
  padding-bottom: 24px;
}

.accordion-body p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Expertise ===== */
.expertise {
  padding: 100px 0;
  background: var(--bg-dark);
  text-align: center;
}

.expertise .section-label {
  justify-content: center;
}

.expertise .section-subtitle {
  margin: 16px auto 0;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  padding: 6px;
  margin: 48px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.tab-btn:hover:not(.active) {
  color: var(--white);
}

.tab-panel {
  display: none;
  text-align: left;
  animation: fadeIn 0.4s ease;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.tab-content h5 {
  font-size: 16px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 16px;
}

.tab-content p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  color: var(--gray);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--orange);
  color: var(--white);
}

.tab-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.tab-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: 100px 0;
  background: var(--bg-black);
}

.portfolio .section-label {
  justify-content: center;
}

.portfolio .section-subtitle {
  margin: 16px auto 0;
  text-align: center;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.portfolio-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  group: portfolio;
}

.portfolio-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.05);
}

.portfolio-card-content {
  padding: 24px 0;
}

.portfolio-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.portfolio-tag {
  font-size: 12px;
  color: var(--gray);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.portfolio-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-card p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 16px;
}

.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  transition: gap var(--transition);
}

.portfolio-link:hover {
  gap: 12px;
}

/* ===== Industry Tags Marquee ===== */
.industry-marquee {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 96px 0;
  gap: 18px;
  overflow: hidden;
  background-color: var(--bg-dark);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.025) 6px,
    rgba(255, 255, 255, 0.025) 7px
  );
}

.industry-marquee-row {
  display: flex;
  width: max-content;
  gap: 14px;
}

.industry-marquee-row.left {
  animation: industryMarqueeLeft 60s linear infinite;
}

.industry-marquee-row.right {
  animation: industryMarqueeRight 60s linear infinite;
}

@keyframes industryMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes industryMarqueeRight {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.industry-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.2s;
  user-select: none;
}

.industry-tag:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .industry-marquee {
    padding: 40px 0;
  }
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 100px 0 60px;
  background: var(--bg-dark);
  overflow: hidden;
}

.testimonials .section-label {
  justify-content: center;
}

.testimonials .section-subtitle {
  margin: 16px auto 48px;
  text-align: center;
  max-width: 700px;
}

.testimonial-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0;
}

.testimonial-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 20px;
  animation: testimonialScroll 40s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
  animation-play-state: paused;
}

@keyframes testimonialScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  width: 380px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.testimonial-card__quote {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 18px;
}

.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
}

.testimonial-card__role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Split Heading Animation ===== */
.split-heading {
  overflow: hidden;
}

.split-heading .split-word {
  display: inline-block;
  white-space: nowrap;
}

.split-heading .split-char {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(12px);
}

.split-heading.is-animated .split-char {
  animation: splitCharIn 0.5s ease forwards;
  animation-delay: calc(var(--char-index) * 0.02s);
}

@keyframes splitCharIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--bg-black);
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-header .section-label {
  justify-content: center;
}

.faq-header .section-subtitle {
  margin: 16px auto 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  text-align: left;
}

.faq-question .icon {
  font-size: 20px;
  transition: transform var(--transition);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

.faq-cta {
  text-align: center;
  margin-top: 40px;
}

.faq-cta a {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== CTA Sections ===== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-dark);
  text-align: center;
}

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto 32px;
}

.cta-form {
  max-width: 600px;
  margin: 0 auto;
  min-height: 400px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  overflow: hidden;
}

.cta-form--calendly {
  display: block;
  min-height: 700px;
  padding: 0;
  background: var(--bg-dark);
}

.cta-form--calendly .calendly-inline-widget {
  width: 100%;
  min-width: 320px;
  height: 700px;
}

.cta-form--fallback {
  padding: 48px 32px;
}

.booking-form-fallback {
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
}

.booking-form-fallback p {
  margin-bottom: 24px;
  line-height: 1.6;
}

.booking-form-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===== Footer CTA ===== */
.footer-cta {
  padding: 100px 0;
  background: var(--bg-black);
  text-align: center;
}

.footer-cta .section-title {
  margin-bottom: 16px;
}

.footer-cta p {
  color: var(--gray);
  max-width: 500px;
  margin: 0 auto 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-contact {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-contact a {
  font-size: 14px;
  color: var(--gray);
  transition: color var(--transition);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  font-size: 14px;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.footer-social a:hover {
  color: var(--white);
  text-decoration-color: var(--white);
}

.made-in-rajasthan {
  display: block;
  width: fit-content;
  margin: 28px auto 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(
    110deg,
    #3c9e32 0%,
    #e9f4e6 22%,
    #ffffff 45%,
    #c5ddb8 68%,
    #52dc45 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: madeInShine 3.5s linear infinite;
}

@keyframes madeInShine {
  to {
    background-position: 220% center;
  }
}

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(var(--rara-green-dark-rgb), 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.open a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open a:nth-child(2) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.09s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.13s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.17s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.21s; }

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.3s ease 0.08s,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
    background 0.2s ease,
    border-color 0.2s ease;
  z-index: 2;
}

.mobile-nav.open .mobile-nav-close {
  opacity: 1;
  transform: scale(1);
}

.mobile-nav-close:hover {
  background: rgba(var(--rara-green-bright-rgb), 0.18);
  border-color: rgba(var(--rara-green-bright-rgb), 0.45);
}

body.mobile-nav-open .header {
  z-index: 1101;
}

body.mobile-nav-open .announcement-bar {
  z-index: 1101;
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-nav a,
  .mobile-nav-close,
  .menu-toggle svg {
    transition: none;
    transform: none;
  }

  .mobile-nav.open a {
    opacity: 1;
  }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .tab-panel.active {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .tab-image {
    order: -1;
  }

  .portfolio-grid {
    gap: 24px;
  }

  .testimonial-card {
    width: min(360px, calc(100vw - 64px));
  }
}

@media (max-width: 768px) {
  .nav,
  .header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    padding: 10px max(20px, env(safe-area-inset-right)) 10px max(20px, env(safe-area-inset-left));
  }

  .logo {
    justify-self: start;
  }

  .logo img {
    height: 40px;
    max-width: 128px;
  }

  .announcement-inner {
    padding: 10px 48px 10px max(20px, env(safe-area-inset-left));
  }

  .announcement-center {
    justify-content: center;
    text-align: center;
  }

  .announcement-center span {
    font-size: 12px;
    line-height: 1.4;
  }

  .hero-shader-controls {
    display: none;
  }

  .trusted,
  .about,
  .expertise,
  .portfolio,
  .testimonials,
  .faq,
  .cta-section,
  .footer-cta {
    padding: 64px 0;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-cell {
    padding: 28px 16px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    margin-top: 40px;
    gap: 24px;
  }

  .tabs {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-radius: 12px;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }

  .hero {
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-content {
    padding: 0 20px max(64px, calc(env(safe-area-inset-bottom) + 40px));
    text-align: left;
  }

  .hero-stats {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.2vw, 2.25rem);
    max-width: 100%;
  }

  .stat-item {
    font-size: 11px;
  }

  .hero-buttons .btn {
    font-size: 14px;
    padding: 12px 20px;
    min-height: 44px;
  }

  .hero-buttons .btn svg {
    width: 14px;
    height: 14px;
  }

  .shader-controls-panel {
    width: min(340px, calc(100vw - 24px));
    right: -8px;
  }

  .shader-variant-grid,
  .shader-preset-row {
    grid-template-columns: 1fr 1fr;
  }

  .shader-color-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 16px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .testimonial-card {
    width: min(320px, calc(100vw - 40px));
    padding: 22px;
  }

  .testimonial-card__quote {
    font-size: 14px;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .about-text {
    font-size: clamp(1.25rem, 4.5vw, 1.75rem);
  }

  .accordion-header {
    font-size: 16px;
    padding: 20px 0;
  }

  .faq-question {
    font-size: 15px;
    padding: 20px 0;
    gap: 12px;
  }

  .cta-form {
    min-height: 280px;
  }

  .cta-form--calendly,
  .cta-form--calendly .calendly-inline-widget {
    min-height: 620px;
    height: 620px;
  }

  .footer {
    padding: 48px 0 32px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }

  .footer-contact,
  .footer-social {
    justify-content: center;
  }

  .footer-contact {
    flex-direction: column;
    gap: 12px;
  }

  .mobile-nav {
    padding:
      max(24px, env(safe-area-inset-top))
      max(24px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(24px, env(safe-area-inset-left));
  }

  .mobile-nav a {
    font-size: 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-nav-close {
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .made-in-rajasthan {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header-inner {
    padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  }

  .logo img {
    height: 35px;
    max-width: 104px;
  }

  .announcement-inner {
    padding: 10px 44px 10px max(16px, env(safe-area-inset-left));
  }

  .announcement-center span {
    font-size: 11px;
  }

  .hero-content {
    padding: 0 16px max(56px, calc(env(safe-area-inset-bottom) + 32px));
  }

  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-left: 0;
    margin-right: 0;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .logo-cell img {
    max-width: 72px;
  }

  .gallery-marquee .marquee-item img {
    height: 140px;
  }

  .industry-tag {
    font-size: 12px;
    padding: 8px 16px;
  }

  .portfolio-card h3 {
    font-size: 20px;
  }

  .footer-social {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }

  .cta-form {
    min-height: 240px;
  }

  .cta-form--calendly,
  .cta-form--calendly .calendly-inline-widget {
    min-height: 580px;
    height: 580px;
  }
}

/* ===== Font Switcher ===== */
.font-switcher {
  position: fixed;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  z-index: 900;
}

.font-switcher-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(4, 26, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--white);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--transition), background var(--transition);
}

.font-switcher-toggle:hover,
.font-switcher.is-open .font-switcher-toggle {
  border-color: var(--accent-soft);
  background: rgba(var(--rara-green-mid-rgb), 0.92);
}

.font-switcher-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  min-width: 168px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(var(--rara-green-dark-rgb), 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  display: none;
}

.font-switcher.is-open .font-switcher-menu {
  display: grid;
  gap: 4px;
}

.font-switcher-option {
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--gray);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: background var(--transition), color var(--transition);
}

.font-switcher-option:hover,
.font-switcher-option.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.font-switcher-option.is-active {
  color: var(--orange-bright);
}

@media (max-width: 768px) {
  .font-switcher {
    bottom: max(16px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
  }

  .corporate-page .font-switcher {
    bottom: max(76px, calc(env(safe-area-inset-bottom) + 60px));
  }
}

/* ===== Video Preloader ===== */
#video-preloader {
  position: fixed;
  inset: 0;
  background: var(--rara-green-deep);
  z-index: 999999;
  overflow: hidden;
  display: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#video-preloader video {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}

body.preloader-lock {
  overflow: hidden;
}

#video-preloader.hide {
  opacity: 0;
  visibility: hidden;
}

/* ===== Custom Cursor ===== */
.custom-cursor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
  }
}

.cursor-dot,
.cursor-ring {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.cursor-ring {
  width: 44px;
  height: 44px;
  border: 1px solid var(--white);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.custom-cursor.is-hovering .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--orange);
}

.custom-cursor.is-hidden .cursor-dot,
.custom-cursor.is-hidden .cursor-ring {
  opacity: 0;
}

/* ===== Animations on scroll ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
