@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;800;900&display=swap");

:root {
  --bg: #0d0d0d;
  --bg-soft: #161616;
  --panel: #1d1d1d;
  --text: #ffffff;
  --muted: #a7a7a7;
  --line: #2b2b2b;
  --accent: #e0e0e0;
}

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

html {
  font-size: 180%;
}

body {
  font-family: "Nunito", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, #202020 0%, var(--bg) 50%), var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 6.5rem 0 4.5rem;
  display: grid;
  gap: 2rem;
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto;
}

.brand-title {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.03em;
  flex-wrap: nowrap;
  max-width: 100%;
}

.brand-text {
  font-family: "Nunito", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-g {
  height: 0.95em;
  width: auto;
  display: block;
}

.glitch-g {
  position: relative;
  display: inline-block;
  height: 0.95em;
  top: -0.16em;
}

.brand-g-base {
  position: relative;
  z-index: 2;
}

.brand-g-red,
.brand-g-cyan {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.65;
  z-index: 1;
}

.brand-g-red {
  filter: drop-shadow(0 0 0 #ff2e63);
  animation: glitch-red 1.8s steps(2, end) infinite;
}

.brand-g-cyan {
  filter: drop-shadow(0 0 0 #2effe6);
  animation: glitch-cyan 2.1s steps(2, end) infinite;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes glitch-red {
  0%, 100% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
  20% {
    transform: translate(1px, -1px);
    clip-path: inset(6% 0 52% 0);
  }
  40% {
    transform: translate(-2px, 1px);
    clip-path: inset(58% 0 8% 0);
  }
  60% {
    transform: translate(2px, 0);
    clip-path: inset(28% 0 30% 0);
  }
  80% {
    transform: translate(-1px, -1px);
    clip-path: inset(72% 0 4% 0);
  }
}

@keyframes glitch-cyan {
  0%, 100% {
    transform: translate(0, 0);
    clip-path: inset(0 0 0 0);
  }
  18% {
    transform: translate(-1px, 1px);
    clip-path: inset(64% 0 7% 0);
  }
  36% {
    transform: translate(2px, 0);
    clip-path: inset(9% 0 50% 0);
  }
  54% {
    transform: translate(-2px, -1px);
    clip-path: inset(33% 0 28% 0);
  }
  72% {
    transform: translate(1px, 1px);
    clip-path: inset(76% 0 2% 0);
  }
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.hero-tagline-line {
  display: block;
}

.hero-tagline-line-1 {
  white-space: nowrap;
}

@media (max-width: 640px) {
  html {
    font-size: 100%;
  }

  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .hero {
    min-height: 100svh;
    align-content: center;
    padding: 6rem 0 3rem;
    gap: 1.6rem;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
    line-height: 1.02;
  }

  .hero-tagline {
    max-width: 22ch;
    font-size: clamp(1rem, 4.4vw, 1.18rem);
    line-height: 1.42;
  }

  .cta {
    margin-top: 0.2rem;
  }

  .btn {
    padding: 0.95rem 1.6rem;
    border-radius: 12px;
    font-size: 1.1rem;
  }
}

.cta {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #101010;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.btn-secondary:hover {
  border-color: #5a5a5a;
  color: #fff;
}

section {
  padding: 2.5rem 0;
}

footer {
  padding: 2.5rem 0;
  color: #8f8f8f;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}
