:root {
  --bg: #000000;
  --panel: rgba(13, 13, 13, 0.72);
  --accent: #ffb000;
  --accent-soft: #8a6200;
  --ink: #ffe9b0;
  --dim: #c48a00;
  --display: "Share Tech Mono", monospace;
  --body: "IBM Plex Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 70% 20%, rgba(255, 176, 0, 0.12), transparent 60%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(138, 98, 0, 0.14), transparent 55%),
    linear-gradient(165deg, #000 0%, #0a0a0a 42%, #000 100%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(255, 176, 0, 0.03) 2px,
    rgba(255, 176, 0, 0.03) 4px
  );
  opacity: 0.7;
}

.glass {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 176, 0, 0.18);
}

.glass-card {
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 4px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 0 24px rgba(255, 176, 0, 0.06);
}

.top {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  position: sticky;
  top: 0;
  z-index: 20;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.15rem;
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.35);
}

.logo img {
  border-radius: 2px;
  display: block;
}

.top nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.top a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: var(--display);
}

.top a:hover { color: var(--accent); }

.lang {
  border: 1px solid rgba(255, 176, 0, 0.55);
  background: rgba(255, 176, 0, 0.06);
  color: var(--accent);
  font-family: var(--display);
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100vh - 3.8rem);
  display: grid;
  align-items: end;
  padding: clamp(2rem, 8vw, 5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cipher {
  width: 100%;
  height: 100%;
  opacity: 0.88;
}

.frame {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawArc 2.4s ease forwards;
}

.frame:nth-of-type(2) { animation-delay: 0.25s; }

.glyphs text {
  opacity: 0;
  animation: fadeGlyph 0.6s ease forwards;
}

.glyphs text:nth-child(1) { animation-delay: 0.8s; }
.glyphs text:nth-child(2) { animation-delay: 0.95s; }
.glyphs text:nth-child(3) { animation-delay: 1.1s; }
.glyphs text:nth-child(4) { animation-delay: 1.25s; }
.glyphs text:nth-child(5) { animation-delay: 1.4s; }
.glyphs text:nth-child(6) { animation-delay: 1.55s; }
.glyphs text:nth-child(7) { animation-delay: 1.7s; }

.core {
  animation: corePulse 2.8s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: rise 0.9s ease both;
}

.brand-mark {
  font-family: var(--display);
  letter-spacing: 0.32em;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  text-shadow: 0 0 20px rgba(255, 176, 0, 0.45);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4.8vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-shadow: 0 0 18px rgba(255, 176, 0, 0.2);
}

.lede {
  color: var(--dim);
  font-size: 1.05rem;
  margin: 0 0 1.6rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--display);
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, #ffb000 0%, #ffcc33 55%, #e0a000 100%);
  color: #1a1000;
  box-shadow: 0 0 0 0 rgba(255, 176, 0, 0.35);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 176, 0, 0.3);
}

.btn.ghost {
  border-color: rgba(255, 176, 0, 0.45);
  color: var(--accent);
  background: rgba(255, 176, 0, 0.04);
}

.btn.ghost:hover {
  background: rgba(255, 176, 0, 0.1);
}

.section {
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2.5rem);
  max-width: 880px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 0.55rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.section-lede,
.section > p { color: var(--dim); }

.feature-rows {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.feature-rows h3 {
  font-family: var(--display);
  color: var(--accent);
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.feature-rows p {
  margin: 0;
  color: var(--dim);
}

.band {
  max-width: none;
  text-align: center;
  padding-inline: clamp(1rem, 10vw, 20vw);
}

.band-inner {
  max-width: 520px;
  margin: 0 auto;
}

.band-inner h2 { margin-top: 0; }

.version {
  min-height: 1.4em;
  color: var(--accent-soft);
  font-family: var(--display);
  font-size: 0.9rem;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--dim);
}

.foot {
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid rgba(255, 176, 0, 0.15);
  color: var(--dim);
  font-size: 0.88rem;
  font-family: var(--display);
}

@keyframes drawArc {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeGlyph {
  to { opacity: 0.85; }
}

@keyframes corePulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; filter: drop-shadow(0 0 10px rgba(255, 176, 0, 0.55)); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .frame, .glyphs text, .core, .hero-copy {
    animation: none !important;
  }
  .frame { stroke-dashoffset: 0; }
  .glyphs text { opacity: 0.85; }
}

@media (max-width: 720px) {
  .top nav { display: none; }
  .hero { align-items: center; }
}
