:root {
  --bg-dark: #070709;
  --bg-surface: #121218;
  --text-main: #FFFFFF;
  --text-dim: #A0A0A8;
  --accent-blue: #2CB1F3;
  --accent-gold: #D4AF37;
  --glow-color: rgba(44, 177, 243, 0.4);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  background: rgba(7, 7, 9, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-glyph { color: var(--accent-blue); }

.brand-sub {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
@media (min-width: 768px) {
  .brand-sub { display: block; }
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--accent-gold);
  color: #000;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-decoration: none;
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
  background: #FFDF73;
}

.btn-donate {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-donate:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .navbar { padding: 10px 20px; }
  .nav-right { gap: 6px !important; }
  .btn-nav, .btn-donate { 
    padding: 6px 12px; 
    font-size: 0.75rem; 
    border-radius: 20px;
  }
  .brand-text { font-size: 1.2rem !important; }
}

/* SECTIONS */
.section {
  padding: 120px 0;
  position: relative;
}
.section.border-top {
  border-top: 1px solid rgba(255,255,255,0.03);
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-blue);
  margin-bottom: 16px;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(44, 177, 243, 0.1);
  border: 1px solid rgba(44, 177, 243, 0.2);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff, #999);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.section-desc {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 700px;
  margin-bottom: 40px;
}

/* HERO */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
}

