/* ===== FONTS & ROOT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --primary: #0f1b3d;
  --primary-light: #1a2d5e;
  --accent: #4f7df5;
  --accent-glow: #6b93ff;
  --gold: #d4a853;
  --gold-light: #f0d78c;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-border: rgba(255,255,255,0.15);
  --text-primary: #ffffff;
  --text-muted: #a0b0cc;
  --dark-card: #0d1730;
  --gradient-1: linear-gradient(135deg, #4f7df5 0%, #7c3aed 100%);
  --gradient-2: linear-gradient(135deg, #d4a853 0%, #f0d78c 100%);
  --gradient-dark: linear-gradient(180deg, #070e1f 0%, #0f1b3d 50%, #1a2d5e 100%);
}

/* ===== GLOBAL RESETS ===== */
.hi-page { font-family: 'Inter', sans-serif; color: #e0e8f5; overflow-x: hidden; }
.hi-page img { max-width: 100%; height: auto; }
.hi-page a { text-decoration: none; color: inherit; }

/* ===== SCROLL ANIMATIONS ===== */
.hi-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.hi-reveal.visible { opacity: 1; transform: translateY(0); }
.hi-reveal-left { opacity: 0; transform: translateX(-80px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.hi-reveal-left.visible { opacity: 1; transform: translateX(0); }
.hi-reveal-right { opacity: 0; transform: translateX(80px); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.hi-reveal-right.visible { opacity: 1; transform: translateX(0); }
.hi-reveal-scale { opacity: 0; transform: scale(0.85); transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
.hi-reveal-scale.visible { opacity: 1; transform: scale(1); }
.hi-stagger { transition-delay: calc(var(--i, 0) * 0.12s) !important; }

/* ===== FLOATING PARTICLES ===== */
.hi-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.hi-particle {
  position: absolute;
  width: 4px; height: 4px;
  background: rgba(79, 125, 245, 0.4);
  border-radius: 50%;
  animation: hiFloat linear infinite;
}
@keyframes hiFloat {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) rotate(720deg); opacity: 0; }
}

/* ===== HERO ===== */
.hi-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-dark);
}
.hi-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) saturate(1.2);
  transform: scale(1.1);
  animation: hiHeroBgZoom 20s ease-in-out infinite alternate;
}
@keyframes hiHeroBgZoom {
  0% { transform: scale(1.1); }
  100% { transform: scale(1.2); }
}
.hi-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,14,31,0.7) 0%, rgba(15,27,61,0.85) 60%, rgba(15,27,61,1) 100%);
  z-index: 1;
}
.hi-hero-content {
  position: relative; z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}
.hi-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  animation: hiBadgePulse 3s ease-in-out infinite;
}
@keyframes hiBadgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(212,168,83,0.1); }
  50% { box-shadow: 0 0 30px rgba(212,168,83,0.25); }
}
.hi-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #d4a853 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hiShimmer 4s linear infinite;
}
@keyframes hiShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.hi-hero p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hi-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 42px;
  background: var(--gradient-2);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 32px rgba(212,168,83,0.3);
  position: relative;
  overflow: hidden;
}
.hi-hero-cta::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s;
}
.hi-hero-cta:hover::before { left: 100%; }
.hi-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(212,168,83,0.5); }

.hi-hero-stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hi-stat {
  text-align: center;
}
.hi-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
}
.hi-stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== SCROLL INDICATOR ===== */
.hi-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: hiBounce 2s ease-in-out infinite;
}
.hi-scroll-indicator span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.hi-scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}
.hi-scroll-mouse::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: hiScrollDot 2s ease-in-out infinite;
}
@keyframes hiScrollDot { 0%, 100% { top: 6px; opacity: 1; } 50% { top: 20px; opacity: 0.3; } }
@keyframes hiBounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ===== SECTION SHARED ===== */
.hi-section { padding: 120px 0; position: relative; }
.hi-section-dark { background: var(--gradient-dark); }
.hi-section-darker { background: var(--primary); }
.hi-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hi-section-header { text-align: center; margin-bottom: 80px; }
.hi-section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  position: relative;
  padding: 0 20px;
}
.hi-section-label::before, .hi-section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px; height: 1px;
  background: var(--gold);
}
.hi-section-label::before { left: -20px; }
.hi-section-label::after { right: -20px; }
.hi-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.hi-section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ===== ABOUT ROW ===== */
.hi-about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hi-about-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hi-about-img img { width: 100%; display: block; transition: transform 8s ease; }
.hi-about-img:hover img { transform: scale(1.05); }
.hi-about-img::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  pointer-events: none;
}
.hi-about-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 20px;
}
.hi-about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; font-size: 1.05rem; }
.hi-about-text .hi-gold { color: var(--gold); font-weight: 600; }

