:root {
  --peach: #f6c1ad;
  --coral: #ed765d;
  --cream: #fff4e8;
  --pink: #f3a7bb;
  --ink: #251613;
  --ink-soft: #5f4038;
  --white: #fffdf9;
  --line: rgba(37, 22, 19, .18);
  --max: 1380px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--peach);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
spline-viewer { display: block; width: 100%; height: 100%; }
.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(calc(100% - 36px), var(--max));
  min-height: 70px;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  background: rgba(255,253,249,.84);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 22px;
  box-shadow: 0 14px 48px rgba(68,28,17,.12);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 800 1.1rem/1 "Manrope", sans-serif;
  letter-spacing: .04em;
}
.brand-symbol {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}
.brand-symbol i, .brand-symbol b,
.cta-symbol i, .cta-symbol b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 9px;
  border-radius: 99px;
  background: currentColor;
  transform: translate(-50%,-50%) rotate(45deg);
}
.brand-symbol b, .cta-symbol b { opacity: .52; transform: translate(-50%,-50%) rotate(-45deg); }
nav { display: flex; align-items: center; gap: 30px; font-weight: 600; font-size: .94rem; }
nav > a { transition: opacity .2s, transform .2s; }
nav > a:hover { opacity: .62; transform: translateY(-1px); }
.x-link { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-size: 1.15rem; }
.nav-cta { display: inline-flex; align-items: center; gap: 24px; padding: 13px 18px; color: white; background: var(--ink); border-radius: 14px; }
.wallet-button { border: 0; cursor: pointer; }
.menu-toggle { display: none; padding: 8px; border: 0; background: none; }
.menu-toggle span { display: block; width: 25px; height: 2px; margin: 5px; background: var(--ink); }
main, footer { position: relative; z-index: 2; }
.spline-showcase {
  position: relative;
  width: min(calc(100% - 36px), var(--max));
  height: min(72vh, 780px);
  min-height: 580px;
  margin: 0 auto 24px;
  overflow: hidden;
  background: var(--peach);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 30px;
  box-shadow: 0 28px 80px rgba(68,28,17,.16);
}
.spline-showcase spline-viewer { position: absolute; inset: 0 0 auto; height: calc(100% + 76px); }
.spline-caption {
  position: absolute;
  z-index: 3;
  left: 20px;
  bottom: 20px;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 99px;
  background: rgba(255,253,249,.78);
  box-shadow: 0 10px 30px rgba(68,28,17,.1);
  backdrop-filter: blur(14px);
  font-size: .78rem;
  font-weight: 700;
}
.hero {
  min-height: 1120px;
  padding: 160px max(24px, calc((100vw - var(--max))/2)) 70px;
  position: relative;
}
.hero-copy { width: min(730px, 57vw); }
.eyebrow, .section-label { margin: 0 0 20px; font: 700 .76rem/1.2 "Manrope", sans-serif; letter-spacing: .23em; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -.06em; }
h1 { margin: 0; font-size: clamp(4.2rem, 7.1vw, 7.5rem); line-height: .88; }
h1 em { color: var(--white); font-style: normal; text-shadow: 0 3px 28px rgba(91,39,25,.15); }
.hero-intro { max-width: 570px; margin: 28px 0 0; color: var(--ink-soft); font-size: 1.2rem; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 25px; min-height: 56px; padding: 0 24px; border-radius: 15px; font-weight: 700; transition: .25s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(58,28,21,.16); }
.button-dark { color: white; background: var(--ink); }
.button-glass { background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.75); backdrop-filter: blur(14px); }
.project-rail { position: absolute; left: 0; right: 0; bottom: 48px; overflow: hidden; }
.rail-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  width: max-content;
  padding: 26px 5vw 46px;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.mini-card {
  width: 245px;
  min-height: 285px;
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(73,35,24,.15);
  transform: rotate(-3deg);
}
.mini-card:nth-child(2) { transform: rotate(2deg) translateY(-12px); }
.mini-card:nth-child(3) { transform: rotate(-1deg) translateY(4px); }
.mini-card:nth-child(4) { transform: rotate(3deg) translateY(-9px); }
.mini-card:nth-child(5) { transform: rotate(-2deg) translateY(3px); }
.coral { background: var(--coral); }
.cream { background: var(--cream); }
.pink { background: var(--pink); }
.ink { color: white; background: var(--ink); }
.white { background: white; }
.card-top { display: flex; justify-content: space-between; font-size: .67rem; font-weight: 700; letter-spacing: .14em; }
.mini-card h2 { margin: 60px 0 6px; font-size: 2.15rem; }
.mini-card p { margin: 0; opacity: .72; }
.needs { display: flex; gap: 7px; margin-top: 26px; }
.needs span { padding: 6px 9px; border: 1px solid currentColor; border-radius: 99px; font-size: .61rem; font-weight: 700; }
.rail-footer { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 50px 1fr 50px; align-items: center; text-align: center; }
.rail-arrow { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.rail-footer p { margin: 0; font-weight: 600; }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #2a9d70; box-shadow: 0 0 0 5px rgba(42,157,112,.13); }
.ecosystem-banner {
  padding: 112px max(18px, calc((100vw - var(--max))/2)) 24px;
  background: rgba(255,244,232,.4);
}
.ecosystem-banner img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 65px rgba(68,28,17,.12);
}
.terminal {
  padding: 72px max(24px, calc((100vw - var(--max))/2)) 110px;
  background: var(--cream);
}
.terminal-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 36px; }
.terminal h1 { font-size: clamp(3.8rem, 6.5vw, 7rem); line-height: .9; }
.network-state { min-width: 190px; display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.72); }
.network-state > span { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #31b47b; box-shadow: 0 0 0 5px rgba(49,180,123,.12); }
.network-state strong, .network-state small { grid-column: 2; }
.network-state small { color: var(--ink-soft); }
.terminal-tabs { display: flex; gap: 8px; margin-top: 48px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.terminal-tabs button { padding: 11px 18px; border: 0; border-radius: 99px; background: transparent; cursor: pointer; font-weight: 700; }
.terminal-tabs button.active { color: white; background: var(--ink); }
.terminal-panel { display: none; padding-top: 28px; }
.terminal-panel.active { display: block; }
.market-tools { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.market-tools label { flex: 1; }
.market-tools label span, .launch-form label, .trade-form label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .78rem; font-weight: 700; letter-spacing: .05em; }
input { width: 100%; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 13px; outline: none; color: var(--ink); background: rgba(255,255,255,.8); font: 500 1rem "DM Sans", sans-serif; }
input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(237,118,93,.12); }
.refresh-button, .inspect-button, .sign-button { min-height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; font-weight: 700; }
.market-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 22px; background: white; }
.market-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.market-table th, .market-table td { padding: 17px 18px; text-align: left; border-bottom: 1px solid rgba(37,22,19,.09); }
.market-table th { color: var(--ink-soft); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.market-table tbody tr:last-child td { border-bottom: 0; }
.asset-cell { display: flex; align-items: center; gap: 12px; }
.asset-cell img { width: 34px; height: 34px; border-radius: 50%; background: var(--cream); }
.asset-logo-fallback { width: 34px; height: 34px; display: none; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-size: .67rem; }
.asset-cell span { display: grid; }
.asset-cell small { color: var(--ink-soft); }
.status-pill { display: inline-block; padding: 5px 9px; border-radius: 99px; color: #116743; background: #ddf8e8; font-size: .72rem; font-weight: 700; }
.status-pill.halted { color: #87342b; background: #ffe3dd; }
.market-action { padding: 8px 13px; border: 0; border-radius: 10px; background: var(--ink); color: white; cursor: pointer; font-weight: 700; }
.loading-cell { color: var(--ink-soft); text-align: center !important; }
.data-note { margin: 14px 0 0; color: var(--ink-soft); font-size: .78rem; }
.lab-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; }
.launch-form, .trade-form { display: grid; gap: 16px; padding: 28px; border-radius: 24px; background: white; border: 1px solid var(--line); }
.panel-copy h2, .portfolio-head h2 { margin: 0; font-size: clamp(2.4rem,4vw,4rem); line-height: .95; }
.panel-copy > p:last-child { color: var(--ink-soft); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-status { min-height: 20px; margin: 0; color: var(--ink-soft); font-size: .82rem; overflow-wrap: anywhere; }
.loaded-market { min-height: 76px; padding: 14px; border-radius: 13px; background: var(--cream); color: var(--ink-soft); }
.trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trade-actions button { min-height: 52px; border: 0; border-radius: 13px; cursor: pointer; font-weight: 800; }
.trade-actions button:first-child { color: white; background: #27805a; }
.trade-actions button:last-child { color: white; background: var(--coral); }
.portfolio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 30px; }
.portfolio-grid article { min-height: 130px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: 18px; background: white; }
.portfolio-grid span { color: var(--ink-soft); font-size: .78rem; }
.portfolio-grid strong { overflow-wrap: anywhere; }
.activity { margin-top: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.activity h3 { margin: 0 0 14px; }
.activity p { color: var(--ink-soft); }
.activity-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(37,22,19,.09); }
.activity-item a { font-weight: 700; text-decoration: underline; }
.statement, .projects, .process { padding: 120px max(24px, calc((100vw - var(--max))/2)); }
.statement { color: white; background: rgba(37,22,19,.97); }
.statement h2 { max-width: 1150px; margin: 0; font-size: clamp(3.6rem, 7vw, 7.4rem); line-height: .92; }
.statement h2 span { color: var(--peach); }
.statement-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .75fr); gap: 34px; margin-top: 90px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.2); }
.statement-grid > p { max-width: 450px; margin: 0; color: rgba(255,255,255,.65); font-size: 1.15rem; }
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat strong { font: 700 1.15rem "Manrope", sans-serif; }
.stat span { color: rgba(255,255,255,.55); }
.projects { background: var(--cream); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.section-head h2 { margin: 0; font-size: clamp(3.8rem, 6.5vw, 7rem); line-height: .9; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.filters button { padding: 11px 17px; border: 1px solid var(--line); border-radius: 99px; background: transparent; cursor: pointer; }
.filters button.active { color: white; background: var(--ink); }
.project-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; margin-top: 70px; }
.project-card { padding: 16px; background: white; border-radius: 28px; transition: opacity .25s, transform .25s; }
.project-card.hidden { display: none; }
.project-card:hover { transform: translateY(-7px); }
.project-visual { position: relative; height: 290px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; }
.project-visual span { position: relative; z-index: 2; font: 800 7rem/1 "Manrope", sans-serif; color: rgba(255,255,255,.85); }
.project-visual i { position: absolute; width: 170px; height: 58px; border-radius: 99px; border: 22px solid rgba(255,255,255,.45); transform: rotate(35deg); }
.visual-tide { background: #588f89; }
.visual-common { background: #e28b7d; }
.visual-relay { background: #41377b; }
.project-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 17px; color: var(--ink-soft); font-size: .64rem; font-weight: 700; letter-spacing: .1em; }
.project-card h3 { margin: 20px 0 4px; font-size: 2rem; }
.project-card > p { min-height: 72px; margin: 0; color: var(--ink-soft); }
.project-card > a { display: flex; justify-content: space-between; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; }
.process { color: white; background: #d96852; }
.process-head > p { max-width: 420px; margin: 0 0 10px; color: rgba(255,255,255,.72); font-size: 1.1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 80px; }
.steps article { min-height: 420px; padding: 24px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 28px; }
.steps article > span { font-size: .75rem; }
.step-mark { position: relative; height: 210px; }
.step-mark::before, .step-mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 150px; height: 48px; border: 18px solid rgba(255,255,255,.73); border-radius: 99px; transform: translate(-50%,-50%) rotate(45deg); }
.step-mark::after { transform: translate(-50%,-50%) rotate(-45deg); opacity: .48; }
.step-mark.two::before { width: 120px; height: 120px; border-radius: 50%; transform: translate(-70%,-50%); }
.step-mark.two::after { width: 120px; height: 120px; border-radius: 50%; transform: translate(-30%,-50%); }
.step-mark.three::before { transform: translate(-70%,-50%) rotate(0); }
.step-mark.three::after { transform: translate(-30%,-50%) rotate(0); }
.steps h3 { margin: 0 0 8px; font-size: 1.6rem; }
.steps p { margin: 0; color: rgba(255,255,255,.66); }
.final-cta { min-height: 760px; padding: 110px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; text-align: center; background: rgba(37,22,19,.9); backdrop-filter: blur(6px); }
.cta-symbol { position: relative; width: 180px; height: 180px; margin-bottom: 20px; color: var(--peach); }
.cta-symbol i, .cta-symbol b { width: 170px; height: 50px; }
.final-cta h2 { margin: 0 0 40px; font-size: clamp(5rem, 9vw, 9.4rem); line-height: .78; }
.button-light { color: var(--ink); background: var(--white); }
footer { min-height: 160px; padding: 40px max(24px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: .8fr 1fr 1.8fr .25fr; gap: 25px; align-items: center; color: rgba(255,255,255,.7); background: var(--ink); }
footer p { margin: 0; font-size: .82rem; }
.footer-brand { color: white; }
.credit a { color: white; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.footer-x { color: white; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .site-header { top: 12px; width: calc(100% - 24px); min-height: 62px; }
  .menu-toggle { display: block; }
  nav { position: absolute; top: 70px; left: 0; right: 0; padding: 22px; flex-direction: column; align-items: stretch; gap: 18px; background: rgba(255,253,249,.96); border-radius: 20px; box-shadow: 0 20px 45px rgba(57,25,18,.16); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .25s; }
  nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .ecosystem-banner { padding-top: 92px; }
  .hero { min-height: 1050px; padding-top: 90px; }
  .hero-copy { width: 88%; }
  .spline-showcase { height: 620px; min-height: 0; }
  .statement-grid, .project-grid, .steps { grid-template-columns: 1fr; }
  .terminal-bar, .portfolio-head { align-items: flex-start; flex-direction: column; }
  .network-state { width: 100%; }
  .lab-grid, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .statement-grid { gap: 38px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .project-visual { height: 330px; }
  .ecosystem-banner img { border-radius: 20px; }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  h1 { font-size: 3.8rem; }
  .hero { min-height: 1100px; }
  .hero-copy { width: 100%; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .terminal { padding-top: 55px; padding-bottom: 75px; }
  .spline-showcase { width: calc(100% - 16px); height: 520px; border-radius: 22px; }
  .terminal h1 { font-size: 3.5rem; }
  .terminal-tabs { overflow-x: auto; }
  .market-tools { align-items: stretch; flex-direction: column; }
  .refresh-button { width: 100%; }
  .lab-grid, .portfolio-grid, .form-pair { grid-template-columns: 1fr; }
  .project-rail { bottom: 25px; }
  .mini-card { width: 210px; min-height: 260px; }
  .statement, .projects, .process { padding-top: 85px; padding-bottom: 85px; }
  .statement h2, .section-head h2 { font-size: 3.7rem; }
  .final-cta h2 { font-size: 5rem; }
  footer { grid-template-columns: 1fr; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
