/* kardume.ai landing. Kardume v3 neutral palette; background motion borrowed from xcali.ai in monochrome. */
:root {
  --field: #141414;
  --panel: rgb(28 28 28 / 0.72);
  --line: rgb(255 255 255 / 0.14);
  --ink-0: #ececec;
  --ink-1: #bdbdbd;
  --ink-2: #a6a6a6;
  --ink-3: #8b8b8b;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--field); color: var(--ink-0); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--ink-2); text-decoration: none; }
a:hover { color: var(--ink-0); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  overflow: hidden;
  isolation: isolate;
}

/* Three soft light spots drifting slowly. */
.aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; filter: blur(90px); opacity: 0.6; }
.aurora i {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  mix-blend-mode: screen;
  animation: drift 26s cubic-bezier(.22, 1, .36, 1) infinite alternate;
}
.aurora i:nth-child(1) { background: radial-gradient(closest-side, rgb(255 255 255 / .16), transparent); left: -12vmax; top: 28%; }
.aurora i:nth-child(2) { background: radial-gradient(closest-side, rgb(255 255 255 / .20), transparent); right: -14vmax; top: -12%; animation-duration: 32s; animation-direction: alternate-reverse; }
.aurora i:nth-child(3) { background: radial-gradient(closest-side, rgb(255 255 255 / .11), transparent); left: 32%; bottom: -30vmax; animation-duration: 38s; }
@keyframes drift { to { transform: translate3d(6vmax, -4vmax, 0) scale(1.14); } }

/* Faint dot grid fading out from the centre. */
.grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}

/* Film grain over everything. */
.grain { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .08; background-image: url("/grain.svg"); }

.top, .foot { width: 100%; max-width: 1120px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-0); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink-0); }

.hero {
  flex: 1 1 auto; width: 100%; max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 26px; padding: 120px 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid rgb(255 255 255 / .12); background: rgb(255 255 255 / .03);
  border-radius: 999px; padding: 7px 14px;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-0); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

h1, .lede, .fine { text-wrap: balance; }
h1 { margin: 0; font-size: clamp(42px, 7.2vw, 80px); line-height: 1.02; font-weight: 600; letter-spacing: -0.035em; }
.lede { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: var(--ink-1); }

.signup { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px -24px rgb(0 0 0 / .9);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pill:focus-within { border-color: rgb(255 255 255 / .38); box-shadow: 0 0 0 4px rgb(255 255 255 / .06), 0 18px 50px -20px rgb(0 0 0 / .8); }
.pill input[type="email"] {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0; font: inherit; font-size: 16px;
  color: var(--ink-0); background: transparent; border: 0; outline: none;
}
.pill input::placeholder { color: #7a7a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; height: 48px; padding: 0 20px 0 22px;
  font: inherit; font-size: 15px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--field); background: var(--ink-0); border: 0; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
}
.btn:hover { background: #fff; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--ink-0); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow { transition: transform .2s ease; }

.fine { margin: 0; font-size: 13px; color: var(--ink-3); }
.error { margin: 0; font-size: 14px; color: #f2b8b5; }

.done {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 15px;
}
[hidden] { display: none !important; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #7a7a7a; }

@media (max-width: 520px) {
  .hero { padding: 72px 0; }
  .pill { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 8px; }
  .pill input[type="email"] { padding: 0 14px; }
  .btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .dot { animation: none; }
  .btn, .arrow, .pill { transition: none; }
}
