﻿:root {
  --bg-base: #0d1019;
  --bg-secondary: #1a1a26;
  --accent-cyan: #44e6ff;
  --accent-magenta: #c15dff;
  --text-main: #f4f6fa;
  --text-muted: #bcc6dc;
  --terminal-bg: rgba(6, 8, 14, 0.58);
  --shadow-neon: 0 0 20px rgba(193, 93, 255, 0.35), 0 0 42px rgba(68, 230, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--text-main);
  font-family: "Space Mono", "JetBrains Mono", "IBM Plex Mono", Consolas, monospace;
  background:
    radial-gradient(1000px 650px at 50% 25%, rgba(86, 53, 142, 0.26) 0%, rgba(12, 14, 21, 0) 70%),
    radial-gradient(900px 700px at 75% 75%, rgba(0, 169, 199, 0.12) 0%, rgba(10, 12, 18, 0) 68%),
    linear-gradient(165deg, var(--bg-secondary) 0%, var(--bg-base) 55%, #0a0c13 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.032) 0,
    rgba(255, 255, 255, 0.032) 2px,
    transparent 2px,
    transparent 22px
  );
  opacity: 0.22;
  pointer-events: none;
}

.background-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  filter: blur(32px);
  background:
    radial-gradient(circle at 35% 34%, rgba(183, 77, 255, 0.32), transparent 46%),
    radial-gradient(circle at 64% 42%, rgba(64, 223, 255, 0.2), transparent 42%);
  pointer-events: none;
}

.hero {
  width: min(92vw, 960px);
  margin: 0 auto;
  padding: 9vh 0 4vh;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2.4rem;
}

.logo-wrap {
  animation: riseIn 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms both;
}

.brand-logo {
  width: min(78vw, 430px);
  border-radius: 10px;
  box-shadow: var(--shadow-neon);
  display: block;
}

.terminal {
  width: min(92vw, 880px);
  min-height: 62px;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(190, 210, 255, 0.2);
  background: linear-gradient(145deg, rgba(18, 22, 35, 0.62), var(--terminal-bg));
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1rem, 2.6vw, 2rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  animation: riseIn 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 220ms both;
}

.prompt {
  color: var(--accent-cyan);
  text-shadow: 0 0 14px rgba(68, 230, 255, 0.45);
  white-space: nowrap;
}

.teaser-text {
  color: var(--text-main);
  text-shadow: 0 0 16px rgba(193, 93, 255, 0.25);
  word-break: normal;
}

.cursor {
  width: 0.62ch;
  height: 1.1em;
  background: var(--accent-magenta);
  box-shadow: 0 0 10px rgba(193, 93, 255, 0.45);
  animation: blink 1s steps(1, end) infinite;
}

.footer {
  width: min(92vw, 960px);
  margin: 0 auto;
  padding: 0 0 3vh;
  display: flex;
  justify-content: center;
}

.contact-btn {
  border: 1px solid rgba(193, 93, 255, 0.55);
  background: linear-gradient(130deg, rgba(193, 93, 255, 0.2), rgba(68, 230, 255, 0.14));
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  box-shadow: var(--shadow-neon);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(193, 93, 255, 0.45), 0 0 32px rgba(68, 230, 255, 0.24);
}

.contact-btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

@keyframes blink {
  0%,
  44% {
    opacity: 1;
  }
  45%,
  100% {
    opacity: 0;
  }
}

@keyframes riseIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero {
    gap: 1.6rem;
    padding-top: 10vh;
  }

  .brand-logo {
    width: min(82vw, 300px);
  }

  .terminal {
    min-height: 58px;
    padding: 0.8rem 0.85rem;
    font-size: clamp(0.95rem, 4.3vw, 1.25rem);
  }

  .footer {
    padding-bottom: 2.4vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-wrap,
  .terminal,
  .cursor,
  .contact-btn {
    animation: none !important;
    transition: none !important;
  }
}
