/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  transition: padding-top 0.4s var(--ease-spring);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 80px;
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: all 0.4s var(--ease-spring);
}

.header.scrolled {
  padding-top: 24px;
}

.header.scrolled .header-container {
  height: 64px;
  width: calc(100% - 48px);
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-radius: 100px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-nav {
  display: flex;
  gap: 8px;
  align-items: center;
  position: relative;
  padding: 4px;
}

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

.header-nav-hover-bg {
  position: absolute;
  background: rgba(13, 13, 13, 0.05);
  border-radius: 100px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95);
  height: calc(100% - 8px);
  transition: transform var(--transition-base) var(--ease-spring), width var(--transition-base) var(--ease-spring), opacity var(--transition-fast) ease;
}

.header-nav a {
  position: relative;
  z-index: 2;
  color: var(--color-dark);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 100px;
  transition: color var(--transition-fast) ease;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--color-dark);
}

.header-actions {
  display: flex;
  align-items: center;
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border: 2.2px solid var(--color-dark);
  border-radius: 100px;
  color: var(--color-dark);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s var(--ease-spring), background-color var(--transition-base), color var(--transition-base);
  margin-right: 20px;
  white-space: nowrap;
}

.btn-signin:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-signin:active {
  transform: scale(0.96) translateY(0);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.04);
  border-radius: 100px;
  padding: 3px;
  border: 1px solid rgba(13, 13, 13, 0.08);
  margin-left: 8px;
}

.lang-option {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--color-text-gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 100px;
  transition: all var(--transition-fast) ease;
  line-height: 1;
}

.lang-option:hover {
  color: var(--color-dark);
}

.lang-option.active {
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 4%;
  }
  .header.scrolled .header-container {
    width: calc(100% - 32px);
    padding: 0 20px;
  }
  .header-nav {
    gap: 4px;
  }
  .header-nav a {
    padding: 6px 12px;
    font-size: 13.5px;
  }
  .btn-signin {
    padding: 8px 20px;
    font-size: 13.5px;
    margin-right: 12px;
  }
  .lang-switcher {
    margin-left: 4px;
  }
  .lang-option {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 140px 5% 0;
  background-color: var(--color-white);
  overflow: hidden;
}

/* Subtle dot grid pattern */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(var(--color-dark) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.04;
  z-index: 0;
}

/* Warm gradient wash — top-right */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at top right, rgba(245, 166, 35, 0.08) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  /* Text gets ~45%, dashboard gets ~55% */
  grid-template-columns: 9fr 11fr;
  gap: 48px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ── Text side ─────────────────────── */
.hero-text {
  max-width: 520px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, 0.1);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #c47d00;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--color-text-gray);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

/* Mini stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--color-text-gray);
  font-weight: 500;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(0, 0, 0, 0.1);
}

/* ── Dashboard side ─────────────────── */
.hero-dashboard-wrapper {
  position: relative;
  /* Let the dashboard overflow the section bottom for depth */
  margin-bottom: -80px;
  padding-bottom: 0;
}

.hero-dashboard-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 50%;
  background: radial-gradient(ellipse at bottom, rgba(245, 166, 35, 0.18) 0%, transparent 70%);
  filter: blur(32px);
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

/* Deconstructed Layered Parallax Styles */
.hero-parallax-container {
  position: relative;
  width: 100%;
  max-width: 660px;
  aspect-ratio: 1.6;
  margin: 0 auto;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.parallax-layer {
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease, opacity 0.3s ease;
  will-change: transform;
}

.layer-base {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.layer-feed {
  bottom: -32px;
  right: -32px;
  width: 250px;
  z-index: 3;
}

.layer-badge {
  top: -20px;
  left: -32px;
  width: 230px;
  z-index: 4;
}

.board-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.16)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
  border-radius: 8px;
  display: block;
}

/* Glassmorphic Live Feed Terminal */
.glass-feed {
  background: rgba(13, 13, 13, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.feed-title {
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
}

.feed-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.2s ease;
}

.feed-status.verified {
  color: #27C93F;
  font-weight: 800;
}

.feed-detail {
  font-weight: 500;
  flex: 1;
}

.feed-time {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
}

/* Glassmorphic Badge */
.glass-badge {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.badge-icon-wrapper {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #27C93F;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.badge-pulse-glow {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(39, 201, 63, 0.4);
  animation: badge-pulse 2s infinite ease-in-out;
}

.badge-check-svg {
  color: var(--color-white);
}

.badge-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-status-tag {
  font-size: 8px;
  font-weight: 900;
  color: #27C93F;
  letter-spacing: 0.08em;
}

.badge-title-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-dark);
}

