/* Talaricloud marketing site.
   Dark, glowing, modern — and still 100% self-contained: fonts ship with
   the page (variable latin subsets, ~70 KB total), no external requests,
   tiny JS for scroll reveals only.
   Type: Space Grotesk for display, Inter for everything else.
   Brand: Google blue #4285f4; the gold wordmark always sits on a blue plate. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-var.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/space-grotesk-var.woff2") format("woff2");
}

:root {
  --brand: #4285f4;
  --brand-deep: #1a6ae0;
  --brand-soft: #7cb0ff;
  --gold: #f7bc04;
  --bg: #0b1120;
  --bg-raise: #101830;
  --card: rgba(255, 255, 255, 0.035);
  --card-line: rgba(255, 255, 255, 0.09);
  --ink: #eef2fa;
  --muted: #97a3ba;
  --ok: #37c26e;
  --radius: 18px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  /* Apple's signature reveal curve — a long, confident ease-out. */
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Layered elevation: a tight contact shadow plus a soft ambient one. */
  --lift-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.16);
  --lift-2: 0 2px 6px rgba(0, 0, 0, 0.32), 0 20px 56px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; margin: 0; }

/* clip, not hidden: decorative glows can't widen the page, and no
   accidental horizontal scroll container is created. */
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11" 1, "ss01" 1;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Display voice: Space Grotesk carries every big statement on the page. */
.display {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
}

a { color: var(--brand-soft); text-decoration: none; }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(124, 176, 255, 0.12);
  color: var(--brand-soft);
  padding: 1px 6px;
  border-radius: 6px;
}

b { font-weight: 650; }

::selection { background: rgba(66, 133, 244, 0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-soft);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ------------------------------------------------------- scroll reveals */

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--out);
  will-change: opacity, transform;
}

.reveal.in { opacity: 1; transform: none; }

/* Children of a group settle in sequence, not all at once — the small
   cascade is what reads as "considered" rather than mechanical. */
.bento > .reveal:nth-child(2) { transition-delay: 0.05s; }
.bento > .reveal:nth-child(3) { transition-delay: 0.1s; }
.bento > .reveal:nth-child(4) { transition-delay: 0.15s; }
.bento > .reveal:nth-child(5) { transition-delay: 0.2s; }
.bento > .reveal:nth-child(6) { transition-delay: 0.25s; }

.stats > .reveal:nth-child(2),
.pricing > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stats > .reveal:nth-child(3),
.pricing > .reveal:nth-child(3) { transition-delay: 0.16s; }

.faq > .reveal:nth-child(2) { transition-delay: 0.04s; }
.faq > .reveal:nth-child(3) { transition-delay: 0.08s; }
.faq > .reveal:nth-child(4) { transition-delay: 0.12s; }
.faq > .reveal:nth-child(5) { transition-delay: 0.16s; }
.faq > .reveal:nth-child(6) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none !important; }
  .pulse::after { animation: none !important; }
}

/* ----------------------------------------------------------------- nav */

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px clamp(16px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 17, 32, 0.55);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

/* The hairline and lift only appear once you leave the hero — the bar sits
   invisibly on top of the page until then (added by app.js on scroll). */
