/* Wiremee landing page, built from Figma frame 193:118 (1440px desktop). */

:root {
  color-scheme: only light;
  --green: #02c408;
  --blue: #17bef6;
  --gradient: linear-gradient(90deg, var(--green) 0%, var(--blue) 100%);
  --ink-900: #222222;
  --ink-800: #444444;
  --ink-700: #555555;
  --ink-600: #666666;
  --ink-400: #999999;
  --bg: #f3f3f3;
  --bg-light: #fdfdfd;
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-800);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ol { margin: 0; padding: 0; }
ol { list-style: none; }
button, input { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
}
@supports not (overflow: clip) { .page { overflow-x: hidden; } }

/* ---------- shared ---------- */

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  cursor: pointer;
}

.btn-pill {
  padding: 12px 24px;
  border-radius: 100px;
  transition: filter 0.2s, transform 0.2s;
}
.btn-pill:hover { filter: brightness(1.05); }
.btn-pill:active { transform: scale(0.98); }

/* Figma "Glass" effect */
.glass {
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.02);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 1000px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
    linear-gradient(90deg, rgba(2, 196, 8, 0.2), rgba(23, 190, 246, 0.2)) border-box;
  color: var(--ink-800);
  font-weight: 600;
  font-size: 14px;
  line-height: 19.12px;
  letter-spacing: -0.28px;
  white-space: nowrap;
}
.badge img { width: 18px; height: 18px; }
.badge__dark { color: var(--ink-900); }

.section-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.h2 {
  color: var(--ink-800);
  font-weight: 600;
  font-size: 52px;
  line-height: 65px;
  letter-spacing: -0.05em;
}


/* ---------- HERO ---------- */

.hero {
  position: relative;
  z-index: 1;
  height: 1024px;
  background: linear-gradient(180deg, var(--bg-light) 50%, var(--bg) 96.5%);
}

.hero__dots {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 1440px;
  height: 1562px;
  transform: translateX(-50%);
  pointer-events: none;
}


/* nav */
.nav {
  position: absolute;
  z-index: 10;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, calc(100% - 48px));
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px;
  border-radius: 1000px;
  background: rgba(253, 253, 253, 0.75);
}

.nav__left { display: flex; align-items: center; gap: 12px; }
.logo img { width: 164px; height: 46px; }

.nav__links { display: flex; align-items: center; }
/* Desktop: links sit in the middle of the bar, between the logo and the waitlist button. */
@media (min-width: 1024px) {
  .nav__links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}
