:root {
  --bg: #090b17;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(11, 17, 31, 0.95);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #a2acc0;
  --accent: #d4a5e9;
  --accent-strong: #7dd3fc;
  --emerald: #7ef0c4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.clawwatch-body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 10% 0%, rgba(125, 211, 252, 0.13), transparent 60%),
    radial-gradient(900px 700px at 95% 10%, rgba(212, 165, 233, 0.17), transparent 58%),
    linear-gradient(180deg, #090b17 0%, #12172a 48%, #0a0d18 100%);
  min-height: 100vh;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 12px 0 24px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: var(--text);
}

.brand-kicker,
.section-kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
}

.top-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-links a,
.site-footer a,
.ecosystem-links a {
  color: #dfe6ff;
  text-decoration: none;
}

.top-links a:hover,
.site-footer a:hover,
.ecosystem-links a:hover {
  color: var(--accent);
}

.hero-panel,
.avatar-panel,
.feature-panel,
.news-panel,
.news-archive-panel,
.ecosystem-panel,
.archive-main {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  padding: 36px;
}

.badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
  color: #dff6ff;
}

.badge-soft {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
  color: var(--muted);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.75;
  max-width: 62ch;
}

.cta-row,
.cta-subrow,
.news-actions,
.ecosystem-links,
.archive-link-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-row {
  margin-top: 24px;
}

.cta-subrow {
  margin-top: 12px;
}

.cta-primary,
.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cta-primary {
  color: #0b1020;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.cta-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
}

.cta-secondary-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.cta-primary:hover,
.cta-secondary:hover {
  transform: translateY(-1px);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-fact {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-fact strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 0.98rem;
}

.hero-fact span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-media {
  display: flex;
  align-items: stretch;
}

.hero-visual-stack {
  width: 100%;
  display: grid;
  gap: 18px;
}

.avatar-stage-card,
.video-card {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 12, 20, 0.92), rgba(14, 18, 30, 0.9));
  border: 1px solid rgba(255,255,255,0.1);
}

.avatar-stage-shell {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 28%, rgba(125, 211, 252, 0.15), transparent 30%),
    radial-gradient(circle at 72% 24%, rgba(244, 114, 182, 0.18), transparent 28%),
    radial-gradient(circle at 50% 70%, rgba(212, 165, 233, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(13, 18, 30, 0.98), rgba(8, 11, 20, 0.98));
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  inset: auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(35px);
  opacity: 0.8;
  animation: avatarGlow 6s ease-in-out infinite;
}

.avatar-glow-cyan {
  background: rgba(125, 211, 252, 0.26);
  left: 18%;
  top: 16%;
}

.avatar-glow-rose {
  background: rgba(244, 114, 182, 0.24);
  right: 16%;
  bottom: 18%;
  animation-delay: -2.2s;
}

.hero-avatar-svg {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
}

#hero-head {
  animation: heroBreathe 4.3s ease-in-out infinite;
}

#hero-antenna-left {
  animation: antennaLeft 3.6s ease-in-out infinite;
}

#hero-antenna-right {
  animation: antennaRight 3.6s ease-in-out infinite;
}

#hero-left-claw {
  animation: clawLeft 4.8s ease-in-out infinite;
}

#hero-right-claw {
  animation: clawRight 4.8s ease-in-out infinite;
}

#hero-mouth {
  animation: heroMouth 4.3s ease-in-out infinite;
}

#hero-eye-glow {
  animation: heroEyeGlow 6.5s ease-in-out infinite;
}

