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

:root {
  --cream:      #F8F2E6;
  --cream-dark: #EDE3CC;
  --tan:        #D4B896;
  --gold:       #C89A52;
  --waffle:     #B8823A;
  --waffle-dark:#9A6A28;
  --text:       #3D2B10;
  --text-muted: #7A5C38;
  --text-light: #A88050;
  --white:      #FFFDF8;
  --card-bg:    rgba(255, 251, 240, 0.7);
  --border:     rgba(200, 154, 82, 0.25);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ── Grain texture overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Radial background glow ── */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(200,154,82,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -10%;
  left: 20%;
  width: 500px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(184,130,58,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Particles ── */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  10%  { opacity: 0.4; }
  90%  { opacity: 0.1; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ── Container ── */
.container {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ── Hero / Logo ── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
}

.logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 32px;
  position: relative;
  z-index: 1;
  animation: logo-bob 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(184,130,58,0.35));
}

.logo-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,154,82,0.3) 0%, transparent 70%);
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes logo-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.15); }
}

.brand {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--waffle-dark) 0%, var(--gold) 50%, var(--waffle) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.05;
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 380px;
  line-height: 1.6;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(200, 154, 82, 0.12);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--waffle);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.8); }
}

/* ── TLDR Section ── */
.tldr {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184,130,58,0.12);
}

.card--hero {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,251,240,0.9), rgba(237,227,204,0.7));
}

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.card-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-text strong {
  color: var(--text);
  font-weight: 600;
}

/* ── Fee Flow Card ── */
.fee-flow {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.fee-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.fee-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.fee-sub {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 400;
}

.flow-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flow-item {
  display: grid;
  grid-template-columns: 48px 1fr 100px;
  align-items: center;
  gap: 12px;
}

.flow-pct {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--waffle);
  font-variant-numeric: tabular-nums;
}

.flow-bar {
  height: 6px;
  background: rgba(200,154,82,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.flow-fill {
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--waffle-dark), var(--gold));
  animation: bar-grow 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes bar-grow {
  from { width: 0; }
  to   { width: var(--w); }
}

.flow-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.flow-footer {
  margin-top: 20px;
  font-size: 0.88rem;
  font-style: italic;
  color: var(--text-light);
  text-align: right;
}

/* ── Token Section ── */
.token-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.token-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.token-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 14px;
  background: rgba(255,251,240,0.8);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 560px;
  backdrop-filter: blur(8px);
}

.token-box:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(200,154,82,0.15);
}

.token-addr {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.copy-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.copy-btn svg { width: 16px; height: 16px; }

.copy-btn:hover {
  color: var(--waffle);
  background: rgba(200,154,82,0.12);
}

.copy-msg {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--waffle);
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s;
  height: 0;
}

.copy-msg.show { opacity: 1; }

/* ── X Link ── */
.x-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--text);
  color: var(--cream);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.x-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,43,16,0.3);
  background: var(--waffle-dark);
}

.x-icon { width: 18px; height: 18px; }

/* ── Footer ── */
.footer {
  font-size: 0.75rem;
  color: var(--text-light);
  opacity: 0.7;
}

/* ── Entrance animations ── */
.hero        { animation: fade-up 0.8s ease both; }
.badge       { animation: fade-up 0.8s 0.15s ease both; }
.tldr        { animation: fade-up 0.8s 0.25s ease both; }
.token-section { animation: fade-up 0.8s 0.35s ease both; }
.x-link      { animation: fade-up 0.8s 0.45s ease both; }
.footer      { animation: fade-up 0.8s 0.55s ease both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .container { padding: 60px 16px 48px; gap: 32px; }
  .card, .fee-flow { padding: 22px 20px; }
  .fee-title { font-size: 1.3rem; }
  .fee-header { flex-direction: column; gap: 4px; }
  .flow-item { grid-template-columns: 44px 1fr 80px; }
  .token-addr { font-size: 0.68rem; }
}
