:root {
  --bg: #05070c;
  --bg-2: #0b0f18;
  --panel: rgba(8, 14, 24, 0.78);
  --panel-solid: #0f1726;
  --border: rgba(33, 244, 255, 0.35);
  --border-strong: rgba(255, 58, 215, 0.45);
  --text: #e9fbff;
  --muted: #8aa0b5;
  --accent: #21f4ff;
  --accent-2: #ff3ad7;
  --accent-3: #7dff4c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --glow: 0 0 18px rgba(33, 244, 255, 0.35), 0 0 44px rgba(255, 58, 215, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Saira Semi Condensed", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(49, 255, 241, 0.15), transparent 45%),
    radial-gradient(circle at 20% 70%, rgba(255, 58, 215, 0.14), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(125, 255, 76, 0.1), transparent 40%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(33, 244, 255, 0.12), transparent 60%),
    radial-gradient(circle at 20% 100%, rgba(255, 58, 215, 0.18), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 244, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.6) 20%, rgba(0, 0, 0, 0.8) 80%, transparent);
  pointer-events: none;
  z-index: 0;
}

.scanline {
  position: fixed;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(33, 244, 255, 0.12), transparent);
  opacity: 0.6;
  animation: scan 8s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scan {
  0% {
    transform: translateY(-40vh);
  }
  100% {
    transform: translateY(140vh);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw;
  background: rgba(5, 9, 15, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(33, 244, 255, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.8);
  border: 1px solid rgba(33, 244, 255, 0.25);
  box-shadow: inset 0 0 14px rgba(33, 244, 255, 0.08);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button.active {
  color: #05060a;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Saira Stencil One", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(33, 244, 255, 0.5));
}

.brand-name {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a:focus::after {
  width: 100%;
}

main {
  position: relative;
  z-index: 2;
}

section {
  padding: 96px 8vw;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  padding-top: 90px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent-3);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: "Saira Stencil One", sans-serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin: 0 0 12px;
  text-shadow: 0 0 24px rgba(33, 244, 255, 0.4);
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #05060a;
  box-shadow: var(--glow);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.outline {
  border-color: rgba(33, 244, 255, 0.5);
  color: var(--text);
  background: transparent;
}

.btn.outline:hover {
  border-color: rgba(255, 58, 215, 0.6);
  box-shadow: 0 0 18px rgba(255, 58, 215, 0.3);
}

.btn.ghost {
  border-color: rgba(33, 244, 255, 0.4);
  color: var(--text);
  background: rgba(15, 21, 33, 0.6);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat {
  padding: 12px 16px;
  background: rgba(12, 20, 34, 0.8);
  border: 1px solid rgba(33, 244, 255, 0.2);
  border-radius: 12px;
}

.stat-number {
  display: block;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.panel {
  position: relative;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid rgba(33, 244, 255, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(7, 12, 22, 0.9);
  border-bottom: 1px solid rgba(33, 244, 255, 0.2);
  font-size: 0.85rem;
  color: var(--muted);
}

.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.panel-title {
  margin-left: auto;
  font-size: 0.75rem;
}

.terminal {
  padding: 24px 26px 60px;
  font-size: 0.95rem;
  color: #d4f7ff;
  min-height: 280px;
}

.terminal-line {
  margin-bottom: 10px;
  opacity: 0.85;
}

.terminal-line.highlight {
  color: var(--accent-3);
}

.prompt {
  color: var(--accent-2);
  margin-right: 8px;
}

.cursor {
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    opacity: 0.3;
  }
}

.hero-logo {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 120px;
  filter: drop-shadow(0 0 24px rgba(33, 244, 255, 0.4));
}

.glow-ring {
  position: absolute;
  inset: 12% 18% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 58, 215, 0.4);
  box-shadow: 0 0 30px rgba(255, 58, 215, 0.4);
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.screenshot-stage {
  position: relative;
  padding: 48px 32px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(6, 12, 22, 0.85), rgba(10, 20, 36, 0.65));
  border: 1px solid rgba(33, 244, 255, 0.2);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.screenshot-stage::before {
  content: "";
  position: absolute;
  inset: -20% 10% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 58, 215, 0.4), transparent 70%);
  opacity: 0.7;
  filter: blur(4px);
}

.screenshot-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(33, 244, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 244, 255, 0.08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

.screenshot-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(33, 244, 255, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 24px rgba(33, 244, 255, 0.3);
  background: rgba(8, 14, 24, 0.8);
  z-index: 2;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-frame.pc {
  width: min(980px, 92%);
  transform: perspective(1400px) rotateY(-6deg) rotateX(3deg);
  z-index: 2;
}

.screenshot-frame.phone {
  position: absolute;
  width: min(320px, 48vw);
  right: 10%;
  bottom: -6%;
  transform: perspective(1000px) rotateY(8deg);
  border-radius: 28px;
  z-index: 3;
  border: 1px solid rgba(255, 58, 215, 0.55);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 32px rgba(255, 58, 215, 0.45);
}

.screenshot-frame.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  pointer-events: none;
}

.section {
  position: relative;
}

.section-dark {
  background: rgba(7, 12, 20, 0.7);
  border-top: 1px solid rgba(33, 244, 255, 0.08);
  border-bottom: 1px solid rgba(33, 244, 255, 0.08);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-family: "Saira Stencil One", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 12px;
}

.section-desc {
  color: var(--muted);
  line-height: 1.7;
}

.card-grid,
.feature-grid,
.step-grid {
  display: grid;
  gap: 20px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.step-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card,
.feature-card,
.step-card {
  background: var(--panel);
  border: 1px solid rgba(33, 244, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  min-height: 180px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.4);
}

.card h3,
.feature-card h3,
.step-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--accent);
}

.card p,
.feature-card p {
  color: var(--muted);
  line-height: 1.6;
}

.architecture {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
}

.arch-node {
  background: var(--panel-solid);
  border: 1px solid rgba(33, 244, 255, 0.28);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.node-title {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.node-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.arch-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.arch-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 3px solid var(--accent-2);
  background: rgba(255, 58, 215, 0.08);
}

.step-card ol {
  padding-left: 18px;
  color: var(--muted);
}

.step-card pre {
  margin: 0;
  background: rgba(4, 8, 16, 0.8);
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(33, 244, 255, 0.2);
  font-size: 0.85rem;
  color: #b8f7ff;
  overflow-x: auto;
}

.download-panel {
  margin-top: 32px;
  padding: 28px 28px 32px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(33, 244, 255, 0.08), rgba(255, 58, 215, 0.12));
  border: 1px solid rgba(255, 58, 215, 0.35);
  display: grid;
  gap: 22px;
}

.download-head h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.download-head p {
  margin: 0;
  color: var(--muted);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.download-btn,
.download-note {
  position: relative;
  padding: 18px 18px 16px 56px;
  border-radius: 14px;
  background: rgba(7, 14, 24, 0.85);
  border: 1px solid rgba(33, 244, 255, 0.25);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 244, 255, 0.6);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5), 0 0 18px rgba(33, 244, 255, 0.4);
}

.download-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  background: rgba(33, 244, 255, 0.2);
  color: var(--accent);
  box-shadow: inset 0 0 10px rgba(33, 244, 255, 0.3);
}

.download-label {
  font-weight: 700;
  margin-bottom: 4px;
}

.download-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.download-btn.windows {
  border-color: rgba(125, 255, 76, 0.4);
}

.download-btn.windows .download-icon {
  color: var(--accent-3);
  background: rgba(125, 255, 76, 0.18);
}

.download-btn.android {
  border-color: rgba(33, 244, 255, 0.45);
}

.download-btn.linux {
  border-color: rgba(255, 58, 215, 0.45);
}

.download-btn.linux .download-icon {
  color: var(--accent-2);
  background: rgba(255, 58, 215, 0.2);
}

.download-note.harmony {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(12, 20, 34, 0.9);
}

.download-note.harmony .download-icon {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-grid span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(33, 244, 255, 0.3);
  background: rgba(11, 18, 30, 0.7);
  font-size: 0.85rem;
  color: var(--muted);
}

.cta-section {
  padding-bottom: 120px;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 36px;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(33, 244, 255, 0.12), rgba(255, 58, 215, 0.16));
  border: 1px solid rgba(255, 58, 215, 0.35);
}

.site-footer {
  padding: 28px 8vw 48px;
  border-top: 1px solid rgba(33, 244, 255, 0.1);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.footer-meta {
  font-size: 0.85rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .arch-link {
    display: none;
  }

  .screenshot-stage {
    padding: 32px 20px;
    min-height: auto;
  }

  .screenshot-frame.pc {
    width: 100%;
    transform: none;
  }

  .screenshot-frame.phone {
    position: static;
    width: min(360px, 80%);
    margin-top: 24px;
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  section {
    padding: 80px 6vw;
  }

  .cta-panel {
    padding: 28px;
  }

  .download-panel {
    padding: 24px;
  }

  .download-btn,
  .download-note {
    padding-left: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
