:root {
  --wa-green: #25d366;
  --wa-green-dark: #128c7e;
  --wa-teal-header: #075e54;
  --wa-bg-chat: #e5ddd5;
  --wa-bubble-out: #dcf8c6;
  --wa-bubble-in: #ffffff;
  --wa-text: #111b21;

  --bg: #05080a;
  --bg-alt: #070d10;
  --ink: #eafff5;
  --ink-dim: #8fa8a3;
  --line: rgba(80, 255, 190, 0.14);
  --accent: #39ff9d;
  --accent-2: #00e0ff;
  --accent-dark: #0f8f5f;
  --glass: rgba(15, 30, 28, 0.45);
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- AMBIENT BACKGROUND ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(57, 255, 157, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 157, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 90%);
  animation: grid-drift 30s linear infinite;
}

@keyframes grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 42px 42px, 42px 42px; }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 15% 20%, rgba(0, 224, 255, 0.10), transparent 45%),
              radial-gradient(circle at 85% 75%, rgba(57, 255, 157, 0.10), transparent 45%);
}

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

h1, h2, h3, .brand-word, .stat strong, .token-card strong {
  font-family: var(--font-display);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-body);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04150c;
  box-shadow: 0 0 24px rgba(57, 255, 157, 0.45), 0 8px 24px rgba(0, 224, 255, 0.2);
}

.btn-primary:hover { box-shadow: 0 0 40px rgba(57, 255, 157, 0.65), 0 10px 30px rgba(0, 224, 255, 0.3); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px rgba(57, 255, 157, 0.2); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 10, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 0 16px rgba(57, 255, 157, 0.5);
}

.brand-word b { color: var(--accent); font-weight: 800; }

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { padding: 9px 18px; font-size: 13px; border-radius: 999px; }

.nav-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--ink-dim);
  border: 1px solid var(--line);
  transition: color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.nav-x:hover { color: var(--accent); border-color: var(--accent); }

@media (min-width: 860px) {
  .nav-links { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 20px 64px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background: radial-gradient(circle at 50% 0%, rgba(57, 255, 157, 0.25), transparent 65%);
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: float 9s ease-in-out infinite;
}

.orb-a {
  width: 260px; height: 260px;
  background: var(--accent-2);
  top: 10%; left: 4%;
}

.orb-b {
  width: 220px; height: 220px;
  background: var(--accent);
  bottom: -5%; right: 6%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-24px) translateX(14px); }
}

.hero-inner {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-ring {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent));
  animation: spin-ring 6s linear infinite;
  padding: 3px;
}

.hero-logo-ring::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 27px;
  background: var(--bg);
}

.hero-logo {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 24px;
  z-index: 1;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(57, 255, 157, 0.08);
  border: 1px solid rgba(57, 255, 157, 0.35);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  font-family: var(--font-display);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

h1 {
  font-size: clamp(38px, 8vw, 70px);
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(57, 255, 157, 0.35);
}

h1 span {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--ink-dim);
  margin: 12px 0 0;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
}

.hero-desc {
  max-width: 560px;
  color: var(--ink-dim);
  margin: 20px 0 32px;
  font-size: 15.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 36px;
}

.contract-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  font-size: 13.5px;
  margin-bottom: 34px;
  max-width: 100%;
  box-shadow: inset 0 0 20px rgba(57, 255, 157, 0.06);
}

.contract-label { color: var(--ink-dim); }

#contractAddress {
  color: var(--accent-2);
  font-family: 'Consolas', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 180px;
}

.copy-btn {
  border: none;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #04150c;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.copy-btn:hover { filter: brightness(1.1); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 22px;
  backdrop-filter: blur(10px);
}

.stat strong { font-size: 17px; color: var(--accent); }
.stat span { font-size: 11.5px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- MARQUEE ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0, 224, 255, 0.06), rgba(57, 255, 157, 0.06));
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: scroll-left 22s linear infinite;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.03em;
  white-space: nowrap;
  font-family: var(--font-display);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 90px 20px; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.section-inner { max-width: 1140px; margin: 0 auto; }

.section-eyebrow {
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.section h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 16px;
  max-width: 640px;
  font-weight: 700;
}

/* about */
.about-grid { display: grid; gap: 44px; }
.about-text p { color: var(--ink-dim); font-size: 15px; }

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

.mini-card,
.token-card,
.step-card,
.roadmap-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover,
.token-card:hover,
.step-card:hover,
.roadmap-card:hover {
  border-color: rgba(57, 255, 157, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(57, 255, 157, 0.12);
}

.mini-card h3 { margin: 0 0 6px; font-size: 16px; }
.mini-card p { margin: 0; color: var(--ink-dim); font-size: 13.5px; }

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* tokenomics */
.token-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 32px;
}

