/* Public landing page — evo.blue.
   Self-contained: system fonts, no external assets. */

:root {
  --navy-950: #081120;
  --navy-900: #0b1a33;
  --ink: #16233b;
  --muted: #5a6b85;
  --muted-dark: #9fb0ca;   /* muted text on navy */
  --line: #dde5f0;
  --line-dark: rgba(255, 255, 255, 0.08);
  --bg: #f6f9fd;
  --card: #ffffff;
  --accent: #2e6ee6;
  --accent-deep: #1f57c4;
  --link: #2456a4;
  --grad: linear-gradient(120deg, #2e6ee6, #38a4f8);
  --grad-text: linear-gradient(100deg, #6aa5ff, #38bdf8);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 26, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(4, 10, 22, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: var(--link); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(46, 110, 230, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(46, 110, 230, 0.45);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }

.btn-lg { padding: 0.8rem 1.5rem; font-size: 1.05rem; border-radius: 12px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* --- Navigation ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(8, 17, 32, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.wordmark span { color: #5ea1ff; }

.nav-links { display: flex; gap: 1.5rem; }

.nav-links a {
  color: var(--muted-dark);
  text-decoration: none;
  font-weight: 500;
}

.nav-links a:hover { color: #fff; }

.nav-actions { margin-left: auto; display: flex; gap: 0.7rem; align-items: center; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(60rem 32rem at 12% -10%, rgba(46, 110, 230, 0.35), transparent 60%),
    radial-gradient(50rem 30rem at 95% 15%, rgba(56, 164, 248, 0.18), transparent 55%),
    var(--navy-950);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1rem, 4vw, 2.5rem) clamp(4rem, 8vw, 6.5rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7fb2ff;
  border: 1px solid rgba(94, 161, 255, 0.35);
  background: rgba(46, 110, 230, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 800;
  margin-bottom: 0.5em;
  max-width: 15em;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted-dark);
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1.8rem; }

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "✓";
  color: #4ade80;
  font-weight: 700;
  margin-right: 0.5rem;
}

/* --- Hero chat mockup ---------------------------------------------------- */

.chat-window {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--ink);
  max-width: 30rem;
  margin-left: auto;
  transform: rotate(0.8deg);
}

.chat-chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  background: #eef3fa;
  border-bottom: 1px solid var(--line);
}

.chat-chrome .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cdd9e9;
}

.chat-url {
  margin-left: 0.6rem;
  font-size: 0.78rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
}

.chat-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.75rem; }

.msg {
  max-width: 85%;
  padding: 0.65rem 0.9rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.msg-user {
  align-self: flex-end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-ai {
  align-self: flex-start;
  background: #f1f5fb;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.grounding {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.75rem;
  color: var(--link);
  background: #e8f0fb;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  width: fit-content;
}

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 5px;
  padding: 0.8rem 1rem;
  background: #f1f5fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chat-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9db4d4;
  animation: pulse 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.18s; }
.chat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes pulse {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 1.1rem 1.1rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.chat-send {
  width: 30px; height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 1rem;
  cursor: default;
}

/* --- Sections ------------------------------------------------------------ */

.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: #eef3fa; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.kicker {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.kicker-light { color: #7fb2ff; }

.section h2, .band h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  max-width: 38rem;
}

/* --- Steps --------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.08rem; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --- Features ------------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  border-top: 3px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature:hover { border-top-color: var(--accent); transform: translateY(-2px); }

.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --- Security band ------------------------------------------------------- */

.band {
  background:
    radial-gradient(50rem 26rem at 85% 0%, rgba(46, 110, 230, 0.25), transparent 55%),
    var(--navy-900);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.band-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 2.2rem;
}

.band-item {
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.band-item h3 { font-size: 1.05rem; }
.band-item h3::before { content: "✓"; color: #4ade80; margin-right: 0.55rem; }
.band-item p { color: var(--muted-dark); font-size: 0.95rem; margin: 0; }

/* --- Beta section -------------------------------------------------------- */

.beta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; }

.check-list li { padding: 0.25rem 0; }

.check-list li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem; height: 1.35rem;
  border-radius: 50%;
  background: #e7f6ec;
  color: #1e6b3a;
  font-size: 0.8rem;
  font-weight: 700;
  margin-right: 0.6rem;
}

.fine { font-size: 0.88rem; color: var(--muted); }

.beta-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

.beta-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }

.beta-card label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.9rem 0 0.3rem;
}

.beta-card .optional { font-weight: 400; color: var(--muted); }

.beta-card input,
.beta-card textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #c3d0e2;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: #fbfdff;
}

.beta-card input:focus,
.beta-card textarea:focus {
  outline: 2px solid rgba(46, 110, 230, 0.35);
  outline-offset: 0;
  border-color: var(--accent);
}

.beta-card textarea { resize: vertical; }

.beta-card .btn-block { margin-top: 1.3rem; }

.form-fine { text-align: center; margin: 0.9rem 0 0; }

/* Honeypot — visually gone, still in the DOM for bots. */
.hp { position: absolute; left: -9999px; top: -9999px; }

.notice {
  border-radius: 10px;
  padding: 0.7rem 0.95rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.notice-success { background: #e7f6ec; color: #1e6b3a; }
.notice-error   { background: #fdecea; color: #a12622; }
.notice-info    { background: #e8f0fb; color: #234f8f; }

/* --- Footer -------------------------------------------------------------- */

.footer {
  background: var(--navy-950);
  color: var(--muted-dark);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-tag { margin-top: 0.5rem; font-size: 0.92rem; }

.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-links a { color: var(--muted-dark); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-demo { display: flex; justify-content: center; }
  .chat-window { margin-left: 0; transform: none; }
  .steps, .features { grid-template-columns: 1fr; }
  .band-grid, .beta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .nav-actions .btn-ghost { display: none; }
  .hero-cta .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chat-typing span { animation: none; }
  .btn, .feature { transition: none; }
}
