/* ═══════════════════════════════════════════════════════════════
   ClawDroid — $CLAWD Website
   Crimson-red dark theme with glassmorphism + micro-animations
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red:        #CC0000;
  --red-light:  #FF3333;
  --red-glow:   #FF000040;
  --red-dim:    #660000;
  --bg:         #0A0505;
  --bg-card:    #140A0Acc;
  --bg-card2:   #1E0F0Fcc;
  --surface:    #1A0E0E;
  --text:       #F5E0E0;
  --text-dim:   #A08080;
  --border:     #3A1A1A;
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  background: var(--bg);
}

a { color: var(--red-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: #FF6666; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Particle Canvas ──────────────────────────────────────── */
#particles {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  opacity: .4;
}

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: #0A0505cc;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: #0A0505ee;
  box-shadow: 0 4px 40px #CC000020;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; font-size: 1.1rem;
}
.nav-logo img { border-radius: 50%; }
.nav-ticker {
  font-size: .75rem; font-weight: 600;
  color: var(--red); background: #CC000020;
  padding: 2px 8px; border-radius: 20px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-dim); font-size: .9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: var(--transition);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: .9rem;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); border: none; text-decoration: none;
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-light); color: #fff;
  box-shadow: 0 8px 40px #FF000050;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--red); color: var(--red-light);
  background: #CC000010;
}
.btn-icon { font-size: 1.1em; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  z-index: 1;
}
.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #CC000025 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: translate(-50%,-50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.15); }
}
.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red-light); background: #CC000018;
  border: 1px solid #CC000040;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 16px;
}
.hero-logo {
  width: 150px; height: 150px;
  border-radius: 50%;
  box-shadow: 0 0 60px var(--red-glow), 0 0 120px #CC000015;
  margin-bottom: 16px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 4px;
}
.text-red { color: var(--red); }
.hero-ticker {
  font-size: 1.4rem; font-weight: 700;
  color: var(--red); letter-spacing: .05em;
  margin-bottom: 12px;
}
.hero-tagline {
  font-size: 1.15rem; color: var(--text-dim);
  max-width: 540px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  margin-top: 48px;
  padding: 20px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
}
.stat-value { display: block; font-size: 1.5rem; font-weight: 800; color: var(--text); }
.stat-label { font-size: .75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  animation: fade-bounce 2s ease-in-out infinite;
}
.scroll-arrow {
  width: 12px; height: 12px;
  border-right: 2px solid var(--text-dim);
  border-bottom: 2px solid var(--text-dim);
  transform: rotate(45deg);
}
@keyframes fade-bounce {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 100px 0;
}
.section-dark { background: var(--surface); }
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-badge {
  display: inline-block;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); background: #CC000015;
  border: 1px solid #CC000030;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 1.05rem; color: var(--text-dim);
  max-width: 560px; margin: 0 auto;
}

/* ── Features Grid ────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px #CC000015;
}
.feature-icon {
  font-size: 2rem; margin-bottom: 16px;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: #CC000015; border-radius: 14px;
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p { color: var(--text-dim); font-size: .92rem; }

/* ── Token ────────────────────────────────────────────────── */
.token-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  align-items: start;
}
.token-card-main {
  background: var(--bg-card);
  border: 1px solid var(--red-dim);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 60px #CC000012;
}
.token-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  box-shadow: 0 0 40px var(--red-glow);
  margin-bottom: 16px;
}
.token-card-main h3 {
  font-size: 2rem; font-weight: 900;
  color: var(--red); margin-bottom: 4px;
}
.token-tagline { color: var(--text-dim); font-size: .9rem; margin-bottom: 20px; }
.token-meta {
  background: #0A050580; border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 16px;
}
.token-meta-row {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px solid #1A0E0E;
}
.token-meta-row:last-child { border: none; }
.token-meta-label { color: var(--text-dim); font-size: .85rem; }
.token-meta-value { font-weight: 600; font-size: .85rem; }
.token-ca {
  display: flex; align-items: center; gap: 8px;
  background: #0A050580; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .8rem;
  word-break: break-all;
}
.token-ca-label { color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.token-ca-address { color: var(--red-light); font-family: var(--mono); flex: 1; }
.btn-copy {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: 4px; opacity: .6;
  transition: opacity var(--transition);
}
.btn-copy:hover { opacity: 1; }
.token-info-cards { display: flex; flex-direction: column; gap: 16px; }
.token-info-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.token-info-card:hover {
  border-color: var(--red-dim);
  transform: translateX(4px);
}
.token-info-icon { font-size: 1.5rem; margin-bottom: 10px; }
.token-info-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.token-info-card p { color: var(--text-dim); font-size: .88rem; }

/* ── Deploy ───────────────────────────────────────────────── */
.deploy-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.deploy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}
.deploy-card:hover {
  border-color: var(--red-dim);
  box-shadow: 0 8px 32px #CC000012;
}
.deploy-card-wide { grid-column: 1 / -1; }
.deploy-step {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff;
  font-weight: 800; font-size: .85rem;
  border-radius: 50%; margin-bottom: 14px;
}
.deploy-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.deploy-card p { color: var(--text-dim); font-size: .9rem; margin-bottom: 16px; }
.deploy-card code { color: var(--red-light); font-family: var(--mono); font-size: .85em; }

