/* ============================================================
   Indium — Unified Design System
   indium.ad
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cal+Sans&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --white:         #FFFFFF;
  --off-white:     #F7F9FC;
  --indigo:        #4B52D4;
  --indigo-light:  #ECEEFF;
  --charcoal:      #1A1D2E;
  --mid:           #6B7280;
  --border:        rgba(0,0,0,0.07);
  --border-strong: rgba(0,0,0,0.12);
  /* Legacy aliases */
  --bg-light:      #F4F7FC;
  --accent-dark:   #3D4A5C;
  --accent-indigo: #4B52D4;
  --text-main:     #1A1D2E;
  --text-light:    #6B7280;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--white); color: var(--charcoal); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }

h1, h2, h3, .page-title, .hero-h1, .font-display { font-family: 'Cal Sans', 'Inter', sans-serif; }
.balance-amount, .balance-big, .stat-value, .nft-score { font-family: 'Inter', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ── Background ── */
.bg-wash { position: fixed; inset: 0; z-index: 0; background: #FFFFFF; overflow: hidden; pointer-events: none; }
.bg-wash::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background:
    radial-gradient(ellipse 55% 40% at 25% 25%, rgba(180,200,224,0.60) 0%, transparent 55%),
    radial-gradient(ellipse 50% 38% at 75% 20%, rgba(196,212,228,0.45) 0%, transparent 50%),
    radial-gradient(ellipse 48% 36% at 70% 75%, rgba(164,188,212,0.50) 0%, transparent 52%),
    radial-gradient(ellipse 45% 35% at 25% 72%, rgba(180,196,216,0.40) 0%, transparent 50%);
  filter: blur(56px); animation: washRotate 40s linear infinite; transform-origin: 50% 50%;
}
@keyframes washRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.swirl-rotate { position: fixed; top: -50%; left: -50%; width: 200%; height: 200%; z-index: -1;
  background: radial-gradient(circle at 30% 30%, rgba(200,216,232,0.45) 0%, transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(184,200,220,0.35) 0%, transparent 40%),
              radial-gradient(circle at 70% 30%, #F0F4F8 0%, transparent 40%),
              radial-gradient(circle at 30% 70%, #E8EEF4 0%, transparent 40%);
  filter: blur(60px); animation: rotateSwirl 25s linear infinite; pointer-events: none; }
@keyframes rotateSwirl { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Page shell ── */
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

/* ── Nav ── */
nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 56px;
  background: rgba(255,255,255,0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-coin { width: 30px; height: 30px; border-radius: 50%; background: var(--charcoal); display: flex; align-items: center; justify-content: center; color: white; font-size: 13px; font-weight: 700; }
.nav-name { font-family: 'Cal Sans', sans-serif; font-size: 20px; color: var(--charcoal); letter-spacing: -0.02em; }
.nav-sep { color: var(--mid); font-size: 14px; }
.nav-page { font-size: 15px; color: var(--mid); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 15px; font-weight: 500; color: var(--mid); text-decoration: none; padding: 7px 14px; border-radius: 8px; transition: all 0.15s; }
.nav-link:hover { color: var(--charcoal); background: var(--off-white); }
.nav-cta { font-size: 15px; font-weight: 600; color: white; background: var(--charcoal); text-decoration: none; padding: 8px 20px; border-radius: 8px; transition: all 0.2s; margin-left: 8px; }
.nav-cta:hover { background: var(--indigo); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(75,82,212,0.25); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); padding: 16px 56px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.9); flex-shrink: 0; }
.footer-copy { font-size: 13px; color: var(--mid); }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-link { font-size: 13px; color: var(--mid); text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: var(--charcoal); }

/* ── Hero ── */
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 96px 32px 80px; }
.hero h1 { font-size: clamp(66px, 15vw, 138px); line-height: 0.88; letter-spacing: 0em; color: var(--charcoal); margin-bottom: 20px; animation: fadeUp 0.6s ease both; }
.rule { width: 44px; height: 3px; background: var(--indigo); border-radius: 2px; margin: 0 auto 24px; animation: ruleIn 0.5s 0.18s ease both; }
.hero h2 { font-family: 'Inter', sans-serif; font-size: clamp(17px, 2.4vw, 24px); font-weight: 300; letter-spacing: -0.01em; color: var(--charcoal); margin-bottom: 14px; line-height: 1.3; white-space: nowrap; animation: fadeUp 0.6s 0.12s ease both; }
.subline { font-size: 16.5px; color: var(--mid); line-height: 1.75; max-width: 520px; margin: 0 auto 60px; animation: fadeUp 0.6s 0.20s ease both; }

/* ── Home cards ── */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 580px; margin: 0 auto; animation: fadeUp 0.6s 0.28s ease both; }
.card { display: block; text-decoration: none; padding: 26px 52px 24px 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--white); transition: all 0.22s ease; text-align: left; position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(75,82,212,0.04) 0%, transparent 55%); opacity: 0; transition: opacity 0.22s; pointer-events: none; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); border-color: rgba(75,82,212,0.18); }
.card:hover::after { opacity: 1; }
.card-title { font-size: 16.5px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; letter-spacing: -0.01em; }
.card-desc { font-size: 14px; color: var(--mid); line-height: 1.55; }
.card-arrow { position: absolute; top: 26px; right: 22px; font-size: 16px; color: rgba(107,114,128,0.4); transition: all 0.2s; }
.card:hover .card-arrow { color: var(--indigo); transform: translate(2px, -2px); }
.card-dark { background: var(--charcoal); border-color: transparent; box-shadow: 0 4px 24px rgba(26,29,46,0.14); }
.card-dark::after { background: linear-gradient(135deg, rgba(75,82,212,0.25) 0%, transparent 55%); }
.card-dark .card-title { color: #fff; }
.card-dark .card-desc { color: rgba(255,255,255,0.45); }
.card-dark .card-arrow { color: rgba(255,255,255,0.28); }
.card-dark:hover { box-shadow: 0 20px 56px rgba(26,29,46,0.28); border-color: transparent; }
.card-dark:hover .card-arrow { color: rgba(255,255,255,0.9); }
.new-user { margin-top: 28px; animation: fadeUp 0.6s 0.36s ease both; }

/* ── Inner page layout ── */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 48px 56px; flex: 1; }
.page-wrap-narrow { max-width: 760px; margin: 0 auto; padding: 48px 56px; flex: 1; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-title { font-size: 28px; color: var(--charcoal); margin-bottom: 4px; }
.page-sub { font-size: 15px; color: var(--mid); }

/* ── Glass cards ── */
.glass-card { background: rgba(255,255,255,0.6); border: 1px solid var(--border); border-radius: 14px; }
.glass-card-static { background: rgba(255,255,255,0.75); border: 1px solid var(--border); border-radius: 14px; }
.glass-form { background: rgba(255,255,255,0.8); border: 1px solid var(--border-strong); border-radius: 14px; margin-bottom: 24px; }

/* ── Stats ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat-card { background: rgba(255,255,255,0.75); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.stat-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }
.stat-value { font-size: 22px; font-weight: 700; color: var(--charcoal); font-variant-numeric: tabular-nums; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px; border: none; border-radius: 9px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'Inter', sans-serif; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--charcoal); color: white; }
.btn-primary:hover { background: var(--indigo); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(75,82,212,0.2); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary { background: var(--off-white); border: 1px solid var(--border-strong); color: var(--charcoal); }
.btn-secondary:hover { background: white; }
.btn-danger { background: rgba(220,38,38,0.06); color: #dc2626; border: 1px solid rgba(220,38,38,0.2); }
.btn-danger:hover { background: rgba(220,38,38,0.12); }
.btn-success { background: rgba(61,74,92,0.08); color: var(--charcoal); border: 1px solid rgba(61,74,92,0.2); }
.btn-success:hover { background: rgba(61,74,92,0.15); }
.btn-sm { padding: 6px 12px; font-size: 14px; border-radius: 7px; }
.btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 10px; }

/* ── Inputs ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.input-label { font-size: 14px; font-weight: 500; color: var(--mid); }
.input-glass { background: white; border: 1px solid var(--border-strong); border-radius: 9px; padding: 9px 14px; font-size: 15px; color: var(--charcoal); width: 100%; outline: none; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.input-glass:focus { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(75,82,212,0.08); }
select.input-glass { cursor: pointer; }

/* ── Tabs ── */
.tab-row { display: flex; gap: 4px; background: rgba(255,255,255,0.5); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 24px; }
.tab-btn { flex: 1; padding: 8px 14px; border-radius: 9px; font-size: 15px; font-weight: 500; border: none; cursor: pointer; transition: all 0.15s; background: transparent; color: var(--mid); font-family: 'Inter', sans-serif; }
.tab-btn.active { background: white; color: var(--charcoal); font-weight: 600; box-shadow: 0 1px 6px rgba(0,0,0,0.08); }
.tab-btn:hover:not(.active) { background: rgba(255,255,255,0.5); color: var(--charcoal); }

/* ── Tags ── */
.kw-tag { display: inline-block; background: var(--indigo-light); color: var(--indigo); border: 1px solid rgba(75,82,212,0.15); font-size: 11px; padding: 2px 10px; border-radius: 99px; font-weight: 500; }
.preset-btn { padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; border: 1px solid var(--border-strong); background: white; color: var(--mid); cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; }
.preset-btn.active, .preset-btn:hover { background: var(--charcoal); color: white; border-color: transparent; }

/* ── Status ── */
.status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.active { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }
.status-dot.paused { background: var(--mid); }
.badge { display: inline-block; text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; background: var(--off-white); padding: 3px 10px; border-radius: 99px; color: var(--mid); font-weight: 600; border: 1px solid var(--border-strong); }

/* ── Wallet ── */
.wallet-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.8); border: 1px solid var(--border-strong); border-radius: 99px; padding: 5px 14px; font-family: monospace; font-size: 12px; color: var(--charcoal); }
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(34,197,94,0.2); }

