:root {
  --bg: #FFFFFF;
  --accent: #0BB4AA;
  --accent-soft: #0BB4AA1a;
  --accent-softer: #0BB4AA0d;
  --card-bg: #FFFFFF;
  --line: #0BB4AA33;
  --footer-color: #05201e;
  --footer-line: #05201e4d;
}

:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #FFFFFF;
    --accent: #35d6cb;
    --accent-soft: #35d6cb26;
    --accent-softer: #35d6cb12;
    --card-bg: #0a2c29;
    --line: #35d6cb3a;
    --footer-color: #05201e;
    --footer-line: #35d6cb;
  }
}

:root[data-theme="dark"] {
  --bg: #FFFFFF;
  --accent: #35d6cb;
  --accent-soft: #35d6cb26;
  --accent-softer: #35d6cb12;
  --card-bg: #0a2c29;
  --line: #35d6cb3a;
  --footer-color: #05201e;
  --footer-line: #35d6cb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--accent);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.scene {
  width: 100%;
  max-width: 640px;
  text-align: center;
}

.path-art {
  width: 180px;
  height: 120px;
  margin: 0 auto 8px;
  display: block;
}

.path-art path.route {
  fill: none;
  stroke: var(--line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
}

.path-art path.taken {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: draw 1.1s ease-out 0.15s forwards;
}

.path-art circle,
.path-art .pin {
  fill: var(--accent);
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  line-height: 1.25;
  margin: 4px 0 10px;
  letter-spacing: -0.01em;
}

p.sub {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 4vw, 1.25rem);
  line-height: 1.4;
  margin: 0 0 34px;
  opacity: 0.85;
  white-space: nowrap;
}

.go-button {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 20px var(--accent-soft);
}

.go-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px var(--accent-soft);
}

.go-button:active {
  transform: translateY(0);
}

.go-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.go-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.18s ease;
}

.go-button:hover svg {
  transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
  .path-art path.taken {
    animation: none;
    stroke-dashoffset: 0;
  }
  .go-button, .go-button svg {
    transition: none;
  }
}

.site-footer {
  border-top: 1px solid var(--footer-line);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 12px;
  color: var(--footer-color);
  opacity: 0.85;
  text-align: center;
  white-space: nowrap;
}

.footer-logo {
  height: 28px;
  width: auto;
  max-width: 160px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-logo.is-missing {
  height: auto;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--footer-color);
  opacity: 0.7;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 16px 20px;
  }
}
