/* ----- BASE & RESET ----- */
:root {
  --bg-base: #ffffff;
  --bg-surface: #f9f9f9;
  --bg-elevated: #f1f3f5;
  --bg-card: #ffffff;

  --text-primary: #1d1d1f;
  --text-secondary: #495057;
  --text-muted: #86868b;

  --accent: #0071e3;
  --accent-glow: rgba(0, 113, 227, 0.1);
  --success: #28cd41;
  --danger: #ff3b30;
  --danger-bg: rgba(255, 59, 48, 0.05);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "SF Pro Display",
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  /* Gradients for Light Mode - Darker for contrast */
  --grad-white: linear-gradient(135deg, #000000 0%, #333333 100%);
  --grad-orange: linear-gradient(135deg, #ea580c 0%, #9a3412 100%);
  --grad-danger: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --grad-accent: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  --grad-story: linear-gradient(90deg, #8b5cf6, #f97316);
}

.grad-text {
  background: var(--grad-white);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-orange {
  background: var(--grad-orange);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-danger {
  background: var(--grad-danger);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grad-story {
  background: var(--grad-story);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* ----- TYPOGRAPHY ----- */
h1 {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5em;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--text-secondary);
}


/* ----- LAYOUT ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

section {
  padding: 10vh 0; /* Normalized from 12vh to 10vh */
  position: relative;
  scroll-margin-top: 60px;
}

.surface-bg {
  background-color: var(--bg-surface);
}

.mini-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ecosystem-section {
  padding-bottom: 8vh !important; /* Balanced gap between highlights and next section */
}

/* ----- SITE LOADER ----- */
#site-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

#site-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 60px;
  width: auto;
  margin-bottom: 2rem;
  animation: logoPulse 2s ease-in-out infinite;
}

.loader-bar-container {
  width: 140px;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loader-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  animation: loaderSlide 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes logoPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
}

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

/* ----- NAVIGATION ----- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  font-size: 13px;
  letter-spacing: -0.01em;
}

nav.scrolled {
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

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

.btn-emergency {
  color: var(--danger) !important;
  font-weight: 600;
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-base);
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  margin-left: 0.5rem;
}

.nav-cta:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .nav-cta {
    margin-left: 0;
    padding: 12px 24px;
    font-size: 1.1rem;
  }
}

.hamburger-menu {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--text-primary);
  z-index: 1001;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-links.nav-active {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }

  .nav-links.nav-active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger animation for links */
  .nav-links.nav-active a:nth-child(1) {
    transition-delay: 0.1s;
  }
  .nav-links.nav-active a:nth-child(2) {
    transition-delay: 0.15s;
  }
  .nav-links.nav-active a:nth-child(3) {
    transition-delay: 0.2s;
  }
  .nav-links.nav-active a:nth-child(4) {
    transition-delay: 0.25s;
  }
  .nav-links.nav-active a:nth-child(5) {
    transition-delay: 0.3s;
  }
}

/* ----- BUTTONS & LINKS ----- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 600;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
  cursor: pointer;
  border: none;
}

.primary-cta {
  background: var(--text-primary);
  color: var(--bg-base);
  animation: softPulse 3s infinite alternate ease-in-out;
}

@keyframes softPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.05);
  }
}

.primary-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.primary-cta:active {
  transform: scale(0.96);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.outline-cta {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.outline-cta:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--text-primary);
}

.outline-cta:active {
  transform: scale(0.96);
}

.cta-text {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  transition: color 0.2s;
}

.cta-text:hover {
  color: #55aaff;
}

.cta-text:active {
  transform: scale(0.96);
}

/* ----- HERO SECTION ----- */
.hero {
  position: relative;
  min-height: calc(100vh - 80px); /* Account for navbar */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0 20px 0;
  overflow: hidden;
}

/* Cinematic BG overlay */
.hero-bg-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(100px);
  z-index: 0;
  opacity: 0.3; /* Muted for Light Mode */
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.05) 0%, transparent 70%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.03) 0%, transparent 70%);
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 10; /* Higher than ribbon and glows */
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }
  .hero-content {
    margin: 0 auto !important;
  }
  .hero-badge,
  .hero-ctas {
    justify-content: center !important;
  }
  .hero-visual {
    justify-content: center !important;
    margin-top: 3rem !important;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-subtitle {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-description {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-direction: row; /* Horizontal on desktop */
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

@media (max-width: 991px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center; /* Center on mobile */
    gap: 1.5rem;
  }
}

.cta-link {
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition:
    color 0.3s,
    border-color 0.3s;
  text-decoration: none;
}

.cta-link strong {
  color: var(--danger);
}

.cta-link:hover {
  color: var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
}

.hero-visual {
  margin-top: 4rem;
  width: 100%;
  max-width: 800px;
  position: relative;
}

.mockup-container {
  background: #ffffff;
  border: 6px solid #8e8e93; /* Darker border for better definition */
  border-radius: 36px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.phone-mockup {
  border-radius: 40px;
  border-width: 6px;
  padding-bottom: 56.25%; /* 16:9 aspect for desktop video embed, mobile phone usually taller */
}

/* For video promo mockup */
.hero-visual .phone-mockup {
  padding-bottom: 50%;
  border-radius: 20px 20px 0 0;
  border-bottom: 0;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  cursor: pointer;
}

.play-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition:
    color 0.3s,
    transform 0.3s;
}

.video-placeholder:hover .play-icon {
  color: var(--text-primary);
  transform: scale(1.1);
}

@keyframes iconSoftPulse {
  0% {
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  100% {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  }
}

/* ----- TRUST RIBBON ----- */
.trust-ribbon {
  background: var(--bg-base); /* White to match Hero */
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 5; /* Above bg glows, below hero container */
  margin-top: -3rem; /* Pull up towards Hero */
}

@media (max-width: 900px) {
  .trust-ribbon {
    margin-top: 0; /* Reset pull-up on mobile to prevent overlapping stacked hero visual */
  }
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.trust-item:hover {
  opacity: 1;
}

.trust-item img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.trust-item:hover img {
  transform: scale(1.05);
}

.trust-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .trust-flex {
    gap: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
}
.sec-subtitle {
  max-width: 600px;
  margin: 1rem auto 4rem auto;
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

.ecosystem-text {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.eco-list-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 20px;
  transition:
    background 0.3s,
    transform 0.3s;
  cursor: pointer;
}

.eco-list-item:hover {
  background: var(--bg-elevated);
  transform: translateX(10px);
}

.eco-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.eco-list-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.eco-list-item p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.ecosystem-devices {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-mockup {
  position: absolute;
  width: 240px;
  height: 480px;
  background: #ffffff;
  border: 10px solid #f1f3f5;
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}

@media (max-width: 600px) {
  .device-mockup {
    width: 45vw;
    height: 90vw; /* maintain roughly 1:2 aspect ratio */
    border-width: 6px;
    border-radius: 20px;
  }
}

/* Pitch Deck Feature Highlights */
.feature-highlights {
  display: flex;
  justify-content: center;
  gap: 6vw;
  margin-top: 4vh;
  margin-bottom: 2vh; /* Reduced bottom margin */
  flex-wrap: wrap;
}

.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-highlight-item i {
  font-size: 2.2rem;
  color: var(--accent);
}

/* Integration Grid from Pitch Deck */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.integration-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: left;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.integration-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.integration-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.integration-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.integration-card p {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

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

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

/* Integration Ribbon (Scrolling Marquee) */
.integration-ribbon-container {
  overflow: hidden;
  padding: 4rem 0;
  position: relative;
  width: 100%;
  background: var(--bg-surface);
}

.integration-ribbon {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll-ribbon 40s linear infinite;
}

.integration-ribbon:hover {
  animation-play-state: paused;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  opacity: 0.6;
}

.ribbon-item:hover {
  opacity: 1;
}

.ribbon-item i {
  font-size: 1.45rem;
  color: var(--text-secondary); /* Muted color for better unity */
  opacity: 0.8;
}

.ribbon-item h4 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}

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

/* Ribbon System (Infinite Scrolling) */
.ribbon-container {
  overflow: hidden;
  padding: 3rem 0;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: transparent;
  border: none;
  margin-top: 2rem;
  margin-bottom: 0;
  z-index: 1;
}

.ribbon-container.inner-ribbon {
  margin-top: 6rem; /* Good gap from the grid */
  margin-bottom: 0;
  padding: 3rem 0;
  border-top: none; /* Removed white divider lines */
  border-bottom: none;
  background: transparent !important;
}

/* Ensure the parent section doesn't have extra bottom padding */
#engine {
  padding-bottom: 0 !important;
}

.ribbon-content {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll-ribbon 60s linear infinite;
}

.ribbon-content.reverse {
  animation: scroll-ribbon-reverse 60s linear infinite;
}

.ribbon-content:hover {
  animation-play-state: paused;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
  opacity: 0.7;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.ribbon-item:hover {
  opacity: 1;
  transform: scale(1.05);
}

.ribbon-item i {
  font-size: 2.2rem;
  color: var(--accent);
}

.ribbon-item h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

@keyframes scroll-ribbon-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.device-bg {
  transform: scale(0.85);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  filter: brightness(0.7);
  z-index: 1;
}

.device-left {
  left: 0;
  transform: translate(-10%, -10px) scale(0.85) rotate(-5deg);
}

.device-right {
  right: 0;
  transform: translate(10%, 10px) scale(0.85) rotate(5deg);
}

.device-front {
  z-index: 10;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
  transform: translateY(20px);
  border-color: #222;
}

.ecosystem-devices:hover .device-left {
  transform: translate(-25%, -20px) scale(0.85) rotate(-8deg);
  filter: brightness(0.8);
}

.ecosystem-devices:hover .device-right {
  transform: translate(25%, 0px) scale(0.85) rotate(8deg);
  filter: brightness(0.8);
}

.ecosystem-devices:hover .device-front {
  transform: translateY(0) scale(1.05);
}

.mock-header {
  padding: 1rem;
  background: #333;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.mock-body {
  flex: 1;
  width: 100%;
  height: 100%;
}


/* ----- RESPONSE SECTION (SCORE BREAKDOWN) ----- */
.split-layout {
  display: flex;
  align-items: center;
  gap: 10vw;
}

.split-text,
.split-visual {
  flex: 1;
}

@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
  }
  .split-visual {
    width: 100%;
    margin-top: 3rem;
  }
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.breakdown-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.breakdown-item i {
  font-size: 2rem;
  margin-top: 0.2rem;
}

.breakdown-item h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.breakdown-item p {
  font-size: 1rem;
}

/* Mockup Chat UI */
.mockup-large {
  padding-bottom: 140%;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
}

.light-screen {
  background: #efeae2; /* WA Light */
}

.chat-header {
  background: #f0f2f5;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  border-bottom: 1px solid #e9edef;
  color: #111b21;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  background-size: cover;
  background-blend-mode: overlay;
  background-color: #efeae2;
}

.msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.user-msg {
  background: #dcf8c6;
  color: #111b21;
  align-self: flex-end;
  border-top-right-radius: 0;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.bot-msg {
  background: #ffffff;
  color: #111b21;
  align-self: flex-start;
  border-top-left-radius: 0;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.bot-card {
  border-left: 4px solid var(--accent);
  padding: 16px;
}

.danger-card {
  border-left-color: var(--danger);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.score-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--danger-bg);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

.verdict {
  color: var(--danger);
  font-weight: 700;
  font-size: 1.1rem;
}

.card-divider {
  height: 1px;
  background: var(--border-subtle);
  margin-bottom: 12px;
}

.short-exp {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.card-details ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-details li {
  margin-bottom: 4px;
  display: flex;
  gap: 6px;
}

.card-details li::before {
  content: "•";
  color: var(--text-muted);
}

/* MOCKUP ANIMATIONS & FLOATING ELEMENTS */
@keyframes float1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-10px, -15px) scale(1.1);
  }
}
@keyframes float2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(15px, 10px) scale(1.05);
  }
}
@keyframes float3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-5px, 20px) scale(1.15);
  }
}

