@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Palette */
  --color-bg:           #F5F7FA;
  --color-bg-alt:       #FFFFFF;
  --color-surface:      #FFFFFF;
  --color-surface-soft: #F0F4FF;

  --color-primary:      #3D6FD4;       /* calm blue */
  --color-primary-mid:  #5B8DEE;
  --color-primary-light:#D6E4FF;
  --color-accent:       #E8417E;       /* rose-pink from app UI */
  --color-accent-light: #FFE0EC;

  --color-text-heading: #0F1B2D;
  --color-text-body:    #4A5568;
  --color-text-muted:   #8896A7;
  --color-border:       rgba(61, 111, 212, 0.12);

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-section: 7rem;

  /* Typography */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-md:  0 12px 40px rgba(61, 111, 212, 0.12);
  --shadow-lg:  0 24px 60px rgba(0,0,0,0.12);
  --shadow-img: 0 30px 80px -10px rgba(0,0,0,0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

a:hover { opacity: 0.8; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--color-text-heading);
}

h1 {
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: var(--space-sm);
}

p {
  color: var(--color-text-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
  background: #FFFFFF;
}

/* Blue-tinted alternate rows — clearly distinct from white */
.section-alt {
  background: #EDF2FF;
  border-top: 1px solid rgba(61, 111, 212, 0.09);
  border-bottom: 1px solid rgba(61, 111, 212, 0.09);
}

/* ============================================================
   STICKY HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  padding: 0.85rem 0;
  background: rgba(245, 247, 250, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

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

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  height: 36px;
  width: auto;
  border-radius: var(--radius-sm);
}

.logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.02em;
}

.play-badge {
  height: 44px;
  width: auto;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.play-badge:hover { transform: scale(1.06); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.85;
}

/* Gradient overlay — text-side readable, right side video shows through clearly */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(245,247,250,0.92) 35%, rgba(245,247,250,0.35) 55%, transparent 100%),
    linear-gradient(to top, rgba(245,247,250,0.5) 0%, transparent 25%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-2xl) 0;
}

/* Eyebrow pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.hero-title {
  /* Override with gradient text */
  background: linear-gradient(140deg, #0F1B2D 0%, #3D6FD4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.hero-body {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--color-text-body);
  max-width: 440px;
  margin-bottom: var(--space-lg);
}

.hero-cta { margin-top: var(--space-md); }

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-img);
  animation: floatSoft 7s ease-in-out infinite;
}

/* ============================================================
   INTRO / VALUE SECTION
   ============================================================ */
.intro-section {
  background: linear-gradient(135deg, #EEF3FF 0%, #FFF0F5 100%);
  text-align: center;
}

.intro-section .container {
  max-width: 760px;
}

.intro-section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: var(--space-sm);
}

.intro-section p {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  margin-bottom: 0;
}

/* Trust chips */
.trust-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-lg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-heading);
  box-shadow: var(--shadow-xs);
}

.chip-icon {
  font-size: 1.05rem;
}

/* ============================================================
   FEATURE SECTIONS
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.feature-grid.reverse .feature-text  { order: 2; }
.feature-grid.reverse .feature-image-wrapper { order: 1; }

.feature-label {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.feature-text h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}

.feature-text p {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  max-width: 440px;
  margin-bottom: 0;
}

.feature-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 30px;
  background: rgba(61, 111, 212, 0.12);
  filter: blur(18px);
  border-radius: 50%;
  z-index: -1;
}

.feature-image {
  width: 100%;
  max-width: 280px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-img);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-image:hover {
  transform: translateY(-6px);
}

/* ============================================================
   DASHBOARD / OVERVIEW SECTION
   ============================================================ */
.dashboard-section {
  background: linear-gradient(155deg, #EEF3FF 0%, #F5F7FA 60%, #FFF0F5 100%);
  text-align: center;
  overflow: hidden;
}

.dashboard-section .container {
  max-width: 800px;
}

.dashboard-image-wrapper {
  margin-top: var(--space-xl);
  position: relative;
}

.dashboard-image {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-img);
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(145deg, #D6E4FF 0%, #EEF3FF 40%, #FFE0EC 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,111,212,0.08) 0%, transparent 70%);
  z-index: 0;
}

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

.cta-content h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: var(--space-lg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--color-surface);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo-icon {
  height: 65px;
  width: auto;
  border-radius: var(--radius-sm);
}

.footer-logo-text {
  height: 43px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--color-primary);
  opacity: 1;
}

.footer-divider {
  color: var(--color-border);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes floatSoft {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-14px); }
  100% { transform: translateY(0px); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.75s cubic-bezier(0.23, 1, 0.32, 1);
}

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

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  :root { --space-section: 5rem; }

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

  .hero-body { margin: 0 auto var(--space-lg); }
  .hero-eyebrow { margin: 0 auto var(--space-sm); }

  .hero-image-wrapper {
    order: -1;
    margin-bottom: var(--space-lg);
  }

  .hero-image { max-width: 380px; }

  .feature-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .feature-grid.reverse .feature-text  { order: 1; }
  .feature-grid.reverse .feature-image-wrapper { order: 2; }

  .feature-text p { margin: 0 auto; }

  .feature-label { margin: 0 auto 1rem; }
}

@media (max-width: 600px) {
  :root {
    --space-section: 4rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .container { padding: 0 var(--space-sm); }

  h1 { font-size: clamp(2.8rem, 10vw, 3.8rem); }

  .hero-image { max-width: 290px; }

  .feature-image { max-width: 240px; }

  .footer .container { flex-direction: column; text-align: center; }

  .footer-links { justify-content: center; }
}
