@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&family=Permanent+Marker&display=swap');

:root {
  --orange: #f5921b;
  --orange-dark: #d47a0f;
  --orange-light: #ffb74d;
  --blue: #3ba4dc;
  --blue-dark: #2980b9;
  --brown: #5d4037;
  --brown-light: #8d6e63;
  --cream: #fff8e7;
  --dark: #1a1a1a;
  --white: #ffffff;
  --cave-bg: #f5e6c8;
  --cave-dark: #e8d5b0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Patrick Hand', cursive;
  background-color: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.5;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* NAV */
.cave-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 4px solid var(--orange);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--orange);
}

.nav-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5rem;
  color: var(--orange);
  margin-right: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Permanent Marker', cursive;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--dark);
  border-bottom: 4px solid var(--orange);
  flex-direction: column;
  padding: 16px 20px;
  gap: 12px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--white);
  text-decoration: none;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  padding: 8px 0;
  border-bottom: 2px dashed var(--brown);
}

.mobile-menu a:hover {
  color: var(--orange);
}

/* BUTTONS */
.btn-cave {
  display: inline-block;
  padding: 10px 24px;
  background: var(--orange);
  color: var(--dark);
  font-family: 'Permanent Marker', cursive;
  font-size: 1rem;
  text-decoration: none;
  border: 3px solid var(--dark);
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 4px 4px 0 var(--dark);
  text-align: center;
}

.btn-cave:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--dark);
}

.btn-cave:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--dark);
}

.btn-cave.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
  box-shadow: 4px 4px 0 var(--orange);
}

.btn-cave.btn-outline:hover {
  background: var(--orange);
  color: var(--dark);
}

.btn-cave.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  box-shadow: 3px 3px 0 var(--dark);
}

.btn-cave.btn-big {
  padding: 14px 32px;
  font-size: 1.2rem;
}

/* HERO */
.hero {
  margin-top: 64px;
  position: relative;
  background: linear-gradient(135deg, var(--orange) 0%, var(--blue) 100%);
  overflow: hidden;
  text-align: center;
  padding-bottom: 40px;
}

.banner-wrap {
  width: 100%;
  overflow: hidden;
}

.banner-img {
  width: 100%;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 20px 20px 0;
}

.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid var(--dark);
  background: var(--white);
  margin-top: -100px;
  position: relative;
  z-index: 3;
  animation: wobble 3s ease-in-out infinite;
}

.hero-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 4rem;
  color: var(--white);
  text-shadow: 4px 4px 0 var(--dark), -2px -2px 0 var(--dark), 2px -2px 0 var(--dark), -2px 2px 0 var(--dark);
  margin-top: 16px;
  letter-spacing: 4px;
  line-height: 1.2;
}

.hero-subtitle {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.6rem;
  color: var(--cream);
  text-shadow: 2px 2px 0 var(--dark);
  margin-top: 8px;
}

.cave-text {
  font-size: 1.3rem;
  color: var(--white);
  max-width: 600px;
  margin: 16px auto;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.3);
}

.cave-text.center {
  text-align: center;
  color: var(--dark);
  text-shadow: none;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cave-drawings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.drawing {
  position: absolute;
  font-size: 3rem;
  color: rgba(255,255,255,0.15);
  font-family: 'Permanent Marker', cursive;
  animation: float 6s ease-in-out infinite;
}

.d1 { top: 20%; left: 5%; animation-delay: 0s; }
.d2 { top: 40%; right: 8%; animation-delay: 1.5s; }
.d3 { bottom: 20%; left: 15%; animation-delay: 3s; }
.d4 { bottom: 10%; right: 20%; animation-delay: 4.5s; }

/* TICKER */
.ticker-bar {
  background: var(--dark);
  color: var(--orange);
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  padding: 12px 0;
  overflow: hidden;
  border-top: 3px solid var(--orange);
  border-bottom: 3px solid var(--orange);
}

.ticker-content {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: scroll 20s linear infinite;
  width: max-content;
}

.ticker-content span {
  flex-shrink: 0;
}

/* SECTIONS */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.8rem;
  text-align: center;
  color: var(--dark);
  letter-spacing: 2px;
  line-height: 1.2;
}

.cave-divider {
  text-align: center;
  font-family: 'Permanent Marker', cursive;
  color: var(--orange);
  font-size: 1.4rem;
  margin: 12px 0 40px;
  letter-spacing: 4px;
}

