:root {
  --night: #07111f;
  --night-2: #0d1c33;
  --dusk: #16325a;
  --ink: #f3f6fb;
  --quiet: rgba(243, 246, 251, 0.68);
  --grass: #3bb85a;
  --grass-deep: #217a38;
  --moon: #eef3ff;
  --line: rgba(255, 255, 255, 0.1);
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Figtree", sans-serif;
  --pad: clamp(1.25rem, 4.5vw, 3.5rem);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background: var(--night);
  line-height: 1.55;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--grass);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #7dff9a;
}

.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem var(--pad);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.88), rgba(7, 17, 31, 0));
}

.brand-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand-mark span {
  letter-spacing: 0.18em;
  margin-right: 0.35rem;
  opacity: 0.7;
}

.topnav nav {
  display: flex;
  gap: 1.15rem;
}

.topnav nav a {
  color: var(--quiet);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.topnav nav a:hover {
  color: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 5.5rem 0 0;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 75% 8%, rgba(255, 255, 255, 0.16), transparent 55%),
    linear-gradient(180deg, #081527 0%, #12305a 48%, #1a3d4a 78%, #1f5a38 100%);
}

.sky-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 32%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 48% 14%, #fff, transparent),
    radial-gradient(1px 1px at 66% 28%, #fff, transparent),
    radial-gradient(2px 2px at 82% 16%, #fff, transparent),
    radial-gradient(1px 1px at 90% 40%, #fff, transparent);
  opacity: 0.7;
  animation: twinkle 5s ease-in-out infinite;
}

.moon {
  position: absolute;
  top: 9%;
  right: 11%;
  width: clamp(70px, 11vw, 130px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0%, #d7e3ff 48%, #9aaed4 100%);
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.05), 0 0 80px rgba(255, 255, 255, 0.28);
  animation: drift 9s ease-in-out infinite;
}

.terrain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 0 2vw;
  gap: 0.4vw;
  pointer-events: none;
}

.terrain span {
  display: block;
  width: 9%;
  background: linear-gradient(180deg, #4ad06a 0 18%, #8b5a2b 18%);
  border-radius: 2px 2px 0 0;
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.15);
  animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.terrain span:nth-child(1) { height: 42%; animation-delay: 0.05s; }
.terrain span:nth-child(2) { height: 68%; animation-delay: 0.1s; }
.terrain span:nth-child(3) { height: 36%; animation-delay: 0.15s; }
.terrain span:nth-child(4) { height: 88%; animation-delay: 0.2s; }
.terrain span:nth-child(5) { height: 54%; animation-delay: 0.25s; }
.terrain span:nth-child(6) { height: 72%; animation-delay: 0.3s; }
.terrain span:nth-child(7) { height: 40%; animation-delay: 0.35s; }
.terrain span:nth-child(8) { height: 62%; animation-delay: 0.4s; }
.terrain span:nth-child(9) { height: 48%; animation-delay: 0.45s; }

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad) 4.5rem;
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

.hero-copy {
  animation: rise 0.85s ease both;
  max-width: 34rem;
  padding-bottom: 1rem;
}

.hero h1 {
  margin: 0;
  line-height: 0.92;
}

.h1-seed {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.45rem;
}

.h1-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 11vw, 6rem);
  letter-spacing: -0.04em;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.lede {
  margin: 0.85rem 0 0;
  color: var(--quiet);
  font-size: 1.05rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--grass);
  color: #062412;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: #52d974;
  color: #03180c;
}

.btn-ghost {
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-device {
  position: relative;
  height: clamp(360px, 58vw, 520px);
  display: grid;
  place-items: end center;
  animation: rise 1s 0.12s ease both;
}

.phone {
  position: relative;
  width: min(52vw, 250px);
  border-radius: 28px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2433, #0b1018);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  z-index: 2;
}

.phone img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: center top;
}