.nav__links a,
.footer__links a {
  padding: 12px;
  color: var(--ink-800);
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav__links a:hover,
.footer__links a:hover { color: var(--green); }

.waitlist {
  display: flex;
  width: 395px;
  height: 46px;
  border-radius: 1000px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--bg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.waitlist input {
  width: 229px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 12px 24px;
  border: 0;
  outline: none;
  background: rgba(253, 253, 253, 0.75);
  color: var(--ink-800);
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.16px;
}
.waitlist input::placeholder { color: var(--ink-400); opacity: 1; }
.waitlist button {
  flex: 0 0 166px;
  padding: 12px 24px;
  transition: filter 0.2s;
}
.waitlist button:hover { filter: brightness(1.05); }

.nav__cta {
  height: 46px;
  padding: 12px 24px;
  border-radius: 100px;
  transition: filter 0.2s;
}
.nav__cta:hover { filter: brightness(1.05); }
.nav__toggle { display: none; }

/* hero content */
.hero__content {
  position: relative;
  padding-top: 219px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.hero__titles { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.hero__title { display: flex; flex-direction: column; align-items: center; }
.hero__line1 {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--ink-800);
  font-weight: 700;
  font-size: 72px;
  line-height: 90px;
  letter-spacing: -0.05em;
}
.hero__line2 {
  margin-top: -4px;
  color: var(--ink-600);
  font-weight: 600;
  font-size: 72px;
  line-height: 90px;
  letter-spacing: -0.04em;
}

.hero__pay {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  font-weight: 600;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.32px;
}

.hero__tagline {
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.03em;
}
.hero__tagline .text-gradient {
  background-image: linear-gradient(90deg, var(--green) 0%, #10c28f 45%, var(--blue) 100%);
}

.rotator {
  position: relative;
  display: inline-block;
  width: 89px;
  height: 28px;
  overflow: hidden;
}
.rotator__word {
  position: absolute;
  inset: 0;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: -0.05em;
  white-space: nowrap;
  transform: translateY(38px);
  transition: transform 0.3s var(--ease-out);
}
.rotator__word.is-active { transform: translateY(0); }

/* Badge version: sized to its longest phrase, same slide as the hero words. */
.rotator--badge {
  display: inline-grid;
  width: auto;
  height: 19px;
}
.rotator--badge .rotator__word {
  position: static;
  grid-area: 1 / 1;
  text-align: center;
  font: inherit;
  line-height: 19px;
  letter-spacing: inherit;
  transform: translateY(22px);
}
.rotator--badge .rotator__word.is-active { transform: translateY(0); }

.hero__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(595px, 100%);
}
.hero__lead p {
  color: var(--ink-600);
  font-weight: 600;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.32px;
}

/* phone mockup + floating cards */
.mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 64px;
}
.mockup {
  position: relative;
  flex: 0 0 auto;
  width: 742px;
  height: 575px;
}
.mockup__phone {
  position: absolute;
  left: 102.5px;
  top: -46px;
  width: 536px;
  height: 840px;
}

.float {
  position: absolute;
  width: 268px;
  height: 232px;
  padding: 10px;
}
.float--1 { left: -77px; top: 217px; }
.float--2 { left: 481px; top: 110px; }
.float--3 { left: 357px; top: 364px; }

.float__card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 16px;
  border-radius: 12px;
  background: #fbfbfb;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  transform-origin: 50% 50%;
  will-change: transform;
}
.float__head { display: flex; align-items: center; gap: 12px; }
.float__head img { width: 20px; height: 20px; flex: 0 0 auto; }
.float__head strong {
  color: var(--ink-800);
  font-weight: 700;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.32px;
  white-space: nowrap;
}
.float__card p {
  color: var(--ink-600);
  font-weight: 600;
  font-size: 14px;
  line-height: 19.12px;
  letter-spacing: -0.28px;
}

/* Prototype: each card drifts down and back (smart animate, ease-out 1.8s) */
.float--1 .float__card { animation: float-1 3.701s infinite; }
.float--2 .float__card { animation: float-2 4.501s infinite; }
.float--3 .float__card { animation: float-3 4.2s infinite; }

@keyframes float-1 {
  0%, 2.7% { transform: translate(0, 0) scale(1); animation-timing-function: var(--ease-out); }
  51.35%   { transform: translate(7px, 97px) scale(1.028); animation-timing-function: var(--ease-out); }
  100%     { transform: translate(0, 0) scale(1); }
}
@keyframes float-2 {
  0%, 20%  { transform: translate(0, 0) scale(1); animation-timing-function: var(--ease-out); }
  60%      { transform: translate(7px, 105px) scale(1.028); animation-timing-function: var(--ease-out); }
  100%     { transform: translate(0, 0) scale(1); }
}
/* Shorter drift than the prototype so the card never slides under the frosted band below the hero. */
@keyframes float-3 {
  0%, 7.14%    { transform: translate(0, 0) scale(1); animation-timing-function: var(--ease-out); }
  50%, 57.14%  { transform: translate(4px, 10px) scale(1.028); animation-timing-function: var(--ease-out); }
  100%         { transform: translate(0, 0) scale(1); }
}

/* ---------- FEATURES ---------- */

.features {
  position: relative;
  z-index: 2;
  margin-top: 200px;
  padding: 60px 24px 172px;
}

.frost {
  position: absolute;
  top: 28.27px;
  left: -276px;
  width: max(1943px, calc(100vw + 600px));
  height: 1000px;
  transform: rotate(-3deg);
  transform-origin: 0 0;
  background: rgba(253, 253, 253, 0.75);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  pointer-events: none;
}


.features__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: min(1240px, 100%);
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 251px;
  padding: 36px 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fafafa 0%, #f3f3f3 50%, #fafafa 100%);
}
.feature-card img { width: 100px; height: 100px; }
.feature-card h3,
.glass-card h3,
.step h3 {
  color: var(--ink-700);
  font-weight: 700;
  font-size: 24px;
  line-height: 32.78px;
  letter-spacing: -0.48px;
}
.feature-card p,
.glass-card p,
.step p {
  color: var(--ink-600);
  font-weight: 500;
  font-size: 14px;
  line-height: 19.12px;
  letter-spacing: -0.14px;
}
.feature-card h3 { margin-bottom: 8px; }

