/* Grok Bot Watch - liquid glass coming soon */

:root {
  --void: #050608;
  --void-deep: #030406;
  --cream: #efe8d8;
  --cream-dim: #b6ad9a;
  --muted: #7d766b;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #7dd3fc;
  --accent-deep: #38bdf8;
  --glass-bg: rgba(12, 14, 18, 0.52);
  --glass-bg-strong: rgba(10, 12, 16, 0.72);
  --glass-blur: 18px;
  --surface-specular: rgba(255, 255, 255, 0.42);
  --surface-depth: 0 18px 50px rgba(0, 0, 0, 0.42);
  --focus-ring: #7dd3fc;
  --focus-offset: #050608;
  --safe: env(safe-area-inset-bottom, 0px);

  --motion-dur-instant: 50ms;
  --motion-dur-fast: 120ms;
  --motion-dur-base: 200ms;
  --motion-dur-slow: 320ms;
  --motion-dur-ambient: 4200ms;
  --motion-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-distance: 14px;
  --motion-scale: 0.97;
  --mx: 50%;
  --my: 28%;
  --rx: 0deg;
  --ry: 0deg;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void-deep);
  color: var(--cream);
}

body {
  font-family: var(--font-sans), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--cream);
}

a:hover {
  color: #fff;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px var(--focus-offset);
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.6rem;
  z-index: 40;
  transform: translateY(-140%);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  color: var(--cream);
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.aurora,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.aurora {
  z-index: 0;
  background:
    radial-gradient(60% 42% at 18% 8%, rgba(125, 211, 252, 0.14), transparent 58%),
    radial-gradient(46% 36% at 88% 18%, rgba(56, 189, 248, 0.08), transparent 62%),
    radial-gradient(50% 40% at 70% 88%, rgba(237, 230, 214, 0.05), transparent 70%),
    var(--void-deep);
}

.grain {
  z-index: 1;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.top,
main,
.foot {
  position: relative;
  z-index: 2;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0;
  max-width: 1180px;
  margin: 0 auto;
}

.brand-island {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.28rem 0.75rem 0.28rem 0.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 28px rgba(0, 0, 0, 0.28);
}

.x-follow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  max-height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent);
  text-decoration: none;
  overflow: hidden;
  color: var(--cream);
}

.x-follow-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.x-follow-mark svg {
  width: 11px;
  height: 11px;
}

.x-follow-handle {
  display: none;
  font-size: 0.62rem;
  white-space: nowrap;
  padding-right: 0.5rem;
}

@media (min-width: 1536px) {
  .x-follow-handle { display: inline; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--cream);
}

.brand img {
  display: block;
  border-radius: 7px;
}

.top-status {
  margin: 0;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.hero {
  display: grid;
  gap: 2rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.4rem, 7vh, 5.2rem) 1.4rem 3.2rem;
  align-items: center;
}

.hero-copy {
  max-width: 34rem;
}

.kicker {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 70%, var(--cream-dim));
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 0.85rem;
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  color: var(--cream);
  max-width: 28rem;
}

.sub {
  margin: 0 0 1.5rem;
  color: var(--cream-dim);
  max-width: 30rem;
  font-size: 0.98rem;
}

.sub a {
  color: var(--cream);
  text-underline-offset: 0.18em;
}

.notify {
  position: relative;
}

.notify-label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.notify-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}

.notify input[type="email"] {
  flex: 1 1 14rem;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(8, 10, 13, 0.72);
  color: var(--cream);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.notify input[type="email"]::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.notify input[type="email"]:focus {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.btn-notify {
  position: relative;
  isolation: isolate;
  min-height: 48px;
  min-width: 8.5rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 42%),
    color-mix(in srgb, var(--accent) 16%, rgba(8, 10, 13, 0.7));
  color: #eef9ff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--motion-dur-fast) var(--motion-ease-spring),
    box-shadow var(--motion-dur-base) var(--motion-ease-out),
    border-color var(--motion-dur-base) var(--motion-ease-out);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 24px rgba(56, 189, 248, 0.12);
}

.btn-notify:hover {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 28px rgba(56, 189, 248, 0.2);
}

.btn-notify:active {
  transform: scale(var(--motion-scale));
}

.btn-spin {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

.notify[data-state="loading"] .btn-label { opacity: 0.35; }
.notify[data-state="loading"] .btn-spin { display: inline-block; }

.notify[data-state="ok"] .notify-row,
.notify[data-state="ok"] .notify-label,
.notify[data-state="ok"] .notify-hint {
  display: none;
}

.notify-hint {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.notify-status {
  margin: 0.7rem 0 0;
  min-height: 1.2em;
  font-size: 0.92rem;
}

.notify-status[data-kind="ok"] {
  color: #b7f0d4;
}

.notify-status[data-kind="err"] {
  color: #ffb4b0;
}

.legal {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-frame {
  margin: 0;
  justify-self: center;
  width: min(100%, 34rem);
}

.hero-glass {
  position: relative;
  min-height: 16rem;
  max-height: 68vh;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(8, 10, 13, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    var(--surface-depth);
  animation: float 7.5s var(--motion-ease-out) infinite;
}

.hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.28));
}

.hero-glass img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 68vh;
  object-fit: cover;
  object-position: 80% 46%;
}

.beats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.4rem 3.4rem;
}

.beat {
  position: relative;
  padding: 1.1rem 1.05rem 1.15rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(140px 90px at var(--mx) var(--my), rgba(125, 211, 252, 0.16), transparent 62%),
    var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 30px rgba(0, 0, 0, 0.22);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition:
    transform var(--motion-dur-base) var(--motion-ease-out),
    border-color var(--motion-dur-base) var(--motion-ease-out),
    box-shadow var(--motion-dur-base) var(--motion-ease-out);
}

.beat:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 18px 36px rgba(0, 0, 0, 0.32);
}

.icon-well {
  width: 88px;
  height: 88px;
  margin: 0 0 0.85rem;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0c10;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.jelly {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: breathe 4.6s var(--motion-ease-out) infinite;
}

.beat h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.beat p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.faq {
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1.4rem 4.2rem;
}

.faq h2 {
  margin: 0 0 0.95rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.2rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

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

.faq p {
  margin: 0 0 0.95rem;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.foot {
  padding: 0 1.4rem calc(1.7rem + var(--safe));
  color: var(--muted);
  font-size: 0.78rem;
  max-width: 1180px;
  margin: 0 auto;
}

.foot p {
  margin: 0 0 0.3rem;
}

.foot a {
  color: var(--cream-dim);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rise {
  --rise: 1;
  animation: rise-in var(--motion-dur-slow) var(--motion-ease-out) both;
  animation-delay: calc((var(--rise) - 1) * 70ms);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(var(--motion-distance));
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.92fr);
    gap: 2.6rem;
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .beats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .top,
  .faq,
  .foot {
    padding-left: 2.2rem;
    padding-right: 2.2rem;
  }

  .hero-glass img {
    object-position: 82% 40%;
  }
}

@media (max-width: 979px) {
  .hero-glass img {
    object-position: 82% 44%;
    max-height: 46vh;
  }
}

@media (max-width: 640px) {
  .notify-row {
    flex-direction: column;
  }

  .notify input[type="email"],
  .btn-notify {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .brand-island,
  .top-status,
  .beat,
  .notify input[type="email"],
  .btn-notify {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #12151b;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .rise {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