/* ── Profile / banner ── */
.profile-banner { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; margin-bottom: 24px; }
.balance-big { font-size: 32px; font-weight: 700; color: var(--charcoal); line-height: 1; font-variant-numeric: tabular-nums; }
.profile-field { background: white; border: 1px solid var(--border-strong); border-radius: 8px; padding: 8px 12px; font-size: 13px; color: var(--charcoal); word-break: break-all; }

/* ── Spinner ── */
.spin { width: 24px; height: 24px; border: 2px solid rgba(75,82,212,0.15); border-top-color: var(--indigo); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Alerts ── */
.alert-warning { background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.25); border-radius: 12px; padding: 16px 20px; }
.alert-error { background: rgba(220,38,38,0.05); border: 1px solid rgba(220,38,38,0.15); border-radius: 10px; padding: 12px 16px; color: #dc2626; font-size: 13px; }

/* ── Campaign row ── */
.campaign-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.campaign-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--mid); margin: 8px 0; }
.campaign-meta strong { color: var(--charcoal); }

/* ── Login ── */
.login-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.login-card { background: rgba(255,255,255,0.85); border: 1px solid var(--border-strong); border-radius: 18px; padding: 40px 36px; width: 100%; max-width: 400px; box-shadow: 0 8px 40px rgba(0,0,0,0.06); }
.login-title { font-family: 'Cal Sans', sans-serif; font-size: 24px; color: var(--charcoal); margin-bottom: 6px; }
.login-sub { font-size: 15px; color: var(--mid); margin-bottom: 28px; line-height: 1.5; }
.login-note { font-size: 13px; color: var(--mid); margin-top: 16px; text-align: center; line-height: 1.5; }