.video-card video {
  display: block;
  width: 100%;
  border-radius: 16px;
  background: #000;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.media-caption {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.avatar-panel,
.feature-panel,
.preregister-panel,
.news-panel,
.news-archive-panel,
.ecosystem-panel,
.archive-main {
  margin-top: 24px;
  padding: 32px;
}

.section-heading h2,
.archive-heading h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-heading p,
.news-article p,
.news-card p,
.archive-main p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.avatar-card {
  margin: 0;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.avatar-card img {
  display: block;
  width: 100%;
  border-radius: 16px;
}

.avatar-card figcaption {
  margin-top: 10px;
  color: #edf2ff;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

.feature-grid,
.preregister-grid,
.news-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.feature-card,
.preregister-copy,
.preregister-card,
.news-card,
.news-article {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.news-article-featured {
  margin-top: 26px;
  padding: 28px;
}

.news-meta {
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.news-article h2,
.news-card h3,
.feature-card h3 {
  margin: 10px 0 10px;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.news-actions,
.archive-link-row {
  margin-top: 18px;
}

.preregister-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.preregister-copy h3,
.preregister-card h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.preregister-copy p,
.preregister-card p {
  color: var(--muted);
  line-height: 1.75;
}

.preregister-form {
  display: grid;
  gap: 16px;
  margin: 20px 0 18px;
}

.preregister-fieldset {
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
}

.preregister-fieldset legend,
.preregister-feedback-label {
  color: #eef4ff;
  font-weight: 700;
  font-size: 0.98rem;
}

.preregister-fieldset legend {
  padding: 0 8px;
}

.preregister-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
}

.preregister-check input {
  accent-color: #f28c1b;
}

.preregister-feedback {
  width: 100%;
  min-height: 110px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}

.preregister-feedback::placeholder {
  color: rgba(162, 172, 192, 0.78);
}

.preregister-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.preregister-points span,
.auth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
}

.auth-pill {
  margin-bottom: 14px;
  color: var(--accent-strong);
}

.preregister-status {
  min-height: 84px;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #0b1020;
  background: linear-gradient(135deg, #ffffff, #d9eef8);
  box-shadow: 0 18px 40px rgba(125, 211, 252, 0.18);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.google-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.google-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4285f4, #ea4335, #fbbc05, #34a853);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.text-link-button {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  cursor: pointer;
}

.status-banner {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

.status-banner[data-tone="success"] {
  color: #d9fff1;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.28);
}

.status-banner[data-tone="error"] {
  color: #ffe3e6;
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.24);
}

.preregister-note {
  margin-top: 16px;
  font-size: 0.9rem;
}

.ecosystem-links {
  margin-top: 20px;
}

.ecosystem-links a {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 4px 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.modal-shell[hidden] {
  display: none !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 15, 0.72);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(92vw, 460px);
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(14, 18, 30, 0.98), rgba(10, 12, 22, 0.98));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-close-button {
  margin-top: 20px;
  width: 100%;
}

@keyframes heroBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.024); }
}

@keyframes antennaLeft {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(6deg); }
}

@keyframes antennaRight {
  0%, 100% { transform: rotate(3deg); }
  50% { transform: rotate(-6deg); }
}

@keyframes clawLeft {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(-4px) translateY(3px) rotate(-3deg); }
}

@keyframes clawRight {
  0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
  50% { transform: translateX(4px) translateY(3px) rotate(3deg); }
}

@keyframes heroMouth {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50% { transform: translateY(1px) scaleX(1.04); }
}

@keyframes heroEyeGlow {
  0%, 82%, 100% { opacity: 0.18; }
  88% { opacity: 0.55; }
  94% { opacity: 0.24; }
}

@keyframes avatarGlow {
  0%, 100% { transform: scale(0.92); opacity: 0.52; }
  50% { transform: scale(1.1); opacity: 0.84; }
}

@media (max-width: 1040px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .avatar-grid,
  .feature-grid,
  .preregister-grid,
  .news-card-grid,
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 20px, 100%);
    padding-top: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-panel,
  .avatar-panel,
  .feature-panel,
  .preregister-panel,
  .news-panel,
  .news-archive-panel,
  .ecosystem-panel,
  .archive-main {
    padding: 22px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .avatar-grid,
  .feature-grid,
  .preregister-grid,
  .news-card-grid,
  .hero-facts {
    grid-template-columns: 1fr;
  }

  .cta-row,
  .cta-subrow,
  .news-actions,
  .ecosystem-links,
  .archive-link-row {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary,
  .ecosystem-links a {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
