:root {
  --bg: #0c0a09;
  --ink: #f5f0e8;
  --muted: #a89f93;
  --soft: #d4c4b0;
  --clay: #c4785a;
  --clay-hot: #e8a07a;
  --cream: #f3e6d4;
  --line: rgba(243, 230, 212, 0.12);
  --line-hot: rgba(232, 160, 122, 0.35);
  --glass: rgba(18, 14, 12, 0.68);
  --glass-solid: rgba(22, 17, 14, 0.92);
  --radius: 18px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(196, 120, 90, 0.45);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

img {
  display: block;
  max-width: 100%;
}

/* ——— Background ——— */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-hero {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(1.1) contrast(1.08);
  animation: drift 28s ease-in-out infinite alternate;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.bg-orb-a {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  top: -8%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 160, 122, 0.55), transparent 70%);
}

.bg-orb-b {
  width: min(40vw, 380px);
  height: min(40vw, 380px);
  bottom: 10%;
  right: -5%;
  background: radial-gradient(circle, rgba(196, 120, 90, 0.28), transparent 70%);
  animation: pulse-orb 10s ease-in-out infinite;
}

.bg-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -5%, rgba(196, 120, 90, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(12, 10, 9, 0.4) 0%, rgba(12, 10, 9, 0.82) 42%, #0c0a09 100%);
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes drift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.06) translate(-1.5%, 1%);
  }
}

@keyframes pulse-orb {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(1.08);
  }
}

/* ——— Header ——— */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  background: linear-gradient(180deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.55) 70%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -1;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.88;
}

.brand img,
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--line),
    0 4px 18px rgba(196, 120, 90, 0.3);
}

.brand .soft {
  color: var(--clay-hot);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.nav a:not(.btn-pill) {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:not(.btn-pill):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.btn-pill {
  padding: 0.48rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay-hot), var(--clay));
  color: #1a100c !important;
  font-weight: 700;
  font-size: 0.84rem;
  box-shadow: 0 6px 20px rgba(196, 120, 90, 0.28);
  transition: transform 0.15s var(--ease), box-shadow 0.15s ease;
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(196, 120, 90, 0.4);
}

/* ——— Layout ——— */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ——— Hero ——— */
.hero {
  padding: 2.5rem 0 3.5rem;
  text-align: center;
}

.hero-mark {
  position: relative;
  display: inline-flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
  border-radius: 30px;
  object-fit: cover;
  box-shadow:
    0 0 0 1px rgba(243, 230, 212, 0.16),
    0 28px 64px rgba(184, 90, 58, 0.42),
    0 0 100px rgba(232, 160, 122, 0.28);
  animation: float-logo 5.5s ease-in-out infinite;
}

.hero-ring {
  position: absolute;
  inset: -14px;
  border-radius: 36px;
  border: 1px solid rgba(232, 160, 122, 0.25);
  animation: ring-pulse 3.2s ease-out infinite;
}

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

@keyframes ring-pulse {
  0% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.08);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(20, 16, 14, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6dce8a;
  box-shadow: 0 0 0 0 rgba(109, 206, 138, 0.5);
  animation: live 2s ease-out infinite;
}

@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 206, 138, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(109, 206, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(109, 206, 138, 0);
  }
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-hot);
}

.hero h1 {
  margin: 0 auto;
  max-width: 15ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 7.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(105deg, var(--cream) 10%, var(--clay-hot) 55%, var(--clay) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.2rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

.hero-actions {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay-hot), var(--clay) 70%);
  color: #1a100c;
  font-weight: 700;
  box-shadow: 0 12px 40px rgba(196, 120, 90, 0.38);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(196, 120, 90, 0.5);
  filter: brightness(1.04);
}

.btn-main:active {
  transform: translateY(0);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--soft);
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.btn-ghost:hover {
  border-color: rgba(243, 230, 212, 0.28);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

.play-ico {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--clay-hot);
}

/* ——— Prompt demo ——— */
.prompt-demo {
  margin: 2.75rem auto 0;
  max-width: 540px;
  text-align: left;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.prompt-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.prompt-chrome .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.85;
}

.prompt-chrome .dot.r {
  background: #ff5f57;
}
.prompt-chrome .dot.y {
  background: #febc2e;
}
.prompt-chrome .dot.g {
  background: #28c840;
}

