/* ========================================
   SIDHISI MARKETING WEBSITE — styles.css
   Mobile-first, zero dependencies
   ======================================== */

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

:root {
  --blue:        #0F4C81;
  --blue-dark:   #0a365c;
  --blue-light:  #1a6bb5;
  --orange:      #F26419;
  --orange-hover:#e05510;
  --white:       #FFFFFF;
  --gray-bg:     #F8F9FA;
  --gray-text:   #5a6a7a;
  --gray-border: #e2e8f0;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow-sm:   0 2px 8px rgba(15,76,129,0.06);
  --shadow-md:   0 8px 30px rgba(15,76,129,0.10);
  --shadow-lg:   0 16px 48px rgba(15,76,129,0.14);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a2a3a;
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---------- UTILITIES ---------- */
.section-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn:hover::after {
  transform: translateX(100%);
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff7a3d);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(242,100,25,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(242,100,25,0.45);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-subtitle {
  text-align: center;
  color: var(--gray-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.features-grid .feature-card:nth-child(2) { transition-delay: 0.15s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,76,129,0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-text);
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--blue);
}
.nav-links .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  transition: all var(--transition);
}
.nav-links .nav-cta:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2.5px;
  background: var(--blue);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ========================================
   HERO
   ======================================== */
.hero {
  padding: 120px 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 100vh;
}
.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(15,76,129,0.08), rgba(242,100,25,0.08));
  color: var(--blue);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(15,76,129,0.1);
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray-text);
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-subtitle strong {
  color: var(--blue);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 280px;
  height: 540px;
  background: var(--blue-dark);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255,255,255,0.1);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: #1a3a5c;
  border-radius: 4px;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #e8f4f8 0%, #f0f7ff 100%);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-dark);
}
.signal-dots { font-size: 0.5rem; letter-spacing: 2px; }
.phone-map {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.12;
}
.map-line {
  position: absolute;
  background: var(--blue);
}
.map-line.h1, .map-line.h2, .map-line.h3 { height: 1px; width: 100%; }
.map-line.h1 { top: 30%; }
.map-line.h2 { top: 55%; }
.map-line.h3 { top: 75%; }
.map-line.v1, .map-line.v2, .map-line.v3 { width: 1px; height: 100%; }
.map-line.v1 { left: 25%; }
.map-line.v2 { left: 50%; }
.map-line.v3 { left: 72%; }

.map-pin-container {
  position: relative;
  z-index: 2;
}
.map-pin {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(39,174,96,0.4);
  animation: pinBounce 2s ease-in-out infinite;
}
.checkmark-icon {
  width: 28px;
  height: 28px;
}
.pin-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #27ae60;
  animation: pulse 2s ease-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0% { width: 56px; height: 56px; opacity: 0.6; }
  100% { width: 120px; height: 120px; opacity: 0; }
}

.phone-bottom-bar {
  background: var(--white);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--gray-border);
}
.attendance-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #27ae60;
}
.location-text {
  font-size: 0.7rem;
  color: var(--gray-text);
}

/* ========================================
   PROBLEM VS SOLUTION
   ======================================== */
.problem-solution {
  background: var(--gray-bg);
  padding: 100px 0;
}
.animation-stage {
  max-width: 700px;
  margin: 48px auto;
  position: relative;
  min-height: 250px;
}
.anim-frame {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-frame.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.anim-frame.visible {
  opacity: 1;
  transform: scale(1);
}

/* Problem Frame */
.problem-frame {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.speech-bubble {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 500px;
  width: 100%;
}
.bubble-avatar {
  font-size: 2.5rem;
  flex-shrink: 0;
}
.bubble-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bubble-content p {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-top: 4px;
}
.fake-gps-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #fdf0f0, #fde8e8);
  padding: 20px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(231,76,60,0.2);
  max-width: 500px;
  width: 100%;
  animation: shakeX 0.6s ease-in-out 1s;
}
@keyframes shakeX {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}
.fake-gps-icon {
  position: relative;
  flex-shrink: 0;
}
.fake-gps-icon svg {
  width: 36px;
  height: 36px;
}
.gps-spoof-badge {
  position: absolute;
  top: -8px;
  right: -16px;
  background: #e74c3c;
  color: var(--white);
  font-size: 0.55rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.fake-gps-text {
  font-weight: 600;
  color: #c0392b;
  font-size: 0.95rem;
}

/* Solution Frame */
.solution-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.shield-container {
  position: relative;
}
.shield-icon {
  position: relative;
  width: 80px;
  height: 80px;
}
.shield-icon svg:first-child {
  width: 80px;
  height: 80px;
  stroke: var(--blue);
  fill: rgba(15,76,129,0.06);
}
.shield-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
}
.solution-headline {
  font-size: 1.25rem;
  color: var(--blue-dark);
  font-weight: 600;
  max-width: 450px;
}
.detection-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
}
.badge-caught {
  background: #fef0f0;
  color: #c0392b;
  border: 1px solid rgba(192,57,43,0.2);
}
.badge-safe {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.2);
}
.problem-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}
.problem-copy strong {
  color: var(--blue);
}

