:root {
  --ink: #eef7ff;
  --muted: #9ab6d2;
  --bg: #050b1a;
  --panel: rgba(12, 30, 55, 0.82);
  --panel-strong: #0d2948;
  --line: rgba(145, 202, 255, 0.18);
  --green: #4da3ff;
  --green-soft: #b8dcff;
  --yellow: #ffd36e;
  --danger: #ff9e86;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius: 26px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 75% 9%, rgba(45, 129, 255, 0.18), transparent 27rem),
    linear-gradient(180deg, #061127 0%, #050b1a 52%, #07152d 100%);
}

.spectrum-intro {
  position: fixed;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(0, 229, 255, 0.82), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(255, 38, 177, 0.76), transparent 34%),
    radial-gradient(circle at 68% 78%, rgba(255, 211, 42, 0.72), transparent 35%),
    radial-gradient(circle at 28% 82%, rgba(101, 67, 255, 0.78), transparent 36%);
  filter: blur(34px) saturate(1.45);
  mix-blend-mode: screen;
  animation: spectrum-intro 3.8s ease-in-out forwards;
}

.spectrum-intro::before {
  content: "";
  position: absolute;
  inset: 8%;
  background-image:
    linear-gradient(rgba(83, 231, 255, 0.46) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 77, 208, 0.42) 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 241, 126, 0.94) 0 2px, transparent 3px);
  background-size: 58px 58px, 58px 58px, 58px 58px;
  border-radius: 14%;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, rgba(0, 0, 0, 0.86) 55%, transparent 82%);
  mask-image: radial-gradient(ellipse at center, #000 20%, rgba(0, 0, 0, 0.86) 55%, transparent 82%);
  filter: drop-shadow(0 0 8px rgba(72, 224, 255, 0.85));
  transform: perspective(900px) rotateX(56deg) scale(1.18);
  transform-origin: center 64%;
  animation: light-grid-pulse 0.72s ease-in-out infinite alternate;
}

.spectrum-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.48) 48%, rgba(91, 247, 255, 0.72) 50%, transparent 68%);
  transform: translateX(-80%);
  filter: blur(18px);
  animation: grid-light-sweep 1.25s ease-in-out 3;
}

.star-field,
.star-field::before,
.star-field::after {
  position: absolute;
  inset: 3%;
  pointer-events: none;
  content: "";
}

.star-field {
  z-index: 2;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 1.2px, transparent 2px),
    radial-gradient(circle, rgba(111, 238, 255, 0.95) 0 1.5px, transparent 2.4px),
    radial-gradient(circle, rgba(255, 112, 220, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 236, 123, 0.92) 0 1.3px, transparent 2.2px);
  background-size: 37px 53px, 61px 47px, 83px 79px, 97px 67px;
  background-position: 4px 11px, 23px 7px, 39px 31px, 13px 43px;
  filter: drop-shadow(0 0 5px rgba(156, 240, 255, 0.95));
  animation: stars-twinkle-fast 0.68s ease-in-out infinite alternate;
}

