@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800;900&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg: #050509;
  --panel: rgba(11, 11, 22, .84);
  --panel-solid: #0b0b16;
  --purple: #9b38ff;
  --purple-2: #d45cff;
  --green: #4dff9a;
  --pink: #ff3b78;
  --red: #ff3860;
  --text: #f6f2ff;
  --muted: #aaa6bd;
  --border: rgba(155, 56, 255, .45);
  --shadow: 0 0 28px rgba(155, 56, 255, .45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 15%, rgba(155,56,255,.24), transparent 32%),
    radial-gradient(circle at 20% 80%, rgba(255,59,120,.13), transparent 30%),
    linear-gradient(180deg, #050509 0%, #080812 50%, #030306 100%);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  z-index: 5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,.04),
    rgba(255,255,255,.04) 1px,
    transparent 1px,
    transparent 5px
  );
  mix-blend-mode: overlay;
}

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}

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

.site-header,
main,
footer {
  position: relative;
  z-index: 2;
}

.site-header {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

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

.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.brand strong {
  display: block;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.brand strong span {
  color: var(--purple-2);
}

.brand small {
  color: var(--purple-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .8px;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ddd8ec;
}

nav a:hover {
  color: var(--purple-2);
}

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

.square-btn,
.primary-btn,
.dark-btn {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

.square-btn {
  width: 46px;
  height: 46px;
  font-size: 20px;
}

.primary-btn,
.dark-btn {
  padding: 14px 18px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--purple), #6e20ff);
  border-color: rgba(212, 92, 255, .8);
  box-shadow: var(--shadow);
}

.dark-btn {
  background: rgba(0,0,0,.38);
}

.small {
  padding: 13px 16px;
}

.primary-btn:hover,
.dark-btn:hover,
.square-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(212, 92, 255, .8);
}

main {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 36px;
  padding: 40px 0 64px;
}

.system-pill {
  display: inline-flex;
  color: var(--green);
  border: 1px solid rgba(77,255,154,.5);
  background: rgba(77,255,154,.06);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: "Space Mono", monospace;
  box-shadow: 0 0 18px rgba(77,255,154,.12);
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 94px);
  line-height: .9;
  letter-spacing: -3px;
  text-transform: uppercase;
  font-weight: 900;
  text-shadow:
    4px 0 rgba(155,56,255,.75),
    -3px 0 rgba(68,243,255,.25);
}

h1 span {
  display: block;
  color: var(--purple-2);
}

.hero-copy p {
  font-size: 20px;
  line-height: 1.55;
  color: #d7d0e8;
  max-width: 570px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}

.token-note {
  font-family: "Space Mono", monospace;
  color: var(--muted) !important;
  font-size: 13px !important;
}

.loading-bar {
  width: 220px;
  height: 10px;
  border: 1px solid var(--purple);
  border-radius: 999px;
  overflow: hidden;
  background: #070711;
}

.loading-bar span {
  display: block;
  width: 44%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: var(--shadow);
}

.hero-visual {
  min-height: 560px;
  position: relative;
}

.chart-card {
  position: absolute;
  inset: 20px 0 auto auto;
  width: 95%;
  height: 420px;
  border: 1px solid rgba(155,56,255,.2);
  border-radius: 22px;
  background:
    linear-gradient(rgba(255,59,120,.08),rgba(255,59,120,0)),
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(155,56,255,.08) 71px),
    repeating-linear-gradient(0deg, transparent 0 70px, rgba(155,56,255,.08) 71px);
  overflow: hidden;
}

.chart-line {
  position: absolute;
  width: 75%;
  height: 65%;
  left: 10%;
  top: 13%;
  clip-path: polygon(0 20%, 10% 28%, 18% 16%, 30% 34%, 42% 29%, 52% 42%, 63% 39%, 76% 58%, 86% 66%, 100% 82%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,59,120,.8), transparent);
  border-top: 5px solid var(--pink);
  transform: skewY(8deg);
  opacity: .85;
}

.chart-label {
  position: absolute;
  right: 26px;
  top: 210px;
  color: var(--red);
  font-size: 48px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(255,56,96,.55);
}

.speech {
  position: absolute;
  right: 28px;
  top: 86px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.55);
  border-radius: 14px;
  padding: 14px 16px;
  font-family: "Space Mono", monospace;
  box-shadow: var(--shadow);
}

