/* =========================================================
   CRYPTO BRO — organic minimal theme
   ========================================================= */

:root {
  --bg: #f5f1e8;          /* warm cream */
  --bg-alt: #efe9de;      /* slightly deeper cream for alt bands */
  --surface: #faf6ed;     /* card surface */
  --surface-2: #f1ebe0;   /* inset surface */
  --border: #e4dccb;      /* warm neutral border */
  --border-strong: #d4c9b2;
  --text: #2a2822;        /* warm charcoal */
  --text-dim: #6a6458;    /* warm mid-gray */
  --muted: #a39d91;       /* warm soft gray */
  --accent: #8bba7a;      /* sage green */
  --accent-dark: #5e8f58; /* deeper sage */
  --accent-soft: #d7e8ce; /* pale sage bg */
  --accent-ring: rgba(139, 186, 122, 0.25);
  --sell: #c47866;        /* warm terracotta */
  --sell-soft: #efd9d1;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(42, 40, 34, 0.04), 0 2px 6px rgba(42, 40, 34, 0.04);
  --shadow: 0 4px 12px rgba(42, 40, 34, 0.06), 0 12px 32px rgba(42, 40, 34, 0.06);
  --shadow-lg: 0 10px 30px rgba(42, 40, 34, 0.08), 0 30px 60px rgba(42, 40, 34, 0.10);
}

/* Reset + base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 500px at 85% -10%, rgba(139, 186, 122, .10), transparent 70%),
    radial-gradient(900px 600px at -5% 30%, rgba(139, 186, 122, .06), transparent 70%);
  background-attachment: fixed;
}

a { color: var(--accent-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--text); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 .6em;
  color: var(--text);
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .35em; letter-spacing: -0.03em; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; }

p { margin: 0 0 1em; color: var(--text); }

.accent { color: var(--accent-dark); font-weight: 600; }

/* =========================================================
   Ticker
   ========================================================= */
.ticker {
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: 0;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--surface), transparent);
}
.ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--surface), transparent);
}
.ticker-track {
  display: inline-flex;
  gap: 2rem;
  padding: .75rem 0;
  white-space: nowrap;
  animation: ticker 70s linear infinite;
  min-width: max-content;
}
.ticker[data-state="loading"] .ticker-track,
.ticker[data-state="error"] .ticker-track {
  animation: none;
  padding-left: 32px;
}
.ticker-msg {
  color: var(--text-dim);
  font-size: .85rem;
}
.ticker-trade {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.ticker-wallet {
  color: var(--muted);
}
.ticker-action {
  font-weight: 500;
  letter-spacing: .04em;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .72rem;
  font-family: var(--font-body);
  text-transform: lowercase;
}
.ticker-trade.buy  .ticker-action {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.ticker-trade.sell .ticker-action {
  background: var(--sell-soft);
  color: #8b4a3c;
}
.ticker-amount { color: var(--text); }
.ticker-symbol { color: var(--accent-dark); font-weight: 500; }
.ticker-sep { color: var(--muted); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.nav-logo {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--accent-soft);
  object-fit: cover;
  background: var(--accent-soft);
}
.nav-links {
  display: flex; gap: 28px;
  font-size: .95rem;
}
.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { padding: 14px 20px; }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  background: transparent;
  color: var(--text);
  letter-spacing: 0;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 4px 14px var(--accent-ring);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-xs {
  padding: 5px 11px;
  font-size: .72rem;
  border-color: var(--border);
  background: var(--surface);
  font-weight: 500;
}
.btn-xs:hover { border-color: var(--accent); color: var(--accent-dark); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 80px 32px 40px;
  display: flex; align-items: center;
}
.hero-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  letter-spacing: .02em;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-weight: 700;
}
.hero h1 .line-1 {
  display: block;
}
.hero h1 .line-2 {
  display: block;
  color: var(--accent-dark);
  font-weight: 600;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.ca-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  max-width: 560px;
}
.ca-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ca-row { display: flex; align-items: center; gap: 12px; }
.ca-row code {
  font-family: var(--font-mono);
  font-size: .82rem;
  word-break: break-all;
  color: var(--text);
  flex: 1;
}

/* Hero art */
.hero-art { display: flex; justify-content: center; }
.hero-art-frame {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.hero-art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--accent);
  opacity: .4;
  pointer-events: none;
}
.hero-art-frame img {
  width: 100%; height: 100%;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  border: 2px solid var(--surface);
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero { padding: 60px 24px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; }
  .hero-art-frame { width: min(280px, 72%); }
}

