:root {
  --bg: #0c1b14;
  --panel: #10251c;
  --panel-2: #132f23;
  --text: #e8f3eb;
  --muted: #b7c8bc;
  --accent: #6ee7b7;
  --accent-2: #7dd3fc;
  --danger: #f87171;
  --shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(110, 231, 183, 0.08), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(125, 211, 252, 0.08), transparent 25%),
    linear-gradient(160deg, #07130e 0%, #0c1b14 35%, #0f231a 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

code {
  font-family: "DM Mono", Consolas, "Courier New", monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 6px;
}

.aurora {
  position: fixed;
  width: 40vw;
  height: 40vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}

.aurora-1 {
  background: #22d3ee;
  top: -10%;
  right: -10%;
}

.aurora-2 {
  background: #22c55e;
  bottom: -20%;
  left: -5%;
}

.hero {
  position: relative;
  padding: 28px clamp(20px, 5vw, 60px) 60px;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-mark {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f0c;
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand-tail {
  color: var(--text);
}

.topbar-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.topbar a {
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.topbar a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

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

.hero-copy h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin: 6px 0 16px;
  line-height: 1.1;
}

.hero-copy .lede {
  color: var(--muted);
  max-width: 680px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 12px;
}

.lede {
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin: 20px 0 10px;
}

.btn {
  border-radius: 14px;
  border: none;
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: #0b0f0c;
  box-shadow: var(--shadow);
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn.full {
  width: 100%;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-top: 12px;
  font-size: 14px;
}

.dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 0 0 8px rgba(110, 231, 183, 0.12);
}

.dot-small {
  width: 8px;
  height: 8px;
  box-shadow: none;
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 22px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.card-title {
  font-weight: 700;
  margin-bottom: 14px;
}

.snapshot-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 140px;
  gap: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 700;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, border 0.2s ease;
  width: 100%;
  height: 100%;
  text-align: center;
  box-sizing: border-box;
  flex-direction: column;
  gap: 6px;
}

.pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.pill.primary {
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: #0b0f0c;
  border: none;
  box-shadow: var(--shadow);
}

.pill-title {
  font-weight: 800;
  font-size: 16px;
}

.pill-sub {
  color: var(--muted);
  font-size: 13px;
}

.pill-sub1 {
  color: var(--panel);
  font-size: 13px;
}

@media (max-width: 720px) {
  .snapshot-actions {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .pill {
    height: auto;
  }
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat {
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

main {
  padding: 0 clamp(20px, 5vw, 60px) 80px;
  z-index: 1;
  position: relative;
}

.form-section {
  margin-top: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow);
}

.section-header h2 {
  margin: 6px 0 6px;
  font-size: clamp(26px, 4vw, 34px);
}

.panel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr;
  margin-top: 18px;
}

.panel {
  background: var(--panel);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel.highlight {
  background: var(--panel-2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

input,
select {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Style the dropdown list options */
select option {
  background-color: #041713;   /* match your dark panel color */
  color: var(--text);
}

/* Highlight selected option */
select option:checked {
  background-color: #0ee58f;  /* your green accent, for example */
  color: #02110b;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.12);
}

.result-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px;
  min-height: 72px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

.result-box.loading {
  color: var(--muted);
}

.result-box.success {
  color: var(--accent);
}

.result-box.error {
  color: var(--danger);
}

.hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

.explain {
  margin-top: 26px;
  padding: clamp(18px, 4vw, 28px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.2);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.step {
  background: var(--panel);
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
}

.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f0c;
  font-weight: 800;
}

.step-body h3 {
  margin: 2px 0 4px;
}

.step-body p {
  margin: 0;
  color: var(--muted);
}

.guide-body {
  background: linear-gradient(180deg, #0c1b14 0%, #0f231a 50%, #0c1b14 100%);
}

.guides-hero .topbar a.active {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.guides-main {
  padding: 0 clamp(20px, 5vw, 60px) 80px;
  position: relative;
  z-index: 1;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.guide-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.guide-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f0c;
  font-weight: 800;
  width: fit-content;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.note {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 12px;
}

.compact-list {
  padding-left: 18px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text);
}

.table-like {
  display: grid;
  gap: 6px;
}

.table-like .table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.table-like.small .table-row {
  grid-template-columns: 1fr 1fr;
}

.table-like .header {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.07);
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  align-items: end;
}

.hero-photo {
  border-radius: 18px;
  height: 260px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-photo.small {
  height: 180px;
  transform: translateY(30px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

  .topbar-links {
    display: none;
  }

  .hero-visual {
    display: none;
  }

  /* Keep About page logo visible and centered on mobile */
  .about-visual {
    display: grid !important;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 12px;
  }

  .about-visual .logo-card {
    width: 100%;
    max-width: 420px;
  }

  .logo-card img {
    max-width: 280px;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-top: 18px;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.location-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.location-item {
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px;
  cursor: pointer;
  transition: background 0.2s ease, border 0.2s ease;
}

.location-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

.weather-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.weather-current-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.current-place {
  font-weight: 700;
  font-size: 18px;
}

.current-temp {
  font-size: 36px;
  font-weight: 800;
}

.weather-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

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

.hour-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hour-time {
  font-weight: 700;
}

.hour-temp {
  font-size: 20px;
  font-weight: 800;
}

.hour-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.map-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.map-wrap-compact {
  max-width: 560px;
  margin: 0 auto;
}

.weather-map {
  width: 100%;
  max-width: 533px;
  max-height: 690px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.about-visual .logo-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 8px;
  align-items: center;
  justify-items: center;
  box-shadow: var(--shadow);
}

.logo-card img {
  max-width: 340px;
  width: 90%;
  object-fit: contain;
}

/* Mobile nav toggle button (hidden on desktop) */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

/* Mobile behavior */
@media (max-width: 960px) {
  .topbar {
    position: relative;
  }

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

  .topbar-links {
    /* hidden by default on mobile */
    display: none;
    position: absolute;
    right: 0;
    top: 52px;
    flex-direction: column;
    background: var(--panel);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
    z-index: 10;
  }

  .topbar-links a {
    width: 100%;
    text-align: left;
  }

  /* When menu is open */
  .topbar-links.open {
    display: flex;
  }
}