/* ========================================
   FEATURES
   ======================================== */
.features {
  padding: 100px 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, rgba(15,76,129,0.06), rgba(242,100,25,0.04));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg {
  width: 40px;
  height: 40px;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   PRICING / ROI
   ======================================== */
.pricing {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 100px 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(242,100,25,0.08);
}
.pricing::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.pricing-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.pricing h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.pricing-pitch {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
  line-height: 1.8;
}
.pricing-pitch strong {
  color: var(--orange);
}
.pricing-highlights {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.highlight-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.highlight-label {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 8px;
  font-weight: 500;
}
.pricing-micro {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 36px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-micro strong {
  color: rgba(255,255,255,0.95);
}
.pricing .btn-primary {
  background: linear-gradient(135deg, var(--orange), #ff7a3d);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 80px 0 0;
}
.footer-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-contact h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.footer-contact p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  line-height: 1.8;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange);
  padding: 14px 28px;
  background: rgba(242,100,25,0.1);
  border-radius: 16px;
  border: 1px solid rgba(242,100,25,0.2);
  transition: all var(--transition);
}
.phone-link svg {
  width: 22px;
  height: 22px;
}
.phone-link:hover {
  background: rgba(242,100,25,0.2);
  transform: translateY(-2px);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}
.footer-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
}
.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: var(--orange);
  font-weight: 600;
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: #ff7a3d;
}
.copyright {
  font-size: 0.8rem;
}

/* ========================================
   MOBILE NAV OVERLAY
   ======================================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,54,92,0.97);
  backdrop-filter: blur(16px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s, visibility 0.3s;
}
.mobile-nav-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav-overlay ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.mobile-nav-overlay a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.mobile-nav-overlay a:hover {
  color: var(--orange);
}
.mobile-nav-overlay .nav-cta {
  background: var(--orange);
  padding: 14px 36px;
  border-radius: 50px;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    min-height: auto;
    gap: 40px;
  }
  .hero-content { order: 1; }
  .hero-visual { order: 2; }
  .hero .btn { margin: 0 auto; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand {
    align-items: flex-start;
    text-align: left;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* Mobile (≤ 640px) */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero {
    padding: 90px 20px 50px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .hero-badge {
    font-size: 0.78rem;
    padding: 6px 14px;
  }

  .phone-mockup {
    width: 220px;
    height: 420px;
    border-radius: 28px;
    padding: 10px;
  }
  .phone-screen { border-radius: 20px; }

  .problem-solution { padding: 70px 0; }
  .speech-bubble { padding: 18px 20px; }
  .bubble-content p { font-size: 0.95rem; }
  .fake-gps-indicator { padding: 16px 20px; flex-direction: column; text-align: center; }

  .features { padding: 70px 0; }

  .pricing { padding: 70px 0; }
  .pricing-highlights { gap: 28px; }
  .highlight-number { font-size: 2rem; }

  .site-footer { padding: 60px 0 0; }
  .footer-contact h3 { font-size: 1.2rem; }
  .phone-link { font-size: 1.1rem; padding: 12px 22px; }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .map-pin { animation: none; }
  .pin-pulse { animation: none; display: none; }
  .fake-gps-indicator { animation: none; }
}