@keyframes badge-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

/* Responsive Parallax adjustments */
@media (max-width: 992px) {
  .layer-feed {
    width: 200px;
    bottom: -20px;
    right: -20px;
  }
  
  .layer-badge {
    width: 190px;
    top: -15px;
    left: -20px;
  }
}

@media (max-width: 768px) {
  .hero-parallax-container {
    max-width: 480px;
    aspect-ratio: 1.6;
  }
  
  .layer-feed, .layer-badge {
    display: none;
  }
}

/* ── Responsive ─────────────────────── */
@media (max-width: 1024px) {
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    margin-bottom: 36px;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-dashboard-wrapper {
    margin-bottom: -40px;
  }

  .hero-dashboard-img {
    transform: perspective(1200px) rotateY(0deg) rotateX(2deg);
    transform-origin: center bottom;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-dashboard-img {
    transform: none;
    border-radius: 8px;
  }
}

/* Trust Bar */
.trust-bar {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 80px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 48px;
  padding-bottom: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  align-self: center;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-text-gray);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
}

.trust-item img {
  display: block;
  flex-shrink: 0;
}

.trust-item span {
  display: block;
  /* Subtle nudge for Inter font alignment if needed */
  transform: translateY(-0.5px);
}

/* Utilities */
.bg-dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

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

.section-title {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 60px;
  letter-spacing: -0.02em;
}

/* Problem Section */
.problem {
  padding: 80px 5%;
}

.problem-container {
  max-width: 1200px;
  margin: 0 auto;
}

.problem-header {
  margin-bottom: 48px;
}

.problem-header .section-title {
  margin-bottom: 0;
  color: var(--color-white);
}

.problem-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.problem-rows {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.problem-row {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.problem-row-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  padding-top: 6px;
}

.problem-row-title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.problem-row-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  padding-top: 4px;
}

@media (max-width: 768px) {
  .problem-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 0;
  }

  .problem-row-num {
    padding-top: 0;
  }

  .problem-row-body {
    padding-top: 0;
  }
}

/* How It Works Section */
.how-it-works {
  padding: 80px 5%;
  background-color: var(--color-white);
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}


@media (max-width: 992px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.step-card {
  position: relative;
  z-index: 1;
  background-color: var(--color-white);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
}

.step-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-gray);
  margin-bottom: 8px;
  font-weight: 600;
}

.step-title {
  font-size: 22px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.step-body {
  color: var(--color-text-gray);
  line-height: 1.65;
  font-size: 15px;
}

/* Product Visual Section */
.product-visual {
  padding: 120px 5%;
  /* Dark anchoring background so both panels stand out */
  background-color: var(--color-dark);
  overflow: hidden;
  position: relative;
}

/* Subtle warm glow top-right */
.product-visual::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 70%;
  background: radial-gradient(ellipse at top right, rgba(245, 166, 35, 0.12) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.visual-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .visual-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── Text side ─────────────────────── */

/* Override section-title color for dark bg */
.product-visual .section-title {
  color: var(--color-white);
}

.visual-desc p {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 24px;
  font-size: 18px;
  line-height: 1.7;
}

.visual-desc .highlight-text {
  color: var(--color-white);
  font-weight: 600;
  font-size: 20px;
}

.visual-desc .strong-text {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Divider line between text paragraphs — adds editorial rhythm */
.visual-desc .highlight-text+p {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
}

/*
  Kowalski staggered reveal:
  Each child of .visual-text starts invisible + shifted down 28px.
  When the IntersectionObserver adds .visible, children animate in
  sequentially — title first, then highlight, then body, then accent.
  Easing: cubic-bezier(0.16, 1, 0.3, 1) — Kowalski's spring ease.
  Duration: 0.7s, short enough to feel snappy, long enough to feel premium.
*/

/* Initial hidden state — only active while fade-in class is present (= JS-gated) */
.visual-text.fade-in .section-title,
.visual-text.fade-in .highlight-text,
.visual-text.fade-in .visual-desc>p:not(.highlight-text),
.visual-text.fade-in .strong-text {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Revealed state — staggered delays */
.visual-text.visible .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.visual-text.visible .highlight-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.visual-text.visible .visual-desc>p:not(.highlight-text) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
}

.visual-text.visible .strong-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.32s;
}

/* ── Image side ─────────────────────── */

/*
  Grounding technique (Jakub):
  Wrap the image in a positioned container that carries the brand color
  as an angled background panel, so the product shot feels "placed in
  a world" rather than floating on white.

  Clip-path reveal: JS adds .will-animate directly on the wrapper element,
  which activates the hidden initial state. Without JS, image is always visible.
  The IntersectionObserver then adds .clip-revealed to show it.
*/
.visual-image-wrapper.will-animate {
  clip-path: inset(100% 0 0 0 round 24px);
}

.visual-image-wrapper {
  position: relative;
  border-radius: 24px;
  transition: clip-path 0.85s cubic-bezier(0.77, 0, 0.175, 1),
    box-shadow 0.4s ease;
}

/* Brand-orange anchoring panel — sibling element, outside the clipped wrapper */
.visual-image-panel {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(145deg,
      var(--color-primary) 0%,
      rgba(200, 120, 20, 0.85) 100%);
  /* Peek out from behind the image card */
  transform: translate(18px, 18px);
  z-index: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Wrapper that contains both panel and image card — needs relative + padding for panel to show */
.visual-image-outer {
  position: relative;
  /* Create room for the panel to be visible below/right */
  padding: 0 20px 20px 0;
}

.visual-image-outer:hover .visual-image-panel {
  transform: translate(26px, 26px);
}

/* Subtle inner glow on the image card itself */
.visual-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  z-index: 2;
  pointer-events: none;
}

/* Revealed state (added by IntersectionObserver via JS) */
.visual-image-wrapper.clip-revealed {
  clip-path: inset(0% 0 0 0 round 24px);
}

.visual-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  /* Warm shadow matching the brand panel color */
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 6px 20px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  /* Slight initial warmth tilt */
  transform: perspective(900px) rotateY(-3deg) rotateX(1deg);
}

.visual-image-outer:hover .visual-image {
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.32),
    0 10px 32px rgba(245, 166, 35, 0.12);
}

