/* Agenticaster — Material Design 3 (bright) design tokens */
:root {
  /* Color roles */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --on-primary: #ffffff;
  --primary-container: #dce7fe;
  --on-primary-container: #14367f;

  --secondary: #0d9488;
  --secondary-container: #ccfbf1;
  --on-secondary-container: #115e59;

  --background: #f6f8fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --on-surface: #0f172a;
  --on-surface-variant: #52627a;

  --outline: #dde4ee;
  --outline-strong: #c3cedd;

  --gradient: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);

  /* Elevation */
  --elev-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .10);
  --elev-2: 0 2px 4px -1px rgba(16, 24, 40, .06), 0 4px 10px -2px rgba(16, 24, 40, .10);
  --elev-3: 0 4px 8px -2px rgba(16, 24, 40, .06), 0 14px 24px -6px rgba(16, 24, 40, .14);

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 28px;
  --r-full: 999px;

  --maxw: 1040px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: Roboto, "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Top app bar ---------- */
.appbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--outline);
}
.appbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  color: var(--on-surface); border-radius: var(--r-full); padding: 6px 8px;
  transition: background-color .2s var(--ease);
}
.logo:hover { text-decoration: none; background: var(--surface-2); }
.logo .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--primary), var(--secondary), var(--primary));
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a {
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  color: var(--on-surface-variant); padding: 8px 14px; border-radius: var(--r-full);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.nav a:hover { text-decoration: none; background: var(--surface-2); color: var(--primary); }
.nav a.nav-emphasis { color: var(--primary); font-weight: 600; }
@media (max-width: 560px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
  .logo { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 460px at 8% -25%, rgba(37, 99, 235, .20), transparent 66%),
    radial-gradient(720px 420px at 92% -5%, rgba(13, 148, 136, .18), transparent 62%),
    var(--surface);
  border-bottom: 1px solid var(--outline);
}
.hero-inner { padding: 72px 0 64px; }
@media (max-width: 720px) { .hero-inner { padding: 48px 0 44px; } }

.chip-assist {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--on-primary-container); background: var(--primary-container);
  border-radius: var(--r-sm); padding: 6px 14px; margin-bottom: 24px;
}

h1 {
  font-size: clamp(36px, 6vw, 57px); line-height: 1.1; font-weight: 700;
  letter-spacing: -.025em; margin: 0 0 20px; max-width: 15ch;
}
h1.wide { max-width: 20ch; }
h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(34px, 5.4vw, 50px); letter-spacing: -.02em; margin-bottom: 12px;
}

.tagline {
  font-size: clamp(20px, 2.8vw, 26px); font-weight: 600; line-height: 1.3;
  letter-spacing: -.01em; color: var(--on-surface); margin: 0 0 20px; max-width: 24ch;
}
.lede { font-size: clamp(16px, 2vw, 18px); color: var(--on-surface-variant); max-width: 62ch; margin: 0 0 16px; }
.lede:last-of-type { margin-bottom: 32px; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 26px; border-radius: var(--r-full);
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: box-shadow .2s var(--ease), background-color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-filled { background: var(--primary); color: var(--on-primary); box-shadow: var(--elev-1); }
.btn-filled:hover { background: var(--primary-hover); box-shadow: var(--elev-2); }

.btn-outlined { background: transparent; border-color: var(--outline-strong); color: var(--primary); }
.btn-outlined:hover { background: var(--surface-2); border-color: var(--primary); }

/* ---------- Sections ---------- */
main { display: block; }
section { padding: 72px 0; }
section + section { padding-top: 0; }
@media (max-width: 720px) { section { padding: 48px 0; } }

h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.2; margin: 0 0 16px; max-width: 22ch;
}
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; margin: 0 0 8px; }

.section-sub { color: var(--on-surface-variant); max-width: 66ch; margin: 0 0 16px; font-size: 17px; }
.section-sub:last-of-type { margin-bottom: 32px; }
.section-sub.tight { margin-bottom: 0; }

ul.plain { color: var(--on-surface-variant); margin: 0 0 24px; padding-left: 22px; max-width: 66ch; }
ul.plain li { margin-bottom: 8px; }
ul.plain li::marker { color: var(--primary); }

.note {
  color: var(--on-surface-variant); font-size: 15px; max-width: 66ch; margin: 0;
  background: var(--surface-2); border-left: 4px solid var(--outline-strong);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 16px 20px;
}

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--elev-1);
  transition: box-shadow .24s var(--ease), transform .24s var(--ease);
}
.card:hover { box-shadow: var(--elev-3); transform: translateY(-3px); }
.card .num {
  display: inline-block; margin-bottom: 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--on-primary-container); background: var(--primary-container);
  border-radius: var(--r-full); padding: 5px 12px;
}
.card p { margin: 0; color: var(--on-surface-variant); font-size: 15px; }

.card.feature { position: relative; overflow: hidden; padding-top: 26px; }
.card.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient);
}

/* ---------- Product cards ---------- */
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }
.tool {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--elev-1);
  transition: box-shadow .24s var(--ease), transform .24s var(--ease);
}
.tool:hover { box-shadow: var(--elev-3); transform: translateY(-3px); }
.tool-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tool .name {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 19px; font-weight: 700; color: var(--on-surface); letter-spacing: -.01em;
}
.chip-status {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--on-secondary-container); background: var(--secondary-container);
  border-radius: var(--r-full); padding: 4px 10px;
}
.tool .claim { margin: 16px 0 0; font-size: 16px; font-weight: 600; color: var(--on-surface); }
.tool p { color: var(--on-surface-variant); font-size: 15px; margin: 8px 0 0; }
.tool .more { margin-top: auto; padding-top: 20px; font-size: 15px; font-weight: 600; }

/* ---------- Early-access card ---------- */
.waitlist {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--r-xl);
  padding: 40px; box-shadow: var(--elev-2);
}
@media (max-width: 620px) { .waitlist { padding: 28px 22px; border-radius: var(--r-lg); } }
.waitlist h2 { margin-bottom: 12px; }

.field-label {
  display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--on-surface-variant); margin-top: 28px;
}
form.signup { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
input[type=email] {
  flex: 1 1 280px; min-height: 44px; padding: 0 16px;
  font-family: inherit; font-size: 16px; color: var(--on-surface);
  background: var(--surface); border: 1px solid var(--outline-strong);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input[type=email]::placeholder { color: #93a1b5; }
input[type=email]:hover { border-color: var(--on-surface-variant); }
input[type=email]:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.fineprint { font-size: 13.5px; color: var(--on-surface-variant); margin: 14px 0 0; max-width: 60ch; }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface); border-top: 1px solid var(--outline);
  padding: 40px 0 56px; margin-top: 72px;
  color: var(--on-surface-variant); font-size: 14px;
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.footer-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--on-surface-variant); font-weight: 500; }
.footer-links a:hover { color: var(--primary); }
.honest {
  display: inline-block; margin-top: 20px; font-size: 13px; font-weight: 600;
  color: var(--on-secondary-container); background: var(--secondary-container);
  border-radius: var(--r-full); padding: 6px 14px;
}
.legal { margin: 20px 0 0; font-size: 13px; max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
