@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root {
  --bg: #121317;
  --surface: #1b1d24;
  --line: #2a2c34;
  --text: #f3f4ef;
  --muted: #8b8e99;
  --catch: #d7ff3d;
  --catch-dim: #a8c92f;
  --accent2: #6e8cff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.5;
}

.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--catch);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--catch); outline-offset: 3px; }

/* ---------- Nav ---------- */
nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5vw;
  max-width: 1240px;
  margin: 0 auto;
}
nav.top .wordmark { font-size: 20px; text-decoration: none; }
nav.top .wordmark span { color: var(--catch); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--catch); color: #14150f; }
.btn-solid:hover { background: #e4ff6b; }
.btn-outline { border-color: var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--catch); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 9vh 5vw 8vh;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 18px 0 26px;
}
.hero p.lede {
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 36px;
}
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Ticker (signature element) ---------- */
.ticker-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  padding: 18px 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}
.ticker-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--catch-dim);
  white-space: nowrap;
  padding: 0 28px;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Services ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: 10vh 5vw; }
.section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.4vw, 40px);
  margin: 10px 0 44px;
  max-width: 640px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: 32px 26px;
}
.service-card .tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent2);
  display: block;
  margin-bottom: 14px;
}
.service-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Statement ---------- */
.statement {
  border-top: 1px solid var(--line);
  padding: 12vh 5vw;
}
.statement-inner { max-width: 900px; margin: 0 auto; }
.statement blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 4.2vw, 46px);
  line-height: 1.15;
  margin: 0 0 24px;
}
.statement p { color: var(--muted); max-width: 560px; font-size: 16px; }

/* ---------- Final CTA ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  padding: 10vh 5vw;
  text-align: center;
}
.cta-band h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  margin: 0 0 30px;
}
.cta-band .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--muted);
}
footer a { text-decoration: none; margin-left: 20px; }
footer a:hover { color: var(--text); }

/* ---------- Client login gateway page ---------- */
.login-gate {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5vw;
}
.gate-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.gate-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 40px);
  margin: 16px 0 14px;
}
.gate-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 32px; }
.gate-card .btn { width: 100%; justify-content: center; padding: 14px 22px; font-size: 15px; }
.back-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
}
.back-link:hover { color: var(--text); }

@media (max-width: 640px) {
  .hero .ctas, .cta-band .ctas { flex-direction: column; align-items: stretch; }
  footer { flex-direction: column; gap: 10px; text-align: center; }
  footer a { margin: 0 8px; }
}

/* =========================================================
   App shell — login.html / home.html / admin.html reuse the
   same tokens/fonts above via these selectors, so the whole
   product carries one consistent brand, not just the marketing
   pages. Class names match what those pages already use.
   ========================================================= */

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px;
  width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 22px;
}

input, select {
  width: 100%;
  padding: 11px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e0f13;
  color: var(--text);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}
input::placeholder { color: var(--muted); }
input:focus, select:focus { outline: none; border-color: var(--catch); }

button {
  width: 100%;
  padding: 11px;
  border: none;
  border-radius: 8px;
  background: var(--catch);
  color: #14150f;
  font-weight: 600;
  font-size: 14.5px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}
button:hover { background: #e4ff6b; transform: translateY(-1px); }
button.secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
button.secondary:hover { border-color: var(--catch); background: transparent; transform: none; }

.error { color: #ff7a7a; font-size: 13px; margin-bottom: 10px; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
header a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
}

.user-menu { position: relative; }
.user-menu button.icon {
  width: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.user-menu button.icon:hover { border-color: var(--catch); background: var(--surface); transform: none; }
.user-menu .dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 210px;
  padding: 10px;
  z-index: 10;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.user-menu .dropdown.open { display: block; }
.user-menu .dropdown div { padding: 8px 10px; font-size: 13px; color: var(--muted); }
.user-menu .dropdown button { margin-top: 6px; }

.tiles {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 90px);
  flex-wrap: wrap;
}
.tile {
  width: 220px;
  height: 220px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease;
}
.tile:hover { transform: scale(1.03); }
.tile.gemini { background: #4285f4; }
.tile.claude { background: #d97757; }
.tile.chatgpt { background: #10a37f; }

.browser-frame {
  width: 100%;
  height: calc(100vh - 64px);
  border: none;
  background: #000;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
th {
  background: #15161c;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
td { color: var(--text); }

.admin-wrap { max-width: 900px; margin: 32px auto; padding: 0 16px; }
.admin-wrap h1 { font-family: 'Space Grotesk', sans-serif; }
.row-actions button {
  width: auto;
  padding: 6px 12px;
  font-size: 12px;
  margin-right: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 500;
}
.row-actions button:hover { border-color: var(--catch); background: var(--surface); transform: none; }
