:root {
  --bg-deep: #060912;
  --bg-mid: #0a0f24;
  --navy: #131a36;
  --gold: #e8c45e;
  --gold-soft: #caa54a;
  --gold-bright: #f6e3a1;
  --ink: #d8d9e8;
  --ink-dim: #9aa0bf;
  --serif: 'Cinzel Decorative', 'Cormorant Garamond', serif;
  --display-serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #111936 0%, var(--bg-deep) 55%, #03040a 100%);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  position: relative;
}

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

/* ---------- texture layers ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-repeat: repeat;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(6, 9, 18, 0.55);
  border-bottom: 1px solid rgba(232, 196, 94, 0.18);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--serif);
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  font-size: 0.95rem;
}

.header-nav {
  display: flex;
  gap: 28px;
}

.header-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s;
}

.header-nav a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .header-nav { gap: 14px; }
  .header-nav a { font-size: 0.7rem; }
}

/* ---------- section shared ---------- */
section {
  position: relative;
  z-index: 1;
  padding: 110px 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-shadow: 0 0 18px rgba(232, 196, 94, 0.25);
}

.section-sub {
  color: var(--ink-dim);
  font-size: 1rem;
  margin-bottom: 56px;
  font-style: italic;
  font-family: var(--display-serif);
}

/* ---------- hero ---------- */
.hero {
  padding-top: 90px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.moon-wrap {
  position: absolute;
  top: 20px;
  right: 6%;
  width: 240px;
  height: 240px;
  z-index: 0;
  animation: moonPulse 6s ease-in-out infinite;
}

@media (max-width: 800px) {
  .moon-wrap { width: 140px; height: 140px; top: 60px; right: 4%; }
}

.moon-svg { width: 100%; height: 100%; }

@keyframes moonPulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  color: var(--ink-dim);
  margin-bottom: 28px;
}

.fool-card {
  width: min(260px, 60vw);
  margin: 0 auto 30px;
  filter: drop-shadow(0 0 30px rgba(232, 196, 94, 0.15));
  transition: filter 0.4s;
}

.fool-card:hover {
  filter: drop-shadow(0 0 45px rgba(232, 196, 94, 0.35));
}

.fool-card-frame {
  position: relative;
  border: 2px solid var(--gold-soft);
  border-radius: 6px;
  padding: 14px;
  background: rgba(6, 9, 18, 0.85); 
  flex-direction: column;
  align-items: center;
  gap: 10px; 
}

.corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
}
.corner.tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.corner.tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.corner.bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.corner.br { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.card-text-top, .card-text-bottom {
  width: 100%;
  text-align: center;
}

.card-roman {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  margin: 0;
}

.fool-illustration-wrap {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.fool-illustration {
  width: 100%;
  height: auto; 
  display: block;
  object-fit: contain;
}

.card-title {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  margin: 6px 0 0 0;
}

.tagline {
  font-family: var(--serif); 
  font-size: clamp(1rem, 3vw, 1.3rem); 
  color: var(--gold-soft);  
  letter-spacing: 0.15em;   
  margin: 4px 0 25px 0;     
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 2px;
  transition: transform 0.2s, box-shadow 0.3s;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-soft));
  color: #1a1306;
  font-weight: 600;
  border: 1px solid var(--gold-bright);
  box-shadow: 0 0 18px rgba(232, 196, 94, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(232, 196, 94, 0.55);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--gold-soft);
  color: var(--gold);
  margin-top: 36px;
}

.btn-ghost:hover {
  background: rgba(232, 196, 94, 0.08);
  box-shadow: 0 0 18px rgba(232, 196, 94, 0.2);
}

.ca-box {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(232, 196, 94, 0.35);
  background: rgba(10, 14, 30, 0.6);
  padding: 10px 16px;
  border-radius: 30px;
  max-width: 92vw;
}

.ca-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  text-transform: uppercase;
}

#contractAddress {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--gold-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38vw;
}

.copy-btn {
  background: none;
  border: none;
  color: var(--gold);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  transition: transform 0.2s;
}
.copy-btn:hover { transform: scale(1.2); }

.copy-feedback {
  height: 18px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}
.copy-feedback.show { opacity: 1; }