.token-card { text-align: center; display: flex; flex-direction: column; gap: 6px; }
.token-card strong { font-size: 19px; color: var(--accent); }
.token-card span { color: var(--ink-dim); font-size: 12.5px; }

/* how to buy */
.steps-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04150c;
  font-weight: 800;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.step-card h3 { margin: 0 0 8px; font-size: 16px; }
.step-card p { margin: 0; color: var(--ink-dim); font-size: 13.5px; }

/* roadmap */
.roadmap-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 32px;
}

.roadmap-card { border-left: 3px solid var(--accent); border-radius: 12px 18px 18px 12px; }

.roadmap-phase {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
}

.roadmap-card h3 { margin: 10px 0 6px; font-size: 17px; }
.roadmap-card p { margin: 0; color: var(--ink-dim); font-size: 13.5px; }

/* ---------- CHAT SECTION ---------- */
.chat-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.chat-copy p { color: var(--ink-dim); font-size: 15px; }

.chat-hints {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.chat-hints li {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 15px;
  backdrop-filter: blur(8px);
}

@media (min-width: 900px) {
  .chat-inner { grid-template-columns: 1fr 1fr; }
}

/* WhatsApp-style phone widget (kept, framed for the futuristic theme) */
.phone {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--wa-bg-chat);
  border-radius: 26px;
  box-shadow: 0 0 0 6px rgba(57, 255, 157, 0.08), 0 0 60px rgba(57, 255, 157, 0.25), 0 25px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  border: 1px solid rgba(57, 255, 157, 0.3);
}

.chat-header {
  background: var(--wa-teal-header);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  flex-shrink: 0;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--wa-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-display);
  border: none;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* WhatsApp-style fullscreen profile photo viewer */
.photo-viewer {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: #000;
  display: flex;
  flex-direction: column;
}

.photo-viewer[hidden] { display: none; }

.photo-viewer-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  flex-shrink: 0;
}

.photo-viewer-header .contact-name { color: #fff; }

.photo-viewer-back {
  border: none;
  background: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

.photo-viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.photo-viewer-body img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.contact-name { font-weight: 600; font-size: 16px; }
.contact-status { font-size: 12.5px; opacity: 0.8; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-image: linear-gradient(rgba(229, 221, 213, 0.97), rgba(229, 221, 213, 0.97));
}

.date-chip {
  align-self: center;
  background: #d4f0da;
  color: #4a4a4a;
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.msg { display: flex; margin-bottom: 2px; }
.msg.received { justify-content: flex-start; }
.msg.sent { justify-content: flex-end; }

.bubble {
  max-width: 78%;
  padding: 6px 10px 8px 10px;
  border-radius: 8px;
  font-size: 14.5px;
  line-height: 1.35;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-body);
}

.msg.received .bubble {
  background: var(--wa-bubble-in);
  color: var(--wa-text);
  border-top-left-radius: 0;
}

.msg.sent .bubble {
  background: var(--wa-bubble-out);
  color: var(--wa-text);
  border-top-right-radius: 0;
}

.msg-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  color: #8696a0;
  margin-left: 6px;
  float: right;
  margin-top: 4px;
}

.msg-ticks { font-size: 13px; letter-spacing: -2px; color: #8696a0; }
.msg-ticks.delivered { color: #8696a0; }
.msg-ticks.read { color: #53bdeb; }

.typing .bubble { padding: 10px 14px; }

.typing-dots { display: inline-flex; gap: 3px; align-items: center; }

.typing-dots span {
  width: 6px;
  height: 6px;
  background: #93a5ab;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.chat-input {
  position: relative;
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  padding: 10px;
  background: #f0f0f0;
  align-items: center;
}

.icon-btn {
  border: none;
  background: none;
  font-size: 21px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.icon-btn:hover { background: rgba(0, 0, 0, 0.06); }

.emoji-picker {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 10px;
  width: 244px;
  max-height: 168px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  z-index: 10;
}

.emoji-picker[hidden] { display: none; }

.emoji-picker button {
  border: none;
  background: none;
  font-size: 19px;
  padding: 5px;
  border-radius: 6px;
  cursor: pointer;
  line-height: 1;
}

.emoji-picker button:hover { background: rgba(0, 0, 0, 0.06); }

.chat-input input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14.5px;
  outline: none;
  font-family: var(--font-body);
}

.chat-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--wa-green-dark);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.chat-input button:disabled { opacity: 0.5; cursor: default; }

.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.15); border-radius: 3px; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 20px;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-display);
}

.footer-logo { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 0 12px rgba(57, 255, 157, 0.4); }

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-dim);
}

.footer-links a:hover { color: var(--accent); }

.footer-disclaimer {
  max-width: 560px;
  color: var(--ink-dim);
  font-size: 12px;
  margin: 6px 0 0;
}
