:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --ink: #111412;
  --muted: #5d625f;
  --line: rgba(17, 20, 18, 0.13);
  --surface: rgba(255, 255, 252, 0.82);
  --surface-strong: #fffffb;
  --green: #1b6d58;
  --blue: #305f9f;
  --amber: #b76f2d;
  --plum: #6b4c7b;
  --shadow: 0 24px 80px rgba(17, 20, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(183, 111, 45, 0.16), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(48, 95, 159, 0.13), transparent 31%),
    linear-gradient(180deg, #fffffb 0%, var(--bg) 58%, #eef2ef 100%);
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
}

.site-header,
main,
.footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand,
.nav a,
.tool-card {
  color: inherit;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 14px;
  background: rgba(255, 255, 252, 0.6);
  backdrop-filter: blur(12px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  min-height: 54vh;
  margin: 0 auto;
  padding: 74px 0 44px;
}

.hero-copy {
  max-width: 820px;
}

.eyebrow,
.tool-kicker,
.metric-label {
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
}

h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.93;
  letter-spacing: 0;
}

.lede {
  max-width: 690px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
}

.live-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.live-panel > div {
  min-height: 92px;
  padding: 18px;
  background: rgba(255, 255, 252, 0.82);
  backdrop-filter: blur(16px);
}

.metric-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.live-panel strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.tool-card {
  position: relative;
  min-height: 342px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(17, 20, 18, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 20, 18, 0.3);
  background: var(--surface-strong);
}

.tool-card::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(17, 20, 18, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(17, 20, 18, 0.08) 49%, rgba(17, 20, 18, 0.08) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(17, 20, 18, 0.08) 49%, rgba(17, 20, 18, 0.08) 51%, transparent 52%);
  opacity: 0.65;
}

.tool-card:nth-child(1) {
  --card-accent: var(--blue);
}

.tool-card:nth-child(2) {
  --card-accent: var(--plum);
}

.tool-card:nth-child(3) {
  --card-accent: var(--amber);
}

.status-pill {
  position: absolute;
  top: 24px;
  right: 24px;
  border: 1px solid rgba(17, 20, 18, 0.12);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
  background: rgba(255, 255, 252, 0.76);
}

.status-pill.online {
  color: var(--green);
  border-color: rgba(27, 109, 88, 0.28);
  background: rgba(27, 109, 88, 0.08);
}

.status-pill.offline {
  color: #9b3d32;
  border-color: rgba(155, 61, 50, 0.28);
  background: rgba(155, 61, 50, 0.08);
}

.tool-kicker {
  display: block;
  color: var(--card-accent);
}

.tool-card h2 {
  max-width: 460px;
  margin: 80px 0 14px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 0.98;
  letter-spacing: 0;
}

.tool-card p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.tool-action {
  position: absolute;
  left: 28px;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 760;
}

.memory-strip {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(17, 20, 18, 0.94);
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

.ticker span {
  padding: 18px 28px;
  color: #fffffb;
  font-size: 18px;
  font-weight: 760;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .hero,
  .tools {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
  }

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

  .live-panel {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    animation: none;
  }

  .tool-card {
    transition: none;
  }
}
