:root {
  --bg: #02050a;
  --bg-soft: #07101a;
  --panel: rgba(7, 16, 26, 0.78);
  --panel-strong: #07101a;
  --line: rgba(214, 159, 51, 0.34);
  --gold: #d8a23b;
  --gold-light: #f2cf74;
  --text: #f5f3ec;
  --muted: #a7adb6;
  --success: #6ee7a8;
  --danger: #ff8d8d;
  --radius: 20px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% 8%, rgba(216,162,59,.10), transparent 26rem),
    radial-gradient(circle at 15% 40%, rgba(15,80,120,.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  z-index: -2;
}

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

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section-pad { padding-block: 108px; }

.site-header {
  width: min(1240px, calc(100% - 32px));
  min-height: 82px;
  margin: 16px auto 0;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 12px;
  z-index: 20;
  background: rgba(2, 5, 10, .78);
  border: 1px solid rgba(216,162,59,.18);
  border-radius: 18px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(0,0,0,.25);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-family: Cinzel, serif; letter-spacing: .08em; white-space: nowrap; }
.brand img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(216,162,59,.28)); }
.brand span { color: var(--gold-light); font-size: .98rem; }
.brand b { font-weight: 700; }
.nav { display: flex; justify-content: center; gap: 30px; }
.nav a { color: #ccd0d6; font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; transition: .2s ease; }
.nav a:hover { color: var(--gold-light); }
.menu-toggle { display: none; color: var(--gold-light); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }

.wallet-btn, .btn {
  border-radius: 11px;
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: .025em;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wallet-btn--header { color: var(--gold-light); background: transparent; border: 1px solid var(--gold); }
.wallet-btn:hover, .btn:hover { transform: translateY(-2px); }
.btn--gold, #connectWallet {
  color: #130d03;
  background: linear-gradient(135deg, #f0d078, #c58b25 70%, #e8bd58);
  border: 1px solid #f2cf74;
  box-shadow: 0 10px 30px rgba(216,162,59,.18);
}
.btn--ghost { color: var(--gold-light); background: rgba(216,162,59,.03); border: 1px solid var(--line); }

.hero {
  min-height: 780px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 60px;
  padding-top: 110px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 150px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(216,162,59,.10), transparent 68%);
  pointer-events: none;
}
.eyebrow { color: var(--gold); text-transform: uppercase; font-size: .78rem; font-weight: 700; letter-spacing: .22em; margin: 0 0 14px; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(3.3rem, 7vw, 6.8rem); letter-spacing: -.035em; margin-bottom: 28px; }
h1 span { color: var(--gold-light); }
h2 { font-size: clamp(2.15rem, 4vw, 4rem); letter-spacing: -.025em; margin-bottom: 22px; }
h3 { font-size: 1.35rem; }
.hero-text { max-width: 680px; color: #c8ccd2; font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.social-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.social-btn {
  min-height: 43px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(216,162,59,.26);
  border-radius: 11px;
  color: #d7dbe1;
  background: rgba(7,16,26,.62);
  font-weight: 700;
  font-size: .86rem;
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.social-btn svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.social-btn:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-light); background: rgba(216,162,59,.06); }
.social-btn--telegram:hover { color: #5ec7f4; border-color: rgba(94,199,244,.72); }
.social-btn--x:hover { color: #fff; border-color: rgba(255,255,255,.65); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 500px; }
.hero-visual img { width: min(520px, 100%); position: relative; z-index: 2; filter: drop-shadow(0 40px 60px rgba(0,0,0,.7)); animation: float 6s ease-in-out infinite; }
.coin-glow { position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,207,116,.20), transparent 66%); filter: blur(18px); }
@keyframes float { 50% { transform: translateY(-14px) rotate(.5deg); } }

