

/* ── Design tokens ─────────────────────────────────────────────── */
:root {
  --primary: #0b1628;
  --primary-deep: #060d18;
  --violet-soft: #4976FF;   /* unified to buidl blue */
  --teal-deep: #111417;     /* email section bg */
  --teal-mid: #1a2132;      /* email card bg */
  --canvas: #0C0E10;        /* site-wide dark bg (buidl) */
  --canvas-soft: #111417;   /* elevated surface */
  --hairline: #1f2428;      /* dark border */
  --hairline-dark: #2a3440; /* border on dark */
  --ink: #F0EFEE;           /* near-white text */
  --ink-mute: #AAACAE;      /* buidl gray */
  --ink-faint: #6e7073;     /* dim gray */
  --on-primary: #ffffff;
  --on-dark-mute: rgba(255,255,255,0.72);
  --on-dark-faint: rgba(255,255,255,0.5);
  /* buidl design system */
  --buidl-blue: #4976FF;
  --buidl-gray: #AAACAE;
  --mono: 'Source Code Pro', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter var', 'Inter', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
  font-feature-settings: 'cv01','cv02','cv03','cv04';
  font-variation-settings: "wght" 460;
}
a { color: inherit; text-decoration: none; }
section { position: relative; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ── Download buttons (app-store style) ─────────────────────────── */
.cw-downloads { display: flex; gap: 12px; flex-wrap: wrap; }
.cw-download-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--canvas-soft);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ink); padding: 14px 24px;
  border-radius: 10px; transition: border-color 0.2s, background 0.2s;
  min-width: 175px;
}
.cw-download-btn:hover { border-color: rgba(73,118,255,0.4); background: rgba(73,118,255,0.06); }
.cw-download-btn svg { flex-shrink: 0; }
.cw-download-btn-text { display: flex; flex-direction: column; line-height: 1.2; }
.cw-download-btn-text .small {
  font-size: 10px; color: var(--ink-mute); font-family: var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.cw-download-btn-text .big { font-size: 16px; font-variation-settings: "wght" 700; letter-spacing: -0.01em; }

/* ── HERO ───────────────────────────────────────────────────────── */
.cw-hero { padding: 140px 0 64px; overflow: hidden; background: #000000; }
.cw-hero-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 640px;
  background: radial-gradient(ellipse, rgba(73,118,255,0.12) 0%, transparent 65%);
  pointer-events: none;
}
.cw-hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 10%, transparent 100%);
}
.cw-hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  column-gap: 72px;
  align-items: center;
}
.cw-hero-text { max-width: 520px; }
.cw-hero .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cw-hero .btn-secondary {
  color: var(--on-primary);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 9999px;
}
.cw-hero .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.4); }
.cw-hero-visual {
  display: flex; justify-content: flex-end; align-self: center;
}
.cw-eyebrow {
  font-family: inherit; font-variation-settings: "wght" 540;
  font-size: 12px; color: var(--ink-mute);
  letter-spacing: 0; text-transform: none;
  margin-bottom: 16px;
}
.cw-hero h1 {
  font-family: 'Tektur', 'Inter var', sans-serif;
  font-size: clamp(38px, 4.5vw, 52px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px; color: #fff;
}
.cw-hero h1 em { font-style: normal; color: var(--buidl-blue); }
.cw-hero-sub {
  font-size: 17px; color: var(--ink-mute); line-height: 1.7;
  max-width: 500px; margin-bottom: 0;
}

/* ── Phone visual ───────────────────────────────────────────────── */
.cw-phone-img {
  width: 100%; max-width: 220px;
  margin-left: auto; display: block;
  transform: perspective(900px) rotateY(-14deg) rotateX(3deg) translateX(-60px) scale(0.9);
  transform-origin: right center;
  filter: drop-shadow(0 24px 48px rgba(73,118,255,0.22)) drop-shadow(0 6px 18px rgba(0,0,0,0.65));
}

/* ── FEATURES ───────────────────────────────────────────────────── */
.cw-features { padding: 108px 0; }
.cw-feature {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
  padding: 128px 0;
}
.cw-feature.reverse .cw-feature-text { order: -1; }
.cw-feature-text h3 {
  font-family: 'Tektur', 'Inter var', sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 800; color: #fff;
  line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 20px;
}
.cw-feature-text p {
  font-size: 17px; color: var(--ink-mute);
  line-height: 1.75; max-width: 440px;
}
.cw-feature-visual {
  height: 420px; border-radius: 20px;
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline);
}
.cw-feature-visual::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
}
.cw-feature-visual::after {
  content: attr(data-label);
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono); font-size: 12px;
  color: rgba(255,255,255,0.1); letter-spacing: 0.22em; text-transform: uppercase;
}