.phone-back {
  position: absolute;
  right: 8%;
  bottom: 8%;
  width: min(46vw, 220px);
  transform: rotate(8deg) translateY(-12px);
  z-index: 1;
  opacity: 0.92;
  filter: brightness(0.92);
}

/* —— Band —— */
.band {
  background: #14301f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.95rem var(--pad);
  text-align: center;
  overflow: hidden;
}

.band p {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: rgba(210, 255, 220, 0.75);
  white-space: nowrap;
  animation: marquee 22s linear infinite;
}

/* —— Gallery —— */
.gallery,
.support,
.promise {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
}

.section-head {
  max-width: 34rem;
  margin-bottom: 2rem;
}

.section-head h2,
.promise h2 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.section-head p,
.promise p {
  margin: 0;
  color: var(--quiet);
  font-size: 1.05rem;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-mosaic figure {
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #0a1422;
  border: 1px solid var(--line);
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.55s ease;
}

.gallery-mosaic figure:hover img {
  transform: scale(1.04);
}

.gallery-mosaic .wide {
  grid-column: 1 / -1;
}

.gallery-mosaic .wide img {
  aspect-ratio: 16 / 9;
  object-position: center;
}

.gallery-mosaic .tall img {
  aspect-ratio: 3 / 5;
}

.promise {
  text-align: left;
  border-top: 1px solid var(--line);
}

.promise p {
  max-width: 38rem;
  font-size: 1.2rem;
  color: rgba(243, 246, 251, 0.82);
}

/* —— Support —— */
.support {
  border-top: 1px solid var(--line);
}

.contact {
  font-style: normal;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2rem;
  margin: 0;
}

.contact span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--quiet);
  font-weight: 600;
}

.contact a {
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(59, 184, 90, 0.55);
}

.contact a:hover {
  color: var(--grass);
}

.contact p {
  margin: 0;
  color: var(--quiet);
}

.contact .span-2 {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem var(--pad) 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--quiet);
  text-decoration: none;
}

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

/* Privacy page */
.legal {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 7rem var(--pad) 4rem;
}

.legal .eyebrow {
  margin: 0 0 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--quiet);
}

.legal h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.03em;
}

.legal h2 {
  margin: 2.2rem 0 0.6rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: var(--quiet);
}

.legal .muted {
  color: rgba(243, 246, 251, 0.5);
}

.back-link {
  margin-top: 2.5rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

@keyframes grow {
  from { transform: scaleY(0); transform-origin: bottom; opacity: 0.2; }
  to { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(12%); }
  to { transform: translateX(-12%); }
}

@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: calc(100svh - 5.5rem);
    padding-bottom: 3rem;
  }

  .hero-device {
    height: 560px;
    place-items: center;
  }

  .phone {
    width: 260px;
  }

  .phone-back {
    width: 230px;
    right: 4%;
    bottom: 6%;
  }

  .gallery-mosaic {
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
  }

  .gallery-mosaic figure {
    grid-column: span 4;
  }

  .gallery-mosaic .wide {
    grid-column: span 8;
  }

  .gallery-mosaic .tall {
    grid-column: span 4;
    grid-row: span 2;
  }

  .gallery-mosaic .tall img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 100%;
  }

  .contact {
    grid-template-columns: 1fr 1fr 1.4fr;
  }

  .contact .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .topnav {
    padding: 0.85rem 1rem;
  }

  .topnav nav {
    gap: 0.75rem;
  }

  .topnav nav a {
    font-size: 0.82rem;
  }

  .brand-mark {
    font-size: 0.82rem;
    max-width: 42vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .hero-stage {
    gap: 1.5rem;
    padding-bottom: 3rem;
  }

  .hero-device {
    height: auto;
    min-height: 300px;
  }

  .phone {
    width: min(58vw, 220px);
  }

  .phone-back {
    display: none;
  }

  .gallery-mosaic {
    gap: 0.55rem;
  }

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

  .band p {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
