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

:root {
  --bg: #161616;
  --text: #E8E8EC;
  --text-muted: #8A8A9A;
  --accent: #6C8CFF;
  --accent-hover: #8BA4FF;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Star Field ── */

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.starfield canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Planet ── */

.planet {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  bottom: -200px;
  right: -100px;
  background: radial-gradient(circle at 35% 35%, #1a1e2e 0%, #0e1018 70%);
  opacity: 0.08;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

/* ── Background Depth ── */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(108, 140, 255, 0.03) 0%, transparent 70%);
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.4) 100%);
}

/* ── Main Content ── */

main {
  position: relative;
  z-index: 1;
}

/* ── Hero Section ── */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero-content {
  max-width: 960px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease-out 0.3s forwards;
}

/* ── Avatar ── */

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 2.5rem;
  position: relative;
}

.avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(108, 140, 255, 0.25);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: grayscale(15%) brightness(0.95);
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0b8d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.75;
  margin-bottom: 0.4rem;
}

.hero .subtitle-location {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
  opacity: 0.75;
  margin-bottom: 0.8rem;
}

.hero .authority {
  font-size: clamp(0.8rem, 1.5vw, 0.88rem);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-bottom: 2.5rem;
}

/* ── Philosophy ── */

.philosophy {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.philosophy p {
  font-size: clamp(0.88rem, 1.6vw, 0.95rem);
  line-height: 1.85;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 0.75rem;
}

.philosophy p:last-child {
  margin-bottom: 0;
}

.philosophy strong {
  color: var(--text-muted);
  font-weight: 500;
}

/* ── CTA Buttons ── */

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 2.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.4s ease;
  border: 1px solid rgba(139, 164, 255, 0.3);
  box-shadow: 0 0 20px rgba(108, 140, 255, 0.1);
}

.cta-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(108, 140, 255, 0.25),
              0 12px 40px rgba(108, 140, 255, 0.15);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
  border-radius: 6px;
}

.cta-secondary:hover {
  color: var(--text);
}

.cta-secondary span {
  opacity: 0.5;
}

/* ── Astronaut Cat ── */

.astro-cat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  z-index: 10;
  opacity: 0;
  animation: catFadeIn 2s ease-out 2.5s forwards;
  pointer-events: none;
}

.astro-cat svg {
  width: 100%;
  height: 100%;
  animation: catFloat 8s ease-in-out infinite;
}

@keyframes catFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-3px, -6px) rotate(-2deg); }
  50% { transform: translate(2px, -10px) rotate(1deg); }
  75% { transform: translate(-2px, -4px) rotate(-1deg); }
}

@keyframes catFadeIn {
  to { opacity: 0.25; }
}

.astro-cat:hover {
  opacity: 0.5 !important;
}

/* ── Animations ── */

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .hero {
    padding: 2rem 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .hero .subtitle-location {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-primary {
    width: 100%;
    justify-content: center;
  }

  .avatar {
    width: 76px;
    height: 76px;
    margin-bottom: 2rem;
  }

  .philosophy p {
    font-size: 0.85rem;
  }

  .planet {
    width: 300px;
    height: 300px;
    bottom: -150px;
    right: -80px;
  }

  .astro-cat {
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }
}