.float-anim-1 {
  animation: float1 6s ease-in-out infinite;
}
.float-anim-2 {
  animation: float2 7s ease-in-out infinite;
  animation-delay: 1s;
}
.float-anim-3 {
  animation: float3 8s ease-in-out infinite;
  animation-delay: 2s;
}

/* ----- ENGINE SECTION (BENTO) ----- */
.bento-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

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

.bento-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.engine-features {
  list-style: none;
  margin: 2rem 0;
}

.engine-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.engine-features i {
  color: var(--accent);
}

.small-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.input-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 2rem;
}

.input-tag {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 500;
}

.layers-visual {
  position: absolute;
  right: -10%;
  bottom: -10%;
  width: 300px;
  height: 300px;
  opacity: 0.3;
}

.layer {
  position: absolute;
  width: 200px;
  height: 120px;
  border: 2px solid var(--accent);
  border-radius: 20px;
  transform: rotateX(60deg) rotateZ(-45deg);
  background: rgba(41, 151, 255, 0.05);
}

.layer-1 {
  bottom: 50px;
  right: 50px;
}
.layer-2 {
  bottom: 100px;
  right: 50px;
  border-color: rgba(255, 255, 255, 0.3);
}
.layer-3 {
  bottom: 150px;
  right: 50px;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ----- STATS SECTION ----- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 4rem 0;
}

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