.star-field::before {
  inset: 0;
  background-image:
    radial-gradient(circle, #ffffff 0 2px, rgba(108, 242, 255, 0.7) 2.4px, transparent 4px),
    radial-gradient(circle, #fff4a8 0 1.8px, rgba(255, 110, 218, 0.58) 2.5px, transparent 4.5px),
    radial-gradient(circle, #c5b9ff 0 2.2px, rgba(110, 104, 255, 0.62) 3px, transparent 5px);
  background-size: 149px 113px, 181px 137px, 223px 167px;
  background-position: 19px 17px, 73px 51px, 127px 91px;
  filter: drop-shadow(0 0 9px currentColor);
  animation: stars-twinkle-slow 1.15s ease-in-out infinite alternate-reverse;
}

.star-field::after {
  inset: 0;
  opacity: 0.82;
  background:
    linear-gradient(90deg, transparent 49.4%, rgba(255, 255, 255, 0.9) 50%, transparent 50.6%) 12% 18% / 18px 3px no-repeat,
    linear-gradient(transparent 49.4%, rgba(255, 255, 255, 0.9) 50%, transparent 50.6%) 12% 18% / 3px 18px no-repeat,
    linear-gradient(90deg, transparent 49.4%, rgba(112, 240, 255, 0.88) 50%, transparent 50.6%) 81% 27% / 24px 3px no-repeat,
    linear-gradient(transparent 49.4%, rgba(112, 240, 255, 0.88) 50%, transparent 50.6%) 81% 27% / 3px 24px no-repeat,
    linear-gradient(90deg, transparent 49.4%, rgba(255, 123, 221, 0.9) 50%, transparent 50.6%) 67% 73% / 20px 3px no-repeat,
    linear-gradient(transparent 49.4%, rgba(255, 123, 221, 0.9) 50%, transparent 50.6%) 67% 73% / 3px 20px no-repeat,
    linear-gradient(90deg, transparent 49.4%, rgba(255, 240, 141, 0.92) 50%, transparent 50.6%) 29% 82% / 22px 3px no-repeat,
    linear-gradient(transparent 49.4%, rgba(255, 240, 141, 0.92) 50%, transparent 50.6%) 29% 82% / 3px 22px no-repeat;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.95));
  animation: star-flares 0.9s ease-in-out infinite alternate;
}

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

@keyframes spectrum-intro {
  0% { opacity: 0; transform: scale(0.92) rotate(-3deg); filter: blur(40px) saturate(1.3) hue-rotate(0deg); }
  10% { opacity: 0.72; }
  24% { opacity: 0.3; transform: scale(1.01) rotate(1deg); filter: blur(30px) saturate(1.65) hue-rotate(35deg); }
  40% { opacity: 0.68; }
  57% { opacity: 0.27; transform: scale(1.08) rotate(-1deg); filter: blur(38px) saturate(1.55) hue-rotate(85deg); }
  73% { opacity: 0.52; }
  88% { opacity: 0.16; }
  100% { opacity: 0; transform: scale(1.16) rotate(2deg); filter: blur(46px) saturate(1.35) hue-rotate(150deg); visibility: hidden; }
}

@keyframes light-grid-pulse {
  0% { opacity: 0.28; filter: drop-shadow(0 0 5px rgba(72, 224, 255, 0.55)) hue-rotate(0deg); }
  55% { opacity: 0.78; }
  100% { opacity: 0.48; filter: drop-shadow(0 0 14px rgba(255, 76, 208, 0.82)) hue-rotate(48deg); }
}

@keyframes grid-light-sweep {
  0% { opacity: 0; transform: translateX(-80%); }
  18% { opacity: 0.72; }
  76% { opacity: 0.38; }
  100% { opacity: 0; transform: translateX(80%); }
}

@keyframes stars-twinkle-fast {
  0% { opacity: 0.22; transform: translate3d(0, 0, 0) scale(0.99); filter: drop-shadow(0 0 3px rgba(156, 240, 255, 0.55)) hue-rotate(0deg); }
  48% { opacity: 0.82; }
  100% { opacity: 0.42; transform: translate3d(4px, -3px, 0) scale(1.01); filter: drop-shadow(0 0 8px rgba(255, 121, 222, 0.9)) hue-rotate(48deg); }
}

@keyframes stars-twinkle-slow {
  0% { opacity: 0.18; transform: scale(0.97); }
  55% { opacity: 0.92; }
  100% { opacity: 0.38; transform: scale(1.025); }
}

@keyframes star-flares {
  0%, 28% { opacity: 0.12; transform: scale(0.76) rotate(0deg); }
  62% { opacity: 0.95; transform: scale(1.08) rotate(8deg); }
  100% { opacity: 0.34; transform: scale(0.9) rotate(-5deg); }
}

/* Shooting-star intro replaces the earlier colour grid and twinkling field. */
.spectrum-intro {
  inset: 0;
  opacity: 1;
  overflow: hidden;
  background: none;
  filter: none;
  mix-blend-mode: normal;
  animation: meteor-layer 3.8s linear forwards;
}

.spectrum-intro::before,
.spectrum-intro::after { display: none; }

.meteor-shower { position: absolute; inset: 0; overflow: hidden; }

.meteor {
  position: absolute;
  top: var(--top);
  left: var(--left);
  display: block;
  width: var(--length);
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, hsla(var(--hue), 100%, 72%, 0.34) 42%, hsla(var(--hue), 100%, 82%, 0.96) 82%, #fff 100%);
  filter: drop-shadow(0 0 5px hsla(var(--hue), 100%, 72%, 0.92)) drop-shadow(0 0 13px hsla(var(--hue), 100%, 68%, 0.58));
  transform-origin: right center;
  animation: meteor-fall var(--duration) cubic-bezier(0.16, 0.68, 0.28, 1) var(--delay) 1 both;
}

.meteor::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 9px 3px hsla(var(--hue), 100%, 76%, 0.86), 0 0 22px 7px hsla(var(--hue), 100%, 66%, 0.42);
  transform: translateY(-50%);
}