/* prefers-reduced-motion: disable 3D tilt and clip-path animation */
@media (prefers-reduced-motion: reduce) {
  .visual-image-wrapper {
    clip-path: none !important;
    transition: none !important;
  }

  .visual-image-panel {
    transition: none !important;
  }

  .visual-image {
    transform: none !important;
    transition: none !important;
  }
}

/* Security Level Section (Interactive Explorer) */
.security {
  padding: 120px 5%;
  background-color: var(--color-light-gray);
}

.security-container {
  max-width: 1100px;
  margin: 0 auto;
}

.security-explorer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: stretch;
  margin-top: 48px;
}

.security-nav-column {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.security-tab-active-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  /* Updated dynamically via JS */
  background: var(--color-white);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.03);
  pointer-events: none;
  z-index: 0;
  transition: transform var(--transition-base), height var(--transition-base);
  transform: translateY(0);
}

.security-tab-card {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: transform var(--transition-fast), border-color var(--transition-base);
  outline: none;
  font-family: inherit;
  position: relative;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.security-tab-card:hover {
  transform: scale(0.99);
}

.security-tab-card:active {
  transform: scale(0.98);
}

.security-tab-card.active {
  transform: scale(1);
}

.security-tab-card .security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(245, 166, 35, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base), background-color var(--transition-base), color var(--transition-base);
}

.security-tab-card.active .security-icon {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.05);
}

.security-tab-text {
  flex-grow: 1;
}

.security-tab-text h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  line-height: 1.3;
  transition: color var(--transition-base);
}

.security-tab-text p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-gray);
  margin: 0;
  transition: color var(--transition-base);
}

.security-tab-card:not(.active) .security-tab-text h3 {
  opacity: 0.85;
}

.security-tab-card:not(.active) .security-tab-text p {
  opacity: 0.75;
}

/* Right Side: Display Mockup */
.security-visual-column {
  display: flex;
  flex-direction: column;
}

.security-display-frame {
  position: relative;
  background: #0E0E10;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 380px;
}

/* Custom background glow behind the frame */
.security-visual-column {
  position: relative;
}

.security-visual-column::after {
  content: '';
  position: absolute;
  inset: 20px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

.security-display-header {
  background: #16161A;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.terminal-dots .dot.red {
  background-color: #FF5F56;
}

.terminal-dots .dot.yellow {
  background-color: #FFBD2E;
}

.terminal-dots .dot.green {
  background-color: #27C93F;
}

.terminal-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-sans);
}

.security-display-content {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.security-vis-block {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateY(12px);
  transition:
    opacity var(--transition-base),
    transform var(--transition-base),
    visibility var(--transition-base);
  padding: 32px;
  box-sizing: border-box;
}

.security-vis-block.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  position: relative;
  width: 100%;
  height: 100%;
}