@media (max-width: 480px) {
  #contractAddress { max-width: 50vw; }
}

/* ---------- daily draw ---------- */
.draw-stage {
  display: flex;
  justify-content: center;
  perspective: 1400px;
  margin-bottom: 24px;
}

.tarot-card {
  background: none;
  border: none;
  cursor: pointer;
  width: min(280px, 70vw);
  aspect-ratio: 5 / 8;
  padding: 0;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.tarot-card.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border: 2px solid var(--gold-soft);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tarot-back {
  background: repeating-linear-gradient(45deg, #0d1330, #0d1330 10px, #0a0f24 10px, #0a0f24 20px);
  box-shadow: 0 0 24px rgba(232, 196, 94, 0.18) inset;
}

.tarot-card:hover .tarot-back {
  box-shadow: 0 0 36px rgba(232, 196, 94, 0.35) inset, 0 0 24px rgba(232, 196, 94, 0.25);
}

.back-pattern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--gold);
}

.back-sigil { font-size: 1.8rem; }
.back-rule { width: 60px; height: 1px; background: var(--gold-soft); }
.back-text {
  font-family: var(--serif);
  letter-spacing: 0.3em;
  font-size: 0.85rem;
}

.tarot-front {
  background: linear-gradient(160deg, #11183a, #060911);
  transform: rotateY(180deg);
  text-align: center;
  gap: 6px;
}

.result-numeral {
  font-family: var(--serif);
  color: var(--gold-soft);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  margin: 0;
}

.result-icon {
  font-size: 2.4rem;
  color: var(--gold);
  margin: 6px 0;
}

.result-name {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.result-prophecy {
  font-family: var(--display-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 220px;
}

/* ---------- journey ---------- */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .journey-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .journey-grid { grid-template-columns: 1fr; }
}

.journey-card {
  border: 1px solid rgba(232, 196, 94, 0.3);
  border-radius: 8px;
  padding: 28px 18px;
  background: linear-gradient(160deg, rgba(19, 26, 54, 0.6), rgba(6, 9, 18, 0.6));
  transition: transform 0.3s, box-shadow 0.3s;
}

.journey-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(232, 196, 94, 0.18);
  border-color: var(--gold);
}

.journey-numeral {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.journey-card h3 {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1.1rem;
  margin: 0 0 4px;
  letter-spacing: 0.04em;
}

.journey-phase {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--ink-dim);
  margin: 0 0 16px;
}

.journey-text {
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- pact / tokenomics tablet ---------- */
.tablet {
  position: relative;
  margin: 0 auto;
  max-width: 640px;
  padding: 50px 40px;
  background: linear-gradient(160deg, #1b1f2c, #0c0e16);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(232, 196, 94, 0.2),
    inset 0 2px 12px rgba(0,0,0,0.7),
    0 12px 40px rgba(0,0,0,0.5);
}

.tablet-crack {
  position: absolute;
  top: 0; left: 30%;
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,0.4);
  transform: rotate(3deg);
}

.tablet-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.tablet-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed rgba(232, 196, 94, 0.2);
  padding-bottom: 10px;
  font-family: var(--display-serif);
}

.tablet-list span {
  color: var(--ink-dim);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: var(--sans);
}

.tablet-list strong {
  color: var(--gold-bright);
  font-size: 1.05rem;
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.tablet-footer {
  font-family: var(--display-serif);
  font-style: italic;
  color: var(--ink-dim);
  text-align: center;
  margin: 0;
}

/* ---------- summon ---------- */
.summon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .summon-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .summon-grid { grid-template-columns: 1fr; }
}

.summon-step {
  border: 1px solid rgba(232, 196, 94, 0.2);
  border-radius: 8px;
  padding: 26px 16px;
}

.summon-num {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.summon-step h3 {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1rem;
  margin: 0 0 8px;
}

.summon-step p {
  font-size: 0.85rem;
  color: var(--ink-dim);
  line-height: 1.5;
}

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(232, 196, 94, 0.18);
  padding: 50px 24px 70px;
  text-align: center;
}

.footer-brand {
  font-family: var(--serif);
  color: var(--gold);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.footer-socials a {
  color: var(--gold-soft);
  transition: color 0.25s, transform 0.25s;
  display: inline-block;
}
.footer-socials a:hover { color: var(--gold-bright); transform: translateY(-2px); }

.footer-disclaimer {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--ink-dim);
  opacity: 0.75;
}

/* ---------- jupiter terminal integration styles ---------- */
.terminal-container-wrap {
  width: 100%;
  max-width: 440px;
  margin: 50px auto 0;
  perspective: 1000px;
}

.terminal-frame {
  position: relative;
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  padding: 24px 12px 12px;
  background: #060912; 
  box-shadow: 0 0 40px rgba(232, 196, 94, 0.12);
}

.terminal-title {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  margin: 0 0 4px;
  text-shadow: 0 0 10px rgba(232, 196, 94, 0.3);
}

.terminal-subtitle {
  font-family: var(--display-serif);
  font-style: italic;
  color: var(--ink-dim);
  font-size: 0.88rem;
  margin: 0 0 20px;
}

#integrated-terminal {
  width: 100%;
  height: 515px; 
  border-radius: 6px;
  overflow: hidden;
}
/* ---------- faq / scroll of wisdom ---------- */
.faq-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid rgba(232, 196, 94, 0.2);
  border-radius: 6px;
  background: rgba(10, 15, 36, 0.4);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
  border-color: rgba(232, 196, 94, 0.4);
  box-shadow: 0 0 15px rgba(232, 196, 94, 0.05);
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  color: var(--gold-soft);
  font-size: 0.9rem;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-item.active {
  border-color: var(--gold-soft);
  box-shadow: 0 0 25px rgba(232, 196, 94, 0.1);
}

