:root {
  color-scheme: light;
  --ink: #11231f;
  --muted: #5f706d;
  --soft: #f5f7f8;
  --surface: #ffffff;
  --line: #dbe6e4;
  --green: #00a976;
  --green-deep: #047857;
  --blue: #3478f6;
  --yellow: #f6be48;
  --coral: #ee6c4d;
  --shadow: 0 18px 50px rgb(17 35 31 / 12%);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(255 255 255 / 88%);
  border-bottom: 1px solid rgb(219 230 228 / 80%);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgb(0 169 118 / 24%);
}

.brand-mark svg {
  width: 19px;
  height: 19px;
}

.nav-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--ink);
  background: var(--soft);
  outline: none;
}

.language-toggle,
.icon-button,
.search-button,
.primary-action,
.secondary-action,
.subscribe-form button {
  min-height: 42px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 760;
}

.language-toggle {
  padding: 0 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
}

.language-toggle:hover,
.icon-button:hover,
.search-button:hover {
  transform: translateY(-1px);
}

.icon-button {
  width: 42px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: min(680px, 82svh);
  overflow: hidden;
  display: grid;
  align-items: center;
  color: white;
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    url("https://images.unsplash.com/photo-1446776811953-b23d57bd21aa?auto=format&fit=crop&w=2400&q=85")
    center / cover no-repeat;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgb(5 18 24 / 86%) 0%, rgb(5 18 24 / 62%) 44%, rgb(5 18 24 / 25%) 100%),
    linear-gradient(0deg, rgb(5 18 24 / 42%) 0%, rgb(5 18 24 / 0%) 42%);
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #78f2bf;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
}

.hero-lead {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: clamp(1.25rem, 3vw, 2.2rem);
  font-weight: 760;
}

.hero-subtitle {
  max-width: 580px;
  margin: 16px 0 0;
  color: rgb(255 255 255 / 84%);
  font-size: 1.05rem;
}

.hero-clock {
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  backdrop-filter: blur(18px);
  font-weight: 750;
}

.hero-clock time {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action {
  padding: 0 16px;
  color: white;
  background: var(--green);
  box-shadow: 0 16px 34px rgb(0 169 118 / 24%);
}

.secondary-action {
  padding: 0 16px;
  color: white;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 30%);
}

.section {
  padding: 82px 0;
  background: var(--surface);
}

.section-light {
  background: var(--soft);
}

.section-inner,
.action-inner,
.footer-inner,
.copyright {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  margin-bottom: 28px;
}

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.section-copy {
  max-width: 660px;
  margin: 10px 0 0;
  color: var(--muted);
}

.location-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 22px;
}

.search-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(52 120 246 / 12%);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-button {
  padding: 0 14px;
  color: white;
  background: var(--blue);
}

.locate-button {
  height: 48px;
  width: 48px;
}

.data-grid,
.indicator-grid,
.news-grid,
.chart-grid {
  display: grid;
  gap: 16px;
}

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

.metric-card {
  min-height: 154px;
  padding: 18px;
  display: grid;
  gap: 18px;
  align-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(17 35 31 / 6%);
}

.metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  background: rgb(0 169 118 / 10%);
  border-radius: 8px;
}

.metric-card p,
.indicator-card p,
.news-card p,
.action-band p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.metric-card strong {
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 2rem;
  line-height: 1;
}

.metric-card small,
.indicator-card small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

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

.indicator-card {
  min-height: 232px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 96%), rgb(245 247 248 / 92%)),
    radial-gradient(circle at top left, rgb(52 120 246 / 22%), transparent 48%);
}

.indicator-source,
.tag {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: var(--green-deep);
  background: rgb(0 169 118 / 10%);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.indicator-card h3,
.news-card h3,
.chart-panel h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
}

.indicator-card strong {
  margin-top: 4px;
  font-size: 2rem;
  line-height: 1;
}