.vis-overlay-label {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

/* Widget 1: Blockchain Ledger */
.vis-ledger-container {
  width: 100%;
  max-width: 400px;
  position: relative;
  overflow: hidden;
  height: 220px;
  display: flex;
  flex-direction: column;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.vis-ledger-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 0;
}

.vis-ledger-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: ledger-scroll 24s linear infinite;
  padding: 20px 0;
}

.vis-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: monospace;
  font-size: 11px;
  position: relative;
  z-index: 1;
}

.vis-ledger-row::before {
  content: '';
  position: absolute;
  left: 20px;
  /* Visual point connecting to the line */
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: rgba(245, 166, 35, 0.5);
  border-radius: 50%;
  opacity: 0;
}

.vis-ledger-hash {
  color: var(--color-primary);
  font-weight: 600;
}

.vis-ledger-action {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  letter-spacing: 0.02em;
  margin-right: auto;
  margin-left: 16px;
}

.vis-ledger-status {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.vis-ledger-status.status-verified {
  background: rgba(39, 201, 63, 0.12);
  color: #27C93F;
  border: 1px solid rgba(39, 201, 63, 0.18);
}

.vis-ledger-status.status-issued {
  background: rgba(245, 166, 35, 0.12);
  color: var(--color-primary);
  border: 1px solid rgba(245, 166, 35, 0.18);
}

@keyframes ledger-scroll {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-50%);
  }
}

/* Widget 2: Dual QR Package Mockup */
.vis-package-mockup {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mock-package {
  background: linear-gradient(135deg, #18181B 0%, #0F0F11 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  padding: 20px;
  box-sizing: border-box;
}

.mock-package-front {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.package-tag {
  font-size: 8px;
  background: rgba(245, 166, 35, 0.12);
  color: var(--color-primary);
  padding: 2px 6px;
  border-radius: 60px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mock-package-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.mock-qr-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.qr-panel-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.3s, background-color 0.3s;
}

.qr-panel-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.panel-badge {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}

.qr-box {
  position: relative;
  width: 76px;
  height: 76px;
  background: #141417;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.qr-placeholder-svg {
  color: var(--color-white);
  opacity: 0.8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}

.scan-radar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(to bottom, transparent, rgba(245, 166, 35, 0.15), transparent);
  border-top: 1px solid var(--color-primary);
  animation: radar-sweep 2s infinite ease-in-out;
  pointer-events: none;
}

.scratch-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3f3f46 0%, #18181b 100%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
}

.scratch-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #fff 10%, transparent 11%);
  background-size: 6px 6px;
}

.scratch-text {
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
  z-index: 6;
}

.qr-box.locked:hover .scratch-cover {
  transform: translateY(-100%);
  opacity: 0;
}

.glowing-halo {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.3);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  border: 1px solid rgba(245, 166, 35, 0.4);
}

.qr-box.locked:hover .glowing-halo {
  opacity: 1;
}

.qr-box.locked:hover .hidden-qr-code {
  transform: scale(1.05);
}

.panel-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

@keyframes radar-sweep {
  0% {
    top: 0%;
  }

  50% {
    top: 85%;
  }

  100% {
    top: 0%;
  }
}

/* Widget 3: Smartphone Scanner Simulation */
.vis-phone-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 150px;
  height: 260px;
  background: #000;
  border-radius: 26px;
  border: 4px solid #27272A;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.phone-camera-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 12px;
  background: #27272A;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #09090b;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-scan-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: scan-pulse-flow 4s infinite ease-in-out;
}

.phone-qr-target {
  position: relative;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}

.phone-qr-target::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--color-primary);
  border-radius: 12px;
  clip-path: polygon(0 0, 18px 0, 18px 18px, 0 18px, 0 100%, 0 0, 100% 0, 100% 18px, 62px 18px, 62px 0, 100% 0, 100% 100%, 0 100%);
}

.scanner-laser {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-primary);
  box-shadow: 0 0 6px var(--color-primary);
  animation: laser-bounce 2s infinite ease-in-out;
}

.phone-scan-text {
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.phone-success-modal {
  position: absolute;
  inset: 8px;
  background: rgba(15, 15, 18, 0.96);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  z-index: 8;
  transform: scale(0.92) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease-spring), opacity 0.3s, visibility 0.3s;
  backdrop-filter: blur(6px);
}

