/* ============================================
   TARGETORIUM AGENCY — style.css
   Mobile-first approach
   ============================================ */

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

:root {
  --clr-bg: #000000;
  --clr-surface: #0a0d18;
  --clr-accent: #212F55;
  --clr-accent-light: #2d3e72;
  --clr-accent-hover: #2a3b69;
  --clr-text: #ffffff;
  --clr-text-muted: #8892a4;
  --clr-border: rgba(33, 47, 85, 0.4);

  --font-main: 'Inter', system-ui, sans-serif;

  --nav-h: 100px;
  --radius-btn: 6px;
  --radius-video: 14px;

  --transition-fast: 0.18s ease;
  --transition-med: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  background-image:
    url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 300 0 L 0 0 0 300' fill='none' stroke='%232d3e72' stroke-width='1.5' stroke-dasharray='20 20' opacity='0.4'/%3E%3C/svg%3E"),
    radial-gradient(circle at 50% 0%, #0d1a3d 0%, #000000 70%);
  background-attachment: fixed;
  background-size: 300px 300px, cover;
  color: var(--clr-text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (max-width: 600px) {
  body {
    background-size: 150px 150px, cover;
  }
}

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  /* Removed border */
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--clr-text);
}

.logo-img {
  height: clamp(45px, 6.4vw, 58px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-weight: 800;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Nav CTA — compact */
.btn-nav {
  background: var(--clr-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 10px 16px;
  border-radius: var(--radius-btn);
  white-space: nowrap;
  text-transform: uppercase;
  /* Matching highlight/outline */
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.25), 0 4px 16px rgba(0, 0, 0, 0.4);
}

.btn-nav:hover {
  background: var(--clr-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.4), 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Hero CTA — big */
.btn-cta {
  background: var(--clr-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 20px 32px;
  border-radius: var(--radius-btn);
  width: 100%;
  max-width: 480px;
  text-transform: uppercase;
  /* Strong outline/border combo */
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.3), 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-med);
}

.btn-cta:hover {
  background: var(--clr-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(33, 47, 85, 0.75);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Shimmer animation on CTA */
.btn-shimmer {
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.1) 40%,
      rgba(255, 255, 255, 0.35) 50%,
      rgba(255, 255, 255, 0.1) 60%,
      rgba(255, 255, 255, 0) 80%);
  animation: shimmer 2.8s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -75%;
  }

  60% {
    left: 125%;
  }

  100% {
    left: 125%;
  }
}

/* ============================================
   LAYOUT HELPERS
   ============================================ */
.container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  z-index: 10;
  /* Above the global chart */
  padding-top: calc(var(--nav-h) + 24px);
  padding-bottom: 48px;
  text-align: center;
  overflow: hidden;
}

/* Ambient glow blobs */
.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.hero-glow--left {
  background: radial-gradient(circle, rgba(33, 47, 85, 0.9) 0%, transparent 70%);
  top: -80px;
  left: -180px;
}

.hero-glow--right {
  background: radial-gradient(circle, rgba(45, 62, 114, 0.7) 0%, transparent 70%);
  bottom: 0px;
  right: -180px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ---- Headline ---- */
.hero-title {
  font-size: clamp(26px, 7vw, 52px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--clr-text);

  /* Entrance animation */
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.hero-title--accent {
  position: relative;
  display: inline;
  color: #4a6fa5;
  font-weight: 900;
  padding-bottom: 2px;
  margin-bottom: 4px;

  /* Neon underline glow handled via ::after */
  background: linear-gradient(110deg,
      #4a6fa5 35%,
      #ffffff 50%,
      #4a6fa5 65%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: buttonStyleShine 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 5px rgba(74, 111, 165, 0.4));
  font-weight: 850;
}

@keyframes buttonStyleShine {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.hero-title--accent::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #4a6fa5;
  box-shadow: 0 0 8px rgba(74, 111, 165, 0.8), 0 0 20px rgba(74, 111, 165, 0.4);
  border-radius: 4px;
}

/* New Shimmer for clip-text */
.hero-title--accent {
  background-size: 200% auto;
  animation: glassTextShimmer 4s linear infinite;
}

@keyframes glassTextShimmer {
  to {
    background-position: 200% center;
  }
}

/* Three arrows between title and video */
.hero-down-arrows {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #4a6fa5;
  opacity: 0;
  margin-top: -8px;
  margin-bottom: -16px;
  animation: fadeUp 0.7s ease 0.8s forwards;
}

/* --- Video CTA Header (above video) --- */
.video-cta-hdr {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.video-cta-title {
  font-size: clamp(22px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

.video-cta-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 10%;
  width: 80%;
  height: 3px;
  background: #4a6fa5;
  box-shadow:
    0 0 10px rgba(74, 111, 165, 0.8),
    0 0 20px rgba(74, 111, 165, 0.4);
  border-radius: 4px;
}

.video-cta-subtitle {
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 500;
  color: #4a6fa5;
  letter-spacing: 0.02em;
}

/* Specific arrows for final video */
.hero-video-arrows {
  margin-top: 10px;
  margin-bottom: 20px;
  z-index: 15;
  position: relative;
}

@media (max-width: 600px) {
  .hero-video-arrows {
    margin-bottom: 0px;
  }
}

/* ---- Hero Video Multi-Player ---- */
.hero-video-container {
  width: 100%;
  max-width: 300px;
  /* Reduced by ~20% */
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.video-wrapper {
  width: 100%;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-video);
  overflow: hidden;
  position: relative;
  transition: border-color var(--transition-med), box-shadow var(--transition-med);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Vertical ratio override for Hero */
.hero-video-container .video-aspect {
  padding-top: 177.77%;
  /* 9:16 Ratio */
}


.video-wrapper:hover {
  border-color: rgba(74, 111, 165, 0.4);
  box-shadow: 0 0 45px rgba(33, 47, 85, 0.3);
}

.video-switcher {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.switch-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(33, 47, 85, 0.15);
  color: var(--clr-text-muted);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-med);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.switch-btn:hover {
  background: rgba(33, 47, 85, 0.4);
  color: #fff;
  border-color: rgba(74, 111, 165, 0.6);
  transform: translateY(-2px);
}

.switch-btn.active {
  background: var(--clr-accent);
  color: #fff;
  border-color: #4a6fa5;
  box-shadow: 0 0 20px rgba(33, 47, 85, 0.6), 0 0 40px rgba(33, 47, 85, 0.2);
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .switch-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
}


/* ---- Tags ---- */
.hero-tags {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s forwards;
}

.tag-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tag-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-text);
  padding: 0 5px;
  letter-spacing: 0.02em;
}

.tag-dot {
  color: #4a6fa5;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  padding: 0 2px;
  text-shadow: 0 0 10px rgba(74, 111, 165, 0.9), 0 0 20px rgba(74, 111, 165, 0.4);
}

/* ---- CTA Button wrapper ---- */
.btn-cta {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

/* ---- Reviews / Social proof ---- */
.hero-reviews {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
  width: 100%;
  display: flex;
  justify-content: center;
}

.reviews-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 12px;
  display: block;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.reviews-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(33, 47, 85, 0.5);
}

/* ============================================
   ENTRANCE ANIMATION
   ============================================ */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE — tablet / desktop
   ============================================ */
@media (min-width: 600px) {
  .btn-nav {
    font-size: 11px;
    padding: 10px 18px;
  }

  .btn-cta {
    font-size: 15px;
    padding: 20px 40px;
  }

  .tag-item {
    font-size: 16px;
  }

  .tag-dot {
    font-size: 20px;
  }

  .video-play-btn {
    width: 80px;
    height: 80px;
  }

  .play-icon {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 900px) {
  :root {
    --nav-h: 72px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 100px;
  }

  .hero .container {
    gap: 40px;
  }

  .btn-cta {
    font-size: 16px;
    padding: 22px 52px;
    width: auto;
  }
}

/* ============================================
   RESULTS INTRO SECTION
   ============================================ */
.results-intro {
  position: relative;
  z-index: 25;
  background: transparent;
  padding: 20px 0 0px;
  text-align: center;
}

.more-cases-hdr {
  position: relative;
  z-index: 25;
  padding: 0;
  margin-top: -120px;
  /* Pull up to reduce gap from cases-section */
  text-align: center;
}

@media (max-width: 600px) {
  .more-cases-hdr {
    margin-top: -40px;
    /* Reduced for mobile stability */
  }
}

.more-cases-title {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 20px rgba(74, 111, 165, 0.4);
}

.more-cases-arrows {
  margin-top: -10px;
  margin-bottom: 40px;
}

/* Transitions removed to show grid */
.results-intro::after {
  display: none;
}

/* Localized glow removed for seamless look */
.results-glow {
  display: none;
}

/* Global Moving Background Chart */
.global-chart-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* Full viewport height for centering */
  pointer-events: none;
  z-index: 1;
  /* Above background grid, below content */
  opacity: 0.6;
  /* More visible on front plan */
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

@media (max-width: 768px) {
  .global-chart-wrap {
    opacity: 0.55;
  }

  .global-chart-wrap .results-chart {
    width: 480%;
    /* Aggressive increase for visible mobile impact */
  }

  #global-drawing-path {
    stroke-width: 6 !important;
  }

  .chart-label {
    font-size: 22px !important;
  }
}

.global-chart-wrap .results-chart {
  width: 280%;
  /* Doubled size as per user request */
  height: auto;
  aspect-ratio: 500 / 260;
  overflow: visible;
  filter: drop-shadow(0 0 45px rgba(74, 111, 165, 0.4));
}

#global-drawing-path {
  stroke: #5d8fcc;
  /* Brighter blue for better contrast */
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(74, 111, 165, 0.6));
}

@media (max-width: 600px) {
  #global-drawing-path {
    stroke-width: 3.5;
    /* Heavier line for small screens */
  }
}

.chart-label {
  fill: #fff;
  font-size: 14px;
  /* Scaled up from 10px */
  font-weight: 800;
  /* Extra bold */
  text-anchor: middle;
  font-family: 'Inter', sans-serif;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 1));
  /* Better glow contrast */
  text-shadow: 0 0 15px rgba(74, 111, 165, 0.8);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateY(12px) scale(0.8);
}

