/* ================================
   RESET & BASE
   ================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-paper: #F7F4E9;
  --color-aged-paper: #EAE5D1;
  --color-ink: #2B2416;
  --color-sepia: #8B7355;
  --color-faded-ink: #5A4F3F;
  --color-highlight: #D4C5A0;
  --color-accent: #A67C52;
  --color-dark-ink: #1A1410;
}

body {
  background: var(--color-paper);
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.015) 2px, rgba(0,0,0,0.015) 4px),
    url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulance type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  color: var(--color-ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   HERO - REFINED LAYERS
   ================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-ink);
}

/* LAYER 1: THE WORLD (Receding Background) */
.world-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('80a6e0d4-7572-41c8-9364-62f1a78567a3.png');
  background-size: 150%;
  background-position: center 40%;
  background-repeat: no-repeat;
  opacity: 0.32;
  filter: contrast(1.5) brightness(0.6) grayscale(0.3);
  z-index: 0;
}

/* Hero Content - Vertical Stack */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* LAYER 2: THE AUTHORITY (Sheriff Seal) */
.authority-layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.seal-emblem {
  width: 140px;
  height: 140px;
  background-image: url('3021831f-a10d-4c2e-a650-2a3479103bb6.png');
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  border: 4px solid var(--color-dark-ink);
  box-shadow: 
    0 0 0 2px var(--color-paper),
    0 0 0 6px var(--color-dark-ink),
    0 6px 16px rgba(43, 36, 22, 0.4);
  filter: contrast(1.15) brightness(0.98);
}

.seal-label {
  position: relative;
}

.seal-label-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-dark-ink);
  font-weight: 400;
  padding: 6px 16px;
  background: rgba(247, 244, 233, 0.9);
  border: 1px solid var(--color-dark-ink);
  display: inline-block;
}

/* LAYER 3: THE ASSET (Simplified Certificate) */
.asset-layer {
  width: 100%;
  max-width: 580px;
}

.certificate {
  background: #FDFBF5;
  border: 4px solid var(--color-dark-ink);
  padding: 52px 44px;
  position: relative;
  box-shadow: 0 6px 20px rgba(43, 36, 22, 0.3);
}

.certificate::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--color-sepia);
  opacity: 0.3;
  pointer-events: none;
}

/* Ticker - Optically Centered & Properly Scaled */
.token-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 90px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-dark-ink);
  line-height: 1;
  margin: 0;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(139, 115, 85, 0.1);
  position: relative;
  left: -6px;
}

/* Founding Statement - Full Authority */
.founding-statement {
  position: relative;
}

.founding-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-dark-ink);
  line-height: 1.6;
  padding: 10px 20px;
  background: rgba(247, 244, 233, 0.92);
  border: 2px solid var(--color-dark-ink);
  display: inline-block;
}

/* ================================
   MAIN CONTENT CONTAINER
   ================================ */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
  margin: 0 0 80px;
  padding: 48px 40px;
  background: white;
  border: 3px solid var(--color-ink);
  border-radius: 16px;
  box-shadow: 
    5px 5px 0 rgba(43, 36, 22, 0.15),
    inset 0 0 0 8px var(--color-aged-paper);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 25px solid transparent;
  border-right: 0px solid transparent;
  border-top: 30px solid var(--color-ink);
  bottom: -30px;
  left: 60px;
}

.about::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 22px solid transparent;
  border-right: 0px solid transparent;
  border-top: 27px solid white;
  bottom: -27px;
  left: 62px;
}

.about-content .lead {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.85rem;
  color: var(--color-ink);
  margin-bottom: 24px;
  line-height: 1.4;
  font-weight: 400;
  text-align: center;
  font-style: italic;
}

.about-content .description {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  color: var(--color-faded-ink);
  line-height: 1.7;
  text-align: left;
}

/* ================================
   TOKEN DETAILS
   ================================ */

.token-details {
  margin: 64px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.detail-item {
  background: white;
  padding: 32px 24px;
  border: 3px double var(--color-ink);
  text-align: center;
  position: relative;
  box-shadow: 3px 3px 0 rgba(43, 36, 22, 0.2);
  transition: all 0.3s ease;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 115, 85, 0.03) 10px, rgba(139, 115, 85, 0.03) 20px);
}

.detail-item::before {
  content: '✦';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 0 8px;
  font-size: 1.2rem;
  color: var(--color-sepia);
}

.detail-item::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border: 1px solid var(--color-sepia);
  opacity: 0.3;
  pointer-events: none;
}

.detail-item:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 5px 5px 0 rgba(43, 36, 22, 0.25);
}

.detail-label {
  display: block;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-sepia);
  margin-bottom: 16px;
  font-weight: 400;
}