.indicator-card p {
  margin-top: auto;
}

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

.news-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(17 35 31 / 6%);
}

.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.news-body {
  min-height: 258px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.news-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.news-meta a {
  color: var(--blue);
  font-weight: 800;
}

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

.chart-panel {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgb(17 35 31 / 6%);
}

.chart-box {
  height: 286px;
  margin-top: 16px;
}

.chart-box canvas {
  width: 100%;
  height: 100%;
}

.action-band {
  padding: 82px 0;
  color: white;
  background:
    linear-gradient(135deg, rgb(4 120 87 / 96%), rgb(17 35 31 / 96%)),
    url("https://images.unsplash.com/photo-1473773508845-188df298d2d1?auto=format&fit=crop&w=1800&q=80")
    center / cover no-repeat;
}

.action-band .eyebrow {
  color: #ffe08a;
}

.action-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
}

.action-inner h2 {
  margin-bottom: 12px;
}

.action-band p {
  max-width: 560px;
  color: rgb(255 255 255 / 82%);
}

.action-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.action-list li {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  font-weight: 750;
}

.action-list svg {
  flex: 0 0 auto;
  color: #ffe08a;
}

.subscribe-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.subscribe-form input {
  min-height: 48px;
  min-width: 0;
  padding: 0 14px;
  color: white;
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 8px;
  outline: 0;
}

.subscribe-form input::placeholder {
  color: rgb(255 255 255 / 64%);
}

.subscribe-form input:focus {
  border-color: #ffe08a;
  box-shadow: 0 0 0 4px rgb(246 190 72 / 18%);
}

.subscribe-form button {
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: #ffe08a;
}

.form-note {
  grid-column: 1 / -1;
  min-height: 22px;
}

.site-footer {
  padding: 48px 0 26px;
  background: #0d1715;
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p {
  max-width: 420px;
  color: rgb(255 255 255 / 68%);
}

.footer-links,
.social-links {
  display: flex;
  gap: 12px;
}

.footer-links {
  flex-direction: column;
}

.footer-links a {
  color: rgb(255 255 255 / 78%);
  font-weight: 650;
}

.footer-links a:hover,
.social-links a:hover {
  color: white;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 76%);
  background: rgb(255 255 255 / 8%);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 850;
}

.copyright {
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  gap: 8px;
  color: rgb(255 255 255 / 60%);
  border-top: 1px solid rgb(255 255 255 / 10%);
  font-size: 0.92rem;
}

.not-found-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--soft);
}

.not-found {
  width: min(520px, calc(100% - 32px));
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.not-found h1 {
  color: var(--ink);
  font-size: 2.8rem;
}

.not-found .primary-action {
  width: fit-content;
  margin-top: 20px;
}

@media (max-width: 1080px) {
  .data-grid,
  .indicator-grid,
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .chart-box {
    height: 320px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: center;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 10px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
  }

  .nav-menu a {
    justify-content: flex-start;
  }

  .language-toggle {
    justify-self: end;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgb(5 18 24 / 84%) 0%, rgb(5 18 24 / 56%) 100%),
      linear-gradient(0deg, rgb(5 18 24 / 46%) 0%, rgb(5 18 24 / 0%) 44%);
  }

  .split-head,
  .action-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .search-field {
    grid-column: 1 / -1;
  }

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

  .subscribe-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .section-inner,
  .action-inner,
  .footer-inner,
  .copyright,
  .hero-content {
    width: min(var(--max), calc(100% - 24px));
  }

  .site-nav {
    gap: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .language-toggle {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .language-toggle span {
    display: none;
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero-clock {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding: 12px;
  }

  .hero-clock time {
    max-width: 28ch;
  }

  .section,
  .action-band {
    padding: 58px 0;
  }

  .data-grid,
  .indicator-grid,
  .news-grid,
  .action-list {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 132px;
  }

  .chart-box {
    height: 280px;
  }

  .copyright {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