.hero .section-title { font-size: 5rem; margin-bottom: 30px; margin-inline: auto; max-width: 900px;}
.hero-desc-wrap { margin: 0 auto 60px; max-width: 800px; }
.hero-lead { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 300; color: #DDE2EC; line-height: 1.6; margin-bottom: 30px; text-shadow: 0 4px 20px rgba(0,0,0,0.8); }
.hero-lead strong { color: #fff; font-weight: 700; text-shadow: 0 0 10px rgba(255,255,255,0.3); }
.hero-features { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.hl-feature { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--accent-blue); letter-spacing: 1px; text-transform: uppercase; background: rgba(44, 177, 243, 0.05); border: 1px solid rgba(44, 177, 243, 0.3); padding: 12px 28px; border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); backdrop-filter: blur(5px); }

.title-infinity {
  font-family: 'Dancing Script', cursive !important;
  font-style: italic !important;
  background: linear-gradient(135deg, #FFDF73 0%, #D4AF37 50%, #996515 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

h1.title-infinity {
  text-shadow: 0 5px 25px rgba(212, 175, 55, 0.4);
  padding-bottom: 10px; /* prevent clipping on the cursive descenders */
  font-size: clamp(3rem, 12vw, 6.5rem) !important;
  white-space: nowrap;
}

span.nav-title {
  font-size: 2.2rem !important;
  padding-bottom: 0px;
  line-height: 1;
  padding-right: 5px; /* space for cursive tail */
}

/* DEVICE FRAMING FOR IMAGES */
.dap-frame {
  margin: 0 auto;
  border-radius: 28px;
  padding: 12px;
  background: linear-gradient(145deg, #1f1f25, #08080a);
  box-shadow: 
    0 40px 80px rgba(0,0,0,0.8),
    inset 0 1px 1px rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.5);
  display: inline-block;
  max-width: 400px; /* Limits size nicely across the page */
  width: 100%;
}
.dap-screen {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: inset 0 0 10px rgba(0,0,0,1);
}
.dap-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-showcase {
  margin-top: 40px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  perspective: 1500px;
}

.hero-showcase .dap-frame {
  position: absolute;
  width: 340px;
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.stack-center {
  z-index: 3;
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(44, 177, 243, 0.2);
}

.stack-left {
  z-index: 2;
  transform: translateX(-260px) translateZ(-50px) rotateY(5deg) scale(0.95);
  opacity: 0.9;
}

.stack-right {
  z-index: 1;
  transform: translateX(260px) translateZ(-50px) rotateY(-5deg) scale(0.95);
  opacity: 0.9;
}

/* GRIDS */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* PHOTO GRIDS */
.masonry {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: start;
}
.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* TIDAL SCROLLER */
.tidal-gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 40px 0;
  scrollbar-width: none; /* Firefox */
}
.tidal-gallery::-webkit-scrollbar { display: none; } /* Chrome */
.tidal-gallery .dap-frame {
  flex: 0 0 320px; /* fixed smaller width for horizontal scrolling */
}

/* FLOWCHARTS */
.flowchart-wrap {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
}
.flowchart-wrap img {
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* DONATION */
.support-box {
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  padding: 60px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.support-box h3 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.support-box p {
  color: var(--text-dim);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  margin: 0 10px;
}
.donate-btn:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.crypto-line {
  margin-top: 30px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px dashed rgba(255,255,255,0.2);
  max-width: 100%;
}

@media (max-width: 600px) {
  .crypto-line {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .crypto-line code {
    font-size: 0.7rem;
    word-break: break-all;
    white-space: normal;
    text-align: center;
  }
}
.copy-btn {
  background: var(--text-main);
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* ── TABLET (≤ 900px) ── */
@media (max-width: 900px) {
  .split-grid { grid-template-columns: 1fr; }
  .split-grid.reverse > :nth-child(1) { order: 2; }
  .split-grid.reverse > :nth-child(2) { order: 1; }
  .hero .section-title { font-size: 3rem; }
  .masonry { grid-template-columns: 1fr; }


  /* Stack image pairs vertically and center */
  .img-col {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center;
    gap: 16px !important;
  }
  .img-col .dap-frame {
    transform: none !important;
    width: 100%;
    max-width: 300px;
  }
}

/* ── MOBILE (≤ 600px) ── runs AFTER 900px block so it wins */
@media (max-width: 600px) {
  /* Prevent horizontal overflow at the root */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  main {
    text-align: center;
    overflow-x: hidden;
  }
  main ul,
  main li {
    text-align: left;
  }
  main ul {
    display: inline-block;
  }

  /* Layout */
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .split-grid {
    gap: 24px;
    justify-items: center;
  }
  .section-desc {
    max-width: 100%;
  }

  /* Navbar */
  .navbar { padding: 10px 16px; }
  .nav-btn-text { display: none; }
  .btn-donate { display: none; }
  .brand-icon { display: none !important; }
  .btn-nav {
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    font-size: 1.2rem;
  }
  .nav-title { font-size: 1.4rem !important; }

  /* Hero */
  .hero { padding: 100px 0 40px; overflow: hidden; }
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 24px;
    padding: 0 10px;
  }
  h1.title-infinity {
    white-space: normal;
  }

  /* Hero showcase — clip side frames that overflow */
  .hero-showcase {
    min-height: 380px;
    width: 100%;
    overflow: hidden;
  }
  .hero-showcase .dap-frame {
    width: 200px;
    left: 50%;
  }
  .stack-center {
    transform: translateX(-50%) scale(1.05);
    z-index: 3;
  }
  .stack-left {
    transform: translateX(calc(-50% - 115px)) rotateY(15deg) scale(0.78);
    opacity: 0.45;
    z-index: 2;
  }
  .stack-right {
    transform: translateX(calc(-50% + 115px)) rotateY(-15deg) scale(0.78);
    opacity: 0.45;
    z-index: 1;
  }

  /* Typography */
  .section-title { font-size: 1.8rem; margin-bottom: 12px; }
  .section-desc  { font-size: 0.95rem; margin-bottom: 24px; }

  /* Image columns — smaller frames on phone */
  .img-col .dap-frame { max-width: 240px; }

  /* Gallery */
  .tidal-gallery .dap-frame { flex: 0 0 240px; }

  /* Support */
  .support-box { padding: 30px 16px; }
  .support-box h3 { font-size: 1.6rem; }
}