.detail-value {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  color: var(--color-ink);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
  margin: 80px 0;
  text-align: center;
}

.btn-primary {
  display: inline-block;
  padding: 22px 60px;
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  border: 4px solid var(--color-ink);
  box-shadow: 
    inset 0 0 0 2px var(--color-paper),
    inset 0 0 0 4px var(--color-ink),
    4px 4px 0 rgba(43, 36, 22, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '◆';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.btn-primary::after {
  content: '◆';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
}

.btn-primary:hover {
  background: var(--color-faded-ink);
  transform: translateY(-2px);
  box-shadow: 
    inset 0 0 0 2px var(--color-paper),
    inset 0 0 0 4px var(--color-faded-ink),
    6px 6px 0 rgba(43, 36, 22, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 
    inset 0 0 0 2px var(--color-paper),
    inset 0 0 0 4px var(--color-ink),
    3px 3px 0 rgba(43, 36, 22, 0.3);
}

.contract-address {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contract-label {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-sepia);
  font-weight: 400;
}

.contract-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: white;
  border: 2px dashed var(--color-sepia);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: var(--color-ink);
  box-shadow: 2px 2px 0 rgba(139, 115, 85, 0.2);
}

.contract-copy:hover {
  border-style: solid;
  background: var(--color-aged-paper);
  transform: translateY(-1px);
  box-shadow: 3px 3px 0 rgba(139, 115, 85, 0.25);
}

.contract-copy:active {
  transform: translateY(0);
  box-shadow: 1px 1px 0 rgba(139, 115, 85, 0.2);
}

.contract-text {
  flex: 1;
}

.copy-icon {
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.contract-copy:hover .copy-icon {
  opacity: 0.8;
}

/* ================================
   SOCIAL LINKS
   ================================ */

.social-links {
  margin: 64px 0;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  background: white;
  color: var(--color-ink);
  text-decoration: none;
  border: 3px solid var(--color-ink);
  font-family: 'Courier New', Courier, monospace;
  font-weight: 400;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
  box-shadow: 3px 3px 0 rgba(43, 36, 22, 0.2);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 0;
  height: 0;
  border-top: 8px solid var(--color-sepia);
  border-left: 8px solid transparent;
  opacity: 0.3;
}

.social-link:hover {
  background: var(--color-aged-paper);
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 5px 5px 0 rgba(43, 36, 22, 0.25);
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.15);
}

/* ================================
   FOOTER
   ================================ */

.footer {
  margin-top: 96px;
  padding-top: 64px;
  border-top: 3px double var(--color-ink);
  text-align: center;
  position: relative;
}

.footer::before {
  content: '◇◇◇';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-paper);
  padding: 0 16px;
  color: var(--color-sepia);
  letter-spacing: 8px;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-town {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.8rem;
  color: var(--color-ink);
  margin-bottom: 8px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-tagline {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.95rem;
  color: var(--color-faded-ink);
  margin-bottom: 40px;
  font-style: normal;
  letter-spacing: 0.05em;
}

.footer-disclaimer {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  color: var(--color-sepia);
  line-height: 1.6;
  padding: 24px;
  border: 1px dashed var(--color-sepia);
  background: rgba(234, 229, 209, 0.2);
  opacity: 0.9;
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 768px) {
  .hero-content {
    padding: 80px 32px;
    gap: 48px;
  }
  
  .seal-emblem {
    width: 120px;
    height: 120px;
  }
  
  .seal-label-text {
    font-size: 10px;
  }
  
  .certificate {
    padding: 44px 32px;
  }
  
  .token-name {
    font-size: 76px;
    letter-spacing: 0.03em;
    left: -1px;
  }
  
  .founding-text {
    font-size: 12px;
  }
  
  .container {
    padding: 60px 32px 80px;
  }
  
  .about {
    padding: 36px 28px;
  }
  
  .about-content .lead {
    font-size: 1.5rem;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .social-links {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .social-link {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 60px 24px;
    gap: 40px;
  }
  
  .seal-emblem {
    width: 100px;
    height: 100px;
  }
  
  .certificate {
    padding: 36px 24px;
  }
  
  .token-name {
    font-size: 58px;
    letter-spacing: 0.02em;
    left: -1px;
  }
  
  .founding-text {
    font-size: 11px;
    padding: 8px 16px;
  }
  
  .btn-primary {
    padding: 18px 40px;
    font-size: 1.1rem;
  }
}

/* ================================
   PRINT
   ================================ */

@media print {
  body {
    background: white;
  }
  
  .world-layer {
    opacity: 0.12;
  }
  
  .btn-primary,
  .social-links {
    display: none;
  }
}