:root {
  --ink: #142b35;
  --muted: #5c6970;
  --paper: #fbf8f2;
  --stone: #ebe6dc;
  --stone-2: #d8d1c5;
  --river: #2f7f78;
  --river-dark: #174a5a;
  --roof: #7f2632;
  --roof-light: #9d3542;
  --gold: #c9a24a;
  --white: #fffdf8;
  --line: rgba(20, 43, 53, 0.14);
  --content: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--sans);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 72% 24%, rgba(47, 127, 120, 0.11), transparent 31%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.98) 0%, rgba(251, 248, 242, 0.94) 48%, rgba(47, 127, 120, 0.11) 100%),
    #f4f0e8;
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px max(var(--gutter), calc((100% - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(232px, 52vw);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid rgba(20, 43, 53, 0.16);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

main {
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: min(660px, calc(100vh - 72px));
  padding: clamp(32px, 6vh, 58px) var(--gutter) 40px;
}

.px-radar {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.prague-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.map-lines {
  position: absolute;
  inset: -6% -4%;
  width: 108%;
  height: 112%;
}

.vltava {
  fill: none;
  stroke: rgba(47, 127, 120, 0.24);
  stroke-width: 24;
}

.tram {
  fill: none;
  stroke-width: 16;
  stroke-linecap: round;
  opacity: 0.08;
}

.tram.red {
  stroke: var(--roof);
}

.tram.teal {
  stroke: var(--river-dark);
}

.tram.gold {
  stroke: var(--gold);
}

.bridges path {
  stroke: rgba(20, 43, 53, 0.1);
  stroke-width: 12;
  stroke-linecap: round;
}

.signal {
  position: absolute;
  color: rgba(20, 43, 53, 0.22);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.signal::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 8px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 15px solid rgba(20, 43, 53, 0.36);
  transform: rotate(-24deg);
}

.s1 { left: 13%; top: 28%; }
.s2 { left: 47%; top: 18%; }
.s3 { right: 13%; top: 30%; }
.s4 { right: 20%; bottom: 23%; }

.spire {
  position: absolute;
  width: 54px;
  height: 132px;
  border-radius: 24px 24px 0 0;
  background: rgba(20, 43, 53, 0.045);
  transform: skewX(-14deg);
}

.spire::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -48px;
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 50px solid rgba(127, 38, 50, 0.08);
}

.sp1 { left: 7%; bottom: 4%; height: 190px; }
.sp2 { left: 35%; bottom: -2%; height: 150px; }
.sp3 { right: 6%; bottom: 8%; height: 220px; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(290px, 0.62fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  max-width: var(--content);
  margin: 0 auto;
}

.intro {
  position: relative;
  max-width: 620px;
}

/* Soft paper wash so the radar labels never fight the headline. */
.intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -22px -30px;
  background: radial-gradient(ellipse at 36% 48%, rgba(251, 248, 242, 0.94) 0%, rgba(251, 248, 242, 0.7) 48%, transparent 78%);
  pointer-events: none;
}

.eyebrow,
.panel-kicker,
.feature-row article p {
  margin: 0 0 14px;
  color: var(--river-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-logo {
  display: block;
  width: min(392px, 100%);
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 22px;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 545px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.45;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.languages span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 33px;
  border: 1px solid rgba(20, 43, 53, 0.16);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.languages span:nth-child(1) { border-color: rgba(142, 36, 51, 0.44); }
.languages span:nth-child(2) { border-color: rgba(47, 127, 120, 0.42); }
.languages span:nth-child(3) { border-color: rgba(201, 162, 74, 0.56); }

.subscribe-card {
  display: grid;
  gap: 14px;
  max-width: 470px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: 0 14px 36px rgba(20, 43, 53, 0.08);
}

.subscribe-card label {
  display: grid;
  gap: 4px;
}

.subscribe-card strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.3;
}

.subscribe-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.subscribe-row input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(20, 43, 53, 0.18);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: 600 15px/1 var(--sans);
}

.subscribe-row input:focus {
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(47, 127, 120, 0.14);
  outline: 0;
}

.subscribe-row button {
  min-width: 118px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: #fffdf8;
  cursor: pointer;
  font: 800 14px/1 var(--sans);
}

.subscribe-row button:hover {
  background: var(--river-dark);
}

.subscribe-row button[disabled] {
  cursor: progress;
  opacity: 0.62;
}

.subscribe-status {
  margin: 0;
  color: var(--river-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.subscribe-status[data-state="error"] {
  color: var(--roof);
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.live-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 18px 46px rgba(20, 43, 53, 0.1);
  padding: clamp(20px, 3vw, 32px);
  backdrop-filter: blur(18px);
}

.live-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0;
}

.live-panel > p:last-of-type {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.live-panel.compact {
  margin-top: clamp(20px, 4vh, 48px);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.metrics div {
  min-height: 78px;
  padding: 12px;
  border: 1px solid rgba(20, 43, 53, 0.08);
  border-radius: 6px;
  background: rgba(246, 248, 248, 0.72);
}

.metrics strong {
  display: block;
  color: #071118;
  font-size: 25px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.notice {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--gutter) * 2);
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--ink);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.5;
}

.notice strong {
  color: var(--roof);
}

.feature-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: calc(var(--content) + var(--gutter) * 2);
  margin: 30px auto 56px;
  padding: 0 var(--gutter);
}

.feature-row article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 253, 248, 0.78);
}

.feature-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-row span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px max(var(--gutter), calc((100% - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: rgba(20, 43, 53, 0.96);
  color: rgba(255, 253, 248, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.engine-note {
  color: rgba(255, 253, 248, 0.58);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.engine-note strong {
  color: #0968b5;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .topbar {
    min-height: 64px;
  }

  .status-pill {
    min-width: 0;
    height: 32px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 30px;
  }

  .hero-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .live-panel {
    max-width: 560px;
  }

  .feature-row {
    margin-top: 28px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    width: min(196px, 66vw);
  }

  .status-pill {
    min-width: 0;
    align-self: flex-start;
  }

  .hero-logo {
    width: min(248px, 84%);
    max-height: 62px;
    margin-bottom: 18px;
  }

  .intro {
    padding: 14px 0 18px;
    background: radial-gradient(ellipse at 50% 52%, rgba(255, 250, 241, 0.72), transparent 72%);
  }

  .languages span {
    width: calc((100% - 24px) / 4);
  }

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

  .subscribe-row button {
    width: 100%;
  }

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

  footer {
    flex-direction: column;
  }
}
