/* style.css — Coinbase Wallet Extension | Crypto | VARIANT A — Glassmorphism Premium */

/* ═══════════════════════════════════════════════════════
   CSS CUSTOM PROPERTIES
═══════════════════════════════════════════════════════ */
:root {
  --bg:        #060b18;
  --bg2:       #0a1020;
  --surface:   rgba(255,255,255,0.04);
  --surface-h: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-h:  rgba(255,255,255,0.18);
  --accent:    #2d6ff4;
  --accent2:   #7eb8ff;
  --glow:      rgba(45,111,244,0.35);
  --txt:       #e8eef8;
  --txt-m:     rgba(232,238,248,0.55);
  --txt-d:     rgba(232,238,248,0.35);
  --radius:    12px;
  --radius-sm: 8px;
  --trans:     .18s ease;
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

a {
  color: var(--accent2);
  text-decoration: none;
  transition: color var(--trans);
}

a:hover {
  color: var(--txt);
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--txt-m);
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

strong { color: var(--txt); font-weight: 600; }
em { color: var(--accent2); font-style: normal; }

/* ═══════════════════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(45,111,244,0.1);
  border: 1px solid rgba(45,111,244,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.section-title {
  margin-bottom: 10px;
}

.section-sub {
  color: var(--txt-m);
  max-width: 560px;
  margin-bottom: 40px;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--trans), transform var(--trans), box-shadow var(--trans);
  box-shadow: 0 4px 20px rgba(45,111,244,0.3);
  white-space: nowrap;
}

.btn-primary:hover {
  background: #3d7ef5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45,111,244,0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--txt);
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-h);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--trans), border-color var(--trans), transform var(--trans);
}

.btn-secondary:hover {
  background: var(--surface-h);
  border-color: var(--accent2);
  color: var(--txt);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════════════
   SITE HEADER
═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(6,11,24,0.6);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.site-header.scrolled {
  background: rgba(6,11,24,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--border-h);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(45,111,244,0.4);
}

.nav-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -0.02em;
}

.nav-logo-text span {
  color: var(--accent2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--txt-m);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--trans), background var(--trans);
}

.nav-links a:hover {
  color: var(--txt);
  background: var(--surface);
}

.nav-links a.active {
  color: var(--accent2);
}

.nav-cta {
  margin-left: auto;
}

.nav-cta .btn-primary {
  padding: 8px 18px;
  font-size: 0.84rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(45,111,244,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(126,184,255,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 20%, rgba(45,111,244,0.08) 0%, transparent 50%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,111,244,0.08);
  border: 1px solid rgba(45,111,244,0.22);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInUp 0.5s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.55s ease 0.05s both;
}

.hero-title strong {
  background: linear-gradient(135deg, #fff 0%, var(--accent2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--txt-m);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  animation: fadeInUp 0.65s ease 0.15s both;
}

/* Score widget — hero featured element */
.score-widget {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border-h);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 680px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,111,244,0.08), inset 0 1px 0 rgba(255,255,255,0.06);
}

.sw-score-block {
  text-align: center;
  flex-shrink: 0;
}

.sw-score-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--accent) calc(var(--score-pct,88) * 3.6deg), rgba(255,255,255,0.06) calc(var(--score-pct,88) * 3.6deg));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 8px;
  box-shadow: 0 0 20px rgba(45,111,244,0.3);
}

.sw-score-circle::before {
  content: '';
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--bg);
}

.sw-score-num {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.03em;
  line-height: 1;
}

.sw-score-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--txt-d);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sw-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

.sw-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.sw-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
}

.sw-meta-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.sw-meta-key {
  color: var(--txt-d);
  font-weight: 500;
  min-width: 80px;
}

.sw-meta-val {
  color: var(--txt);
  font-weight: 600;
}

