:root {
  --primary-green: #47db79;
  --bg-dark: #060d0a;
  --bg-gradient: radial-gradient(circle at center, #0f2b1d 0%, #060d0a 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Neue Haas Grotesk Display Pro", sans-serif;
}

html {
  cursor: none;
}

body {
  background: var(--bg-dark);
  color: white;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: none;
}

body::after {
  content: "";
  width: 100%;
  height: 330px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  background: linear-gradient(
    0deg,
    #1b2d2b 0%,
    rgba(27, 45, 43, 0.6) 48.08%,
    rgba(27, 45, 43, 0) 91.21%
  );
  z-index: 10;
  pointer-events: none;
}

/* ─── Preloader ─── */
.preloader {
  position: fixed;
  inset: 0;
  background: #1b2d2b;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preloader-logo {
  position: relative;
  display: inline-block;
  opacity: 0;
}

.preloader-logo svg {
  width: 120px;
  height: auto;
  display: block;
}

/* Color fill via clip-path overlay */
.preloader-logo-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(100% 0 0 0);
}

/* ─── Custom Cursor ─── */
.cursor {
  width: 8px;
  height: 8px;
  background: var(--primary-green);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(71, 219, 121, 0.4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-follower.hovering {
  width: 60px;
  height: 60px;
  border-color: var(--primary-green);
}

/* ─── Grain Overlay ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ─── Ambient Glow ─── */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(71, 219, 121, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(80px);
}

/* ─── Header ─── */
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  position: relative;
  z-index: 5;
  opacity: 0;
}

.logo-link {
  display: inline-flex;
  position: relative;
}

.logo-svg {
  overflow: visible;
}

.logo-path {
  opacity: 0;
}

/* ─── Main Content ─── */
main {
  height: 100vh;
  position: absolute;
  top: 100px;
  width: 100%;
  padding: 0 40px;
}

.coming-soon-container {
  position: relative;
  max-width: 953px;
  margin: 0 auto;
}

.shape {
  position: relative;
  z-index: 1;
  opacity: 0;
}

.coming-path {
  opacity: 0;
}

/* ─── Phone ─── */
.phone-wrapper {
  position: absolute;
  left: 0;
  right: 0;
  top: 70px;
  margin: 0 auto;
  z-index: 2;
  opacity: 0;
}

.phone-container {
  width: max-content;
  margin: 0 auto;
  position: relative;
}

.phone-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(71, 219, 121, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

/* ─── Footer / Marquee Text ─── */
.footer-text {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 140px;
  z-index: 20;
  overflow: hidden;
  opacity: 0;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.footer-text-track {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  will-change: transform;
}

.footer-text-track .phrase {
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 24px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.footer-text-track .phrase .highlight {
  color: var(--primary-green);
  font-weight: 500;
}

.footer-text-track .separator {
  width: 6px;
  height: 6px;
  background: var(--primary-green);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ─── Make SVG and phone scale fluidly ─── */
.shape svg {
  width: 100%;
  height: auto;
}

.phone-image {
  max-width: 100%;
  height: auto;
}

/* ─── Responsive ─── */

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .cursor,
  .cursor-follower {
    display: none;
  }

  html,
  body {
    cursor: auto;
  }

  body {
    height: auto;
  }

  main {
    top: 80px;
    width: 100%;
    padding: 0 20px;
  }

  .coming-soon-container {
    max-width: 100%;
  }
  .shape {
    margin-top: 20px;
  }

  .phone-wrapper {
    position: relative;
    top: 50px;
  }

  .phone-container {
    max-width: 280px;
  }

  .footer-text {
    bottom: 100px;
  }
}

/* Tablets portrait */
@media (max-width: 768px) {
  header {
    padding-top: 20px;
  }

  .logo-svg {
    width: 120px;
    height: auto;
  }

  main {
    top: 60px;
    padding: 0 16px;
  }

  .phone-wrapper {
    top: 30px;
  }

  .phone-container {
    max-width: 220px;
  }

  .phone-glow {
    width: 200px;
    height: 200px;
  }

  .preloader-logo svg {
    width: 90px;
  }

  .footer-text {
    bottom: 80px;
  }

  .footer-text-track .phrase {
    font-size: 16px;
    letter-spacing: 1.5px;
  }

  .footer-text-track {
    gap: 28px;
  }

  .ambient-glow {
    width: 400px;
    height: 400px;
  }

  body::after {
    height: 200px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  header {
    padding-top: 16px;
  }

  .logo-svg {
    width: 100px;
    height: auto;
  }

  main {
    top: 50px;
    padding: 0 12px;
  }

  .phone-wrapper {
    top: 70px;
  }

  .phone-container {
    max-width: 260px;
  }

  .phone-glow {
    width: 150px;
    height: 150px;
    filter: blur(40px);
  }

  .preloader-logo svg {
    width: 70px;
  }

  .footer-text {
    bottom: 60px;
  }

  .footer-text-track .phrase {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .footer-text-track {
    gap: 20px;
  }

  .ambient-glow {
    width: 300px;
    height: 300px;
    filter: blur(60px);
  }

  body::after {
    height: 150px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .logo-svg {
    width: 85px;
  }

  main {
    top: 40px;
    padding: 0 8px;
  }

  .phone-container {
    max-width: 150px;
  }

  .phone-wrapper {
    top: 15px;
  }

  .footer-text {
    bottom: 50px;
  }

  .footer-text-track .phrase {
    font-size: 11px;
  }

  .footer-text-track {
    gap: 16px;
  }
}

/* Landscape phones */
@media (max-height: 500px) {
  header {
    padding-top: 10px;
  }

  main {
    top: 40px;
  }

  .phone-wrapper {
    top: 10px;
  }

  .phone-container {
    max-width: 150px;
  }

  .footer-text {
    bottom: 30px;
  }

  .footer-text-track .phrase {
    font-size: 12px;
  }

  body::after {
    height: 100px;
  }
}
