/* === TOKENS === */
:root {
  --color-primary: #0082e0;
  --color-primary-dark: #0065b0;
  --color-gradient-start: #55c7f8;
  --color-gradient-stop: #0082e0;
  --color-heading: #0f3557;
  --color-heading-secondary: #293240;
  --color-body: #63707a;
  --color-muted: #868b92;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-light: #f8fafc;
  --color-border: #e8ecf0;
  --color-accent: #5562ff;

  --gradient-btn: linear-gradient(267.84deg, #0082e0 6.58%, #70ddff 124.39%);

  --font-main: 'Montserrat', sans-serif;

  --radius: 12px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  --shadow-sm: 0 2px 8px rgba(0, 130, 224, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 130, 224, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 130, 224, 0.16);

  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; line-height: 1.26; color: var(--color-heading); }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 600; line-height: 1.3; color: var(--color-heading); }
h3 { font-size: clamp(20px, 3vw, 28px); font-weight: 600; line-height: 1.3; color: var(--color-heading-secondary); }
h4 { font-size: clamp(16px, 2.5vw, 22px); font-weight: 600; line-height: 1.2; color: var(--color-heading-secondary); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--light { background: var(--color-bg-light); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-btn);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(0, 130, 224, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(0, 130, 224, 0.45); opacity: 0.95; }

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: var(--color-white); }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-normal);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  flex-shrink: 0;
}
.header-logo img { height: 36px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-body);
  transition: color var(--duration-fast);
}
.header-nav a:hover, .header-nav a.active { color: var(--color-primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Hidden on desktop, shown only inside mobile nav overlay */
.nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: transform var(--duration-normal), opacity var(--duration-normal);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  padding: clamp(60px, 8vw, 120px) 0;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(85,199,248,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 130, 224, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .highlight {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-note { font-size: 12px; color: var(--color-muted); }
.hero-note i { margin-right: 4px; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual img {
  max-width: 460px;
  width: 100%;
  filter: drop-shadow(0 32px 64px rgba(0,130,224,0.2));
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* === HOW IT WORKS === */
.section-header { text-align: center; margin-bottom: clamp(40px, 5vw, 60px); }
.section-header p {
  font-size: 16px;
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--color-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: white;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.step-icon { margin: 0 auto 20px; height: 100px; display: flex; align-items: center; justify-content: center; }
.step-icon img { max-height: 100px; }
.step-card h4 { margin-bottom: 12px; color: var(--color-heading); }
.step-card p { color: var(--color-muted); font-size: 14px; line-height: 1.6; margin: 0; }

/* === FEATURE SECTIONS === */
.feature-section { padding: clamp(60px, 8vw, 100px) 0; }
.feature-section.alt { background: var(--color-bg-light); }
.feature-section.dark {
  background: linear-gradient(135deg, #0d1b2e 0%, #0a1628 50%, #0f2140 100%);
  padding: clamp(60px, 8vw, 100px) 0;
}
.feature-section.dark h2 { color: #ffffff; }
.feature-section.dark p { color: rgba(255,255,255,0.65); }
.feature-section.dark .feature-tag { color: var(--color-gradient-start); }
.feature-section.dark .feature-list li { color: rgba(255,255,255,0.8); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-visual { display: flex; justify-content: center; }
.feature-visual img {
  max-width: 420px;
  width: 100%;
  filter: drop-shadow(0 20px 48px rgba(0,130,224,0.15));
}

/* Hexagon person photos — already pre-clipped PNGs with transparent bg */
.feature-visual.hexagon-clip img {
  max-width: 400px;
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.12));
}

/* Premium visual - stacked phone + cards */
.feature-visual.premium-visual { justify-content: flex-end; }

.premium-stack {
  position: relative;
  width: 560px;
  max-width: 100%;
}
.premium-cards {
  display: block;
  width: 100%;
  filter: drop-shadow(0 24px 64px rgba(0,40,120,0.5));
}
.premium-phone {
  position: absolute;
  top: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 46%;
  filter: drop-shadow(0 32px 48px rgba(0,0,0,0.6));
  pointer-events: none;
}
.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.feature-content h2 { margin-bottom: 20px; }
.feature-content p { font-size: 15px; color: var(--color-muted); line-height: 1.7; margin-bottom: 28px; }

.feature-list { display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-body);
  line-height: 1.5;
}
.check-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gradient-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.check-icon svg { width: 10px; height: 10px; }

.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, #0f3557 0%, #0a2540 50%, #0f3557 100%);
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-section::before { width: 500px; height: 500px; top: -200px; left: -150px; background: radial-gradient(circle, rgba(85,199,248,0.1) 0%, transparent 70%); }
.cta-section::after { width: 400px; height: 400px; bottom: -150px; right: -100px; background: radial-gradient(circle, rgba(0,130,224,0.12) 0%, transparent 70%); }
.cta-inner { position: relative; z-index: 1; }
.cta-section h2 { color: var(--color-white); margin-bottom: 16px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 40px; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 14px;
  transition: transform var(--duration-normal), box-shadow var(--duration-normal);
  text-decoration: none;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.store-btn-ios { background: var(--gradient-btn); color: white; box-shadow: 0 4px 20px rgba(0,130,224,0.4); }
.store-btn-android { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.25); }
.store-icon { font-size: 26px; }
.store-btn-text { text-align: left; line-height: 1.3; }
.store-btn-text small { display: block; font-size: 10px; opacity: 0.75; }
.store-btn-text strong { font-size: 15px; }
.cta-note { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 24px; position: relative; z-index: 1; }

/* === FOOTER === */
.site-footer {
  background: #0a1e33;
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 13px; line-height: 1.6; max-width: 280px; }
.footer-col h6 { color: white; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color var(--duration-fast); }
.footer-col ul li a:hover { color: white; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.footer-copy { font-size: 12px; }
.footer-address { font-size: 12px; color: rgba(255,255,255,0.4); text-align: right; line-height: 1.6; }

/* === PAGE HERO === */
.page-hero {
  background: linear-gradient(135deg, #0f3557 0%, #0a2540 100%);
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
  color: white;
}
.page-hero h1 { color: white; margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* === CONTACT === */
.contact-section { padding: clamp(60px, 8vw, 100px) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.contact-info h3 { margin-bottom: 16px; }
.contact-info > p { font-size: 15px; color: var(--color-muted); margin-bottom: 40px; }
.contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: rgba(0, 130, 224, 0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 18px;
}
.contact-detail-text strong { display: block; font-size: 14px; color: var(--color-heading-secondary); margin-bottom: 2px; font-weight: 600; }
.contact-detail-text span { font-size: 13px; color: var(--color-muted); }

.contact-form-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--color-heading-secondary); margin-bottom: 6px; }
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--color-heading-secondary);
  background: white;
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
}
.form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(0,130,224,0.1); }
.form-control::placeholder { color: var(--color-muted); }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { width: 100%; padding: 14px; font-size: 15px; font-weight: 600; justify-content: center; border-radius: var(--radius-pill); }
.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-top: 16px;
  display: none;
}
.form-feedback.success { background: rgba(0, 200, 100, 0.08); color: #00a855; border: 1px solid rgba(0, 200, 100, 0.2); display: block; }
.form-feedback.error { background: rgba(235, 87, 87, 0.08); color: #eb5757; border: 1px solid rgba(235, 87, 87, 0.2); display: block; }
.form-note { font-size: 12px; color: var(--color-muted); margin-top: 14px; text-align: center; }
.btn-loading { opacity: 0.75; pointer-events: none; }

/* === LEGAL === */
.legal-page { padding: clamp(60px, 6vw, 80px) 0; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-date { font-size: 13px; color: var(--color-muted); margin-bottom: 40px; display: block; }
.legal-content h2 { font-size: 20px; margin-top: 40px; margin-bottom: 12px; }
.legal-content h3 { font-size: 17px; margin-top: 28px; margin-bottom: 10px; }
.legal-content p, .legal-content li { font-size: 14px; line-height: 1.8; color: var(--color-body); margin-bottom: 12px; }
.legal-content ul, .legal-content ol { padding-left: 20px; margin-bottom: 16px; }
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }
.legal-box {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 40px;
  font-size: 14px;
}

/* === SCROLL ANIMATION === */
[data-aos] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(40px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-right"].aos-animate { transform: translateX(0); }
[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 340px; }
  .feature-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-grid .feature-visual { order: -1; }
  .feature-grid .feature-visual img { max-width: 340px; }
  .feature-visual.hexagon-clip img { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-address { text-align: left; }
  .premium-stack { margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .header-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  /* Mobile nav overlay */
  body.nav-open .header-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: white;
    padding: 24px 24px 40px;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }
  body.nav-open .header-nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--color-border);
  }
  body.nav-open .header-nav a:last-child {
    border-bottom: none;
  }

  /* "Get the app" CTA inside mobile overlay */
  body.nav-open .nav-cta {
    display: inline-flex !important;
    margin-top: 28px;
    align-self: stretch;
    justify-content: center;
    border-bottom: none !important;
    min-height: 48px !important;
    font-size: 15px !important;
    border-radius: var(--radius-pill) !important;
  }

  /* Layout */
  .container { padding: 0 20px; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }

  /* Form */
  .contact-form-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  /* Prevent iOS input zoom (requires font-size >= 16px) */
  .form-control { font-size: 16px; }

  /* Feature section */
  .feature-grid { gap: 32px; }
  .feature-grid .feature-visual img,
  .feature-visual.hexagon-clip img { max-width: 280px; }

  /* Premium stack on mobile */
  .feature-visual.premium-visual { justify-content: center; }
  .premium-stack { width: 100%; padding-top: 90px; }
  .premium-phone { top: 0; transform: translateX(-50%); width: 50%; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-visual img { max-width: 260px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }
  .page-hero { padding: 48px 0; }
  .contact-form-card { padding: 24px 16px; }
  .step-card { padding: 28px 20px; }
  .footer-col ul { gap: 14px; }
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  .hero-visual img { animation: none; }
  [data-aos] { transition: none; opacity: 1; transform: none; }
  * { transition-duration: 0.01ms !important; }
}
