/* ============================================
   index.css — iHelp Home Page Styles
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #1A3358;
  --navy-dk: #0F2140;
  --accent:  #4A9EFF;
  --accent2: #60C8FF;
  --white:   #FFFFFF;
  --white70: rgba(255,255,255,0.70);
  --white15: rgba(255,255,255,0.15);
  --white08: rgba(255,255,255,0.08);
}

html, body {
  width: 100%; min-height: 100vh;
  background: #0a1628;
  font-family: 'DM Sans', sans-serif;
  color: var(--white);
}

/* ── HEADER IFRAME ── */
#header-frame {
  position: fixed; top: 0; left: 0; right: 0;
  width: 100%; height: 72px;
  border: none; z-index: 200;
  background: transparent;
}

/* ── PAGE CONTENT ── */
main { padding-top: 72px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 2rem 4rem;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(26,51,88,0.9) 0%, #0a1628 70%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(74,158,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,158,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPan 20s linear infinite;
}

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: orb-float 9s ease-in-out infinite;
}
.orb1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(74,158,255,0.25), transparent 70%);
  top: -120px; left: -80px;
}
.orb2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(26,51,88,0.5), transparent 70%);
  bottom: 60px; right: -60px;
  animation-delay: -4s; animation-duration: 11s;
}
.orb3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(96,200,255,0.18), transparent 70%);
  top: 45%; right: 22%;
  animation-delay: -7s; animation-duration: 13s;
}

.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: rgba(74,158,255,0.6);
  animation: particle-rise linear infinite;
}

.hero-content { position: relative; text-align: center; max-width: 720px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.28);
  border-radius: 100px; padding: 6px 18px;
  font-size: 13px; font-weight: 500; color: var(--accent2);
  margin-bottom: 30px; letter-spacing: 0.3px;
  animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) 0.2s both;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent2); box-shadow: 0 0 6px var(--accent2);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 700; line-height: 1.08; letter-spacing: -1.5px;
  color: var(--white); margin-bottom: 24px;
  animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) 0.35s both;
}
.hero-title .grad {
  background: linear-gradient(120deg, #4A9EFF 0%, #60C8FF 55%, #a8d4ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 18px; font-weight: 300; line-height: 1.7;
  color: var(--white70); max-width: 520px;
  margin: 0 auto 40px;
  animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) 0.45s both;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.7s cubic-bezier(.22,1,.36,1) 0.55s both;
}
.btn-primary {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--navy-dk);
  background: linear-gradient(135deg, #4A9EFF 0%, #60C8FF 100%);
  border: none; border-radius: 12px; padding: 14px 34px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 28px rgba(74,158,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(74,158,255,0.55); }

.btn-outline {
  font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 500;
  color: var(--white); text-decoration: none;
  border: 1px solid var(--white15); border-radius: 12px; padding: 13px 28px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--white08); border-color: rgba(255,255,255,0.35); }

/* ── HOW IT WORKS ── */
.how-it-works {
  padding: 100px 2rem;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.steps-grid {
  display: flex; align-items: flex-start; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-top: 60px;
}
.step-card {
  flex: 1; min-width: 200px; max-width: 260px;
  background: rgba(26,51,88,0.3);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 18px; padding: 36px 24px;
  text-align: center;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.step-card:hover {
  background: rgba(26,51,88,0.55);
  border-color: rgba(74,158,255,0.35);
  transform: translateY(-4px);
}
.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 42px; font-weight: 700; letter-spacing: -2px;
  background: linear-gradient(120deg, #4A9EFF, #60C8FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 14px; display: block;
}
.step-title {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 600;
  color: var(--white); margin-bottom: 10px;
}
.step-desc {
  font-size: 13.5px; line-height: 1.7; color: var(--white70);
}
.step-connector {
  flex-shrink: 0; width: 48px; margin-top: 58px;
  height: 2px;
  background: linear-gradient(90deg, rgba(74,158,255,0.4), rgba(74,158,255,0.1));
  position: relative;
}
.step-connector::after {
  content: '';
  position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: rgba(74,158,255,0.4);
}
@media (max-width: 720px) {
  .step-connector { display: none; }
  .steps-grid { gap: 16px; }
}

/* ── SERVICES / FEATURES ── */
.features {
  padding: 100px 2rem;
  max-width: 1200px; margin: 0 auto;
}
.section-label {
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 14px; display: block;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.8px;
  color: var(--white); margin-bottom: 60px; max-width: 480px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: rgba(26,51,88,0.3);
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 18px; padding: 32px 28px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  cursor: default;
}
.feature-card:hover {
  background: rgba(26,51,88,0.55);
  border-color: rgba(74,158,255,0.35);
  transform: translateY(-4px);
}
.feature-icon  { font-size: 32px; margin-bottom: 18px; display: block; }
.feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--white); margin-bottom: 10px;
}
.feature-desc  { font-size: 14px; line-height: 1.7; color: var(--white70); }

/* ── FOOTER ── */
footer {
  text-align: center; padding: 40px 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.3);
}

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gridPan {
  from { background-position: 0 0; }
  to   { background-position: 60px 60px; }
}
@keyframes orb-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(18px,-28px) scale(1.05); }
  66%       { transform: translate(-14px,18px) scale(0.97); }
}
@keyframes particle-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0.7; }
  100% { transform: translateY(-100vh) scale(0); opacity: 0; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}