/* =====================
   GOTCHI — Landing Page v2
   Dark theme, cute & playful, tamagotchi-inspired
   ===================== */

:root {
  --bg: #080810;
  --bg-card: #0f0f1a;
  --bg-card-hover: #161625;
  --fg: #f0eeff;
  --fg-muted: #8888aa;
  --fg-dim: #5555720;
  --accent: #a78bfa;
  --accent-bright: #c4b5fd;
  --accent-dim: rgba(167, 139, 250, 0.12);
  --accent-border: rgba(167, 139, 250, 0.25);
  --highlight: #fb923c;
  --highlight-dim: rgba(251, 146, 60, 0.12);
  --green: #4ade80;
  --green-dim: rgba(74, 222, 128, 0.12);
  --border: rgba(240, 238, 255, 0.07);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* =====================
   SHARED LOGO COMPONENT
   Used in both nav and footer
   ===================== */
.gotchi-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.gotchi-logo__icon {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 32px;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-badge {
  font-size: 0.75rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

/* Atmospheric glow blobs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
}
.glow-blob--purple {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: -250px; left: 50%; transform: translateX(-50%);
}
.glow-blob--pink {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  bottom: -100px; right: 8%;
  opacity: 0.12;
}
.glow-blob--blue {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 30%; left: -5%;
  opacity: 0.1;
}

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  padding: 8px 18px;
  border-radius: 24px;
  font-size: 0.85rem;
  color: var(--accent-bright);
  margin-bottom: 40px;
  font-weight: 500;
}
.badge-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.6; box-shadow: 0 0 16px var(--accent); }
}

.hero-headline {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 900px;
  color: var(--fg);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-sub {
  position: relative;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 52px;
}

.hero-signup {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
}
.signup-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}
.counter-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.counter-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  text-shadow: 0 0 24px rgba(74, 222, 128, 0.35);
}
.signup-form {
  display: flex;
  gap: 8px;
}
.email-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.email-input::placeholder { color: var(--fg-muted); }
.email-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px rgba(167,139,250,0.1);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(167,139,250,0.4);
}
.submit-btn:active { transform: translateY(0); }

.signup-meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 10px;
  text-align: center;
}

/* =====================
   HERO PHONE MOCKUP
   ===================== */
.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.hero-phone-wrap {
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
  /* No container, no box, no padding — just a positioning anchor */
}
.hero-phone {
  width: 480px;
  height: auto;
  display: block;
  /* No border-radius, no background-color, no shadow — raw image on dark void */
  animation: float-phone 4s ease-in-out infinite;
}
@keyframes float-phone {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* =====================
   CHARACTER SHOWCASE
   ===================== */
.showcase {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--fg);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.char-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
}
.char-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(167,139,250,0.12);
}
.char-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--bg);
}
.char-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 4px;
}
.char-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* =====================
   COMPARISON TABLE
   ===================== */
.compare {
  padding: 80px 24px 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.compare-table th:first-child { color: var(--fg-muted); }
.compare-table th:nth-child(2) {
  background: var(--accent-dim);
  color: var(--accent-bright);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1rem;
}
.compare-table th:nth-child(n+3) {
  text-align: center;
  color: var(--fg-muted);
}
.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:nth-child(2) {
  background: var(--accent-dim);
  text-align: center;
}
.compare-table td:nth-child(n+3) {
  text-align: center;
}
.feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
.feature-check--yes {
  background: var(--green-dim);
  color: var(--green);
}
.feature-check--no {
  background: rgba(255,255,255,0.04);
  color: var(--fg-muted);
}
.compare-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.compare-table td:nth-child(2):hover {
  background: rgba(167,139,250,0.15);
}
.badge-new {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 6px;
}

/* =====================
   KOSMI CROSS-PROMO
   ===================== */
.kosmi-promo {
  padding: 80px 24px;
  background: linear-gradient(160deg, #1a0a2e 0%, #0d0820 50%, #0a0618 100%);
  position: relative;
  overflow: hidden;
}
.kosmi-promo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.kosmi-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.kosmi-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #a78bfa;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
}
.kosmi-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f0eeff 0%, #c4b5fd 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.kosmi-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 44px;
}
.kosmi-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-bottom: 52px;
}
.kosmi-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.45);
}
.kosmi-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.kosmi-logos span {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-right: 8px;
}
.backer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
}

/* =====================
   FOOTER
   ===================== */
.footer {
  padding: 60px 24px 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  margin-bottom: 48px;
}
.footer-brand .gotchi-logo {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .char-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .hero { padding-top: 120px; }
  .hero-phone { width: 320px; }
  .signup-form { flex-direction: column; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table th, .compare-table td { padding: 12px 14px; font-size: 0.82rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .nav-badge { display: none; }
}
@media (max-width: 480px) {
  .char-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .compare-table-wrap { font-size: 0.78rem; }
}