.code-block {
  background: #0A0505; border: 1px solid #2A1515;
  border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: 12px;
}
.code-header {
  padding: 8px 14px;
  background: #1A0E0E;
  border-bottom: 1px solid #2A1515;
  font-size: .72rem; color: var(--text-dim); font-weight: 600;
}
.code-block pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── How-to Details ───────────────────────────────────────── */
.howto-detail {
  margin-top: 4px;
}
.howto-detail ul {
  list-style: none; padding: 0;
}
.howto-detail li {
  position: relative;
  padding: 6px 0 6px 20px;
  font-size: .9rem; color: var(--text-dim);
  line-height: 1.5;
}
.howto-detail li::before {
  content: '›';
  position: absolute; left: 0; top: 6px;
  color: var(--red); font-weight: 700; font-size: 1.1rem;
}
.howto-detail li strong { color: var(--text); font-weight: 600; }
.howto-detail li a { color: var(--red-light); text-decoration: underline; text-underline-offset: 2px; }
.howto-detail li a:hover { color: #FF6666; }
.howto-detail li code {
  background: #CC000015; color: var(--red-light);
  padding: 1px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: .82em;
}
.howto-detail li em { color: var(--text); font-style: italic; }
.howto-note {
  margin-top: 10px; padding: 10px 14px;
  background: #CC000010; border-left: 3px solid var(--red);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: .82rem; color: var(--text-dim);
}

/* ── Specs Grid ───────────────────────────────────────────── */
.specs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-top: 16px;
}
.spec-item {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  background: #0A050580; border-radius: var(--radius-sm);
  border: 1px solid #1A0E0E;
}
.spec-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--red);
}
.spec-value {
  font-size: .88rem; font-weight: 500; color: var(--text);
}

/* ── Links Grid ───────────────────────────────────────────── */
.links-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.link-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
  color: var(--text);
}
.link-card:hover {
  border-color: var(--red-dim);
  transform: translateY(-4px);
  box-shadow: 0 12px 48px #CC000015;
  color: var(--text);
}
.link-icon { font-size: 2rem; margin-bottom: 12px; }
.link-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.link-card p { color: var(--text-dim); font-size: .82rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  background: var(--bg);
}
.footer-inner { text-align: center; }
.footer-brand {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.footer-brand img { border-radius: 50%; }
.footer-name { font-weight: 700; font-size: 1.1rem; display: block; }
.footer-ticker { color: var(--red); font-size: .8rem; font-weight: 600; }
.footer-tagline { color: var(--text-dim); font-size: .9rem; margin-bottom: 20px; }
.footer-links {
  display: flex; gap: 24px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-links a { color: var(--text-dim); font-size: .85rem; font-weight: 500; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: #503030; font-size: .75rem; }

/* ── Animate-on-scroll ────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .token-grid { grid-template-columns: 1fr; }
  .deploy-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; justify-content: center;
    background: #0A0505f5; backdrop-filter: blur(24px);
    padding: 40px; gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--border);
    z-index: 200;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; color: var(--text); }
  .nav-toggle { display: block; z-index: 201; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }
  .features-grid { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2.6rem; }
}

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--red); color: #fff; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }
