:root {
  --ink: #111827;
  --muted: #64748b;
  --paper: #f7f8fb;
  --panel: rgba(255, 255, 255, 0.78);
  --line: rgba(17, 24, 39, 0.1);
  --blue: #2563eb;
  --teal: #0f766e;
  --rose: #e11d48;
  --amber: #f59e0b;
  --green: #16a34a;
  --indigo: #6366f1;
  --emerald: #10b981;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(37, 99, 235, 0.15), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgba(15, 118, 110, 0.14), transparent 24rem),
    linear-gradient(135deg, #fff 0%, var(--paper) 58%, #eef2ff 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: blur(18px);
}

.topbar .shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: conic-gradient(from 120deg, var(--blue), var(--teal), var(--amber), var(--rose), var(--blue));
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.28);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.nav a,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.62rem 0.95rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #334155;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  list-style: none;
  padding: 0.62rem 0.95rem;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  display: grid;
  gap: 0.35rem;
  min-width: 230px;
  padding: 0.5rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 50;
}

.nav-menu a {
  border-radius: 6px;
  justify-content: flex-start;
  padding: 0.58rem 0.7rem;
  white-space: nowrap;
}

.hero {
  padding: clamp(4rem, 9vw, 7rem) 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 1rem;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(22, 163, 74, 0.12);
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.lead {
  max-width: 650px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 900;
  padding: 0.8rem 1.05rem;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
  color: #1f2937;
}

.command-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  overflow: hidden;
}

.panel-head {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.dot.red { background: #fb7185; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.panel-body {
  padding: 1.15rem;
  display: grid;
  gap: 0.8rem;
}

.route {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.route strong {
  display: block;
  letter-spacing: -0.02em;
}

.route span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.blue { background: var(--blue); }
.teal { background: var(--teal); }
.rose { background: var(--rose); }
.amber { background: var(--amber); }
.indigo { background: var(--indigo); }
.emerald { background: var(--emerald); }

.arrow {
  color: #94a3b8;
  font-weight: 900;
}

.section {
  padding: 2rem 0 5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 0;
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.6;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.route:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.08), transparent 45%);
  pointer-events: none;
}

.card-top,
.card-bottom {
  position: relative;
  z-index: 1;
}

.card h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.25rem;
  letter-spacing: -0.035em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.58;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #334155;
  font-weight: 900;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
  color: var(--muted);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links span:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a {
  color: #334155;
  text-decoration: none;
}

.content-page {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.content-wrap {
  max-width: 860px;
}

.content-wrap h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.content-wrap h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.content-wrap p,
.content-wrap li {
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.75;
}

.content-wrap ul {
  padding-left: 1.2rem;
}

.content-wrap .lead {
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar .shell {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

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

  .nav-dropdown,
  .nav-menu {
    position: static;
    width: 100%;
  }

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

  .arrow {
    display: none;
  }
}
