/* ===== DESIGN SYSTEM ===== */
:root {
  --bg: #F7F5F2;
  --ink: #1A1A1A;
  --cobalt: #1D4ED8;
  --emerald: #059669;
  --violet: #7C3AED;
  --stone: #A8A29E;
  --border: #D6D3CE;
  --footer-bg: #F0EDE9;
  --font: 'Geist', 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
}

/* ===== FONT FACES ===== */
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== RESET ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 28px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--cobalt);
  text-decoration: none;
  transition: color 150ms, text-decoration 150ms;
}
a:hover {
  text-decoration: underline;
}

/* ===== FOCUS ===== */
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 2px;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms, border-color 200ms;
}

.nav.scrolled {
  background: #F7F5F2;
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo:hover {
  text-decoration: none;
}
.nav-logo svg {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  opacity: 0.6;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 150ms;
}
.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 200ms, opacity 200ms;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 80px 24px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-subheadline {
  margin-top: 24px;
  font-size: 17px;
  line-height: 28px;
  color: var(--stone);
  max-width: 500px;
}

.hero-ctas {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  align-items: center;
}

.btn-primary {
  display: inline-block;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms, transform 150ms;
}
.btn-primary:hover {
  background: #1a44c2;
  text-decoration: none;
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms;
}
.btn-secondary:hover {
  color: var(--cobalt);
  text-decoration: none;
}

/* Diagram centered below text */
.hero-diagram {
  margin-top: 24px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* ===== POSITIONING (What Is ClawWatch?) ===== */
.positioning {
  padding: 64px 24px 80px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 32px;
}

.positioning blockquote {
  border-left: 4px solid var(--cobalt);
  padding-left: 24px;
  font-size: 19px;
  line-height: 32px;
  color: var(--ink);
  max-width: 720px;
  font-style: italic;
}

/* ===== TWO PRODUCTS ===== */
.products {
  padding: 80px 24px 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  border: 1px solid var(--border);
  border-top-width: 4px;
  padding: 40px;
  background: var(--bg);
}

.product-card--oss {
  border-top-color: var(--emerald);
}

.product-card--saas {
  border-top-color: var(--violet);
}

.product-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.product-card .product-tier {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 16px;
}

.product-card--oss .product-tier {
  color: var(--emerald);
}

.product-card--saas .product-tier {
  color: var(--violet);
}

.product-card .product-audience {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}

.product-card .product-desc {
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
  margin-bottom: 24px;
}

.product-card ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.product-card li {
  font-size: 15px;
  line-height: 26px;
  padding-left: 20px;
  position: relative;
}

/* Custom accent-colored checkmark bullets */
.product-card--oss li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--emerald);
  font-weight: 700;
  font-size: 14px;
}

.product-card--saas li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
  font-size: 14px;
}

.product-card .product-link {
  font-weight: 600;
  font-size: 15px;
}

.product-card--oss .product-link {
  color: var(--emerald);
}

.product-card--saas .product-link {
  color: var(--violet);
}

/* ===== FRAMEWORK SUPPORT ===== */
.frameworks {
  padding: 80px 24px;
  text-align: center;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pill {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* ===== WAITLIST CTA ===== */
.waitlist {
  background: var(--ink);
  padding: 120px 24px;
}

.waitlist .container {
  text-align: center;
}

.waitlist-headline {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.waitlist-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 28px;
  color: var(--stone);
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Locked 48px height for both input and button */
.waitlist-form input[type="email"],
.waitlist-form button {
  height: 48px;
  box-sizing: border-box;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 48px;
}

.waitlist-form input[type="email"] {
  flex: 1;
  padding: 0 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  outline: none;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--cobalt);
}

.waitlist-form button {
  padding: 0 28px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 150ms, transform 150ms;
  white-space: nowrap;
}

.waitlist-form button:hover {
  background: #1a44c2;
}

.waitlist-form button:active {
  transform: scale(0.98);
}

.waitlist-caption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--stone);
}

.waitlist-success {
  color: #fff;
  font-size: 17px;
  margin-top: 40px;
}

.waitlist-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 12px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--footer-bg);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.footer-wordmark svg {
  flex-shrink: 0;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--stone);
}

.footer-attribution {
  font-size: 14px;
  color: var(--stone);
}

.footer-attribution a {
  color: var(--stone);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

.footer-attribution a:hover {
  color: var(--ink);
}

/* ===== TOPOLOGY SVG ===== */
.topology-wrapper {
  display: flex;
  justify-content: center;
}

.topology-svg {
  width: 100%;
  height: auto;
}

/* Desktop/mobile diagram visibility */
.topology-mobile {
  display: none;
}

/* Node pulse animation */
@keyframes nodePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.topology-node {
  animation: nodePulse 2.5s ease-in-out infinite;
}

/* Data flow dots — full opacity, larger */
@keyframes flowDot {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.flow-dot {
  offset-distance: 0%;
  animation: flowDot 1.5s linear infinite;
}

/* Tool call flash — higher base opacity */
@keyframes toolFlash {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.tool-call-arrow {
  animation: toolFlash 4s ease-in-out infinite;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .topology-node,
  .flow-dot,
  .tool-call-arrow {
    animation: none !important;
  }
  .flow-dot {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: block;
  }

  .hero {
    padding: 64px 24px 32px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 16px;
  }

  .hero-diagram {
    width: 100%;
  }

  /* Show mobile diagram, hide desktop */
  .topology-desktop {
    display: none;
  }
  .topology-mobile {
    display: block;
  }

  .positioning {
    padding: 48px 24px 64px;
  }

  .products {
    padding: 64px 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 28px 20px;
  }

  .frameworks {
    padding: 64px 24px;
  }

  .waitlist {
    padding: 64px 24px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form input[type="email"],
  .waitlist-form button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 4px;
  }
}