/* ABOUT / STORY */
.section-about {
  background: var(--cave-bg);
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d4c4a0' fill-opacity='0.3'%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  background: var(--white);
  border: 3px solid var(--dark);
  padding: 28px 24px;
  box-shadow: 6px 6px 0 var(--dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

.story-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--dark);
}

.story-icon {
  font-family: 'Permanent Marker', cursive;
  font-size: 2.5rem;
  color: var(--orange);
  margin-bottom: 8px;
}

.story-card h3 {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.5rem;
  color: var(--brown);
  margin-bottom: 8px;
}

.story-card p {
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.6;
}

/* QUOTE */
.section-quote {
  background: var(--orange);
  padding: 60px 0;
  text-align: center;
  border-top: 4px solid var(--dark);
  border-bottom: 4px solid var(--dark);
}

.ung-quote {
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  color: var(--dark);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
}

.quote-author {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.1rem;
  color: var(--brown);
  margin-top: 16px;
}

/* TOKENOMICS */
.section-tokenomics {
  background: var(--cream);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.token-card {
  background: var(--white);
  border: 3px solid var(--dark);
  padding: 24px 16px;
  text-align: center;
  box-shadow: 5px 5px 0 var(--dark);
  transition: transform 0.2s;
}

.token-card:hover {
  transform: translate(-2px, -2px);
}

.token-card.safe {
  border-color: #2e7d32;
  box-shadow: 5px 5px 0 #2e7d32;
}

.token-label {
  font-family: 'Permanent Marker', cursive;
  font-size: 0.9rem;
  color: var(--brown-light);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.token-value {
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  color: var(--dark);
}

.token-value.fire {
  color: #c62828;
  animation: pulse 2s ease-in-out infinite;
}

.token-desc {
  font-size: 1rem;
  color: var(--brown-light);
  margin-top: 8px;
}

.safety-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: #e8f5e9;
  border: 3px dashed #2e7d32;
  font-family: 'Permanent Marker', cursive;
  font-size: 1.2rem;
  color: #2e7d32;
  text-align: center;
  flex-wrap: wrap;
}

.safety-icon {
  font-size: 1.5rem;
}

/* FLORK SECTION */
.section-flork {
  background: var(--cave-dark);
  border-top: 4px solid var(--dark);
  border-bottom: 4px solid var(--dark);
}

.flork-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.flork-text {
  flex: 1;
}

.flork-text p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--dark);
}

.flork-img-wrap {
  flex-shrink: 0;
}

.flork-img {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 5px solid var(--dark);
  background: var(--white);
  box-shadow: 8px 8px 0 var(--dark);
  animation: wobble 4s ease-in-out infinite;
}

/* COMMUNITY */
.section-community {
  background: var(--cream);
}

.community-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.community-card {
  display: block;
  background: var(--white);
  border: 3px solid var(--dark);
  padding: 32px 28px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  box-shadow: 6px 6px 0 var(--dark);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 280px;
}

.community-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--orange);
  border-color: var(--orange);
}

.comm-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  font-family: 'Permanent Marker', cursive;
  font-size: 2rem;
  background: var(--orange);
  color: var(--dark);
  border: 3px solid var(--dark);
  margin: 0 auto 16px;
}

.community-card h3 {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.community-card p {
  font-size: 1.05rem;
  color: var(--brown);
}

/* FOOTER */
.cave-footer {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
  border-top: 4px solid var(--orange);
}

.footer-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  margin-bottom: 16px;
}

.footer-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.footer-sub {
  font-size: 0.95rem;
  color: #999;
  max-width: 500px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--orange);
  text-decoration: none;
  font-family: 'Permanent Marker', cursive;
  font-size: 1rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links span {
  color: var(--brown-light);
}

.footer-copy {
  font-size: 0.85rem;
  color: #666;
}

/* ANIMATIONS */
@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .token-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flork-content {
    flex-direction: column;
    text-align: center;
  }

  .flork-img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 700px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-logo {
    width: 130px;
    height: 130px;
    margin-top: -70px;
  }

  .section-title {
    font-size: 2rem;
  }

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

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

  .ung-quote {
    font-size: 1.4rem;
  }

  .community-card {
    width: 100%;
  }

  .btn-cave.btn-big {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }
}