.faq-item.active .faq-icon {
  transform: rotate(135deg);
  color: var(--gold);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.faq-content {
  padding: 0 24px 24px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.6;
} 
.token-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c5a46e; 
  font-size: 24px;
  font-weight: bold;
}

.logo-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px; 
}

.logo-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}


.contract-address {
  font-family: monospace; 
  font-size: 14px;        
  opacity: 0.6;           
  background: rgba(197, 164, 110, 0.1); 
  padding: 2px 6px;       
  border-radius: 4px;     
  margin-left: 5px;       
}

body {
  margin: 0;
  padding: 0;
  background-color: #050b14; 
 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600'%3E%3Cpath d='M80 120 L130 90 L190 130 L240 170 M420 380 L470 340 L510 380 L470 440 Z M470 340 L440 290 M150 450 L190 410 L250 430 M400 120 L440 150 L410 200 L370 180 Z' stroke='%23c5a46e' stroke-width='0.6' fill='none' opacity='0.2'/%3E%3Ccircle cx='80' cy='120' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='130' cy='90' r='2.5' fill='%23c5a46e' opacity='0.6'/%3E%3Ccircle cx='190' cy='130' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='240' cy='170' r='3' fill='%23c5a46e' opacity='0.6'/%3E%3Ccircle cx='420' cy='380' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='470' cy='340' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='510' cy='380' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='470' cy='440' r='2.5' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='440' cy='290' r='2' fill='%23c5a46e' opacity='0.4'/%3E%3Ccircle cx='150' cy='450' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='190' cy='410' r='2.5' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='250' cy='430' r='2' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='400' cy='120' r='2' fill='%23c5a46e' opacity='0.4'/%3E%3Ccircle cx='440' cy='150' r='2' fill='%23c5a46e' opacity='0.4'/%3E%3Ccircle cx='410' cy='200' r='2.5' fill='%23c5a46e' opacity='0.5'/%3E%3Ccircle cx='370' cy='180' r='2' fill='%23c5a46e' opacity='0.4'/%3E%3Ccircle cx='300' cy='80' r='1' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='550' cy='220' r='1.5' fill='%23fff' opacity='0.4'/%3E%3Ccircle cx='70' cy='300' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='320' cy='520' r='1.2' fill='%23fff' opacity='0.3'/%3E%3C/svg%3E");
  background-attachment: fixed; 
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}

.contract-address {
  font-family: monospace;
  font-size: 13px;
  color: #c5a46e; 
  background: rgba(197, 164, 110, 0.08); 
  border: 1px solid rgba(197, 164, 110, 0.2); 
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  letter-spacing: 0.5px;
}
