:root {
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-solid: #ffffff;
  --surface-dark: rgba(15, 23, 42, 0.92);
  --text: #1f2937;
  --text-soft: #6b7280;
  --heading: #111827;
  --primary: #3b82f6;
  --primary-strong: #1d4ed8;
  --accent: #0ea5e9;
  --accent-warm: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --border: rgba(226, 232, 240, 1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: min(1280px, calc(100vw - 40px));
  --font-base: 18px;
  --line: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: var(--font-base);
  line-height: var(--line);
  color: var(--text);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body.large-text {
  --font-base: 20px;
}

body.high-contrast {
  --bg: #08121f;
  --bg-secondary: #102134;
  --surface: rgba(10, 20, 34, 0.94);
  --surface-solid: #12243b;
  --text: #f2f6ff;
  --text-soft: #c7d6ef;
  --heading: #ffffff;
  --border: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

body.high-contrast .button.tertiary,
body.high-contrast .text-link,
body.high-contrast .site-nav a,
body.high-contrast .hero-highlights li,
body.high-contrast .refresh-note {
  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

input {
  color: var(--heading);
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 28px 0 14px;
}

.section-soft {
  padding: 34px 0;
}

.weather-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.weather-bg span {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.45;
}

.weather-bg span:nth-child(1) {
  width: 22rem;
  height: 22rem;
  left: -4rem;
  top: 4rem;
  background: rgba(255, 255, 255, 0.42);
  animation: drift 20s ease-in-out infinite alternate;
}

.weather-bg span:nth-child(2) {
  width: 12rem;
  height: 12rem;
  right: 10%;
  top: 18%;
  background: rgba(103, 212, 255, 0.36);
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.weather-bg span:nth-child(3) {
  width: 32rem;
  height: 32rem;
  right: -9rem;
  bottom: -10rem;
  background: rgba(255, 180, 77, 0.18);
  animation: drift 26s ease-in-out infinite alternate;
}

body.theme-sunny {
  background: linear-gradient(135deg, #fffbf0 0%, #fff8f1 100%);
}

body.theme-cloudy {
  background: linear-gradient(135deg, #f0f4f8 0%, #e7f0f8 100%);
}

body.theme-rain {
  background: linear-gradient(135deg, #e3e8ef 0%, #dce5f0 100%);
}

body.theme-snow {
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
}

body.theme-storm {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #f3f4f6;
}

body.theme-storm .site-nav a,
body.theme-storm .hero-text,
body.theme-storm p,
body.theme-storm .refresh-note,
body.theme-storm .radar-caption,
body.theme-storm .hero-highlights li,
body.theme-storm .text-link {
  color: #d7e7ff;
}

body.theme-rain .weather-bg::after,
body.theme-snow .weather-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

body.theme-rain .weather-bg::after {
  background-image: linear-gradient(transparent, transparent), linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.04));
  background-size: 100% 100%, 2px 28px;
  animation: rain 0.75s linear infinite;
}

body.theme-snow .weather-bg::after {
  background-image: radial-gradient(circle, rgba(255,255,255,0.95) 0 28%, transparent 32%);
  background-size: 22px 22px;
  animation: snow 14s linear infinite;
}

.site-header {
  padding: 16px 0;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
}

.brand strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.brand span {
  display: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a,
.accessibility-tools button,
.menu-toggle,
.city-chip,
.category-pill {
  border: none;
  background: transparent;
  color: var(--text-soft);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.site-nav a.active,
.site-nav a:hover,
.accessibility-tools button:hover,
.menu-toggle:hover,
.city-chip:hover,
.category-pill.active,
.category-pill:hover {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.accessibility-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.menu-toggle {
  display: none;
}

.hero {
  padding: 48px 0 36px;
}

.hero-home {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-home::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-home .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-home h1 {
  font-size: clamp(3.2rem, 6vw, 5rem);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions-primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.button-large {
  padding: 16px 28px;
  font-size: 1.05rem;
  min-height: auto;
}

.button-light {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  color: #ffffff;
}

.button-light:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

.scroll-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  font-weight: 600;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 32px;
  align-items: stretch;
}

.weather-hero-grid {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(59, 130, 246, 0.2);
}

.glass-card {
  background: rgba(255,255,255,0.98);
}

.section-card,
.info-card,
.article-card,
.blog-teaser,
.news-card,
.alert-item,
.stat-card,
.forecast-card,
.hourly-card {
  padding: 24px;
}

.hero-copy {
  padding: 34px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-strong);
  margin: 0 0 10px;
}

h1,
h2,
h3 {
  color: var(--heading);
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

p {
  margin-top: 0;
  color: var(--text-soft);
}

.hero-text {
  max-width: 62ch;
  margin-bottom: 22px;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 20px;
}

.search-bar input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  min-height: 56px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-bar button,
.button {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  min-height: 56px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.2);
  transition: all 0.2s ease;
}

.search-bar button:hover,
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button.secondary {
  background: linear-gradient(135deg, var(--success), #34d399);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
}

.button.tertiary {
  background: rgba(248, 249, 250, 0.96);
  color: var(--heading);
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.hero-highlights li {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.98), rgba(240, 249, 255, 0.96));
  border: 1px solid var(--border);
  color: var(--heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.hero-highlights li:hover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.stack-lg {
  display: grid;
  gap: 20px;
}

.card-header,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.current-hero-card {
  padding: 32px;
}

.temperature-badge {
  min-width: 100px;
  padding: 16px 24px;
  border-radius: 16px;
  text-align: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.weather-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}

.weather-icon {
  font-size: 3.4rem;
  line-height: 1;
}

.weather-location {
  font-weight: 800;
  color: var(--heading);
}

.weather-description {
  margin-bottom: 8px;
}

.detail-row,
.weather-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--border);
  color: var(--heading);
  font-weight: 700;
}

.two-column-layout,
.three-up,
.blog-teasers,
.article-stack,
.stats-grid,
.forecast-grid,
.news-grid,
.hourly-grid {
  display: grid;
  gap: 20px;
}

.two-column-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-up,
.blog-teasers {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-stack {
  grid-template-columns: 1fr;
}

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

.forecast-grid,
.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hourly-grid {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.hourly-card,
.forecast-card,
.stat-card,
.alert-item,
.news-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
}

.hourly-time,
.forecast-day,
.stat-label,
.article-tag,
.news-source,
.news-date,
.refresh-note {
  color: var(--text-soft);
  font-weight: 700;
}

.hourly-temp,
.forecast-temp,
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--heading);
}

.alert-list {
  display: grid;
  gap: 12px;
}

.alert-item {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.96), rgba(240, 249, 255, 0.96));
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.alert-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.12));
  font-size: 1.25rem;
  flex-shrink: 0;
}

.radar-card {
  padding: 24px;
}

.radar-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(103, 212, 255, 0.2), rgba(5, 22, 51, 0.9) 65%),
    linear-gradient(135deg, rgba(18, 44, 92, 0.8), rgba(39, 121, 255, 0.22));
  overflow: hidden;
  border: 1px solid rgba(148, 218, 255, 0.2);
}

.radar-ring,
.radar-scan,
.radar-dot {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring {
  border-radius: 50%;
  border: 1px solid rgba(132, 232, 255, 0.28);
}

.radar-ring:nth-child(1) { width: 34%; height: 34%; }
.radar-ring:nth-child(2) { width: 58%; height: 58%; }
.radar-ring:nth-child(3) { width: 82%; height: 82%; }

.radar-scan {
  width: 160%;
  height: 160%;
  background: conic-gradient(from 45deg, rgba(134, 234, 255, 0.36), transparent 18%, transparent 100%);
  border-radius: 50%;
  animation: scan 5.5s linear infinite;
}

.radar-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #aaf4ff;
  box-shadow: 0 0 16px rgba(170, 244, 255, 0.85);
}

.radar-dot-a { left: 33%; top: 42%; }
.radar-dot-b { left: 61%; top: 57%; background: #ffde8b; }
.radar-dot-c { left: 55%; top: 31%; background: #67ffbf; }

.radar-caption {
  margin-top: 16px;
}

.text-link {
  font-weight: 800;
  color: var(--primary-strong);
}

.popular-searches,
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.city-chip,
.category-pill {
  font-size: 0.95rem;
}

.news-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #c9dcff, #eaf3ff);
}

.news-card-content {
  padding: 22px;
  display: grid;
  gap: 10px;
  height: 100%;
}

.news-card p {
  margin-bottom: 0;
}

.news-source-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.article-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(41, 121, 255, 0.1);
  color: var(--primary-strong);
  margin-bottom: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.site-footer {
  padding: 32px 0;
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.5), rgba(240, 249, 255, 0.5));
  border-top: 1px solid var(--border);
}

.footer-note {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.weather-summary-skeleton,
.empty-state {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
  border: 1px dashed var(--border);
  color: var(--text-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(22px, -16px, 0) scale(1.08); }
}

@keyframes scan {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rain {
  from { transform: translateY(-18px); }
  to { transform: translateY(18px); }
}

@keyframes snow {
  from { transform: translateY(-18px); }
  to { transform: translateY(18px); }
}

@media (max-width: 1024px) {
  .hero-grid,
  .two-column-layout,
  .three-up,
  .blog-teasers,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand strong {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    order: 3;
  }

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

  .accessibility-tools {
    gap: 6px;
    order: 2;
  }

  .accessibility-tools button {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .hero-grid,
  .weather-hero-grid,
  .two-column-layout,
  .three-up,
  .blog-teasers,
  .stats-grid,
  .forecast-grid,
  .news-grid,
  .hourly-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .search-bar input,
  .search-bar button {
    min-height: 52px;
    font-size: 0.95rem;
  }

  .hero-copy,
  .current-hero-card,
  .section-card,
  .article-card,
  .info-card {
    padding: 20px;
  }

  .card-header,
  .section-heading {
    flex-direction: column;
    gap: 12px;
  }

  h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
  }

  h2 {
    font-size: 1.3rem;
  }

  .hero-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ======================== NEW LANDING PAGE SECTIONS ======================== */

.section {
  padding: 32px 0;
}

.section-soft {
  padding: 40px 0;
}

.section-features {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 60px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--heading);
}

.section-subtitle {
  text-align: center;
  font-size: 1.3rem;
  color: var(--text-soft);
  margin-bottom: 40px;
  font-weight: 400;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--heading);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin: 0;
}

.section-search {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 60px 0;
  color: #ffffff;
  position: relative;
}

.section-search::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.08"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
}

.search-panel {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.search-panel h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.search-panel > p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.search-bar-large {
  margin-bottom: 32px;
}

.search-input-group {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-input-group input {
  flex: 1;
  border: none;
  padding: 18px 24px;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--heading);
  outline: none;
}

.search-input-group button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 0 24px;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-input-group button:hover {
  background: linear-gradient(135deg, #5568d3 0%, #693994 100%);
}

.popular-cities-section {
  text-align: center;
}

.popular-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.popular-cities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.city-chip {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.city-chip:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.search-result-container {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.section-how-it-works {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 60px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.step-card {
  position: relative;
  padding: 40px 24px 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.step-card h3 {
  margin-top: 16px;
  margin-bottom: 12px;
  color: var(--heading);
}

.step-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.section-news {
  padding: 60px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.news-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.section-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.08"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  color: #ffffff;
  font-weight: 800;
}

.cta-content p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  font-weight: 400;
}

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

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .search-input-group {
    flex-direction: column;
  }

  .search-input-group button {
    padding: 16px 24px;
  }

  .popular-cities {
    justify-content: center;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-content p {
    font-size: 1.1rem;
  }

  .section-cta {
    padding: 60px 0;
  }

  .section-news,
  .section-features,
  .section-how-it-works {
    padding: 40px 0;
  }
}