@media (max-width: 600px) {
  .chart-label {
    font-size: 11px;
  }
}

.chart-point-group.active .chart-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chart-point-group circle {
  opacity: 0;
  transition: opacity 0.5s ease, r 0.5s ease, filter 0.5s ease;
  r: 4;
  filter: drop-shadow(0 0 8px rgba(74, 111, 165, 0.8));
}

.chart-point-group.active circle {
  opacity: 1;
  r: 6;
  /* Larger markers */
  filter: drop-shadow(0 0 10px #4a6fa5);
}

.chart-final-point {
  fill: #fff;
}

.chart-point-group.active .chart-final-point {
  r: 8;
  /* Big final target */
  filter: drop-shadow(0 0 15px #fff);
}

/* Inner content wrapper */
.results-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Badge */
.results-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border: 1px solid rgba(33, 47, 85, 0.6);
  border-radius: 100px;
  background: rgba(33, 47, 85, 0.15);

  /* Scroll-in animation */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.results-badge.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.results-badge__brace {
  font-size: 14px;
  font-weight: 700;
  color: #4a6fa5;
}

.results-badge__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--clr-text-muted);
  text-transform: uppercase;
}

/* Heading */
.results-title {
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  max-width: 600px;
  position: relative;
  z-index: 30;
  /* Keep title on top */

  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease 0.1s, transform 0.65s ease 0.1s;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.4);
}

