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

:root {
  --bg: #050509;
  --bg-soft: #0c0c15;
  --accent: #ffb347;
  --accent-soft: #ffe0b3;
  --text: #f7f7ff;
  --text-muted: #a3a6c2;
  --border-subtle: #252538;
}

/* --------- BODY + BACKGROUND --------- */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    sans-serif;

  /* Rainbow-Tech Ultraglow Gradient */
  background: radial-gradient(
    circle at 0% 0%,
    #ff6fd8 0%,
    #ff9472 20%,
    #f9f871 45%,
    #9df891 60%,
    #00fff0 75%,
    #5b5bff 100%
  );

  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
}

/* --------- PAGE SHELL --------- */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  /* Glass panel */
  background: rgba(10, 10, 20, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --------- TOPBAR --------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* we’ll remove the icon in HTML later, this just keeps styling safe */
.logo-icon {
  font-size: 1.3rem;
}

.logo-text {
  font-size: 1.1rem;
}

/* --------- HERO LAYOUT --------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 48px);
  flex: 1;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.accent {
  color: var(--accent);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent-soft);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.typing-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.typing {
  min-height: 1.4em;
  font-size: 0.95rem;
  color: var(--accent-soft);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  border-left: 2px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.subtext {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 34rem;
}

/* --------- MASCOT --------- */

.hero-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* wrapper that floats + glows */
.mascot-card {
  position: relative;
  display: inline-block;
  padding: 8px;
  animation: float 4s ease-in-out infinite;
}

/* Glowy aura behind Rato */
.mascot-card::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 999px;
  z-index: -1;

  background:
    radial-gradient(circle at 25% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(0, 255, 255, 0.55), transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(255, 180, 90, 0.6), transparent 70%);

  filter: blur(10px);
  opacity: 0.6;
  animation: aura-pulse 5s ease-in-out infinite;
}

/* the actual image */
.mascot-img {
  width: 280px;
  max-width: 70vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
}

/* --------- FOOTER --------- */

.footer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
}

/* --------- ANIMATIONS --------- */

/* float + subtle breathing */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.03, 0.97);
  }
}

/* pulsing aura */
@keyframes aura-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.45;
  }
}

/* --------- RESPONSIVE --------- */

/* main mobile breakpoint */
@media (max-width: 800px) {
  .page {
    padding: 18px 16px 28px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    overflow: visible; /* do not clip mascot */
  }

  /* mascot on top */
  .hero-mascot {
    order: -1;
    justify-content: center;
    margin: 0 auto 12px;
  }

  .mascot-card {
    padding: 4px;
  }

  .mascot-img {
    width: min(260px, 75vw);
  }

  .hero-content {
    order: 1;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.1rem;
  }

  .subtext {
    margin: 0 auto;
  }

  .typing {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    max-width: 90vw;
  }

  .footer {
    margin-top: 24px;
  }
}

/* extra small phones */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .badge {
    font-size: 0.7rem;
  }

  .mascot-img {
    width: min(230px, 78vw);
  }
}

/* iPhone safe-area bottom (home bar) */
html,
body {
  padding-bottom: env(safe-area-inset-bottom);
}
