/* ============================================
   UNDERBONE STUDIO - Homepage
   Dark photo background + overlay, interactive
   dot grid, LED title, mint-green palette.
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --fg: #dcfcc8;          /* exact LED green from title.svg */
  --overlay: rgba(8, 10, 6, 0.65);
  --max-width: 1400px;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* ============================================
   BACKGROUND LAYERS
   ============================================ */
.bg-image {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: url("../assets/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #1a1614;
}

body[data-bg="01"] .bg-image { background-image: url("../assets/bg-01.webp"); }

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--overlay);
}

/* Interactive dotted grid ---------------------------------------- */
#dotted-grid-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background-color: #dcfcc8;
  transition: transform 0.3s ease-out;
}

/* Spike-glitch SVG filter target --------------------------------- */
.tilt-svg {
  display: inline-block;
  transform-origin: center center;
  transform-box: fill-box;
  will-change: filter;
  filter: url(#spike-glitch);
}

/* ============================================
   LINKS
   ============================================ */
a {
  color: inherit;
  text-decoration: none;
}

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

/* ============================================
   MAIN
   ============================================ */
main {
  flex: 1;
  padding: 80px 40px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ============================================
   HOMEPAGE HERO
   ============================================ */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 50px;
}

.home-title {
  width: 100%;
  max-width: 1100px;
  display: flex;
  justify-content: center;
}

.home-title img {
  width: 100%;
  height: auto;
  max-width: 1100px;
  filter: drop-shadow(0 0 6px rgba(220, 252, 200, 0.15));
}

.home-statements {
  display: flex;
  flex-direction: column;
  gap: 38px;
  max-width: 1100px;
  margin-top: 28px;
}

.home-statement {
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--fg);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--fg);
  text-transform: uppercase;
}

.site-footer a {
  color: var(--fg);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  main {
    padding: 110px 20px 40px;
    justify-content: flex-start;
  }

  .home-hero {
    gap: 32px;
  }

  .home-statements {
    margin-top: 14px;
    gap: 28px;
  }

  .home-statement {
    font-size: 20px;
  }

  .site-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 24px 20px;
    font-size: 11px;
  }
}