/* Feature visual tones — blue-family */
.cw-tone-collector   { background: radial-gradient(circle at 50% 50%, #1a2040 0%, #080c1c 100%); }
.cw-tone-gas         { background: radial-gradient(circle at 50% 50%, #0e1c3e 0%, #070a12 100%); }
.cw-tone-import      { background: radial-gradient(circle at 50% 50%, #181e3a 0%, #08090e 100%); }
.cw-tone-seed        { background: radial-gradient(circle at 50% 50%, #1c1a3e 0%, #090810 100%); }
.cw-tone-transaction { background: radial-gradient(circle at 50% 50%, #0f1636 0%, #060810 100%); }

/* ── Image-based feature visuals ───────────────────────────────── */
.cw-feat-img {
  background: radial-gradient(circle at 50% 50%, #0e1c3e 0%, #070a12 100%);
  display: flex; align-items: center; justify-content: center;
}
.cw-feat-img::before { display: none; }
.cw-feat-img::after  { display: none; }
.cw-feat-img img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}

/* ── Bare image — no box, no background, scaled up ─────────────── */
.cw-feat-bare {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible;
}
.cw-feat-bare img {
  transform: scale(1.25);
  transform-origin: center center;
  object-fit: contain;
}

/* ── NFT Collection UI (Collector visual) ───────────────────────── */
.cw-tone-collector::after { display: none; } /* suppress placeholder label */
.nft-ui {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 28px 28px 24px; gap: 14px; z-index: 1;
}
.nft-header {
  display: flex; justify-content: space-between; align-items: center;
}
.nft-label-tag {
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.38); letter-spacing: 0.12em; text-transform: uppercase;
}
.nft-count-tag {
  font-family: var(--mono); font-size: 10px;
  color: var(--buidl-blue); letter-spacing: 0.06em;
  background: rgba(73,118,255,0.1); border: 1px solid rgba(73,118,255,0.2);
  padding: 2px 8px; border-radius: 4px;
}
.nft-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; flex: 1; min-height: 0;
}
.nft-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  display: flex; flex-direction: column;
  background: rgba(0,0,0,0.25);
}
.nft-art {
  flex: 1; min-height: 0; position: relative; overflow: hidden;
}
.nft-meta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-family: var(--mono); font-size: 10px;
  color: rgba(255,255,255,0.32);
}
.nft-meta .nft-price { color: rgba(255,255,255,0.72); }

/* Card art — unique CSS-only artwork per card */
.nft-c1 .nft-art {
  background: radial-gradient(circle at 35% 65%, rgba(73,118,255,0.55) 0%, rgba(110,60,220,0.25) 55%, transparent 80%);
}
.nft-c1 .nft-art::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg);
  width: 38%; height: 38%;
  border: 2px solid rgba(73,118,255,0.65);
  border-radius: 5px;
  box-shadow: 0 0 16px rgba(73,118,255,0.3), inset 0 0 16px rgba(73,118,255,0.1);
}

.nft-c2 .nft-art {
  background: radial-gradient(circle at 62% 38%, rgba(100,150,255,0.5) 0%, rgba(40,70,200,0.2) 55%, transparent 85%);
}
.nft-c2 .nft-art::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42%; height: 42%;
  background: rgba(73,118,255,0.18);
  border-radius: 50%;
  border: 1.5px solid rgba(100,150,255,0.55);
  box-shadow: 0 0 20px rgba(73,118,255,0.35);
}

.nft-c3 .nft-art {
  background: linear-gradient(145deg, rgba(18,28,58,1) 0%, rgba(35,55,110,0.7) 100%);
}
.nft-c3 .nft-art::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(73,118,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73,118,255,0.12) 1px, transparent 1px);
  background-size: 14px 14px;
}
.nft-c3 .nft-art::after {
  content: ''; position: absolute;
  left: 50%; bottom: 28%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 18% solid transparent;
  border-right: 18% solid transparent;
  border-bottom: calc(18% * 1.73) solid rgba(73,118,255,0.6);
  filter: drop-shadow(0 0 6px rgba(73,118,255,0.5));
}

.nft-c4 .nft-art {
  background: radial-gradient(ellipse at 68% 32%, rgba(140,90,255,0.45) 0%, rgba(73,118,255,0.2) 55%, transparent 85%);
}
.nft-c4 .nft-art::after {
  content: ''; position: absolute;
  bottom: 30%; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(140,90,255,0.9), transparent);
  box-shadow:
    0 -10px 0 rgba(140,90,255,0.3),
    0 -20px 0 rgba(73,118,255,0.15);
}

