/* RANE° — styles */

:root {
  --bg: #000;
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.48);
  --faint: rgba(255, 255, 255, 0.14);
  --teal: #16f0cf;
  --yellow: #ffd21e;
  --pink: #ff9dbb;
  --font: "Jost", "Futura", "Avenir Next", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Type ---------- */

h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -0.01em; }

.brand {
  font-size: clamp(56px, 8vw, 96px);
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand sup {
  font-size: 0.55em;
  vertical-align: top;
  position: relative;
  top: 0.05em;
}

.lead {
  margin: 20px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--muted);
  font-weight: 300;
}

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 400;
}

.h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.sub {
  margin: 18px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 18px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 400;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.btn:hover, .btn:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  outline: none;
}
.btn.solid {
  border-color: var(--teal);
  color: #000;
  background: var(--teal);
}
.btn.solid:hover, .btn.solid:focus-visible {
  background: transparent;
  color: var(--teal);
}

/* ---------- Sections ---------- */

section { padding: 120px 0; position: relative; }

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split.flip > .copy { order: 2; }
.split.flip > .shot { order: 1; }

.copy { text-align: left; }
.hero .copy { text-align: left; }

/* ---------- Phone frame ---------- */

.phone {
  position: relative;
  width: min(300px, 70vw);
  margin: 0 auto;
  aspect-ratio: 860 / 1864;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px;
  background: #000;
}
.phone::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 40px 120px -40px rgba(22, 240, 207, 0.25);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 38px;
}
.phone.lg { width: min(340px, 78vw); }

/* ---------- Temperature spheres ---------- */

.temps .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.sphere {
  width: 190px;
  height: 190px;
  margin: 0 auto;
}
.sphere circle {
  transition: fill-opacity 0.6s ease, stroke-opacity 0.6s ease;
}
.temps h3 {
  margin-top: 28px;
  font-size: 36px;
  font-weight: 300;
}
.temps .cold h3 { color: var(--teal); }
.temps .mild h3 { color: var(--yellow); }
.temps .hot  h3 { color: var(--pink); }
.temps .note {
  margin: 56px auto 0;
  max-width: 44ch;
  text-align: center;
  color: var(--muted);
}

/* ---------- Privacy ---------- */

.privacy { text-align: center; padding: 140px 0; }
.privacy .h2 { max-width: 20ch; margin: 0 auto; }
.privacy .sub { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Closing ---------- */

.closing { text-align: center; padding: 140px 0 160px; }
.closing .h2 { font-size: clamp(36px, 5.5vw, 64px); }

/* ---------- Footer ---------- */

footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--faint);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
}
footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
footer a { transition: color 0.3s ease; }
footer a:hover { color: var(--ink); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.15s; }
.reveal.d2 { transition-delay: 0.3s; }
.reveal.d3 { transition-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sphere circle { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 17px; }
  section { padding: 84px 0; }
  .hero { padding: 72px 0 40px; min-height: auto; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > .copy, .split.flip > .shot { order: initial; }
  .copy, .hero .copy { text-align: center; }
  .sub { margin-left: auto; margin-right: auto; }
  .temps .grid { grid-template-columns: 1fr; gap: 56px; }
  .sphere { width: 160px; height: 160px; }
  footer .wrap { justify-content: center; text-align: center; }
  footer nav { justify-content: center; }
}