.phone-success-modal.show {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.success-bounce-circle {
  width: 36px;
  height: 36px;
  background: #27C93F;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(39, 201, 63, 0.35);
  transform: scale(0);
}

.phone-success-modal.show .success-bounce-circle {
  animation: pop-bounce-in 0.5s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.phone-success-modal h4 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #27C93F;
  margin: 0 0 4px 0;
}

.phone-success-modal .product-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 2px;
  display: block;
}

.phone-success-modal .verified-tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-bottom: 12px;
}

/* Widget 4: Dynamic Scale Slider (Variant B: Batch Protection Matrix) */
.vis-scale-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scale-counter-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  flex-shrink: 0;
}

.scale-counter-label {
  font-size: 8px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  display: block;
}

.scale-counter-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.01em;
  font-family: monospace;
}

.scale-batch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.scale-batch-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px 12px;
  height: 56px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    background-color var(--transition-base),
    opacity var(--transition-base);
  opacity: 0.25;
  transform: scale(0.97);
  pointer-events: none;
}

.scale-batch-card.active {
  opacity: 1;
  background: rgba(245, 166, 35, 0.03);
  border-color: rgba(245, 166, 35, 0.25);
  transform: scale(1);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.03);
  pointer-events: auto;
}

.batch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.batch-id {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  font-family: monospace;
  transition: color var(--transition-base);
}

.scale-batch-card.active .batch-id {
  color: var(--color-white);
}

.batch-badge {
  font-size: 7px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scale-batch-card.active .batch-badge {
  opacity: 1;
}

.batch-badge.status-secured {
  background: rgba(39, 201, 63, 0.12);
  color: #27C93F;
  border: 1px solid rgba(39, 201, 63, 0.18);
}

.batch-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
}

.batch-qty {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
  font-family: monospace;
  transition: color var(--transition-base);
}

.scale-batch-card.active .batch-qty {
  color: var(--color-primary);
}

.batch-region {
  color: rgba(255, 255, 255, 0.25);
  font-size: 8px;
  font-weight: 500;
  transition: color var(--transition-base);
}

.scale-batch-card.active .batch-region {
  color: rgba(255, 255, 255, 0.5);
}

.scale-slider-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scale-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  cursor: pointer;
}

.scale-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
  cursor: pointer;
  transition: transform 0.15s;
}

.scale-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
}

/* Responsive Explorer Layout */
@media (max-width: 992px) {
  .security-explorer {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .security-visual-column {
    min-height: 380px;
  }
}

@media (max-width: 768px) {
  .security {
    padding: 80px 5%;
  }

  .security-tab-card {
    padding: 16px;
    gap: 16px;
  }

  .security-tab-text h3 {
    font-size: 16px;
  }

  .security-tab-text p {
    font-size: 13px;
  }
}

/* Advantages Section */
.advantages {
  padding: 120px 5%;
  background-color: var(--color-white);
}

.advantages-container {
  max-width: 1200px;
  margin: 0 auto;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 992px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .advantages-grid {
    grid-template-columns: 1fr;
  }
}

.advantage-card {
  background-color: var(--color-white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s var(--ease-spring);
  position: relative;
  overflow: hidden;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-spring);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06);
  border-color: transparent;
}

.advantage-card:hover::before {
  transform: scaleX(1);
}

.advantage-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.advantage-card p {
  color: var(--color-text-gray);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Social Proof Section */
.social-proof {
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

.social-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.social-header {
  margin-bottom: 40px;
  text-align: center;
}

.social-header .section-title {
  color: var(--color-white);
  margin-bottom: 0;
}

.social-eyebrow {
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

/* Testimonial Brand Switcher Tabs */
.testimonial-switcher {
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
}

.testimonial-switcher-inner {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px;
  display: inline-flex;
  position: relative;
  padding: 4px;
  gap: 4px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-tab-active-bg {
  background: var(--color-primary);
  border-radius: 100px;
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  transition: transform var(--transition-base) var(--ease-spring), width var(--transition-base) var(--ease-spring);
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
}

.testimonial-tab {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 100px;
  transition: color var(--transition-fast) ease, transform 0.1s var(--ease-spring);
  position: relative;
  z-index: 2;
  outline: none;
}

.testimonial-tab:hover {
  color: var(--color-dark);
}

.testimonial-tab.active {
  color: var(--color-dark);
}

/* When a tab is hovered, the active indicator pill shifts to it. 
   We temporarily dim the actual active tab (which is not hovered) so it remains visible against the dark background. */
.testimonial-switcher-inner:has(.testimonial-tab:hover) .testimonial-tab.active:not(:hover) {
  color: rgba(255, 255, 255, 0.55);
}

.testimonial-tab:active {
  transform: scale(0.95);
}

/* Testimonial Content Wrapper & Grid */
.testimonial-content-wrapper {
  position: relative;
  min-height: 400px;
}

.testimonial-brand-view {
  width: 100%;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* Spotlight Quote Card */
.social-quote-card {
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.05), transparent 45%), rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.social-quote-card:hover {
  border-color: rgba(245, 166, 35, 0.2);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), 0 10px 40px rgba(245, 166, 35, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quote-icon {
  font-size: 160px;
  line-height: 0.5;
  color: var(--color-primary);
  font-family: Georgia, serif;
  opacity: 0.06;
  position: absolute;
  top: 90px;
  left: 24px;
  pointer-events: none;
  user-select: none;
}

.testimonial-text {
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.6;
  font-weight: 500;
  color: var(--color-white);
  margin: 0 0 40px 0;
  position: relative;
  z-index: 2;
  letter-spacing: -0.01em;
}

.testimonial-author {
  position: relative;
  z-index: 2;
}

.author-info strong {
  display: block;
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 4px;
  font-weight: 700;
}

.author-info span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Impact Stats Grid Column */
.testimonial-stats-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-base) var(--ease-spring), border-color var(--transition-base), background-color var(--transition-base);
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, 0.2);
  background: rgba(245, 166, 35, 0.02);
  box-shadow: 0 16px 32px rgba(245, 166, 35, 0.03), 0 4px 12px rgba(0, 0, 0, 0.25);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-sans);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Staggered Animations when Brand View is Active */
.testimonial-brand-view .social-quote-card {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-brand-view .stat-card {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-base), background-color var(--transition-base);
}

.testimonial-brand-view.active .social-quote-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.05s;
}

.testimonial-brand-view.active .stat-card:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}

.testimonial-brand-view.active .stat-card:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}

.testimonial-brand-view.active .stat-card:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.29s;
}

/* Responsive Grid layouts */
@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .social-quote-card {
    padding: 32px;
  }
  
  .testimonial-stats-column {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .stat-card {
    flex: 1 1 200px;
    padding: 20px 24px;
  }
}

@media (max-width: 480px) {
  .testimonial-stats-column {
    flex-direction: column;
  }
  
  .stat-card {
    width: 100%;
  }
}

/* CTA Section */
.cta {
  padding: 120px 5%;
  background-color: var(--color-white);
}

.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--color-dark) 0%, #1a1003 100%);
  border-radius: 32px;
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.cta-container:hover {
  border-color: rgba(245, 166, 35, 0.15);
  box-shadow: 0 40px 80px rgba(245, 166, 35, 0.08), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.cta-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 166, 35, 0.08), transparent 50%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta .section-title {
  color: var(--color-white);
  margin-bottom: 24px;
}

.cta-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 576px) {
  .cta-actions {
    flex-direction: column;
  }
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

/* Footer */
.footer {
  padding: 80px 5% 40px;
  background-color: #070708;
  position: relative;
  overflow: hidden;
}

.footer-logo {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity var(--transition-fast) ease;
}

.footer-logo:hover {
  opacity: 1;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 166, 35, 0.15), transparent);
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

.footer-col p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  margin-bottom: 8px;
}

.footer-col p a {
  color: var(--color-white);
  position: relative;
  transition: color var(--transition-fast) ease;
}

.footer-col p a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-spring);
}

.footer-col p a:hover {
  color: var(--color-primary);
}

.footer-col p a:hover::after {
  transform: scaleX(1);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  align-self: flex-start;
  transition: color var(--transition-fast) ease;
}

@media (max-width: 768px) {
  .footer-nav a {
    align-self: center;
  }
}

.footer-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-spring);
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-nav a:hover::after {
  transform: scaleX(1);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-left {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  font-size: 14px;
  position: relative;
  transition: color var(--transition-fast) ease;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s var(--ease-spring);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-links a:hover::after {
  transform: scaleX(1);
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.25s var(--ease-spring);
  z-index: 1;
}

.footer-social a .social-circle-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: -1;
}

.footer-social a:hover {
  color: var(--color-dark);
  border-color: var(--color-primary);
  transform: translateY(-3px) scale(1.05);
}

.footer-social a:hover .social-circle-bg {
  transform: scale(1);
}

.footer-social a:active {
  transform: translateY(-1px) scale(0.96);
}