.robot-shell {
  position: absolute;
  right: 70px;
  bottom: 22px;
  width: min(385px, 84%);
  transform: rotate(-2deg);
}

.robot-shell img {
  width: 100%;
  display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 30px rgba(155,56,255,.55));
}

.portfolio-paper {
  position: absolute;
  left: 0;
  bottom: 76px;
  border: 1px solid var(--border);
  background: rgba(5,5,9,.82);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  font-family: "Space Mono", monospace;
}

.portfolio-paper strong {
  display: block;
  color: var(--muted);
}

.portfolio-paper span {
  display: block;
  font-size: 44px;
  font-weight: 900;
  color: var(--pink);
}

.coffee {
  position: absolute;
  right: 6px;
  bottom: 60px;
  padding: 16px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: #111;
  color: #aaa;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transform: rotate(8deg);
}

.analyzer-section,
.cards-section,
.community-section {
  padding: 56px 0;
}

.analyzer-section {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(12,12,23,.94), rgba(7,7,13,.88));
  box-shadow: 0 0 44px rgba(155,56,255,.18);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-title h2 {
  margin: 0;
}

.section-title span {
  color: var(--green);
  font-size: 13px;
}

.analyzer-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}

.terminal {
  min-height: 330px;
  border: 1px solid rgba(77,255,154,.45);
  border-radius: 14px;
  background: #030606;
  padding: 24px;
  font-family: "Space Mono", monospace;
  box-shadow: 0 0 22px rgba(77,255,154,.08);
}

.terminal-title {
  color: var(--green);
  margin-top: 0;
}

.scan-row {
  display: flex;
  gap: 14px;
  margin: 14px 0;
}

.scan-row span {
  min-width: 125px;
  color: #efeff8;
}

.pink {
  color: var(--pink);
}

.green {
  color: var(--green);
}

.terminal-divider {
  border-top: 1px dashed rgba(77,255,154,.42);
  margin: 22px 0;
}

.terminal h3 {
  color: var(--pink);
  font-size: 24px;
  line-height: 1.35;
}

.damage-chart {
  min-height: 330px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  background: rgba(155,56,255,.05);
}

.damage-chart h3 {
  margin: 0;
  color: #dba7ff;
  font-family: "Space Mono", monospace;
}

.damage-chart strong {
  color: var(--pink);
  font-size: 28px;
}

.damage-chart svg {
  width: 100%;
  height: 170px;
}

.damage-chart polyline {
  fill: none;
  stroke: var(--pink);
  stroke-width: 5;
}

.full {
  width: 100%;
  cursor: pointer;
}

.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  min-height: 230px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(10,10,18,.78);
  padding: 24px;
}

.info-card h3 {
  color: var(--purple-2);
  margin-top: 0;
}

.info-card p,
.info-card li {
  color: #d5cfe2;
  line-height: 1.55;
}

.stamp {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(212,92,255,.55);
  color: #dba7ff;
  font-weight: 900;
}

.community-section h2 {
  color: var(--purple-2);
  font-size: 36px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.community-section p {
  color: var(--muted);
}

.community-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.community-links a {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  padding: 16px;
  text-align: center;
  font-weight: 900;
}

.domain-box {
  margin-top: 28px;
  border: 1px solid rgba(77,255,154,.5);
  background: rgba(77,255,154,.06);
  border-radius: 16px;
  padding: 18px 20px;
  text-align: center;
  color: var(--green);
  font-family: "Space Mono", monospace;
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 900;
  text-shadow: 0 0 16px rgba(77,255,154,.45);
}

footer {
  padding: 36px 0 50px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .analyzer-grid,
  .cards-section,
  .community-links {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 500px; }
}

@media (max-width: 560px) {
  .site-header { align-items: flex-start; }
  .header-actions .square-btn { display: none; }
  .primary-btn.small { display: none; }
  h1 { letter-spacing: -2px; }
  .hero-copy p { font-size: 17px; }
  .hero-buttons a { width: 100%; }
  .robot-shell { right: 0; width: 285px; }
  .portfolio-paper { left: 8px; bottom: 50px; }
  .coffee { display: none; }
  .analyzer-section { padding: 18px; }
  .scan-row { display: block; }
  .scan-row span { display: block; margin-bottom: 5px; }
}