/* ---------- globe sections ---------- */

/* 3D globe (globe3d.js) sits behind the content; moves slower than the page on scroll (--parallax, set in script.js). */
.globe-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--bg);
}
.globe-bg__canvas {
  position: absolute;
  z-index: -1;
  top: -80px;
  left: 0;
  width: 100%;
  height: calc(100% + 160px);
  translate: 0 var(--parallax, 0px);
  opacity: 0.35; /* soft background: natural colours still read, text stays on top */
  pointer-events: none;
}
.globe-bg::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0, rgba(243, 243, 243, 0) 140px, rgba(243, 243, 243, 0) calc(100% - 140px), var(--bg) 100%);
}

.glass-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  border-radius: 24px;
  background: rgba(253, 253, 253, 0.9);
}

/* ---------- AUDIENCE ---------- */

.audience {
  z-index: 1;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 24px 120px;
}

.toggle {
  display: flex;
  align-items: center;
  height: 53px;
  padding: 0 5px;
  border-radius: 100px;
  background: #e8e8e8;
}
.toggle__btn {
  height: 46px;
  padding: 12px 24px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--ink-800);
  font-weight: 600;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.32px;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s;
}
.toggle__btn:not(.is-active):hover { color: var(--green); }
.toggle__btn.is-active {
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
  cursor: default;
}
.toggle__btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.audience__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: min(1392px, 100%);
}
.audience__cards[hidden] { display: none; }
/* Business tab has seven cards: wrap them 4 + 3, centred (like the GenZ section). */
.audience__cards--wrap { display: flex; flex-wrap: wrap; justify-content: center; }
.audience__cards--wrap .glass-card { flex: 0 1 calc((100% - 72px) / 4); }
/* Personal tab has five cards: one row of five on desktop. */
.audience__cards--five-up .glass-card { flex-basis: calc((100% - 96px) / 5); }
.card-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-600);
  font-weight: 500;
  font-size: 14px;
  line-height: 19.12px;
  letter-spacing: -0.14px;
}
.card-list li { position: relative; padding-left: 16px; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}
.audience__cards .glass-card { min-height: 220px; gap: 19px; }
.audience__cards:not([hidden]) .glass-card { animation: tab-in 0.35s var(--ease-out) both; }
@keyframes tab-in { from { opacity: 0; transform: translateY(8px); } }
.audience__cards .glass-card h3 { margin-bottom: -6px; }
.badge--num { align-self: flex-start; }

/* ---------- HOW IT WORKS ---------- */

.how {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 60px 24px 100px;
  background: rgba(243, 243, 243, 0.75);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 82px;
  width: min(1240px, 100%);
}
.step { position: relative; }
.step + .step::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42px;
  width: 2px;
  background: #dddddd;
}
.step__num {
  display: inline-block;
  font-weight: 800;
  font-size: 100px;
  line-height: 125px;
  letter-spacing: -0.07em;
  background: linear-gradient(90deg, #cccccc 0%, #999999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.step h3 { margin-bottom: 8px; }

/* ---------- END: easy + CTA + footer ---------- */

.end {
  position: relative;
  z-index: 1;
  margin-top: -9px;
}

.end__bg {
  position: absolute;
  top: 237px;
  left: 0;
  right: 0;
  height: 1562px;
  pointer-events: none;
}
.end__dots {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1440px;
  height: 1562px;
  transform: translateX(-50%);
}

.easy {
  position: relative;
  background-color: var(--bg);
  min-height: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 24px 120px;
  text-align: center;
}

.easy__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 40px;
  width: min(1240px, 100%);
  text-align: left;
}
.easy-card { gap: 19px; }
.easy-card h4 {
  color: var(--ink-800);
  font-weight: 700;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.32px;
}

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 82px;
  padding: 0 24px;
  text-align: center;
}
.cta__title {
  max-width: 851px;
  color: var(--ink-800);
  font-weight: 600;
  font-size: 92px;
  line-height: 101.2px;
  letter-spacing: -0.05em;
}
.cta > p {
  color: var(--ink-600);
  font-weight: 600;
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.32px;
}