.nav.scrolled {
  background: rgba(11, 17, 32, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

/* The square mark is its own blue tile, so it renders bare beside the
   wordmark — no plate, matching the dashboard lockup. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.24s var(--spring);
}

.brand:hover .brand-mark { transform: scale(1.06) rotate(-2deg); }

.brand-mark.sm {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.brand-name {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

.brand-footer {
  gap: 9px;
}

.brand-footer .brand-name {
  font-size: 16px;
}

.brand-cloud {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
}

.nav-links a { color: var(--muted); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.16s var(--spring), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  /* #2b6fd6→#1a6ae0: white text clears 4.5:1 at both gradient ends
     (the raw brand blue only reaches 3.56). The inner highlight gives the
     surface a lit top edge, the way a physical key catches light. */
  background: linear-gradient(135deg, #2b6fd6, var(--brand-deep));
  color: #fff;
  box-shadow: 0 4px 24px rgba(66, 133, 244, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 8px 34px rgba(66, 133, 244, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--card-line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover { border-color: var(--brand); background: rgba(66, 133, 244, 0.08); }

.btn-invert { background: #fff; color: var(--brand-deep); }
.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }

.btn-lg { padding: 15px 28px; font-size: 16px; }

.arrow { display: inline-block; transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(64px, 11vh, 120px) 20px 56px;
  text-align: center;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.glow-a {
  width: 560px; height: 560px;
  top: -180px; left: 50%;
  transform: translateX(-80%);
  background: rgba(66, 133, 244, 0.22);
}

.glow-b {
  width: 420px; height: 420px;
  top: -60px; left: 50%;
  transform: translateX(10%);
  background: rgba(247, 188, 4, 0.10);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.pulse {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--ok);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(0.5); opacity: 1; }
  to { transform: scale(1.6); opacity: 0; }
}

.hero h1 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(42px, 7.6vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.038em;
  font-weight: 700;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(100deg, var(--brand-soft) 10%, var(--brand) 45%, var(--gold) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: clamp(16.5px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Terminal: the product's promise in five lines, revealed line by line. */
.terminal {
  max-width: 660px;
  margin: 56px auto 0;
  background: #070b16;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(66, 133, 244, 0.08);
  overflow: hidden;
  text-align: left;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #232d44; }

.term-bar em {
  margin-left: auto;
  margin-right: auto;
  font-style: normal;
  font-size: 12px;
  color: #5c6a85;
  font-family: ui-monospace, Consolas, monospace;
}

/* The chip styling for inline `code` must not touch the terminal block. */
.terminal code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

.terminal pre {
  padding: 16px 22px 22px;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13.5px;
  line-height: 2.05;
  color: #dfe6f1;
}

.t-line { display: block; opacity: 0; animation: typed 0.01s forwards; }
.t-line:nth-child(1) { animation-delay: 0.4s; }
.t-line:nth-child(2) { animation-delay: 1.1s; }
.t-line:nth-child(3) { animation-delay: 1.8s; }
.t-line:nth-child(4) { animation-delay: 2.4s; }
.t-line:nth-child(5) { animation-delay: 3.0s; }

@keyframes typed { to { opacity: 1; } }

.terminal .dim { color: #5c6a85; }
.terminal .ok { color: var(--ok); }
.terminal .gold { color: var(--gold); }
.terminal .link { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- ticker */

.ticker {
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  padding: 13px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
  animation: ticker 30s linear infinite;
}

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

/* ------------------------------------------------------------- sections */

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) 20px;
}

.kicker {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  text-align: center;
  color: var(--brand-soft);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  text-align: center;
  font-size: clamp(29px, 4.4vw, 47px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  font-weight: 600;
  text-wrap: balance;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 580px;
  margin: 18px auto 0;
  text-wrap: balance;
}

/* ---------------------------------------------------------------- bento */

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--lift-1);
  transition: border-color 0.2s var(--ease), transform 0.24s var(--spring),
    box-shadow 0.24s var(--ease);
}

.card:hover {
  border-color: rgba(66, 133, 244, 0.5);
  transform: translateY(-4px);
  box-shadow: var(--lift-2);
}

.span-2 { grid-column: span 2; }

.card h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 14.5px; }

/* mock: deploy timeline */
.mock-timeline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.mt-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 14px;
  border-radius: 999px;
}

.mt-step i { font-style: normal; color: var(--ok); }
.mt-step em { font-style: normal; color: var(--muted); font-weight: 500; }
.mt-step.live { border-color: rgba(247, 188, 4, 0.5); }
.mt-step.live i { color: var(--gold); }

/* mock: PR comment */
.mock-comment {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid var(--card-line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 14px 16px;
}

.mc-avatar {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  display: grid;
  place-items: center;
}

.mc-head { font-size: 13.5px; }
.mc-head span { color: var(--muted); font-weight: 400; }
.mc-body { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.mc-body .link { color: var(--brand-soft); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------- why (stats) */

.section.dark {
  max-width: none;
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(66, 133, 244, 0.12), transparent),
    var(--bg-raise);
  border-top: 1px solid var(--card-line);
  border-bottom: 1px solid var(--card-line);
}

.dark-inner { max-width: 1120px; margin: 0 auto; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--lift-1);
  transition: transform 0.24s var(--spring), box-shadow 0.24s var(--ease),
    border-color 0.2s var(--ease);
}

.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: var(--lift-2);
}

.stat-num {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.stat p { color: var(--muted); font-size: 14.5px; }

.latency { margin-top: 20px; display: grid; gap: 10px; }

.lat-row {
  display: grid;
  grid-template-columns: 92px 1fr 48px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.lat-row i {
  display: block;
  height: 8px;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
}

.lat-row i.slow { background: #3a4560; }
.lat-row em { font-style: normal; text-align: right; }

/* -------------------------------------------------------------- pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--lift-1);
  transition: transform 0.24s var(--spring), box-shadow 0.24s var(--ease);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--lift-2);
}

.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-raise), var(--bg-raise)) padding-box,
    linear-gradient(140deg, var(--brand), var(--gold)) border-box;
  box-shadow: var(--lift-1), 0 20px 60px rgba(66, 133, 244, 0.22);
}

.price-card.featured:hover {
  box-shadow: var(--lift-2), 0 28px 72px rgba(66, 133, 244, 0.3);
}

.tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-card h3 { font-size: 16px; color: var(--muted); font-weight: 600; }

.price {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.price span { font-size: 15px; font-weight: 500; color: var(--muted); }

.price-card ul {
  list-style: none;
  padding: 0;
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.price-card li { padding: 5px 0 5px 26px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }

.price-card .btn { margin-top: auto; text-align: center; }

.fine { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 24px; }

/* ------------------------------------------------------------------ faq */

.faq { max-width: 720px; margin: 44px auto 0; }

.faq details {
  border: 1px solid var(--card-line);
  background: var(--card);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 10px;
  box-shadow: var(--lift-1);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.faq details:hover { border-color: rgba(66, 133, 244, 0.28); }
.faq details[open] {
  border-color: rgba(66, 133, 244, 0.4);
  box-shadow: var(--lift-2);
}

.faq summary {
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 30px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: -2px;
  color: var(--brand-soft);
  font-size: 21px;
  font-weight: 450;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.faq details[open] p { animation: faq-in 0.34s var(--out); }

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ cta */

.cta {
  position: relative;
  text-align: center;
  padding: clamp(72px, 12vh, 120px) 20px;
  background: linear-gradient(150deg, var(--brand-deep), var(--brand) 65%, #6ea0f5);
  overflow: hidden;
}

.glow-c {
  width: 500px; height: 500px;
  bottom: -300px; left: 50%;
  transform: translateX(-50%);
  background: rgba(247, 188, 4, 0.25);
}

.cta h2 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.024em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta p { color: #fff; margin-bottom: 30px; }

/* -------------------------------------------------------------- footer */

.footer {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 36px 20px;
  color: var(--muted);
  font-size: 13.5px;
}

/* -------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .bento { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .stats, .pricing { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .hero-actions .btn { width: 100%; }
}

/* HIG 44pt tap targets on touch devices. */
@media (pointer: coarse) {
  .nav-links a,
  .footer a {
    padding: 10px 6px;
    margin: -10px -6px;
  }
}
