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

:root {
  --bg: #F8F9FC;
  --surface: #FFFFFF;
  --surface-light: #F1F3F8;
  --border: #E2E5ED;
  --border-light: #D1D5E0;

  --primary: #6C5CE7;
  --primary-dark: #5A4BD1;
  --primary-light: #A29BFE;
  --primary-soft: #EDE9FF;
  --primary-glow: rgba(108, 92, 231, 0.15);

  --accent: #00B894;
  --accent-dark: #00A884;
  --accent-light: #55EFC4;
  --accent-soft: #E0FFF5;

  --danger: #E84848;
  --danger-soft: #FFF0F0;

  --warning: #FDCB6E;

  --text: #1A1D2E;
  --text-secondary: #545972;
  --text-muted: #8B90A5;
  --text-dim: #AEB3C6;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1140px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img {
  max-width: 100%;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── ANIMATIONS ─── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(8px); opacity: 1; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 249, 252, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(248, 249, 252, 0.95);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 20px rgba(26, 29, 46, 0.06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  color: var(--text);
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: 600 !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.25);
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.35);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.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);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 14px 28px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

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

.btn-ghost {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  box-shadow: 0 2px 8px rgba(26, 29, 46, 0.06);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: 16px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-glow);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(0, 184, 148, 0.08);
  bottom: -5%;
  left: -10%;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(253, 203, 110, 0.06);
  top: 30%;
  left: 50%;
  animation-delay: -5s;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(108, 92, 231, 0.15);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary-light));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

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

.hero-stat-value {
  display: block;
  font-size: 36px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2.5px solid var(--text-dim);
  border-bottom: 2.5px solid var(--text-dim);
  transform: rotate(45deg);
  animation: scroll-bounce 2s ease-in-out infinite;
}

/* ─── SECTION COMMON ─── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-tag-light {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── FEATURES ─── */
.features {
  padding: 120px 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.feature-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
}

.feature-card-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.feature-card-sign .feature-card-glow {
  background: rgba(108, 92, 231, 0.2);
}

.feature-card-guide .feature-card-glow {
  background: rgba(0, 184, 148, 0.2);
}

.feature-card-inner {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 28px;
  padding: 44px 40px;
}

.feature-card:hover .feature-card-inner {
  border-color: transparent;
}

.feature-card-sign:hover .feature-card-inner {
  border-color: rgba(108, 92, 231, 0.2);
}

.feature-card-guide:hover .feature-card-inner {
  border-color: rgba(0, 184, 148, 0.2);
}

.feature-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-sign {
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.3);
}

.feature-icon-guide {
  background: linear-gradient(135deg, var(--accent), #2ED8A3);
  box-shadow: 0 6px 20px rgba(0, 184, 148, 0.3);
}

.feature-icon {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
}

.feature-badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.feature-badge-guide {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.feature-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.feature-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
}

.feature-check {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.feature-check-guide {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* ─── HOW IT WORKS ─── */
.how-it-works {
  padding: 120px 0;
  background: var(--surface);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.step-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.step-connector {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--primary-light), var(--border));
  margin-left: 27px;
  border-radius: 1px;
}

/* ─── TECHNOLOGY ─── */
.technology {
  padding: 120px 0;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 22px;
  padding: 36px 30px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 92, 231, 0.03), transparent);
  transition: none;
}

.tech-card:hover::after {
  animation: shimmer 0.8s ease forwards;
}

.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, 0.15);
  box-shadow: 0 16px 48px rgba(26, 29, 46, 0.08);
}

.tech-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tech-card-icon span {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.tech-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.tech-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ─── SOS ─── */
.sos-section {
  padding: 40px 0 120px;
}

.sos-card {
  background: var(--danger-soft);
  border: 1.5px solid rgba(232, 72, 72, 0.15);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 0.3s;
}

.sos-card:hover {
  transform: translateY(-4px);
}

.sos-content {
  padding: 56px;
  text-align: center;
}

.sos-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--danger);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(232, 72, 72, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

.sos-content h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.sos-content p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── DOWNLOAD ─── */
.download {
  padding: 0 0 120px;
}

.download-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #8B5CF6, var(--primary-dark));
  background-size: 200% 200%;
  animation: gradient-shift 6s ease infinite;
}

.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.download-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.download-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  top: -20%;
  right: -5%;
}

.download-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(0, 184, 148, 0.1);
  bottom: -15%;
  left: -5%;
}

.download-content {
  position: relative;
  padding: 72px 48px;
  text-align: center;
}

.download-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.download-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.download-stores {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  padding: 14px 28px;
  color: #fff;
  transition: all 0.25s;
  backdrop-filter: blur(10px);
}

.store-btn-disabled {
  opacity: 0.7;
  cursor: default;
}

.store-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.store-btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-btn-small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  text-align: left;
}

.store-btn-label {
  font-size: 17px;
  font-weight: 700;
  text-align: left;
}

.download-email {
  max-width: 480px;
  margin: 0 auto;
}

.email-form {
  display: flex;
  gap: 12px;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  backdrop-filter: blur(10px);
  transition: all 0.2s;
}

.email-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.email-input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.18);
}

.email-form .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.email-form .btn-primary:hover {
  background: #f0f0ff;
}

.email-hint {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 12px;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-dim);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(26, 29, 46, 0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-cta {
    text-align: center;
    margin-top: 8px;
    border-bottom: none !important;
  }

  .nav-toggle {
    display: flex;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .sos-content {
    padding: 40px 24px;
  }

  .download-content {
    padding: 48px 24px;
  }
}

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

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

  .hero-stats {
    gap: 20px;
  }

  .hero-stat-divider {
    display: none;
  }

  .email-form {
    flex-direction: column;
  }

  .hero-stat-value {
    font-size: 28px;
  }

  .download-stores {
    flex-direction: column;
    align-items: center;
  }
}