.results-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.results-title--accent {
  display: block;
  color: #ffffff;
  position: relative;
  padding-bottom: 12px;
}

.results-title--accent::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #4a6fa5;
  box-shadow:
    0 0 10px rgba(74, 111, 165, 0.8),
    0 0 25px rgba(74, 111, 165, 0.4);
  border-radius: 4px;
}

/* Subtitle */
.results-subtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #4a6fa5;

  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.22s, transform 0.6s ease 0.22s;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 1), 0 0 20px rgba(0, 0, 0, 0.4);
}

.results-subtitle.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Arrows */
.results-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
  margin-bottom: 20px;
  /* Safe margin for desktop */
  opacity: 1;
  /* Always visible */
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 1));
}

@media (max-width: 600px) {
  .results-arrows {
    margin-bottom: 5px;
    /* Pull closer but safely on mobile */
  }
}

.results-arrows.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.arrow-svg {
  width: 22px;
  height: 22px;
  color: rgba(74, 111, 165, 0.75);
  /* Glass-like transparency */
  filter: drop-shadow(0 0 8px rgba(74, 111, 165, 0.5));
}

/* Staggered bounce per arrow */
.arrow-svg--1 {
  animation: arrowBounce 1.6s ease-in-out 0s infinite;
}

.arrow-svg--2 {
  animation: arrowBounce 1.6s ease-in-out 0.2s infinite;
}

.arrow-svg--3 {
  animation: arrowBounce 1.6s ease-in-out 0.4s infinite;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0);
  }

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

/* ============================================
   MORE CASES HEADER
   ============================================ */
.more-cases-hdr {
  position: relative;
  z-index: 25;
  /* Elevated above phone mockup */
  background: transparent;
  padding: 60px 0 0px;
  /* Reduced padding */
  text-align: center;
}

.more-cases-bg {
  display: none;
}

/* Transitions removed to show grid */
.more-cases-hdr::before {
  display: none;
}

/* Transitions removed to show grid */
.more-cases-hdr::after {
  display: none;
}

.more-cases-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.more-cases-title {
  font-size: clamp(28px, 8vw, 54px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--clr-text);
  position: relative;
  z-index: 30;
  /* Above everything */
  text-shadow: 0 4px 12px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.4);
}

/* Scroll-reveal for the heading */
.reveal-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.cases-section {
  position: relative;
  z-index: 15;
  height: 400vh;
  background: transparent;
  margin-top: -30px;
  /* Overlap with previous section without clipping */
}

.sticky-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* Stack Title and Phone */
  align-items: center;
  justify-content: center;
  gap: 2vh;
  /* Relative gap */
  padding: 4vh 0;
  /* More top/bottom padding to avoid clipping */
  overflow: visible;
  /* Prevent text cut-off */
}

/* Phone Mockup Styling */
.phone-container {
  position: relative;
  z-index: 20;
  width: min(340px, 85vw);
  height: min(720px, 80vh);
  /* Adaptive desktop height */
  perspective: 1000px;
  flex-shrink: 0;
  transition: height 0.3s ease, width 0.3s ease;
}

@media (max-width: 600px) {
  .phone-container {
    /* Dynamics: Height is 72% of viewport, proportional width */
    height: 72vh;
    width: calc(72vh * 0.48);
    max-width: 90vw;
    margin: 0 auto;
  }
}

.phone-frame {
  position: relative;
  width: 100%;
  height: 100%;
  background: #080808;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #1a1a1a,
    0 20px 50px rgba(0, 0, 0, 0.8),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

/* Glass Edge Reflection */
.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 48px;
  background: linear-gradient(115deg,
      transparent 40%,
      rgba(255, 255, 255, 0.03) 45%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.03) 55%,
      transparent 60%);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f0f2f5;
  border-radius: 38px;
  overflow: hidden;
  /* This hides the scrolling cards */
  z-index: 1;
}

#cases .phone-screen,
#video-feed .phone-screen {
  background: #0a0e1a;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

/* Internal Cases Track inside Phone */
.cases-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 12px 40px;
  /* Reduced bottom padding */
  /* Space for Notch and Bottom padding */
  will-change: transform;
}

/* Fit cards into phone screen */
.case-card {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

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

/* Growth badge with neon glow */
.case-growth {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #141d33;
  /* Slightly darker to make glow pop */
  color: #fff;
  border-radius: 10px;
  padding: 4px 10px;
  display: flex;
  align-items: baseline;
  gap: 1.5px;
  z-index: 2;

  /* Neon Glow Effect */
  border: 1px solid rgba(74, 111, 165, 0.6);
  box-shadow:
    0 0 15px rgba(33, 47, 85, 0.8),
    0 0 5px rgba(74, 111, 165, 0.4),
    inset 0 0 8px rgba(74, 111, 165, 0.2);

  /* Subtle animation to pulse like neon */
  animation: neonPulse 3s infinite ease-in-out;
}

@keyframes neonPulse {

  0%,
  100% {
    box-shadow: 0 0 15px rgba(33, 47, 85, 0.8), 0 0 5px rgba(74, 111, 165, 0.4), inset 0 0 8px rgba(74, 111, 165, 0.2);
    border-color: rgba(74, 111, 165, 0.6);
  }

  50% {
    box-shadow: 0 0 25px rgba(33, 47, 85, 1), 0 0 10px rgba(74, 111, 165, 0.7), inset 0 0 12px rgba(74, 111, 165, 0.4);
    border-color: rgba(74, 111, 165, 0.9);
  }
}

.case-growth__x {
  font-size: 11px;
  font-weight: 700;
  color: #8ba3d4;
}

.case-growth__num {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

/* Hardware Decorations */
.phone-dynamic-island {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.phone-button {
  position: absolute;
  width: 3px;
  background: #1a1a1a;
  border-radius: 2px 0 0 2px;
}

.phone-button--vol-up {
  top: 120px;
  left: -3px;
  height: 50px;
}

.phone-button--vol-down {
  top: 180px;
  left: -3px;
  height: 50px;
}

.phone-button--power {
  top: 160px;
  right: -3px;
  height: 80px;
  border-radius: 0 2px 2px 0;
}

/* MacBook / Mac Upgrade for PC (excluding Stories) */
@media (min-width: 1024px) {
  .phone-container:not(.stories-phone-container) {
    width: min(820px, 90vw);
    height: 540px;
    perspective: 2000px;
    margin: 0 auto;
  }

  /* Main Display Housing */
  .phone-container:not(.stories-phone-container) .phone-frame {
    border-radius: 16px;
    padding: 10px 10px 22px;
    background: #050505;
    border: 3px solid #1a1a1a;
    box-shadow:
      0 0 0 1px #2a2a2a,
      0 25px 60px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
  }

  /* Webcam dot */
  .phone-container:not(.stories-phone-container) .phone-frame::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #111;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.15);
    z-index: 5;
  }

  /* Realistic MacBook Base - Wedge Design */
  .phone-container:not(.stories-phone-container)::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: -5%;
    width: 110%;
    height: 16px;
    background: linear-gradient(to bottom,
        #1a1a1a 0%,
        #111 20%,
        #050505 50%,
        #000 100%);
    border-radius: 2px 2px 14px 14px;
    box-shadow:
      0 15px 30px rgba(0, 0, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    z-index: 1;
  }

  /* Subtle opening notch */
  .phone-container:not(.stories-phone-container) .phone-frame::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #000;
    border-radius: 0 0 8px 8px;
    z-index: 5;
  }

  .phone-container:not(.stories-phone-container) .phone-screen {
    border-radius: 6px;
    background: #080a14;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
  }

  /* Hide Mobile hardware */
  .phone-container:not(.stories-phone-container) .phone-dynamic-island,
  .phone-container:not(.stories-phone-container) .phone-button {
    display: none !important;
  }

  /* Tracks in Grid */
  .cases-track,
  .video-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
  }
}

/* Responsive tweaks for the phone */
@media (max-height: 700px) {
  .phone-container {
    height: 90vh;
  }
}

@media (max-width: 480px) {
  .phone-container {
    width: 90vw;
  }
}

/* ============================================
   VIDEO TESTIMONIALS SECTION (STICKY)
   ============================================ */
.video-cases-section {
  position: relative;
  height: auto;
  /* Dynamic height calculated in script.js */
  /* Adjusted for 7 videos */
  background: transparent;
  z-index: 15;
  margin-top: 0;
  /* Removed negative margin to prevent overlap */
}

.video-card {
  position: relative;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.video-aspect {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  /* 16:9 ratio */
  background: #000;
}

.video-aspect iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================
   PHILOSOPHY SECTION
   ============================================ */
.philosophy {
  position: relative;
  z-index: 10;
  padding: 70px 0 0;
  /* Removed bottom padding */
  background: transparent;
  overflow: hidden;
}

/* Removed for absolute seamlessness */
.philosophy-glow {
  display: none;
}

.cases-section,
.video-cases-section,
.stories-section {
  min-height: 200vh;
  /* Fallback to ensure scrollability */
}

@media (min-width: 768px) {
  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.philosophy-card-inner {
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}

.philosophy-card:hover .philosophy-card-inner {
  border-color: rgba(74, 111, 165, 0.4);
  box-shadow: 0 20px 60px rgba(33, 47, 85, 0.25);
  transform: translateY(-8px);
}

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

.philosophy-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--clr-text);
}

.philosophy-item strong {
  color: #fff;
  font-weight: 700;
}

.ph-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  border-radius: 8px;
  margin-top: 2px;
}