/* ── Google button ── */
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 20px; background: white; border: 1px solid var(--border-strong); border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--charcoal); cursor: pointer; transition: all 0.15s; font-family: 'Inter', sans-serif; text-decoration: none; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.btn-google:hover { background: var(--off-white); box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }
.btn-google svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Section label ── */
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); margin-bottom: 8px; }

/* ── NFT grid ── */
.nft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.nft-score { font-size: 28px; font-weight: 700; color: var(--indigo); font-variant-numeric: tabular-nums; }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ruleIn { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

/* ── Helpers ── */
.flex { display: flex; } .flex-col { flex-direction: column; } .flex-1 { flex: 1; } .flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.mt-2 { margin-top: 8px; }
.p-4 { padding: 16px; } .p-5 { padding: 20px; } .p-6 { padding: 24px; }
.text-xs { font-size: 13px; } .text-sm { font-size: 15px; } .text-light { color: var(--mid); } .text-accent { color: var(--indigo); }
.font-bold { font-weight: 700; } .font-mono { font-family: monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.empty { text-align: center; padding: 40px 20px; color: var(--mid); font-size: 13px; }
.empty-icon { font-size: 32px; margin-bottom: 10px; }
.kw-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  nav { padding: 18px 24px; }
  .nav-links { display: none; }
  footer { padding: 16px 24px; }
  .footer-links { display: none; }
  .hero { padding: 64px 24px 56px; }
  .hero h1 { font-size: 72px; }
  .hero h2 { white-space: normal; font-size: 17px; }
  .cards { grid-template-columns: 1fr; max-width: 340px; }
  .page-wrap, .page-wrap-narrow { padding: 32px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; gap: 12px; }
}