.sw-meta-val.positive { color: #22c55e; }
.sw-meta-val.warning  { color: #f59e0b; }

/* DeFi stat panel in hero */
.defi-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-width: 680px;
  margin: 0 auto;
  animation: fadeInUp 0.75s ease 0.25s both;
}

.dp-item {
  padding: 18px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background var(--trans);
}

.dp-item:last-child { border-right: none; }

.dp-item:hover {
  background: var(--surface-h);
}

.dp-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 5px;
}

.dp-value.accent { color: var(--accent2); }

.dp-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--txt-d);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ═══════════════════════════════════════════════════════
   INTRO / BENTO GRID
═══════════════════════════════════════════════════════ */
#intro {
  padding: 64px 0;
}

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}

.ig {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: background var(--trans), border-color var(--trans), transform 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.5s ease both;
}

.ig:hover {
  background: var(--surface-h);
  border-color: var(--border-h);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(45,111,244,0.1);
}

.ig.w2 {
  grid-column: span 2;
}

.ig-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
  animation: float 4s ease-in-out infinite;
}

.ig:nth-child(2) .ig-icon { animation-delay: 0.5s; }
.ig:nth-child(3) .ig-icon { animation-delay: 1s; }
.ig:nth-child(4) .ig-icon { animation-delay: 1.5s; }
.ig:nth-child(5) .ig-icon { animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.ig h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--txt);
}

.ig p {
  font-size: 0.88rem;
  color: var(--txt-m);
  margin: 0;
  line-height: 1.6;
}

.ig.w2 .ig-headline {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.ig-stat-row {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.ig-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-stat-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: -0.03em;
}

.ig-stat-lbl {
  font-size: 0.72rem;
  color: var(--txt-d);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ═══════════════════════════════════════════════════════
   KEY STATS GRID
═══════════════════════════════════════════════════════ */
#key-stats {
  padding: 64px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color var(--trans);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,111,244,0.12);
  border-color: rgba(45,111,244,0.2);
}

.stat-card:hover::before { opacity: 1; }

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-icon {
  font-size: 1.4rem;
}

.stat-card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(45,111,244,0.12);
  color: var(--accent2);
  border: 1px solid rgba(45,111,244,0.18);
}

.stat-card-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--txt);
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat-card-label {
  font-size: 0.82rem;
  color: var(--txt-m);
  font-weight: 500;
}

.stat-card-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.stat-card-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  transition: width 1s ease;
}

/* ═══════════════════════════════════════════════════════
   TICKER STRIP
═══════════════════════════════════════════════════════ */
.ticker-section {
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.ticker-wrap {
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 60px, black calc(100% - 60px), transparent);
}

.ticker {
  display: flex;
  gap: 0;
  animation: ticker-scroll 28s infinite linear;
  width: max-content;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--txt-m);
  transition: color var(--trans);
}

.ticker-item:hover { color: var(--txt); }

.ticker-item-name {
  font-weight: 700;
  color: var(--txt);
  font-size: 0.85rem;
}

.ticker-up   { color: #22c55e; font-weight: 600; }
.ticker-down { color: #f43f5e; font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════════════════ */
#features {
  padding: 72px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background var(--trans), border-color var(--trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(45,111,244,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(45,111,244,0.15);
  background: var(--surface-h);
  border-color: rgba(45,111,244,0.2);
}

.feature-card:hover::after { opacity: 1; }

.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  animation: float 5s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon { animation-delay: 0.8s; }
.feature-card:nth-child(3) .feature-icon { animation-delay: 1.6s; }
.feature-card:nth-child(4) .feature-icon { animation-delay: 0.4s; }
.feature-card:nth-child(5) .feature-icon { animation-delay: 1.2s; }
.feature-card:nth-child(6) .feature-icon { animation-delay: 2.0s; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--txt);
}

.feature-card p {
  font-size: 0.87rem;
  color: var(--txt-m);
  margin: 0;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   PROS & CONS
═══════════════════════════════════════════════════════ */
#pros-cons {
  padding: 72px 0;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pros-box,
.cons-box {
  background