.philosophy-card--negative .ph-icon {
  background: rgba(255, 59, 48, 0.1);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.4);
  box-shadow:
    0 0 10px rgba(255, 59, 48, 0.3),
    inset 0 0 8px rgba(255, 59, 48, 0.1);
  text-shadow: 0 0 8px rgba(255, 59, 48, 0.8);
}

.philosophy-card--negative p {
  color: var(--clr-text-muted);
}

.philosophy-card--positive .ph-icon {
  background: rgba(74, 111, 165, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  /* Lighter border for contrast */
  box-shadow: 0 0 15px rgba(74, 111, 165, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.philosophy-card--positive .ph-icon svg {
  color: #fff;
  filter: drop-shadow(0 0 2px #fff);
  /* Glow applied directly to SVG path */
}

.philosophy-expert {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 32px;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.philosophy-expert-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #4a6fa5;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(74, 111, 165, 0.2);
  border-radius: 100px;
  text-transform: uppercase;
}

.philosophy-expert-text {
  font-size: clamp(18px, 4.5vw, 24px);
  line-height: 1.6;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
}

.philosophy-expert-text strong {
  color: #fff;
  font-weight: 800;
}

@media (max-width: 600px) {
  .philosophy {
    padding: 60px 0;
  }

  .philosophy-card-inner {
    padding: 32px 24px;
  }

  .philosophy-item {
    font-size: 16px;
  }

  .philosophy-expert {
    padding: 40px 20px;
  }
}

/* ============================================
   TIMER & FORM SECTION
   ============================================ */
.timer-section {
  position: relative;
  z-index: 10;
  padding: 60px 0 80px;
  background: transparent;
  overflow: hidden;
}

/* Removing section separation to keep grid continuous */
.timer-section::before {
  display: none;
}

.timer-card {
  max-width: 600px;
  margin: 0 auto;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(10, 13, 24, 0.6) 0%, rgba(10, 13, 24, 0.3) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.timer-header {
  background: linear-gradient(135deg, #1a2a5a 0%, #0d1426 100%);
  padding: 48px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.timer-uptitle {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #4a6fa5;
  margin-bottom: 12px;
}

.timer-title {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 32px;
}

/* Countdown Display */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 65px;
}

.countdown-item .num {
  font-size: clamp(32px, 8vw, 44px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(74, 111, 165, 0.5);
}

.countdown-item .label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-top: 8px;
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 18px;
}

/* Form Styles */
.form-body {
  padding: 48px 32px;
  background: transparent;
}

.diagnostics-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px 24px;
  color: #fff;
  font-family: var(--font-main);
  font-size: 16px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--clr-accent-light);
  background: rgba(255, 255, 255, 0.05);
}

.form-submit-btn {
  width: 100%;
  max-width: none;
  padding: 22px;
  font-size: 16px;
  border-radius: 14px;
  margin-top: 10px;
}

.form-notice {
  font-size: 12px;
  color: var(--clr-text-muted);
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
  opacity: 0.7;
}

@media (max-width: 480px) {
  .form-body {
    padding: 32px 20px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-item {
    min-width: 55px;
  }
}

.final-banner {
  position: relative;
  z-index: 10;
  padding: 80px 0 60px;
  background: transparent;
  text-align: left;
  border: none;
  /* Ensure no borders */
}

.final-banner-text {
  font-size: clamp(26px, 6.5vw, 48px);
  font-weight: 800;
  max-width: 680px;
  margin: 0;
  line-height: 1.15;
  text-transform: none;
  letter-spacing: -0.02em;

  /* Blue Glass Text Effect */
  background: linear-gradient(110deg,
      #4a6fa5 35%,
      #8ba3d4 45%,
      #ffffff 50%,
      #8ba3d4 55%,
      #4a6fa5 65%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(74, 111, 165, 0.4));

  animation: glassTextShimmer 4s linear infinite;
}

@media (max-width: 600px) {
  .final-banner {
    padding: 60px 0 40px;
  }
}

/* ============================================
   FINAL VIDEO SECTION
   ============================================ */
.final-video {
  position: relative;
  z-index: 10;
  padding: 0 0 120px;
  /* Removed top padding */
  background: transparent;
}

/* Transition removed */
.final-video::after {
  display: none;
}

.final-video .video-card {
  max-width: 800px;
  margin: -10px auto 0;
  /* Pull up to touch arrows */
  border: 1px solid rgba(74, 111, 165, 0.4);
  box-shadow: 0 20px 60px rgba(33, 47, 85, 0.3);
}

.video-info-card {
  margin: 48px auto 0;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}



@media (max-width: 600px) {
  .video-info-card {
    padding: 30px 20px;
    margin-top: 32px;
  }
}

/* ============================================
   STORIES SECTION (FB FEED)
   ============================================ */
.stories-section {
  position: relative;
  height: 500vh;
  background: transparent;
  z-index: 15;
}

.stories-title {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.2;
  text-align: center;
  position: relative;
  z-index: 30;
  /* Ensure visibility above background charts */
  /* Brighter Blue Glass Effect */
  background: linear-gradient(110deg, #4a88d9 35%, #8bb9f5 45%, #ffffff 50%, #8bb9f5 55%, #4a88d9 65%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(74, 111, 165, 0.6));
  animation: glassTextShimmer 4s linear infinite;
}

.stories-phone-container {
  max-width: 320px;
  margin: 0 auto;
}

.fb-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 40px 12px 40px;
  /* Reduced bottom padding */
  background: #f0f2f5;
  will-change: transform;
}

.fb-post {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

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

.fb-post-header {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 10px;
}

.fb-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e4e6eb;
}

.fb-name {
  font-size: 14px;
  font-weight: 700;
  color: #050505;
}

.fb-date {
  font-size: 12px;
  color: #65676b;
}

.fb-post-content {
  padding: 2px 0;
}

.fb-img {
  width: 100%;
  display: block;
}

.fb-post-footer {
  padding: 10px 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fb-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
}

.fb-action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  background: #f0f2f5;
  border-radius: 24px;
  cursor: default;
  transition: opacity 0.2s ease;
}

.fb-action-btn svg {
  width: 20px;
  height: 20px;
  color: #4b4b4b;
}

/* ============================================
   MODAL & FORM
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background-color: #0a0e1a;
  background-image:
    linear-gradient(to bottom, rgba(10, 14, 26, 0.88) 0%, rgba(10, 14, 26, 0.9) 60%, rgba(10, 14, 26, 1) 92%),
    url('assets/Фото на фоне.webp');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 720px;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border: none;
  /* Removed border */
  box-shadow: 0 50px 120px rgba(0, 0, 0, 1);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 600px) {
  .modal-overlay {
    padding: 10px;
  }

  .modal-content {
    border-radius: 20px;
    max-height: 98vh;
  }
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(74, 111, 165, 0.4);
  border: 1px solid rgba(74, 111, 165, 0.8);
  color: #fff;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 0 15px rgba(74, 111, 165, 0.5);
}

@media (max-width: 600px) {
  .modal-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
  overflow-y: auto;
}

@media (min-width: 860px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

.modal-info {
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(33, 47, 85, 0.25) 0%, transparent 100%);
  border-bottom: 1px solid rgba(33, 47, 85, 0.2);
}

@media (max-width: 600px) {
  .modal-info {
    padding: 16px 16px;
  }
}

@media (min-width: 860px) {
  .modal-info {
    padding: 30px 48px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}

.modal-info-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.modal-info-newtext,
.info-card-newtext {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin-top: 10px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  text-align: center;
}

.modal-info-newtext strong,
.info-card-newtext strong {
  background: linear-gradient(110deg, #4a88d9 35%, #8bb9f5 45%, #ffffff 50%, #8bb9f5 55%, #4a88d9 65%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  font-weight: 900;
  filter: drop-shadow(0 2px 8px rgba(74, 111, 165, 0.5));
  animation: glassTextShimmer 4s linear infinite;
}

@media (min-width: 860px) {

  .modal-info-newtext,
  .info-card-newtext {
    font-size: 24px;
    margin-top: 20px;
    line-height: 1.3;
  }
}



.modal-form-card {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  background: transparent;
}

@media (max-width: 600px) {
  .modal-form-card {
    padding: 20px 16px;
    gap: 16px;
  }
}

.modal-top-header {
  padding: 50px 24px 0;
  text-align: center;
  z-index: 10;
}

@media (max-width: 600px) {
  .modal-top-header {
    padding: 60px 24px 0;
  }
}


@media (min-width: 860px) {
  .modal-form-card {
    padding: 30px 48px 40px;
    gap: 20px;
  }
}

.modal-uptitle {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #4a6fa5;
  margin-bottom: 8px;
  opacity: 0.9;
}

.modal-cta-main {
  color: #4a6fa5;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 20px;
  display: block;
}

@media (max-width: 600px) {
  .modal-uptitle {
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 2px;
  }

  .modal-cta-main {
    font-size: 12px;
    margin-bottom: 16px;
  }
}

.modal-title {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 44px;
}

.modal-title-small {
  display: block;
  font-size: 0.75em;
  opacity: 0.8;
  font-weight: 700;
  margin-top: 4px;
}

@media (max-width: 600px) {
  .modal-title {
    font-size: 20px;
    line-height: 1.25;
    padding: 0 20px;
  }
}

@media (min-width: 860px) {
  .modal-title {
    font-size: 30px;
  }
}

.modal-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

@media (min-width: 860px) {
  .modal-timer {
    gap: 16px;
    padding: 12px 0;
  }
}

.timer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85px;
  /* Fixed width to prevent shifting */
  flex-shrink: 0;
}

.timer-num {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  /* Critical for stable width digits */
}

@media (max-width: 600px) {
  .timer-item {
    width: 56px;
  }

  .timer-num {
    font-size: 20px;
  }
}

@media (min-width: 860px) {
  .timer-num {
    font-size: 48px;
  }
}

.timer-label {
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.timer-sep {
  font-size: 28px;
  font-weight: 900;
  color: #4a6fa5;
  margin-top: -20px;
}

@media (max-width: 600px) {
  .timer-sep {
    font-size: 18px;
    margin-top: -12px;
  }
}

@media (min-width: 860px) {
  .timer-sep {
    font-size: 36px;
    margin-top: -24px;
  }
}

.actual-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.input-group input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(33, 47, 85, 0.6);
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  transition: all 0.2s ease;
}

@media (max-width: 600px) {
  .input-group input {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 10px;
  }
}

@media (min-width: 860px) {
  .input-group input {
    padding: 20px 24px;
    border-radius: 20px;
  }
}

.input-group input:focus {
  outline: none;
  border-color: #4a6fa5;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 20px rgba(74, 111, 165, 0.2);
}

.btn-modal {
  background: #212F55;
  color: #fff;
  padding: 18px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  margin-top: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Shimmer/Glint effect */
.btn-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.2),
      transparent);
  transition: none;
  animation: modalShimmer 3s infinite;
}

@keyframes modalShimmer {
  0% {
    left: -150%;
  }

  30% {
    left: 150%;
  }

  100% {
    left: 150%;
  }
}

@media (max-width: 600px) {
  .btn-modal {
    padding: 14px;
    font-size: 14px;
    border-radius: 10px;
    margin-top: 2px;
  }
}

@media (min-width: 860px) {
  .btn-modal {
    padding: 24px;
    border-radius: 20px;
    margin-top: 8px;
  }
}

.btn-modal:hover {
  background: #2d3e72;
  transform: translateY(-4px);
  box-shadow: 0 15px 45px rgba(33, 47, 85, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.modal-privacy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}