/* ============================================================
   PAGE: HOME (Landing page)
   Full landing page layout and section styles.
   Uses body.page-home to scope nav overrides without affecting
   the app nav on authenticated pages.
   ============================================================ */

/* ---- Landing nav override: more transparent, wider padding ---- */
body.page-home main {
  padding-top: 0;
}

body.page-home .app-nav {
  padding: 1.1rem 2.5rem;
  background: rgba(13, 27, 110, 0.3);
  border-bottom-color: rgba(255,255,255,0.1);
}

body.page-home .app-nav a {
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

body.page-home .app-nav .nav-right a {
  background: var(--gradient-primary);
  color: var(--color-dark);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(255,107,53,0.4);
}

body.page-home .app-nav .nav-right a:hover {
  background: var(--gradient-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255,107,53,0.5);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-night);
}

/* Floating balloon SVG wrapper */
.balloon-wrapper {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-55%);
  animation: float-balloon 7s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

/* Separate keyframe to avoid conflicting with the simple float used elsewhere */
@keyframes float-balloon {
  0%, 100% { transform: translateY(-55%) rotate(-1.5deg); }
  50%       { transform: translateY(-65%) rotate(1.5deg); }
}

.balloon-svg {
  width: clamp(170px, 18vw, 260px);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
}

/* ---- Clouds ---- */
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.8);
  border-radius: 50px;
}
.cloud::before, .cloud::after {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud-a { width: 130px; height: 44px; top: 80%; left: 6%;  animation: drift-a 35s ease-in-out infinite; }
.cloud-a::before { width: 65px; height: 65px; top: -35px; left: 12px; }
.cloud-a::after  { width: 45px; height: 45px; top: -22px; left: 58px; }

.cloud-b { width: 90px; height: 32px; top: 46%; right: 12%; opacity: 0.65; animation: drift-b 50s ease-in-out infinite; }
.cloud-b::before { width: 48px; height: 48px; top: -26px; left: 8px; }
.cloud-b::after  { width: 32px; height: 32px; top: -16px; left: 40px; }

.cloud-c { width: 170px; height: 54px; top: 67%; left: 48%; opacity: 0.55; animation: drift-a 65s ease-in-out infinite reverse; }
.cloud-c::before { width: 85px; height: 85px; top: -48px; left: 18px; }
.cloud-c::after  { width: 58px; height: 58px; top: -32px; left: 78px; }

.cloud-d { width: 110px; height: 38px; top: 72%; left: 30%; opacity: 0.45; animation: drift-b 45s ease-in-out infinite; }
.cloud-d::before { width: 55px; height: 55px; top: -30px; left: 10px; }
.cloud-d::after  { width: 38px; height: 38px; top: -18px; left: 50px; }

@keyframes drift-a {
  0%   { transform: translateX(0px); }
  50%  { transform: translateX(28px); }
  100% { transform: translateX(0px); }
}
@keyframes drift-b {
  0%   { transform: translateX(0px); }
  50%  { transform: translateX(-22px); }
  100% { transform: translateX(0px); }
}

/* ---- Hero content ---- */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 130px 4.5rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.1rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  color: white;
  margin: 0 0 1.3rem;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, #FFD93D 20%, #FF6B35 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.82);
  margin: 0 0 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Scroll hint ---- */
.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint svg { opacity: 0.5; }

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ============================================================
   SECTIONS — shared utilities
   ============================================================ */
.section-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-tag {
  display: inline-block;
  border-radius: var(--radius-full);
  padding: 0.32rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--color-dark);
  margin: 0 0 0.9rem;
  line-height: 1.12;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-gray-500);
  max-width: 500px;
  margin: 0 auto 3.5rem;
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  background: #f4f6ff;
  padding: 6.5rem 2rem;
  text-align: center;
}

.how-it-works .section-tag { background: linear-gradient(135deg,#a8edea,#fed6e3); color: #4a3d6e; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  max-width: 1060px;
  margin: 0 auto;
}

.step {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 16px 50px rgba(0,0,0,0.1); }

.step-num {
  position: absolute;
  top: -0.8rem; left: 1.75rem;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(102,126,234,0.5);
}

.step-icon { font-size: 2.8rem; margin-bottom: 1rem; display: block; }
.step h3   { font-size: 1.15rem; font-weight: 800; color: var(--color-dark); margin: 0 0 0.6rem; }
.step p    { font-size: 0.92rem; color: var(--color-gray-500); line-height: 1.65; margin: 0; }

/* ============================================================
   USE CASES
   ============================================================ */
.use-cases {
  background: linear-gradient(140deg, #1a1a6e 0%, #312e81 40%, #4338ca 100%);
  padding: 6.5rem 2rem;
  text-align: center;
}

.use-cases .section-tag   { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.95); }
.use-cases .section-title { color: white; }
.use-cases .section-sub   { color: rgba(255,255,255,0.68); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  max-width: 1120px;
  margin: 0 auto;
  text-align: left;
}

.card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.14); }

.card-icon { font-size: 2.4rem; margin-bottom: 0.85rem; display: block; }
.card h3   { font-size: 1.05rem; font-weight: 800; color: white; margin: 0 0 0.7rem; }

.condition-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-family: ui-monospace, 'SF Mono', monospace;
  margin: 0.2rem 0.2rem 0 0;
}

.card p { font-size: 0.88rem; color: rgba(255,255,255,0.62); line-height: 1.6; margin: 0.85rem 0 0; }

/* ============================================================
   NOTIFICATION PREVIEW
   ============================================================ */
.preview-section {
  background: white;
  padding: 6.5rem 2rem;
  text-align: center;
}

.preview-section .section-tag { background: linear-gradient(135deg,#ffecd2,#fcb69f); color: #7c3516; }

.widget-wrap {
  perspective: 1000px;
  max-width: 380px;
  margin: 3.5rem auto 0;
}

.weather-widget {
  background: linear-gradient(145deg, #0d1b6e, #1a3a8f);
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  color: white;
  box-shadow:
    0 25px 60px rgba(13,27,110,0.35),
    0 0 0 1px rgba(255,255,255,0.08) inset;
  text-align: left;
  transform: rotateY(-4deg) rotateX(3deg);
  transition: transform 0.4s;
}
.weather-widget:hover { transform: rotateY(0deg) rotateX(0deg); }

.widget-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.live-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  flex-shrink: 0;
}

.widget-head span { font-size: 0.88rem; opacity: 0.78; }

.widget-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.55;
  margin-bottom: 0.65rem;
}

.condition-rows { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.3rem; }

.c-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
}
.c-row .label { opacity: 0.7; }
.c-row .val   { font-weight: 700; color: #FFD93D; }

.alert-box {
  background: var(--gradient-primary);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: linear-gradient(150deg, #0d1b6e 0%, #1a3a8f 55%, #2d6abf 100%);
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-balloon {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  opacity: 0.07;
  line-height: 1;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.cta-section h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.cta-section > p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.72);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.cta-note {
  margin-top: 1.1rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.landing-footer {
  background: #060b1f;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 2rem;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  body.page-home .app-nav { padding: 1rem 1.4rem; }
  .hero-content { padding: 110px 1.5rem 3rem; max-width: 100%; }
  .balloon-wrapper { right: -8%; top: 12%; transform: none; opacity: 0.35; }
  .hero h1 { font-size: 2.4rem; }
  .cta-bg-balloon { display: none; }
}