@keyframes meteor-fall {
  0% { opacity: 0; transform: translate3d(-18vw, -16vh, 0) rotate(31deg) scaleX(0.58); }
  10% { opacity: 1; }
  76% { opacity: 0.95; }
  100% { opacity: 0; transform: translate3d(112vw, 72vh, 0) rotate(31deg) scaleX(1); }
}

@keyframes meteor-layer {
  0%, 92% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

button, input, select { font: inherit; }
a { color: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.ambient { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; opacity: 0.16; }
.ambient-one { width: 380px; height: 380px; background: #1677ff; top: 22%; left: -260px; }
.ambient-two { width: 300px; height: 300px; background: #33c8ff; right: -230px; top: 64%; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px;
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.15); }
.language-switch button { min-width: 35px; padding: 7px 9px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.language-switch button.active { color: #031427; background: var(--green); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(77, 163, 255, 0.48);
  border-radius: 14px;
  color: #031427;
  background: var(--green);
  font-weight: 900;
  letter-spacing: -0.08em;
  padding-right: 2px;
  box-shadow: 0 10px 30px rgba(77, 163, 255, 0.22);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: 0.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.support-link {
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-soft);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}
.support-link:hover { border-color: rgba(77, 163, 255, 0.55); background: rgba(77, 163, 255, 0.09); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 74px;
  align-items: center;
  padding-block: 70px 100px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 16px var(--green); }
h1 { margin: 24px 0 22px; font-size: clamp(48px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.065em; }
h1 em { color: var(--green); font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.hero-intro { max-width: 640px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.price-card {
  display: grid;
  gap: 5px;
  width: fit-content;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid rgba(77, 163, 255, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.14), rgba(77, 163, 255, 0.03));
}
.price-card span, .price-card small { color: var(--muted); font-size: 12px; }
.price-card strong { color: var(--green-soft); font-size: 24px; letter-spacing: -0.03em; }
.quick-facts { display: flex; gap: 34px; margin-top: 32px; }
.quick-facts div { display: grid; gap: 5px; }
.quick-facts span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.quick-facts strong { font-size: 14px; }

.wallet-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(126, 190, 255, 0.25);
  border-radius: 32px;
  background: linear-gradient(155deg, rgba(15, 42, 74, 0.97), rgba(4, 15, 34, 0.95));
  box-shadow: var(--shadow);
}
.wallet-card::before { content: ""; position: absolute; width: 220px; height: 220px; right: -120px; top: -110px; border-radius: 50%; background: rgba(77, 163, 255, 0.18); filter: blur(10px); }
.wallet-card-head { position: relative; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.wallet-card-head > div { display: flex; gap: 7px; align-items: center; }
.network-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.live-pill { padding: 6px 10px; border-radius: 999px; color: var(--green-soft); background: rgba(77, 163, 255, 0.13); }
.wallet-card h2 { position: relative; margin: 24px 0 18px; font-size: 25px; letter-spacing: -0.035em; text-align: center; }
.qr-frame { position: relative; display: grid; place-items: center; width: min(100%, 290px); aspect-ratio: 1; margin: auto; padding: 15px; border-radius: 24px; background: #f5faff; box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24); }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.scan-note { margin: 13px 0 22px; color: var(--muted); font-size: 12px; text-align: center; }
.address-box { padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: rgba(0, 0, 0, 0.17); }
.address-box > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.address-box code, .token-address code { display: block; overflow-wrap: anywhere; color: var(--green-soft); font-size: 12px; line-height: 1.65; }
.copy-button {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  color: #031427;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
}
.copy-button:hover { filter: brightness(1.06); }
.explorer-link { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; text-align: center; text-decoration: none; }
.explorer-link:hover { color: var(--green-soft); }

.calculator-section, .steps-section, .notice-section, .token-section, .support-section { padding-block: 75px; }
.section-heading { max-width: 670px; margin-bottom: 32px; }
.section-heading > span, .section-kicker { color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.section-heading h2, .token-section h2, .support-section h2 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.045em; }
.section-heading p, .token-section p, .support-section p { margin: 0; color: var(--muted); line-height: 1.65; }
.section-heading.compact { margin-bottom: 28px; }

.calculator-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.3fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(14px);
}
.calculator-card label { display: grid; gap: 9px; color: var(--muted); font-size: 12px; }
.calculator-card input, .calculator-card select { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: rgba(0, 0, 0, 0.2); }
.calculator-card input:focus, .calculator-card select:focus { border-color: rgba(77, 163, 255, 0.62); }
.calculator-card select option { color: #071326; }
.calculator-result { display: grid; align-content: center; padding: 16px 20px; border-radius: 17px; background: var(--green); color: #031427; }
.calculator-result span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.calculator-result strong { margin-top: 4px; font-size: 28px; letter-spacing: -0.04em; }
.calculator-result small { margin-top: 3px; opacity: 0.72; }
.hidden { display: none !important; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-card { min-height: 230px; padding: 25px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(155deg, rgba(15, 39, 68, 0.78), rgba(6, 19, 40, 0.75)); }
.step-card b { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(77, 163, 255, 0.3); border-radius: 13px; color: var(--green); font-size: 13px; }
.step-card h3 { margin: 34px 0 10px; font-size: 19px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.notice-card { display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px; border: 1px solid rgba(240, 207, 115, 0.25); border-radius: var(--radius); background: rgba(74, 57, 16, 0.2); }
.notice-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #2a2005; background: var(--yellow); font-weight: 900; }
.notice-card h2 { margin: 5px 0 14px; font-size: 22px; }
.notice-card ul { margin: 0; padding-left: 20px; color: #d9cfae; line-height: 1.8; }

.token-section, .support-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.token-address { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); }
.copy-button.secondary { width: auto; color: var(--green-soft); border: 1px solid rgba(77, 163, 255, 0.34); background: rgba(77, 163, 255, 0.1); }
.support-section { margin-block: 65px; padding: 42px; border: 1px solid rgba(77, 163, 255, 0.28); border-radius: 30px; background: linear-gradient(120deg, rgba(77, 163, 255, 0.16), rgba(7, 32, 60, 0.84)); }
.telegram-button { justify-self: end; padding: 16px 22px; border-radius: 15px; color: #031427; background: var(--green); font-weight: 900; text-decoration: none; box-shadow: 0 16px 36px rgba(77, 163, 255, 0.22); }

.site-footer { display: flex; justify-content: space-between; padding-block: 30px 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 20px); padding: 12px 18px; border: 1px solid rgba(77, 163, 255, 0.36); border-radius: 999px; color: var(--green-soft); background: #0d2948; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 45px; }
  .wallet-card { max-width: 520px; width: 100%; margin-inline: auto; }
  .calculator-card { grid-template-columns: 1fr 1fr; }
  .calculator-result { min-height: 105px; }
  .token-section, .support-section { grid-template-columns: 1fr; gap: 24px; }
  .telegram-button { justify-self: start; }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 26px, 1160px); }
  .site-header { padding-block: 18px; }
  .support-link { padding: 9px 12px; font-size: 12px; }
  .header-actions { gap: 7px; }
  .language-switch button { min-width: 31px; padding: 6px 7px; }
  .hero { padding-block: 45px 70px; }
  h1 { font-size: 47px; }
  .hero-intro { font-size: 16px; }
  .quick-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .wallet-card { padding: 18px; border-radius: 24px; }
  .calculator-section, .steps-section, .notice-section, .token-section { padding-block: 52px; }
  .calculator-card, .steps-grid { grid-template-columns: 1fr; }
  .calculator-card { padding: 18px; }
  .step-card { min-height: 195px; }
  .notice-card { grid-template-columns: 1fr; padding: 22px; }
  .support-section { margin-block: 40px; padding: 25px; }
  .site-footer { gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .spectrum-intro { display: none; animation: none; }
}
