:root {
  color-scheme: light;
  --color-bg: #f7fbf4;
  --color-bg-soft: #fffdf6;
  --color-primary: #103f2d;
  --color-primary-soft: #dfeee4;
  --color-primary-active: #103f2d;
  --color-accent: #35b56b;
  --color-gold: #b08a45;
  --color-gold-soft: rgba(176, 138, 69, 0.12);
  --color-text: #173528;
  --color-muted: #617568;
  --color-border: rgba(16, 63, 45, 0.14);
  --color-pill-bg: rgba(255, 255, 255, 0.64);
  --color-pill-active-text: #fff;
  --glow-left: rgba(53, 181, 107, 0.12);
  --glow-right: rgba(176, 138, 69, 0.12);
  --corner-glow: rgba(53, 181, 107, 0.16);
  --building-opacity: 0.9;
  --building-shadow: rgba(176, 138, 69, 0.12);
  --shadow-soft: 0 24px 80px rgba(16, 63, 45, 0.12);
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #06140d;
  --color-bg-soft: #0b1f14;
  --color-primary: #57c878;
  --color-primary-soft: rgba(87, 200, 120, 0.16);
  --color-primary-active: #57c878;
  --color-accent: #57c878;
  --color-gold: #d8ad55;
  --color-gold-soft: rgba(216, 173, 85, 0.32);
  --color-text: #edf7ef;
  --color-muted: #a8b8ad;
  --color-border: rgba(177, 214, 187, 0.18);
  --color-pill-bg: rgba(255, 255, 255, 0.07);
  --color-pill-active-text: #06140d;
  --glow-left: rgba(87, 200, 120, 0.18);
  --glow-right: rgba(216, 173, 85, 0.16);
  --corner-glow: rgba(87, 200, 120, 0.14);
  --building-opacity: 0.48;
  --building-shadow: rgba(216, 173, 85, 0.2);
  --shadow-soft: 0 24px 90px rgba(0, 0, 0, 0.34);
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] h1 {
  color: var(--color-text);
}

html[data-theme="dark"] .lead {
  color: #cfe0d4;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-base);
  background:
    radial-gradient(circle at 18% 20%, var(--glow-left), transparent 30rem),
    radial-gradient(circle at 82% 74%, var(--glow-right), transparent 28rem),
    linear-gradient(135deg, var(--color-bg), var(--color-bg-soft));
  transition: color 200ms ease, background 200ms ease;
}

body::before {
  position: fixed;
  inset: auto -10rem -12rem auto;
  width: 34rem;
  height: 34rem;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle, var(--corner-glow), transparent 68%);
  filter: blur(8px);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.site-header,
.site-footer {
  z-index: 1;
  display: flex;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 4vw, 2rem);
  align-items: center;
  justify-content: space-between;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-pill-bg);
  box-shadow: 0 10px 30px rgba(16, 63, 45, 0.08);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.brand-mark svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: rgba(53, 181, 107, 0.17);
  stroke: var(--color-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.segmented-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 6rem;
  padding: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-pill-bg);
  box-shadow: 0 10px 30px rgba(16, 63, 45, 0.07);
  isolation: isolate;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.segmented-switch::before {
  position: absolute;
  z-index: 0;
  top: 0.25rem;
  left: 0.25rem;
  width: calc((100% - 0.5rem) / 2);
  height: calc(100% - 0.5rem);
  border-radius: 999px;
  content: "";
  background: var(--color-primary-active);
  box-shadow: 0 8px 22px rgba(16, 63, 45, 0.16);
  transform: translateX(0);
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.segmented-switch[data-active="en"]::before,
.segmented-switch[data-active="dark"]::before {
  transform: translateX(100%);
}

.theme-switch {
  min-width: 5.2rem;
}

.switch-button {
  position: relative;
  z-index: 1;
  min-width: 2.75rem;
  padding: 0.42rem 0.72rem;
  border: 0;
  border-radius: 999px;
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition: color 200ms ease, transform 200ms ease;
}

.theme-switch .switch-button {
  min-width: 2.35rem;
  font-size: 0.95rem;
}

.switch-button:hover,
.switch-button:focus-visible {
  color: var(--color-primary-active);
  outline: none;
}

.switch-button:focus-visible {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--color-accent) 70%, #fff);
}

.switch-button.is-active {
  color: var(--color-pill-active-text);
}

.hero {
  position: relative;
  display: grid;
  width: min(100%, 1160px);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 4vw, 2rem);
  place-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  text-align: center;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--color-primary);
  font-size: clamp(3.6rem, 10vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  margin: 1.45rem auto 0;
  color: var(--color-text);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  font-weight: 650;
  line-height: 1.22;
}

.copy {
  max-width: 650px;
  margin: 1.25rem auto 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
}

.status {
  display: inline-flex;
  margin: 2rem 0 0;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  color: var(--color-primary);
  background: var(--color-primary-soft);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.building-silhouette {
  position: absolute;
  z-index: 0;
  top: clamp(-8.975175rem, -11.132vw, -6.748775rem);
  left: 50%;
  width: clamp(10.7982125rem, 19.771375vw, 13.91600625rem);
  opacity: var(--building-opacity);
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 200ms ease;
}

.building-silhouette img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1rem 1.9rem var(--building-shadow));
  transition: filter 200ms ease;
}

.site-footer {
  gap: 0.65rem;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 1rem;
  }

  .brand {
    gap: 0.5rem;
  }

  .brand-mark {
    width: 1.95rem;
    height: 1.95rem;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .segmented-switch {
    min-width: 5.35rem;
    padding: 0.22rem;
  }

  .segmented-switch::before {
    top: 0.22rem;
    left: 0.22rem;
    width: calc((100% - 0.44rem) / 2);
    height: calc(100% - 0.44rem);
  }

  .switch-button {
    min-width: 2.45rem;
    padding-inline: 0.56rem;
  }

  .theme-switch {
    min-width: 4.75rem;
  }

  .theme-switch .switch-button {
    min-width: 2.15rem;
  }

  .hero {
    align-items: start;
    padding-top: clamp(4rem, 14vh, 6rem);
  }

  .building-silhouette {
    top: clamp(-6.6792rem, -22.264vw, -5.14855rem);
    width: clamp(9.12525rem, 38.021875vw, 11.02634375rem);
    opacity: 0.88;
  }

  .copy {
    line-height: 1.62;
  }
}

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