﻿:root {
  --bg: #040709;
  --bg-soft: #091014;
  --fg: #f3f7f7;
  --muted: #a2b0b0;
  --line: rgba(168, 255, 200, 0.22);
  --accent: #74f4b2;
  --accent-soft: rgba(116, 244, 178, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 15% 0, rgba(116, 244, 178, 0.06), transparent 35%),
    radial-gradient(circle at 90% 0, rgba(109, 196, 255, 0.08), transparent 42%),
    var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.brand {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: grid;
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(10, 17, 21, 0.96), rgba(4, 8, 10, 0.95));
  padding: 24px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.panel::before {
  content: "";
  position: absolute;
  inset: -30px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.17'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero {
  padding-top: 30px;
  padding-bottom: 28px;
  max-width: 100%;
}

.tag {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.glitch {
  position: relative;
  font-size: clamp(28px, 8vw, 78px);
  line-height: 1;
  letter-spacing: clamp(0.02em, 0.35vw, 0.08em);
  text-transform: uppercase;
  margin-bottom: 14px;
  max-width: 100%;
  white-space: nowrap;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glitch::before {
  transform: translate(-2px, 0);
  color: rgba(116, 244, 178, 0.7);
  clip-path: inset(0 0 50% 0);
  animation: glitchTop 2.8s infinite linear;
}

.glitch::after {
  transform: translate(2px, 0);
  color: rgba(109, 196, 255, 0.65);
  clip-path: inset(46% 0 0 0);
  animation: glitchBottom 3.2s infinite linear reverse;
}

.lead {
  max-width: 64ch;
  color: #d8e2e2;
  font-size: clamp(0.82rem, 1.55vw, 1rem);
  line-height: 1.5;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-main {
  background: var(--accent);
  color: #062318;
  border-color: #7effbe;
  font-weight: 700;
}

.btn-ghost {
  color: var(--fg);
  border-color: var(--line);
  background: var(--accent-soft);
}

.section h2 {
  font-size: clamp(20px, 3vw, 28px);
  margin-bottom: 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.mode-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.mode-list li {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.mode-list span {
  display: block;
  color: var(--fg);
  font-weight: 700;
}

.mode-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.steps {
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.hint {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-soft);
}

.frame img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 0.35s ease;
}

.frame:hover img {
  transform: scale(1.04);
}

.footer {
  padding: 16px 20px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
}

@keyframes glitchTop {
  0% { transform: translate(-2px, 0); }
  24% { transform: translate(-4px, -1px); }
  48% { transform: translate(-1px, 0); }
  75% { transform: translate(-3px, 1px); }
  100% { transform: translate(-2px, 0); }
}

@keyframes glitchBottom {
  0% { transform: translate(2px, 0); }
  20% { transform: translate(3px, 1px); }
  50% { transform: translate(1px, 0); }
  80% { transform: translate(4px, -1px); }
  100% { transform: translate(2px, 0); }
}

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .shell {
    padding-top: 16px;
  }

  .panel {
    border-radius: 14px;
    padding: 18px;
  }

  .glitch {
    font-size: clamp(24px, 10.5vw, 52px);
    margin-bottom: 10px;
  }

  .lead {
    font-size: 0.8rem;
  }

  .frame img {
    height: 150px;
  }
}
