/* ==========================================================================
   UYKUCU.DEV — NOCTURNAL ARCHITECTURAL STYLESHEET
   Aesthetics: Deep Obsidian Cosmos, Seamless Starfield, Pure Minimal Authority
   ========================================================================== */

:root {
  --bg-dark: #030408;
  --bg-surface: #06080e;
  --bg-card: rgba(8, 12, 20, 0.7);

  --accent-cyan: #00f2fe;
  --accent-cyan-glow: rgba(0, 242, 254, 0.3);
  --accent-amber: #f59e0b;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --text-muted: #475569;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --border-cyan: rgba(0, 242, 254, 0.4);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1080px;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  background-color: var(--bg-dark);
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent-cyan);
  color: #000000;
}

/* --- Starfield Canvas (Nocturnal Celestial Sky) --- */
#starfield-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Cursor Glow Spotlight */
.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle 500px at var(--glow-x, 50%) var(--glow-y, 35%), rgba(0, 242, 254, 0.04) 0%, transparent 80%);
}

.site-frame {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}



/* --- Hero Stage --- */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 60px;
  margin: auto 0;
}

/* Floating Logo Anchor */
.hero-logo-anchor {
  position: relative;
  width: 100%;
  max-width: 260px;
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.logo-ambient-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--accent-cyan-glow) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 75%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
}

.floating-logo {
  position: relative;
  z-index: 1;
  width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 30px rgba(0, 242, 254, 0.28));
  animation: floatLogo 6s infinite ease-in-out;
  transition: filter var(--transition), transform var(--transition);
}

.floating-logo:hover {
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 1)) drop-shadow(0 0 40px rgba(0, 242, 254, 0.5));
  transform: scale(1.03);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* Hero Typography & Statement */
.hero-typography {
  max-width: 820px;
  margin: 0 auto;
}

.category-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 18px;
}

.bracket {
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 34px;
}

.glow-title-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 85%, #38ef7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-pitch {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-sub);
  max-width: 720px;
  margin: 0 auto 44px;
}

/* Action Deck (Primary & Secondary Contact) */
.action-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}

.primary-action {
  border-color: rgba(0, 242, 254, 0.35);
  background: linear-gradient(135deg, rgba(8, 14, 26, 0.85) 0%, rgba(5, 9, 16, 0.95) 100%);
}

.primary-action:hover {
  border-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(12, 22, 40, 0.95) 0%, rgba(6, 11, 20, 1) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 242, 254, 0.25);
}

.secondary-action {
  border-color: var(--border-subtle);
  background: var(--bg-surface);
}

.secondary-action:hover {
  border-color: var(--border-hover);
  background: rgba(15, 21, 33, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.action-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.primary-action .action-icon {
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
}

.secondary-action .action-icon {
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.action-icon svg {
  width: 20px;
  height: 20px;
}

.action-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.action-caption {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.action-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.secondary-action:hover .action-badge {
  color: var(--accent-cyan);
  border-color: var(--border-cyan);
}

/* --- Clean Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.f-brand {
  color: #ffffff;
  font-weight: 700;
}

.f-dot {
  color: var(--text-muted);
}

.f-sub {
  color: var(--text-sub);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* --- Toast Notification Indicator --- */
.toast-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #090e18;
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.3);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-indicator.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 404 Original & Humorous Stage Styles --- */
.error-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 16px;
  margin: auto;
  max-width: 640px;
  width: 100%;
}

.error-hero-logo {
  position: relative;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
}

.error-hero-logo .floating-logo {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(245, 158, 11, 0.35));
}

.error-hero-logo .logo-ambient-aura {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, rgba(0, 242, 254, 0.1) 50%, transparent 75%);
}

.error-glitch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.pulse-amber-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.error-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.95rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 6px;
}

.error-title-amber {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-amber) 80%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.error-explanation {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-sub);
  max-width: 520px;
  margin: 0 auto 12px;
}

/* Witty Cyber Terminal Console */
.error-terminal {
  width: 100%;
  max-width: 520px;
  background: rgba(6, 10, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 14px;
  text-align: left;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.error-terminal-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.error-terminal-body {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.5;
  color: var(--text-sub);
}

.term-prompt {
  color: var(--accent-cyan);
  user-select: none;
}

.term-cmd {
  color: #ffffff;
  font-weight: 500;
}

.term-err {
  color: #f87171;
}

.term-warn {
  color: var(--accent-amber);
}

.term-meta {
  color: var(--text-muted);
}

.error-stage .action-deck {
  max-width: 520px;
  margin: 0 auto;
  gap: 12px;
}

.error-stage .action-btn {
  padding: 10px 16px;
  border-radius: 8px;
}

.error-stage .action-icon {
  width: 34px;
  height: 34px;
}

.error-stage .action-val {
  font-size: 0.92rem;
}

.error-stage .action-caption {
  font-size: 0.58rem;
}

/* Responsive Adjustments */
@media (max-width: 680px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .status-badge {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .action-deck {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .error-terminal-body {
    font-size: 0.74rem;
    padding: 12px 14px;
  }
}
