:root {
  --cream: #f7f0e4;
  --paper: #fffaf1;
  --ink: #26190f;
  --muted: #725f4e;
  --gold: #d99a2b;
  --gold-2: #f4c765;
  --line: #e8d7bb;
  --brown: #6b341d;
  --shadow: 0 18px 55px rgba(75, 45, 22, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,250,241,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197,159,105,.25);
}
.nav-wrap { min-height: 76px; display:flex; align-items:center; gap: 28px; }
.brand { display:flex; align-items:center; gap:12px; flex:0 0 auto; }
.brand img { width:48px; height:48px; border-radius:50%; box-shadow:0 5px 15px rgba(116,72,22,.18); }
.brand-copy { display:flex; flex-direction:column; line-height:1; }
.brand-copy strong, .footer-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size:27px;
  font-style:italic;
  font-weight:700;
}
.brand-copy small { letter-spacing:.18em; margin-top:6px; font-size:9px; font-weight:800; color:#8b5c25; }
.nav { margin-left:auto; display:flex; gap:28px; align-items:center; font-family:Georgia, serif; font-size:15px; }
.nav a { opacity:.78; transition:.2s ease; }
.nav a:hover { opacity:1; color:#9c5f14; }

.gold-btn, .ghost-btn {
  min-height:46px;
  padding:0 20px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
}
.gold-btn {
  border:1px solid #d29229;
  color:#3c210a;
  background:linear-gradient(180deg,#f7d77f,#e9ad3e);
  box-shadow:0 8px 20px rgba(170,104,24,.18);
}
.gold-btn:hover { transform:translateY(-1px); box-shadow:0 11px 25px rgba(170,104,24,.24); }
.ghost-btn { border:1px solid #bd8941; background:rgba(255,255,255,.45); }
.ghost-btn:hover { background:white; }
.top-buy { white-space:nowrap; }
.menu-btn { display:none; }

.hero {
  padding: 38px 0 64px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.82) 0, rgba(255,250,241,.72) 26%, transparent 55%),
    linear-gradient(180deg,#fbf6ec 0,#f5ead9 100%);
}
.hero-shell {
  display:flex;
  flex-direction:column;
  gap:22px;
  max-width:1180px;
}
.hero-video { width:100%; min-width:0; }
.story-card { margin:0; }
.video-wrap {
  position:relative;
  aspect-ratio:16/9;
  width:100%;
  min-height:0;
  border-radius:28px;
  overflow:hidden;
  border:7px solid #fff8ec;
  box-shadow:0 24px 70px rgba(62,35,17,.22);
  background:#28180f;
  cursor:pointer;
  outline:none;
}
.video-wrap:focus-visible {
  box-shadow:0 0 0 4px rgba(217,154,43,.35),0 24px 70px rgba(62,35,17,.22);
}
.video-wrap video {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:#291810;
}
.video-overlay {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:white;
  text-align:center;
  background:linear-gradient(180deg,rgba(30,15,5,.04),rgba(30,15,5,.50));
  transition:opacity .25s ease;
  pointer-events:none;
}
.video-overlay.hidden { opacity:0; }
.play-mark {
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.95);
  background:rgba(25,12,4,.30);
  font-size:32px;
  padding-left:5px;
  margin-bottom:15px;
  backdrop-filter:blur(5px);
}
.video-overlay strong { font-family:Georgia,serif; font-size:34px; }
.video-overlay span { margin-top:8px; font-size:11px; letter-spacing:.18em; text-transform:uppercase; opacity:.9; }

.hero-cta-panel {
  width:100%;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:18px;
  border:1px solid rgba(201,155,87,.42);
  border-radius:22px;
  background:rgba(255,250,241,.84);
  box-shadow:0 15px 38px rgba(88,54,24,.10);
}
.hero-actions-primary {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin:0;
}
.hero-primary-btn {
  width:100%;
  min-height:60px;
  border-radius:15px;
  font-size:17px;
  letter-spacing:.01em;
}
.hero-contract {
  width:100%;
  min-height:74px;
  border:1.5px solid #c78c38;
  border-radius:16px;
  padding:14px 18px;
  background:#fffdf8;
  display:flex;
  align-items:center;
  gap:15px;
  text-align:left;
  cursor:pointer;
  color:var(--ink);
  transition:.2s ease;
  box-shadow:0 6px 18px rgba(126,80,21,.07);
}
.contract-box:hover, .contract-box.flash {
  border-color:#ad6c17;
  background:white;
  box-shadow:0 10px 26px rgba(126,80,21,.14);
}
.contract-icon {
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#f5ead6;
  font-size:21px;
}
.contract-text {
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:5px;
}
.contract-text small { font-weight:800; color:#715a45; font-size:12px; }
.contract-text code {
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:break-word;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:14px;
  line-height:1.45;
  color:#2c2017;
}
.copy-pill {
  color:#6e4007;
  background:#efd29e;
  border-radius:9px;
  padding:11px 13px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}

.eyebrow { letter-spacing:.25em; font-size:11px; font-weight:900; color:#b07124; margin:0 0 13px; }
h1,h2,h3,p { margin-top:0; }
h1,h2,h3 { font-family:Georgia,"Times New Roman",serif; }
h1 { font-size:clamp(54px,6vw,82px); line-height:.94; letter-spacing:-.045em; margin-bottom:18px; }
h1 span { color:#b87922; font-weight:400; }
.lead { font-family:Georgia,serif; font-size:24px; margin:0 0 10px; }
.intro { color:var(--muted); font-size:17px; line-height:1.65; max-width:590px; margin-bottom:24px; }

.values-section { padding:82px 0 42px; }
.section-heading { text-align:center; margin-bottom:28px; }
.section-heading h2 { font-size:clamp(34px,4vw,50px); letter-spacing:-.035em; margin-bottom:0; }
.values-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.values-grid article { background:rgba(255,250,241,.7); border:1px solid var(--line); border-radius:20px; padding:30px; text-align:center; min-height:230px; }
.value-icon { width:54px; height:54px; display:grid; place-items:center; margin:0 auto 16px; border-radius:50%; background:#f3dfb9; color:#a66a18; font-size:25px; }
.values-grid h3 { font-size:23px; margin-bottom:10px; }
.values-grid p { margin-bottom:0; color:var(--muted); line-height:1.55; }

.ecosystem-section { padding:30px 0 82px; }
.ecosystem-card { background:#fff9ef; border:1px solid var(--line); border-radius:24px; padding:36px 42px; display:grid; grid-template-columns:340px 1fr; gap:44px; align-items:center; box-shadow:0 14px 40px rgba(80,49,22,.07); }
.pairing-visual { display:flex; align-items:center; justify-content:center; gap:18px; }
.mini-token { width:118px; height:118px; border-radius:50%; box-shadow:0 10px 24px rgba(94,58,18,.18); }
.grandma-token { overflow:hidden; background:#efb83d; }
.grandma-token img { width:100%; height:100%; object-fit:cover; }
.cate-token { display:flex; flex-direction:column; align-items:center; justify-content:center; color:#684116; background:linear-gradient(145deg,#f5cf76,#c9871e); border:4px double #7f5317; }
.cate-token span { font-family:Georgia,serif; font-size:50px; line-height:.9; }
.cate-token small { font-size:11px; font-weight:900; letter-spacing:.08em; }
.pair-mark { font-family:Georgia,serif; font-size:33px; color:#8d5e24; }
.pairing-copy h2 { font-size:38px; margin:0 0 12px; }
.pairing-copy p:last-child { color:var(--muted); line-height:1.65; font-size:17px; margin-bottom:0; }

.community-section { padding:0 0 80px; }
.community-card { padding:36px 42px; border-radius:24px; color:#fff7e7; background:linear-gradient(120deg,#2c1b11,#5b3320); display:flex; justify-content:space-between; gap:30px; align-items:center; box-shadow:var(--shadow); }
.community-card h2 { font-size:38px; margin:0 0 8px; }
.community-card p:last-child { margin:0; color:#dbc9b7; }
.community-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.community-card .ghost-btn { color:white; border-color:#b98143; background:rgba(255,255,255,.05); }
.social-link[aria-disabled="true"] { opacity:.45; pointer-events:none; }

footer { background:#1e130d; color:#f7ead8; padding:27px 0; }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.footer-brand { display:flex; align-items:center; gap:10px; }
.footer-brand img { width:44px; height:44px; border-radius:50%; }
.footer-brand div { display:flex; flex-direction:column; }
.footer-brand strong { font-size:21px; }
.footer-brand span { color:#d4a95d; font-size:9px; letter-spacing:.16em; font-weight:800; margin-top:3px; }
.footer-inner p { margin:0; font-family:Georgia,serif; font-style:italic; color:#d8b479; }

.toast { position:fixed; left:50%; bottom:25px; transform:translate(-50%,20px); background:#21150e; color:white; border:1px solid #8f642d; border-radius:999px; padding:11px 18px; font-weight:800; font-size:13px; opacity:0; pointer-events:none; z-index:80; transition:.25s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (max-width: 980px) {
  .top-buy { display:none; }
  .menu-btn { margin-left:auto; width:44px; height:42px; border:0; background:transparent; display:flex; flex-direction:column; justify-content:center; gap:5px; cursor:pointer; }
  .menu-btn span { width:23px; height:2px; background:#38261a; display:block; }
  .nav { display:none; position:absolute; top:75px; left:20px; right:20px; margin:0; background:#fffaf2; border:1px solid var(--line); border-radius:15px; padding:18px; box-shadow:var(--shadow); flex-direction:column; align-items:flex-start; gap:18px; }
  .nav.open { display:flex; }
  .video-wrap { min-height:0; height:auto; }
  .values-grid { grid-template-columns:1fr; }
  .ecosystem-card { grid-template-columns:1fr; text-align:center; }
  .community-card { flex-direction:column; align-items:flex-start; }
  .community-actions { justify-content:flex-start; }
}

@media (max-width: 620px) {
  .shell { width:min(100% - 24px,1180px); }
  .nav-wrap { min-height:68px; }
  .brand img { width:42px; height:42px; }
  .brand-copy strong { font-size:23px; }
  .hero { padding-top:18px; }
  .video-wrap { border-width:4px; border-radius:18px; }
  .play-mark { width:62px; height:62px; font-size:24px; }
  .video-overlay strong { font-size:24px; }
  h1 { font-size:49px; }
  .lead { font-size:21px; }
  .intro { font-size:16px; }
  .hero-actions-primary { grid-template-columns:1fr; }
  .hero-primary-btn { min-height:56px; font-size:16px; }
  .hero-contract { align-items:flex-start; padding:14px; }
  .contract-icon { display:none; }
  .copy-pill { align-self:center; }
  .contract-text code { font-size:12px; }
  .values-section { padding-top:60px; }
  .values-grid article { min-height:0; padding:25px 22px; }
  .ecosystem-card { padding:29px 20px; }
  .pairing-visual { gap:10px; }
  .mini-token { width:92px; height:92px; }
  .pairing-copy h2 { font-size:31px; }
  .community-card { padding:30px 22px; }
  .community-card h2 { font-size:31px; }
  .community-actions { width:100%; }
  .community-actions > * { flex:1 1 100%; }
  .footer-inner { flex-direction:column; align-items:flex-start; }
}
