/* CANTY Coin — Emerald & Gold Institutional Web3 Theme */

:root {
  --bg: #050c09;
  --bg-elev: #0a1711;
  --bg-card: rgba(13, 28, 21, 0.78);
  --bg-card-solid: #0d1c15;
  --bg-soft: rgba(34, 197, 94, 0.08);
  --border: rgba(74, 222, 128, 0.16);
  --border-gold: rgba(250, 204, 21, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --emerald: #22c55e;
  --emerald-bright: #4ade80;
  --emerald-deep: #15803d;
  --gold: #eab308;
  --gold-bright: #facc15;
  --gold-soft: rgba(234, 179, 8, 0.14);
  --amber: #f59e0b;
  --cyan: #38bdf8;
  --rose: #fb7185;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 42px rgba(34, 197, 94, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-w: 1180px;
}

[data-theme="light"] {
  --bg: #f6fbf8;
  --bg-elev: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-solid: #ffffff;
  --bg-soft: rgba(22, 163, 74, 0.08);
  --border: rgba(21, 128, 61, 0.16);
  --border-gold: rgba(202, 138, 4, 0.34);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --emerald: #16a34a;
  --emerald-bright: #15803d;
  --gold: #ca8a04;
  --gold-bright: #a16207;
  --gold-soft: rgba(234, 179, 8, 0.15);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 36px rgba(22, 163, 74, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", "Noto Sans Devanagari", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Space Grotesk", "Noto Sans Devanagari", "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

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

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

/* Ambient Background Glows */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px circle at 12% 10%, rgba(34, 197, 94, 0.13), transparent 65%),
    radial-gradient(540px circle at 88% 12%, rgba(234, 179, 8, 0.10), transparent 62%),
    radial-gradient(700px circle at 50% 92%, rgba(21, 128, 61, 0.08), transparent 68%);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sticky Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(5, 12, 9, 0.78);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .navbar {
  background: rgba(246, 251, 248, 0.85);
}

.nav-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(34, 197, 94, 0.35));
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  border: 1px solid var(--border-gold);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--emerald-bright);
}

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.icon-btn:hover {
  border-color: var(--emerald-bright);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  padding: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

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

.btn-sm {
  padding: 9px 15px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  color: #03150a;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.38);
}

.btn-gold {
  background: linear-gradient(135deg, #facc15 0%, #ca8a04 100%);
  color: #1c1402;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(234, 179, 8, 0.22);
}

.btn-gold:hover {
  box-shadow: 0 14px 30px rgba(234, 179, 8, 0.34);
}

.btn-outline {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--emerald-bright);
  background: var(--bg-soft);
}

.btn-disabled {
  pointer-events: none;
  cursor: default;
  opacity: 0.65;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 8px 0;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Section */
.hero {
  padding: 58px 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--emerald-bright);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 10px var(--emerald-bright);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.45rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(95deg, var(--emerald-bright) 0%, var(--gold-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.04rem;
  color: var(--text-muted);
  max-width: 590px;
  margin-bottom: 24px;
}

/* Contract Copy Box */
.contract-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 22px;
  max-width: 590px;
}

.contract-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.contract-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contract-addr {
  font-size: 0.86rem;
  color: var(--emerald-bright);
  word-break: break-all;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.trust-pill svg {
  color: var(--gold-bright);
  flex-shrink: 0;
}

/* Hero Right Telemetry Card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald-bright), var(--gold-bright));
}

.hero-emblem-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.hero-emblem {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 22px rgba(34, 197, 94, 0.35));
}

.telemetry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.telemetry-head h3 {
  font-size: 1.08rem;
  margin-bottom: 4px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--emerald-bright);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.live-badge.snapshot {
  background: var(--gold-soft);
  color: var(--gold-bright);
  border-color: var(--border-gold);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.metric-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.metric-val {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.metric-val.green {
  color: var(--emerald-bright);
}

.metric-val.gold {
  color: var(--gold-bright);
}

.telemetry-footer {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--emerald-bright);
}

.mini-links a:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* Generic Sections */
.section {
  padding: 64px 0;
  scroll-margin-top: 86px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* Audit Grid */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  min-width: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-bright);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--emerald-bright);
}

.pass-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: var(--emerald-bright);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.verify-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.verify-link:hover {
  text-decoration: underline;
}

/* Tokenomics Layout */
.tok-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.donut-svg-box {
  position: relative;
  width: 210px;
  height: 210px;
  flex-shrink: 0;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.donut-center strong {
  font-size: 1.35rem;
  color: var(--text);
}

.donut-center span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.legend-list {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
}

.legend-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  flex-shrink: 0;
}

.transparency-callout {
  background: var(--gold-soft);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 15px 16px;
}

.transparency-callout h4 {
  font-size: 0.92rem;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.transparency-callout p {
  font-size: 0.84rem;
  color: var(--text);
  margin: 0;
}

/* Specs Table */
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  font-size: 0.86rem;
}

.spec-key {
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.spec-val a {
  color: var(--emerald-bright);
}

.spec-val a:hover {
  text-decoration: underline;
}

/* How to Buy Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  position: relative;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  color: #041309;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.phase-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--emerald-bright);
}

.phase-badge.active {
  background: var(--gold-soft);
  border-color: var(--border-gold);
  color: var(--gold-bright);
}

.phase-badge.future {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.28);
  color: var(--text-muted);
}

.roadmap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 10px;
}

.roadmap-list li {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}

.roadmap-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--emerald-bright);
  font-weight: 700;
}

/* Community Grid */
.comm-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.comm-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Legal Disclaimer & Footer */
.disclaimer-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.disclaimer-box h4 {
  font-size: 0.95rem;
  color: var(--gold-bright);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.disclaimer-box p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.68;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 34px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--bg-card-solid);
  border: 1px solid var(--emerald-bright);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid, .tok-grid {
    grid-template-columns: 1fr;
  }
  .audit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid, .roadmap-grid, .comm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta-desktop {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .audit-grid, .steps-grid, .roadmap-grid, .comm-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .section {
    padding: 44px 0;
  }
}