.prompt-title {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.prompt-body {
  padding: 1.1rem 1.15rem 1.2rem;
}

.prompt-bar {
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.prompt-bar.out {
  border-color: var(--line-hot);
  background: linear-gradient(145deg, rgba(196, 120, 90, 0.12), rgba(0, 0, 0, 0.28));
  box-shadow: 0 0 0 1px rgba(196, 120, 90, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.prompt-bar.out.flash {
  border-color: rgba(232, 160, 122, 0.7);
  box-shadow: 0 0 32px rgba(196, 120, 90, 0.35);
}

.prompt-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.prompt-in,
.prompt-out {
  margin: 0;
  font-size: 1.05rem;
  min-height: 1.55em;
  line-height: 1.45;
}

.prompt-out {
  color: var(--clay-hot);
  font-weight: 600;
}

.prompt-arrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.25rem;
  color: var(--muted);
}

.arrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-hot), transparent);
}

.arrow-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-hot);
  opacity: 0.85;
}

.cursor {
  animation: blink 1s steps(1) infinite;
  color: var(--clay-hot);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ——— Sections ——— */
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head h2,
.loop-panel h2,
.buy-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.how {
  padding: 1.5rem 0 3.5rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
}

.card-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clay-hot);
  font-size: 1.1rem;
  opacity: 0.55;
  padding-top: 0.5rem;
}

.card {
  position: relative;
  padding: 1.4rem 1.3rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(18, 14, 12, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 160, 122, 0.28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.card-hot {
  border-color: rgba(232, 160, 122, 0.28);
  background: linear-gradient(160deg, rgba(196, 120, 90, 0.12), rgba(18, 14, 12, 0.55));
}

.card-ico {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: rgba(232, 160, 122, 0.12);
  border: 1px solid rgba(232, 160, 122, 0.2);
  color: var(--clay-hot);
  font-size: 0.95rem;
}

.card .step {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--clay-hot);
  letter-spacing: 0.1em;
}

.card h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.card strong {
  color: var(--cream);
}

/* ——— Loop ——— */
.loop {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1rem;
  padding: 0.5rem 0 3.5rem;
}

.glass {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.loop-panel {
  padding: 1.75rem 1.6rem 1.6rem;
}

.loop-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.15rem;
}

.loop-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
}

.loop-n {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #1a100c;
  background: linear-gradient(135deg, var(--clay-hot), var(--clay));
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.loop-list strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.loop-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.loop-list em {
  color: var(--soft);
  font-style: italic;
}

.loop-note {
  margin: 1.5rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.loop-aside {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.mini {
  padding: 1.15rem 1.2rem;
  transition: transform 0.2s var(--ease), border-color 0.2s ease;
}

.mini:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 160, 122, 0.22);
}

.mini-k {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-hot);
  margin-bottom: 0.4rem;
}

.mini p {
  margin: 0;
  color: var(--soft);
  font-size: 0.94rem;
}

.mini.quote {
  background: linear-gradient(155deg, rgba(196, 120, 90, 0.14), rgba(18, 14, 12, 0.55));
  border-color: rgba(232, 160, 122, 0.22);
}

.mini.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--cream);
  line-height: 1.35;
}

.attr {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ——— Buy ——— */
.buy {
  padding: 0.5rem 0 2rem;
}

.buy-panel {
  padding: 2rem 1.6rem 1.75rem;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  overflow: hidden;
}

.buy-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 280px;
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(232, 160, 122, 0.22), transparent 70%);
  pointer-events: none;
}

.buy-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  text-align: left;
  margin-bottom: 1.4rem;
}

.buy-brand img,
.token-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 0 0 2px rgba(232, 160, 122, 0.4),
    0 0 0 6px rgba(232, 160, 122, 0.08),
    0 14px 36px rgba(196, 120, 90, 0.4);
}

.buy-sub {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.ca-mono {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 1.05rem 1rem 1.35rem;
  border-radius: 16px;
  border: 1px dashed rgba(196, 120, 90, 0.42);
  background: rgba(0, 0, 0, 0.38);
  font-family: var(--mono);
  font-size: clamp(0.72rem, 2.2vw, 0.84rem);
  color: var(--cream);
  word-break: break-all;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.ca-mono:hover {
  border-style: solid;
  border-color: rgba(196, 120, 90, 0.7);
  background: rgba(0, 0, 0, 0.48);
}

.ca-mono:active {
  transform: scale(0.995);
}

.ca-hint {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.buy-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
}

.copied {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #6dce8a;
  letter-spacing: 0.04em;
}

.fine {
  margin: 1.25rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ——— Footer ——— */
.foot {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: var(--mono);
  border-top: 1px solid var(--line);
}

.foot img {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  opacity: 0.9;
}

.foot .dot {
  opacity: 0.45;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .card-connector {
    display: none;
  }

  .loop {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav a:not(.btn-pill) {
    display: none;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-mark img {
    width: 96px;
    height: 96px;
    border-radius: 26px;
  }

  .buy-brand {
    flex-direction: column;
    text-align: center;
  }

  .buy-panel {
    padding: 1.6rem 1.15rem 1.4rem;
  }

  .top::before {
    inset: 0;
  }
}