/* =========================================================
   Banner strip (freedom banner)
   ========================================================= */
.banner-strip {
  margin: 40px 0 0;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.banner-strip img {
  display: block;
  width: 100%;
  height: clamp(220px, 36vw, 460px);
  object-fit: cover;
  object-position: center 45%;
}
.banner-strip .banner-caption {
  position: absolute;
  bottom: 22px;
  left: 32px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  font-weight: 500;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
  letter-spacing: -0.02em;
}

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 110px 32px;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 760px; }
.section-sub {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 0 3.5rem;
  line-height: 1.6;
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}
.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}
.card-body {
  padding: 24px 24px 26px;
}
.card h3 {
  margin-bottom: 10px;
  font-weight: 500;
}
.card p {
  color: var(--text-dim);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 80px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-2);
  aspect-ratio: 4 / 5;
  transition: transform .35s ease, box-shadow .35s ease;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.gallery-item:hover img {
  transform: scale(1.03);
}
@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr; padding: 48px 20px; gap: 14px; }
  .gallery-item { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Chart
   ========================================================= */
.chart-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 720px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.chart-wrap iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
@media (max-width: 820px) {
  .chart-wrap {
    aspect-ratio: auto;
    height: 560px;
    max-height: none;
  }
}
.chart-fallback {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: .9rem;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.chart-fallback a { font-weight: 500; }

/* =========================================================
   Steps (How to buy)
   ========================================================= */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.step-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0;
}
.step h3 { margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--text-dim); margin-bottom: 14px; font-size: .95rem; }

/* How-to-buy accent image */
.buy-accent {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.buy-accent img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.buy-accent-body h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.025em;
}
.buy-accent-body p {
  color: var(--text-dim);
  margin-bottom: 20px;
}
@media (max-width: 720px) {
  .buy-accent { grid-template-columns: 1fr; }
}

/* =========================================================
   Community
   ========================================================= */
.community-card {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  min-height: 320px;
  transition: transform .3s ease, box-shadow .3s ease;
  background: var(--surface);
  border: 1px solid var(--border);
}
.community-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.community-card-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .6s ease;
}
.community-card:hover .community-card-bg { transform: scale(1.04); }
.community-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 18, 14, 0.85) 0%, rgba(20, 18, 14, 0.45) 45%, rgba(20, 18, 14, 0.15) 100%);
  z-index: 1;
}
.community-card-body {
  position: relative;
  z-index: 2;
  padding: 32px;
  height: 100%;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.community-card h3 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: 500;
}
.community-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.55;
}
.link-arrow {
  color: var(--accent-soft);
  font-weight: 500;
  font-size: .9rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 56px 32px 36px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 32px;
}
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  max-width: 1200px;
}
.footer-logo {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--accent-soft);
  object-fit: cover;
  background: var(--accent-soft);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}
.footer-tag {
  font-size: .88rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: 22px;
  align-items: center;
}
.footer-links a {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
}
.footer-links a:hover { color: var(--accent-dark); }
.footer-disclaimer {
  font-size: .78rem;
  color: var(--muted);
  border-top: 1px dashed var(--border);
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================================================
   Toast
   ========================================================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .85rem;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  animation: toast-in .22s ease;
}
@keyframes toast-in {
  from { transform: translate(-50%, 16px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 640px) {
  .section { padding: 72px 20px; }
  .hero { padding: 48px 20px 24px; }
  .banner-strip .banner-caption { left: 20px; bottom: 14px; }
  h1 { font-size: clamp(2.8rem, 12vw, 4rem); }
  h2 { font-size: clamp(2rem, 7vw, 2.6rem); }
}
