:root {
  --bg: #d8dde3;
  --bg-deep: #c4ccd6;
  --ink: #12161c;
  --ink-soft: #3a4450;
  --metal: #8a949f;
  --metal-light: #b7c0c9;
  --metal-dark: #4d5763;
  --screen: #0b1a16;
  --screen-glow: #3dffb0;
  --screen-glow-dim: rgba(61, 255, 176, 0.18);
  --accent: #1f8a5b;
  --accent-bright: #2fd98a;
  --line: rgba(18, 22, 28, 0.12);
  --glass: rgba(255, 255, 255, 0.42);
  --shadow: 0 30px 80px rgba(18, 22, 28, 0.22);
  --font-display: "Bebas Neue", Impact, sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-mono: "Share Tech Mono", ui-monospace, monospace;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(255, 255, 255, 0.7), transparent 55%),
    radial-gradient(ellipse 70% 45% at 85% 20%, rgba(61, 255, 176, 0.12), transparent 50%),
    radial-gradient(ellipse 90% 60% at 50% 100%, rgba(77, 87, 99, 0.18), transparent 55%),
    linear-gradient(165deg, #e8edf2 0%, var(--bg) 40%, var(--bg-deep) 100%);
  overflow-x: hidden;
  cursor: none;
}

body.has-touch {
  cursor: auto;
}

body.has-touch .cursor,
body.has-touch .cursor-trail {
  display: none !important;
}

a,
button,
[role="button"] {
  cursor: none;
}

body.has-touch a,
body.has-touch button,
body.has-touch [role="button"] {
  cursor: pointer;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
}

strong {
  font-weight: 700;
}

.mono {
  font-family: var(--font-mono);
  word-break: break-all;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

/* Atmosphere */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.desk-glow {
  pointer-events: none;
  position: fixed;
  width: 55vw;
  height: 55vw;
  right: -8vw;
  top: 8vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 255, 176, 0.16), transparent 70%);
  filter: blur(20px);
  animation: glow-drift 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes glow-drift {
  from { transform: translate(-4%, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

/* Custom cursor */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot,
.cursor__ring {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: #fff;
}

.cursor__ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background 0.25s, border-color 0.25s;
}

.cursor.is-hover .cursor__ring {
  width: 58px;
  height: 58px;
  background: rgba(61, 255, 176, 0.15);
  border-color: #3dffb0;
}

.cursor.is-down .cursor__ring {
  width: 28px;
  height: 28px;
}

.cursor-trail {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

.trail-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--screen-glow);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(61, 255, 176, 0.7);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(216, 221, 227, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
}

.brand-mark .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a {
  position: relative;
  opacity: 0.72;
  transition: opacity 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--glass);
  transition: transform 0.25s var(--ease-out), background 0.2s, border-color 0.2s;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: rgba(18, 22, 28, 0.25);
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--glass);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  background: rgba(232, 237, 242, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.mobile-nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.65);
}

@media (min-width: 900px) {
  .nav,
  .header-actions {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
}

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

.btn--primary,
.btn--buy {
  background: var(--ink);
  color: #f2f5f7;
  box-shadow: 0 10px 28px rgba(18, 22, 28, 0.22);
}

.btn--primary:hover,
.btn--buy:hover {
  background: #000;
  box-shadow: 0 14px 34px rgba(18, 22, 28, 0.3), 0 0 24px rgba(61, 255, 176, 0.25);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.45);
  border-color: var(--line);
}

.btn--ghost:hover {
  background: #fff;
  border-color: rgba(18, 22, 28, 0.28);
}

.btn--copy {
  min-height: 40px;
  padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.btn--copy.is-copied {
  background: rgba(61, 255, 176, 0.22);
  border-color: rgba(47, 217, 138, 0.55);
}

.btn--lg {
  min-height: 54px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  padding: calc(var(--header-h) + 1.25rem) clamp(1rem, 4vw, 2.5rem) 2rem;
  overflow: hidden;
}

.hero__copy {
  position: relative;
  z-index: 3;
  max-width: 38rem;
  padding-bottom: 1rem;
}

.hero__copy::before {
  content: "";
  position: absolute;
  inset: -10% -8% 20% -8%;
  z-index: -1;
  background: radial-gradient(ellipse at 30% 40%, rgba(232, 237, 242, 0.92), rgba(232, 237, 242, 0.55) 55%, transparent 75%);
  pointer-events: none;
}

.hero__ticker {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-size: clamp(4.2rem, 14vw, 8.5rem);
}

.hero__brand-line {
  display: block;
}

.hero__brand-line--accent {
  color: transparent;
  background: linear-gradient(110deg, var(--ink) 20%, var(--accent) 45%, var(--accent-bright) 55%, var(--ink) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: brand-shimmer 5s ease-in-out infinite;
}

@keyframes brand-shimmer {
  0%, 100% { background-position: 100% 50%; }
  50% { background-position: 0% 50%; }
}

.hero__tagline {
  margin: 1.1rem 0 1.6rem;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: end center;
  min-height: 42vh;
  pointer-events: none;
}

/* Laptop */
.laptop {
  position: relative;
  width: min(92vw, 820px);
  margin-top: 4vh;
  transform-origin: 50% 80%;
  animation: laptop-enter 1.4s var(--ease-out) both;
  filter: drop-shadow(0 40px 60px rgba(18, 22, 28, 0.28));
}

@keyframes laptop-enter {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.92) rotateX(12deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
  }
}

.laptop__lid {
  position: relative;
  z-index: 2;
  transform-origin: bottom center;
  animation: lid-open 1.6s 0.2s var(--ease-out) both;
}

@keyframes lid-open {
  from { transform: perspective(1200px) rotateX(-72deg); opacity: 0.4; }
  to { transform: perspective(1200px) rotateX(0deg); opacity: 1; }
}

.laptop__bezel {
  background: linear-gradient(180deg, #2a323a 0%, #1a2128 100%);
  border-radius: 18px 18px 8px 8px;
  padding: 14px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.laptop__camera {
  width: 8px;
  height: 8px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6a7480, #111);
  box-shadow: 0 0 0 2px #0f1419;
}

.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a3d12;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(61, 255, 176, 0.15),
    0 0 60px rgba(61, 255, 176, 0.2);
  animation: screen-on 0.8s 1.1s both;
}

.screen-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  animation: ui-in 0.6s 2.3s forwards;
  transform: scale(1.02);
}

@keyframes screen-on {
  from { filter: brightness(0.2); box-shadow: inset 0 0 0 1px rgba(61, 255, 176, 0.05); }
  to { filter: brightness(1); box-shadow: inset 0 0 0 1px rgba(61, 255, 176, 0.15), 0 0 60px rgba(61, 255, 176, 0.2); }
}

.screen-boot {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 1rem;
  background: #06110d;
  animation: boot-fade 0.5s 2.2s forwards;
}

@keyframes boot-fade {
  to { opacity: 0; visibility: hidden; }
}

.boot-bar {
  width: min(60%, 280px);
  height: 4px;
  margin: 0 auto;
  background: rgba(61, 255, 176, 0.15);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--screen-glow);
  box-shadow: 0 0 12px var(--screen-glow);
  animation: boot-load 1.1s 1.15s var(--ease-out) forwards;
}

