:root,
[data-theme="light"] {
  --surface: #eef3f0;
  --elevated: #ffffff;
  --ink: #14241e;
  --muted: #5d7269;
  --line: #d5e0da;
  --brand: #0e8a68;
  --brand-hover: #0b7357;
  --brand-fg: #ffffff;
  --shadow: 0 18px 50px rgba(16, 33, 28, 0.1);
}

[data-theme="dark"] {
  --surface: #0c1210;
  --elevated: #141c19;
  --ink: #e6eee9;
  --muted: #8aa396;
  --line: #25332e;
  --brand: #2fd4a3;
  --brand-hover: #54e0b4;
  --brand-fg: #06241b;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

.logo-on-dark {
  display: none;
}

[data-theme="dark"] .logo-on-light {
  display: none;
}

[data-theme="dark"] .logo-on-dark {
  display: block;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 6rem;
  background:
    radial-gradient(1200px 500px at 10% 8%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 55%),
    radial-gradient(900px 420px at 92% 92%, color-mix(in srgb, #d89a12 14%, transparent), transparent 50%),
    var(--surface);
}

@media (min-width: 720px) {
  .page {
    padding: 2.5rem 3rem 7rem;
  }
}

.top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-grid;
  max-width: min(100%, 240px);
}

.logo img {
  grid-area: 1 / 1;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--elevated);
  color: var(--ink);
  cursor: pointer;
}

.theme svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .theme-sun {
  display: none;
}

[data-theme="light"] .theme-moon {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin-top: 3.5rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lead {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.products {
  margin-top: 2.5rem;
}

.products h2 {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 10.5rem;
  padding: 1.15rem 1.2rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--elevated) 88%, transparent);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.card-code {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.card-name {
  margin-top: 0.55rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-go {
  margin-top: auto;
  padding-top: 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.card:hover .card-go {
  color: var(--brand);
}

.route {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(72%, 640px);
  opacity: 0.8;
  pointer-events: none;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.pulse {
  transform-origin: 250px 120px;
  animation: pulse 2.4s ease-out infinite;
}