.nft-floor {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
}
.nft-floor-label { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,0.35); letter-spacing: 0.08em; text-transform: uppercase; }
.nft-floor-val { font-family: var(--mono); font-size: 12px; color: var(--buidl-blue); font-weight: 600; }
.nft-floor-change { font-family: var(--mono); font-size: 10px; color: rgba(100,200,130,0.8); letter-spacing: 0.04em; }

/* ── DOWNLOAD CTA BAND ──────────────────────────────────────────── */
.cw-cta-band {
  padding: 128px 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
  position: relative; overflow: hidden;
}
.cw-cta-glow {
  position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(73,118,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cw-cta-inner { position: relative; z-index: 1; }
.cw-cta-inner h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800; color: #fff;
  letter-spacing: -0.03em; line-height: 1.1;
  max-width: 700px; margin: 0 auto 20px;
}
.cw-cta-inner h2 em { font-style: normal; color: var(--buidl-blue); }
.cw-cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────────────────────── */
footer { background: var(--canvas-soft); border-top: 1px solid var(--hairline-dark); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo { font-variation-settings: "wght" 600; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.footer-brand-logo svg path { fill: var(--ink-mute); }
.footer-col h4 { font-variation-settings: "wght" 600; font-size: 13px; color: var(--ink); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }
.footer-col li { list-style: none; }
.footer-col a { font-variation-settings: "wght" 460; font-size: 14px; color: var(--ink-mute); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--hairline-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-copy { font-variation-settings: "wght" 460; font-size: 13px; color: var(--ink-mute); }
.footer-email { font-variation-settings: "wght" 460; font-size: 13px; color: var(--ink-mute); transition: color 0.2s; }
.footer-email:hover { color: var(--ink); }
.footer-socials { display: flex; gap: 16px; }
.footer-social { color: var(--ink-mute); transition: color 0.2s; display: flex; align-items: center; }
.footer-social:hover { color: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .cw-hero { padding: 100px 0 60px; }
  .cw-hero-inner { grid-template-columns: 1fr; row-gap: 32px; }
  /* Visual-first: phone appears above text on mobile */
  .cw-hero-visual { justify-content: center; order: -1; }
  .cw-phone-img { max-width: 160px; transform: none; margin: 0 auto; }
  .cw-hero h1 { font-size: clamp(30px, 9vw, 44px); }
  .cw-feature {
    grid-template-columns: 1fr;
    row-gap: 72px; padding: 48px 0;
  }
  /* All cards: text first, image second */
  .cw-feature .cw-feature-text  { order: -1; }
  .cw-feature .cw-feature-visual { order:  1; }
  .cw-feature.reverse .cw-feature-text { order: -1; }
  .cw-feature-visual { height: 240px; }
  /* Bare images: auto-height, 1.5x scale — clip horizontal at section level */
  .cw-features { overflow-x: clip; }
  .cw-feat-bare { height: auto !important; overflow: visible; }
  .cw-feat-bare img { transform: scale(1.5); width: 100%; height: auto; max-height: 280px; }
  .cw-feature-text p { max-width: 100%; margin-bottom: 24px; }
  .cw-cta-band { padding: 108px 0; }
  .cw-downloads { flex-direction: column; }
  footer { padding: 48px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

