:root {
  --bg-color: #0B0B0C;
  --text-white: #FFFFFF;
  --text-muted: #77777D;
  --text-footer: #55555B;
  --color-green: rgb(65, 221, 127);
  
  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

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

html, body {
  height: 100%;
  background-color: var(--bg-color);
  color: var(--text-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 24px;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding: 0 32px;
  }
}

/* Center Content */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

/* 100px Logo with Diffusing Glow Animation & Interactive Illumination */
.logo-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  isolation: isolate;
}

/* Base Halo Layers (Anchored to exact center, radius = 240px -> 480px diameter) */
.logo-wrapper::before,
.logo-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 480px;
  margin-top: -240px;
  margin-left: -240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* Ambient Breathing Aura (Runs infinitely in background) */
.logo-wrapper::before {
  background: radial-gradient(
    circle,
    rgba(65, 221, 127, 0.20) 0%,
    rgba(65, 221, 127, 0.08) 28%,
    rgba(65, 221, 127, 0.018) 54%,
    rgba(65, 221, 127, 0.004) 70%,
    transparent 82%
  );
  filter: blur(24px);
  -webkit-filter: blur(24px);
  will-change: transform, opacity;
  animation: aura-breathe 5.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

/* Peak Illumination Halo (Overlays during hover/tap for subtle, restrained glow) */
.logo-wrapper::after {
  background: radial-gradient(
    circle,
    rgba(65, 221, 127, 0.25) 0%,
    rgba(65, 221, 127, 0.11) 28%,
    rgba(65, 221, 127, 0.025) 54%,
    rgba(65, 221, 127, 0.005) 70%,
    transparent 84%
  );
  filter: blur(26px);
  -webkit-filter: blur(26px);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.96);
  -webkit-transform: translate3d(0, 0, 0) scale(0.96);
  will-change: transform, opacity;
  transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: filter, opacity;
  animation: logo-breathe 5.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transition: opacity 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Breathing Keyframes */
@keyframes aura-breathe {
  0%, 100% {
    opacity: 0.50;
    transform: translate3d(0, 0, 0) scale(0.90);
    -webkit-transform: translate3d(0, 0, 0) scale(0.90);
  }
  50% {
    opacity: 0.85;
    transform: translate3d(0, 0, 0) scale(1.06);
    -webkit-transform: translate3d(0, 0, 0) scale(1.06);
  }
}

@keyframes logo-breathe {
  0%, 100% {
    opacity: 0.76;
    filter: drop-shadow(0 0 2px rgba(65, 221, 127, 0.06)) brightness(0.95);
    -webkit-filter: drop-shadow(0 0 2px rgba(65, 221, 127, 0.06)) brightness(0.95);
  }
  50% {
    opacity: 0.94;
    filter: drop-shadow(0 0 6px rgba(65, 221, 127, 0.24)) brightness(1.03);
    -webkit-filter: drop-shadow(0 0 6px rgba(65, 221, 127, 0.24)) brightness(1.03);
  }
}

/* Hover effect on pointer devices (Soft, subtle lighting) */
@media (hover: hover) {
  .logo-wrapper:hover::after {
    opacity: 0.8;
    transform: translate3d(0, 0, 0) scale(1.03);
    -webkit-transform: translate3d(0, 0, 0) scale(1.03);
  }
  .logo-wrapper:hover .logo {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(65, 221, 127, 0.35)) brightness(1.05);
    -webkit-filter: drop-shadow(0 0 8px rgba(65, 221, 127, 0.35)) brightness(1.05);
  }
}

/* Active / Mobile Tap / Focus illuminated state */
.logo-wrapper:active::after,
.logo-wrapper.is-illuminated::after,
.logo-wrapper:focus-visible::after {
  opacity: 0.8;
  transform: translate3d(0, 0, 0) scale(1.03);
  -webkit-transform: translate3d(0, 0, 0) scale(1.03);
}

.logo-wrapper:active .logo,
.logo-wrapper.is-illuminated .logo,
.logo-wrapper:focus-visible .logo {
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(65, 221, 127, 0.35)) brightness(1.05);
  -webkit-filter: drop-shadow(0 0 8px rgba(65, 221, 127, 0.35)) brightness(1.05);
}

.logo-wrapper:focus-visible {
  outline: none;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .logo-wrapper::before,
  .logo {
    animation: none !important;
  }
  .logo-wrapper::after,
  .logo {
    transition: none !important;
  }
}

/* Title: envbox.dev in #77777D and "box" in #FFFFFF */
.brand-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #77777D;
  user-select: none;
}

.brand-title .box {
  color: #FFFFFF;
}

/* Secondary Terminal Line */
.status-line {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: clamp(14px, 2vw, 15px);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  user-select: none;
}

.prompt-char {
  color: var(--color-green);
  font-weight: 500;
}

.cursor {
  display: inline-block;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    opacity: 1;
  }
}

/* Footer */
.footer {
  width: 100%;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-footer);
  user-select: none;
}

@media (min-width: 768px) {
  .footer {
    padding-bottom: 32px;
  }
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-footer);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-footer);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-green);
}