.contract-card {
  grid-column: 1 / -1;
  margin-top: -38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(9,21,34,.95), rgba(4,10,17,.88));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contract-card code { display: block; margin-top: 7px; color: #eef0f4; font-size: clamp(.72rem, 1.8vw, 1rem); overflow-wrap: anywhere; }
.mini-label { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; }
.contract-card button { background: rgba(216,162,59,.08); color: var(--gold-light); border: 1px solid var(--line); border-radius: 10px; padding: 11px 18px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 34px; }
.stats article { min-height: 150px; padding: 26px 22px; border: 1px solid rgba(216,162,59,.18); background: rgba(7,16,26,.55); border-radius: 16px; }
.stat-icon { display: block; color: var(--gold); font-size: 1.55rem; margin-bottom: 14px; }
.stats strong, .stats small { display: block; }
.stats strong { font-size: 1.05rem; }
.stats small { color: var(--muted); margin-top: 4px; }

.split { display: grid; grid-template-columns: .88fr 1.12fr; gap: 80px; align-items: start; }
.copy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: #bbc0c8; }
.copy-grid p { margin: 0; }
.section-heading.center { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-heading > p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature-card { padding: 30px 24px; min-height: 290px; border: 1px solid rgba(216,162,59,.20); border-radius: 18px; background: linear-gradient(180deg, rgba(10,23,37,.85), rgba(4,10,17,.72)); }
.feature-card span { color: var(--gold); font-weight: 700; font-size: .78rem; letter-spacing: .14em; }
.feature-card h3 { margin: 38px 0 16px; }
.feature-card p { color: var(--muted); margin: 0; }

.holder-section { position: relative; }
.holder-panel { display: grid; grid-template-columns: 1fr 1fr; min-height: 500px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, rgba(9,21,34,.94), rgba(3,8,14,.96)); box-shadow: var(--shadow); }
.holder-copy { padding: clamp(36px, 6vw, 72px); }
.holder-copy > p:not(.eyebrow) { color: var(--muted); max-width: 560px; }
.wallet-status { display: flex; align-items: center; gap: 14px; padding: 16px; margin: 28px 0 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(255,255,255,.025); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #7b828d; box-shadow: 0 0 0 5px rgba(123,130,141,.10); flex: none; }
.wallet-status.connected .status-dot { background: var(--success); box-shadow: 0 0 0 5px rgba(110,231,168,.10); }
.wallet-status.error .status-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,141,141,.10); }
.wallet-status strong, .wallet-status small { display: block; }
.wallet-status small { color: var(--muted); margin-top: 2px; }
.text-btn { display: block; margin-top: 14px; border: 0; background: transparent; color: var(--muted); padding: 6px 0; }
.gate { min-height: 100%; padding: 56px; display: grid; place-content: center; text-align: center; background: radial-gradient(circle at 50% 35%, rgba(216,162,59,.13), transparent 18rem), linear-gradient(rgba(4,9,15,.86), rgba(2,6,10,.98)); border-left: 1px solid rgba(216,162,59,.18); }
.gate-lock { width: 120px; height: 120px; margin: 0 auto 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-light); font: 700 3.8rem/1 Cinzel, serif; box-shadow: inset 0 0 36px rgba(216,162,59,.08), 0 0 42px rgba(216,162,59,.08); }
.gate p { color: var(--muted); max-width: 420px; }
.gate small { color: #7e858f; }

.camera-dashboard { margin-top: 26px; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: rgba(7,16,26,.78); }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.dashboard-head h2 { margin-bottom: 0; }
.balance-pill { padding: 11px 16px; border: 1px solid rgba(110,231,168,.25); border-radius: 999px; color: #c8d8ce; background: rgba(110,231,168,.055); }
.camera-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.camera-card { min-height: 300px; border: 1px solid rgba(216,162,59,.18); border-radius: 16px; overflow: hidden; background: #02060b; position: relative; }
.camera-card iframe, .camera-card video { width: 100%; height: 100%; min-height: 300px; border: 0; object-fit: cover; }
.camera-placeholder { min-height: 300px; display: grid; place-items: center; text-align: center; padding: 28px; background: radial-gradient(circle at 50% 35%, rgba(216,162,59,.12), transparent 12rem), linear-gradient(135deg, #081521, #03080d); }
.camera-placeholder b { display: block; font-family: Cinzel, serif; font-size: 1.35rem; margin-bottom: 8px; }
.camera-placeholder span { color: var(--muted); }
.live-badge { position: absolute; z-index: 2; top: 14px; left: 14px; padding: 5px 9px; border-radius: 8px; background: #d92735; color: white; font-weight: 700; font-size: .74rem; letter-spacing: .08em; }
.dashboard-note { color: var(--muted); font-size: .88rem; margin: 18px 2px 0; }
.dashboard-note code { color: var(--gold-light); }

.roadmap-section .section-heading { max-width: 760px; }
.timeline { margin-top: 50px; border-top: 1px solid rgba(216,162,59,.20); }
.timeline-item { display: grid; grid-template-columns: 90px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(216,162,59,.16); }
.timeline-item b { color: var(--gold); font-size: 1.1rem; letter-spacing: .14em; }
.timeline-item h3 { margin-bottom: 10px; }
.timeline-item p { margin: 0; color: var(--muted); max-width: 800px; }
.roadmap-image { margin-top: 34px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(7,16,26,.55); }
.roadmap-image summary { padding: 18px 22px; cursor: pointer; color: var(--gold-light); font-weight: 700; }
.roadmap-image img { width: 100%; border-top: 1px solid var(--line); }

.cta { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; margin-bottom: 90px; padding: 34px 40px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(120deg, rgba(16,31,46,.92), rgba(5,12,20,.95)); }
.cta img { width: 92px; }
.cta h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 3.2rem); }

.footer { padding: 42px 0 34px; border-top: 1px solid rgba(216,162,59,.18); display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; }
.footer-brand { display: flex; align-items: center; gap: 14px; font-family: Cinzel, serif; color: var(--gold-light); }
.footer-brand img { width: 60px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand small { color: var(--muted); font-family: Inter, sans-serif; }
.footer-actions { display: grid; justify-items: end; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; color: #c6cad0; }
.footer-links a:hover { color: var(--gold-light); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216,162,59,.26);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(216,162,59,.04);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.footer-socials a:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(216,162,59,.10); }
.footer-socials svg { width: 19px; height: 19px; fill: currentColor; }
.disclaimer { grid-column: 1 / -1; color: #858c96; font-size: .86rem; max-width: 900px; margin: 0; }
.copyright { grid-column: 1 / -1; color: #616975; font-size: .82rem; margin: 0; }

.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; transform: translateY(20px); opacity: 0; pointer-events: none; padding: 13px 16px; border-radius: 12px; background: #131d28; color: white; border: 1px solid var(--line); transition: .24s ease; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto auto; justify-content: space-between; }
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; padding: 18px; flex-direction: column; align-items: center; background: rgba(2,5,10,.98); border: 1px solid var(--line); border-radius: 14px; }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 86px; gap: 28px; }
  .hero-visual { order: -1; min-height: 330px; }
  .hero-visual img { width: min(420px, 82%); }
  .contract-card { margin-top: 10px; }
  .stats, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .holder-panel { grid-template-columns: 1fr; }
  .copy-grid { grid-template-columns: 1fr; }
  .gate { border-left: 0; border-top: 1px solid rgba(216,162,59,.18); }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 24px, 1180px); }
  .section-pad { padding-block: 76px; }
  .site-header { width: calc(100% - 20px); top: 8px; margin-top: 10px; padding: 10px 12px; gap: 10px; }
  .brand span { display: none; }
  .brand img { width: 42px; height: 42px; }
  .wallet-btn--header { padding: 0 12px; font-size: .78rem; min-height: 42px; }
  .hero { min-height: auto; padding-top: 70px; }
  h1 { font-size: clamp(2.65rem, 15vw, 4.4rem); }
  .contract-card { align-items: stretch; flex-direction: column; }
  .stats, .feature-grid, .camera-grid { grid-template-columns: 1fr; }
  .stats article { min-height: auto; }
  .feature-card { min-height: 230px; }
  .holder-copy, .gate { padding: 34px 24px; }
  .camera-dashboard { padding: 22px 16px; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .timeline-item { grid-template-columns: 54px 1fr; gap: 16px; }
  .cta { grid-template-columns: 1fr; text-align: center; }
  .cta img { margin: auto; }
  .footer { grid-template-columns: 1fr; }
  .footer-actions { justify-items: start; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