/* Green WhatsApp CTA override */
.cta-button.whatsapp-green {
  background-color: #25d366;
  color: #ffffff;
  border-color: #24b659;
}

.cta-button.whatsapp-green:hover {
  background-color: #20bd5c;
  transform: translateY(-2px) scale(1.02);
}

.cta-button.outline-whatsapp {
  background: transparent;
  color: #25d366;
  border: 2px solid #25d366;
}

.cta-button.outline-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1);
  transform: translateY(-2px);
}

.cta-button.outline-accent {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-button.outline-accent:hover {
  background: rgba(41, 151, 255, 0.1);
  transform: translateY(-2px);
}

/* Blue Official Link */
.official-link {
  color: #0071e3;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.official-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* Responsive Stat Numbers */
.stat-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem) !important;
  white-space: nowrap;
}

@media (min-width: 1440px) {
  .stat-card h2 {
    font-size: 3.5rem !important;
  }
}

/* Feature Highlights Styling */
.feature-highlights {
  display: flex;
  justify-content: center;
  gap: 5vw;
  padding: 3rem 0;
  width: 100%;
}

.feature-highlight-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.4rem; /* Increased size */
  font-weight: 600;
}

.feature-highlight-item i {
  font-size: 2.2rem; /* Increased icon size */
}