.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 117px;
  padding: 0 24px 60px;
}
.footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer__links { display: flex; align-items: center; }
.footer__links a { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-600);
  font-size: 16px;
  line-height: 21.86px;
  letter-spacing: -0.2px;
}
.footer__divider { width: 1px; height: 22px; background: var(--ink-600); }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; padding: 12px 20px; }
  .nav__toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink-800); transition: transform 0.2s, opacity 0.2s; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 8px;
    border-radius: 24px;
    background: rgba(253, 253, 253, 0.95);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.1);
  }
  .nav.is-open .nav__links a { padding: 14px 16px; border-radius: 16px; }
}

@media (max-width: 1023px) {
  .hero { height: auto; padding-bottom: 40px; }
  .hero__line1,
  .hero__line2 { font-size: 56px; line-height: 68px; }
  .mockup-wrap { height: 640px; }
  .float--1 { left: 20px; z-index: 1; }
  .features { margin-top: 0; }
  .feature-grid,
  .audience__cards,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps { row-gap: 48px; }
  .step:nth-child(3)::before { display: none; }
  .easy__cards { grid-template-columns: 1fr; max-width: 560px; }
  .cta__title { font-size: 72px; line-height: 80px; }
}

@media (max-width: 1023px) {
  .audience__cards--wrap .glass-card { flex-basis: calc((100% - 24px) / 2); }
}

@media (max-width: 767px) {
  .nav { top: 16px; width: calc(100% - 32px); height: 62px; padding: 8px 8px 8px 4px; }
  .logo img { width: 120px; height: 34px; }
  .nav__cta { padding: 10px 16px; font-size: 14px; }


  .hero__content { padding: 136px 16px 0; gap: 16px; }
  .hero__line1,
  .hero__line2 { font-size: min(32px, 8vw); line-height: 1.25; }
  .hero__line1 { gap: 6px; }
  .hero__line2 { margin-top: 0; }

  .mockup-wrap { height: 450px; margin-top: 40px; }
  .mockup { transform: scale(0.66); transform-origin: 50% 0; }
  /* Pull the cards in so they stay on screen at phone widths. */
  .float--1 { left: 95px; top: 260px; }
  .float--2,
  .float--3 { left: 380px; }

  .h2 { font-size: 34px; line-height: 40px; }
  .features { padding: 60px 16px 80px; }
  .frost { top: 0; }
  .audience,
  .how,
  .easy { padding-left: 16px; padding-right: 16px; min-height: 0; }
  .audience { padding-top: 80px; padding-bottom: 80px; }
  .audience__cards--wrap .glass-card { flex-basis: 100%; min-height: 0; }
  .toggle__btn { padding: 12px 16px; }
  .easy { padding-top: 80px; padding-bottom: 80px; }

  .feature-grid,
  .audience__cards,
  .steps { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }

  .steps { row-gap: 0; }
  .step { padding: 24px 0; }
  .step:first-child { padding-top: 0; }
  .step + .step::before,
  .step:nth-child(3)::before {
    display: block;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }
  .step__num { font-size: 56px; line-height: 70px; }

  .cta { margin-top: 40px; padding: 0 16px; }
  .cta__title { font-size: 40px; line-height: 44px; }
  .waitlist { width: 100%; max-width: 395px; }
  .waitlist input { padding: 12px 16px; font-size: 15px; }
  .waitlist button { flex-basis: auto; padding: 12px 16px; font-size: 15px; }
  .footer { margin-top: 80px; padding: 0 16px 40px; }
  .footer__copy { font-size: 14px; }

  .end__dots,
  .hero__dots { width: 1100px; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float__card { animation: none; }
  .rotator__word { transition: none; }
}

/* In Figma the gradient spans the whole "Built to be Easy" line, so "Easy" only gets its teal→blue tail. */
.easy__accent { background-image: linear-gradient(90deg, #11c0af 0%, var(--blue) 100%); }