/* ===== FEATURE CARDS ===== */
.hi-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}
.hi-feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  backdrop-filter: blur(12px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.hi-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.hi-feature-card:hover::before { transform: scaleX(1); }
.hi-feature-card:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 20px 60px rgba(79,125,245,0.15); }
.hi-feature-icon {
  width: 64px; height: 64px;
  background: var(--gradient-1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  transition: transform 0.4s ease;
}
.hi-feature-card:hover .hi-feature-icon { transform: rotateY(180deg); }
.hi-feature-card h4 { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.hi-feature-card p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }

/* ===== COVERAGE SECTION ===== */
.hi-coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.hi-coverage-card {
  background: linear-gradient(135deg, rgba(79,125,245,0.08) 0%, rgba(124,58,237,0.05) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}
.hi-coverage-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.hi-coverage-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(79,125,245,0.06) 0%, transparent 70%);
  transition: all 0.6s ease;
}
.hi-coverage-card:hover::after { top: -30%; right: -30%; }
.hi-coverage-num {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(79,125,245,0.15);
  position: absolute;
  top: 20px; right: 25px;
}
.hi-coverage-card h4 { font-size: 1.2rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; position: relative; z-index: 1; }
.hi-coverage-card p { color: var(--text-muted); line-height: 1.7; position: relative; z-index: 1; }

/* ===== COMPARISON SECTION ===== */
.hi-compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.hi-compare-card {
  background: var(--dark-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}
.hi-compare-card:hover { transform: translateY(-6px); }
.hi-compare-card.insurance-card:hover { border-color: var(--accent); box-shadow: 0 20px 60px rgba(79,125,245,0.15); }
.hi-compare-card.warranty-card:hover { border-color: #f5576c; box-shadow: 0 20px 60px rgba(245,87,108,0.15); }
.hi-compare-icon {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  margin-bottom: 24px;
}
.insurance-card .hi-compare-icon { background: var(--gradient-1); }
.warranty-card .hi-compare-icon { background: linear-gradient(135deg, #f093fb, #f5576c); }
.hi-compare-card h4 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.hi-compare-card p { color: var(--text-muted); line-height: 1.7; }
.hi-compare-tip {
  background: var(--gradient-1);
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.hi-compare-tip::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: hiTipGlow 4s ease-in-out infinite alternate;
}
@keyframes hiTipGlow { 0% { transform: translate(-20%, -20%); } 100% { transform: translate(20%, 20%); } }

/* ===== STEPS / HOW IT WORKS ===== */
.hi-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.hi-steps::before {
  content: '';
  position: absolute;
  left: 40px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}
.hi-step {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
  position: relative;
}
.hi-step-num {
  width: 80px; height: 80px;
  min-width: 80px;
  background: var(--dark-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}
.hi-step:hover .hi-step-num { background: var(--gradient-1); color: #fff; border-color: transparent; transform: scale(1.1); }
.hi-step-content h4 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.hi-step-content p { color: var(--text-muted); line-height: 1.7; }

/* ===== TRUST / COMMITMENT ===== */
.hi-trust-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hi-trust-img { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.4); }
.hi-trust-img img { width: 100%; display: block; }
.hi-trust-points { list-style: none; display: flex; flex-direction: column; gap: 24px; }
.hi-trust-point {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  transition: all 0.4s ease;
}
.hi-trust-point:hover { border-color: var(--accent); transform: translateX(8px); }
.hi-trust-check {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--gradient-1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.hi-trust-point p { color: var(--text-muted); line-height: 1.6; }
.hi-trust-point strong { color: #fff; }

/* ===== CTA ===== */
.hi-cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #1a2d5e 50%, #0f1b3d 100%);
}
.hi-cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.2;
  animation: hiCtaGlow 6s ease-in-out infinite alternate;
}
.hi-cta-glow-1 { background: var(--accent); top: -200px; left: -100px; }
.hi-cta-glow-2 { background: var(--gold); bottom: -200px; right: -100px; animation-delay: 3s; }
@keyframes hiCtaGlow { 0% { opacity: 0.15; transform: scale(1); } 100% { opacity: 0.3; transform: scale(1.2); } }
.hi-cta-content { position: relative; z-index: 2; }
.hi-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: 20px;
}
.hi-cta p { color: var(--text-muted); font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 50px;
  background: var(--gradient-2);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 8px 32px rgba(212,168,83,0.3);
  position: relative;
  overflow: hidden;
}
.hi-cta-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 48px rgba(212,168,83,0.4); }
.hi-cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s;
}
.hi-cta-btn:hover::before { left: 100%; }

/* ===== FOOTER OVERRIDE ===== */
.hi-page .footer { background: #060c1a; border-top: 1px solid var(--glass-border); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hi-about-row, .hi-trust-row, .hi-compare-row, .hi-coverage-grid { grid-template-columns: 1fr; }
  .hi-hero-stats { gap: 30px; }
  .hi-section { padding: 80px 0; }
  .hi-steps::before { left: 24px; }
  .hi-step-num { width: 50px; height: 50px; min-width: 50px; font-size: 1.2rem; }
  .hi-step { gap: 20px; }
}

/* ===== COUNTER ANIMATION ===== */
.hi-counter { display: inline-block; }

/* ===== SMOOTH SCROLL ===== */
html { scroll-behavior: smooth; }

/* ===== MAGNETIC HOVER ===== */
.hi-magnetic { transition: transform 0.3s ease; }