@keyframes boot-load {
  to { width: 100%; }
}

.boot-text {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--screen-glow);
  animation: blink 1s steps(2) infinite;
}

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

@keyframes ui-in {
  to { opacity: 1; }
}

.scanlines {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  opacity: 0.45;
}

.screen-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 6;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.08) 48%, transparent 60%);
  background-size: 220% 100%;
  animation: shine-sweep 6s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%, 100% { background-position: 120% 0; }
  40% { background-position: -20% 0; }
}

.laptop__base {
  position: relative;
  z-index: 1;
  height: 18px;
  margin-top: -2px;
  background: linear-gradient(180deg, #9aa3ad 0%, #6d7783 45%, #545e69 100%);
  border-radius: 0 0 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.laptop__hinge {
  position: absolute;
  left: 12%;
  right: 12%;
  top: -3px;
  height: 6px;
  background: linear-gradient(180deg, #3d4650, #1f262d);
  border-radius: 2px;
}

.laptop__trackpad {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 18%;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: rgba(18, 22, 28, 0.18);
}

.laptop__shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(18, 22, 28, 0.35), transparent 70%);
  filter: blur(8px);
}

@media (min-width: 980px) {
  .hero {
    align-items: center;
    grid-template-rows: none;
    grid-template-columns: 1fr 1.05fr;
    gap: 1rem;
    padding-top: calc(var(--header-h) + 1rem);
  }

  .hero__copy {
    padding-bottom: 0;
  }

  .hero__copy::before {
    display: none;
  }

  .hero__stage {
    justify-items: end;
    align-items: center;
    min-height: 0;
    pointer-events: auto;
  }

  .laptop {
    width: min(100%, 640px);
    margin-top: 0;
    animation: laptop-float 7s ease-in-out infinite;
  }

  @keyframes laptop-float {
    0%, 100% { transform: translateY(0) rotate(-1.5deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
  }
}

/* CA strip */
.ca-strip {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1rem, 4vw, 2.5rem) 2.5rem;
}

.ca-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.ca-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ca-value {
  flex: 1 1 220px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.8vw, 0.9rem);
  word-break: break-all;
}

/* Sections */
.section {
  position: relative;
  z-index: 2;
  padding: 4.5rem clamp(1rem, 4vw, 2.5rem);
}

.section__head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section__head h2,
.token-panel__intro h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: 0.03em;
  line-height: 0.95;
  font-weight: 400;
}

.section__head p,
.token-panel__intro p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 1.05rem;
}

.feature-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .feature-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.feature__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--accent);
  border: 1px solid rgba(31, 138, 91, 0.3);
  background: rgba(61, 255, 176, 0.08);
}

.feature__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Token */
.token {
  padding-top: 2rem;
}

.token-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.28)),
    radial-gradient(circle at 100% 0%, rgba(61, 255, 176, 0.12), transparent 45%);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.token-panel__intro {
  margin-bottom: 1.75rem;
}

.specs {
  display: grid;
  gap: 0;
  margin: 0 0 1.75rem;
}

@media (min-width: 700px) {
  .specs {
    grid-template-columns: 1fr 1fr;
  }
}

.spec {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.spec--full {
  grid-column: 1 / -1;
}

.spec dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.token-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* How */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.step:last-child {
  border-bottom: 1px solid var(--line);
}

.step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 1;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.how__cta {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.25rem;
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__brand .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.footer__brand span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer__links {
  display: flex;
  gap: 0.55rem;
}

.footer__links a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  transition: transform 0.25s var(--ease-out), background 0.2s;
}

.footer__links a:hover {
  transform: translateY(-2px);
  background: #fff;
}

.footer__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

@media (min-width: 800px) {
  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer__note {
    grid-column: 1 / -1;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition-delay: 0s;
}

.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.35s; }

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  body {
    cursor: auto;
  }

  .cursor,
  .cursor-trail {
    display: none !important;
  }
}