@media (max-width: 768px) {
  .feature-highlights {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
  }
}

/* Remove gaps around full-width ribbon */
#engine {
  padding-bottom: 4rem !important; /* Added gap between grid and ribbon */
}

/* The Verification Engine Grid Layout */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .integration-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .integration-grid {
    grid-template-columns: 1fr !important;
  }
}

.stat-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: transparent;
}

.stat-card.card-3d:hover {
  background: var(--bg-surface);
  transform: translateY(-10px) scale(1.02);
  border-bottom-color: transparent;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.stats-prose {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.3rem;
}

.stats-prose p {
  margin-bottom: 1.5rem;
}

.highlight-text {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.4rem;
}

/* ----- PUBLIC SAFETY ----- */
.police-badge {
  margin-bottom: 2rem;
}

.police-badge img {
  border-radius: 50%;
}

.safety-desc {
  max-width: 600px;
  margin: 1.5rem auto;
}

.tagline {
  color: var(--text-primary);
  margin-top: 2rem;
}

/* ----- FAQ ----- */
.faq-section {
  width: 100%; /* Ensure full-width for background */
}

.faq-list {
  max-width: 800px; /* Constrain content width here instead of section */
  margin: 4rem auto 0;
}

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

.faq-question {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 500;
  color: var(--text-primary);
}

.faq-question i {
  font-size: 1.25rem;
  transition: transform 0.3s;
}

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

.faq-answer p {
  padding-bottom: 2rem;
}

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

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

/* ----- MODAL ----- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 32px;
  padding: 3rem 2rem;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

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

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.modal-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.modal-header h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

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

.platform-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.platform-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.platform-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.platform-card.whatsapp .platform-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
}

.platform-card.telegram .platform-icon {
  background: rgba(34, 158, 217, 0.1);
  color: #229ed9;
}

.platform-card.next-up .platform-icon {
  background: rgba(41, 151, 255, 0.1);
  color: var(--accent);
}

.platform-info h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.platform-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.platform-card .arrow {
  margin-left: auto;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.platform-card:hover .arrow {
  opacity: 1;
}

.platform-card.disabled {
  cursor: default;
  opacity: 0.6;
}

.platform-card.disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.05);
}

.badge {
  margin-left: auto;
  background: rgba(41, 151, 255, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}

.modal-footer {
  margin-top: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

.modal-footer p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 2.5rem 1.5rem 2rem;
  }
}
.emergency-strip {
  background: #fff5f5; /* Light red background for high contrast light mode */
  color: var(--text-primary);
  padding: 5rem 0;
  border-top: 2px solid var(--danger);
  border-bottom: 2px solid var(--danger);
  position: relative;
  z-index: 1;
}

.emergency-strip::before,
.emergency-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--danger);
  box-shadow:
    0 0 15px var(--danger),
    0 0 5px var(--danger);
  opacity: 0.5;
  z-index: -1;
}

.emergency-strip::before {
  top: -1px;
}
.emergency-strip::after {
  bottom: -1px;
}

.emergency-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.emergency-tag {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.emergency-content h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.emergency-content h2 strong {
  color: var(--danger);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.emergency-content p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.emergency-btn {
  background: var(--danger);
  color: #fff;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.2);
}

.emergency-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ----- FOOTER ----- */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0; /* Tightened from 4rem */
  background: var(--bg-base);
}

.footer-cta {
  margin-bottom: 5rem;
  text-align: center;
}

.footer-cta h2 {
  margin-bottom: 2.5rem; /* Increased vertical gap */
}

.footer-cta p {
  margin-bottom: 4rem; /* Increased vertical gap */
}

.footer-disclaimer {
  background: var(--bg-elevated);
  padding: 1.5rem 2rem;
  border-radius: 16px;
  margin-bottom: 3rem; /* Reduced from 4rem */
  font-size: 0.9rem;
}

.footer-disclaimer strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

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

.footer-brand p {
  margin: 1rem 0;
  font-size: 1rem;
}

.police-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2rem;
  font-weight: 500;
}

.police-footer img {
  border-radius: 50%;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links a,
.footer-contact a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  transition: color 0.2s;
}

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

.emergency-num {
  color: var(--danger) !important;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ----- ANIMATIONS ----- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.95);
  transition:
    opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible {
  opacity: 1 !important;
  transform: none !important;
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
