:root {
  --bg-app: #F5F3F0;
  /* warmgrey-50 */
  --bg-panel: #EBE6E0;
  /* warmgrey-75 */
  --bg-dark: #241C16;
  --text: #080707;
  --muted: #747881;
  --disabled: #B4B7BB;
  --primary: #005FFF;
  --shadow: 0 4px 14.5px rgba(0, 0, 0, .12);
  --radius-lg: 29px;
  --section-p-v: clamp(64px, 8vw, 120px);
  --hero-p-v: clamp(80px, 10vw, 140px);

  /* Typography Best Practices */
  --fs-base: 1rem;
  --fs-h1: clamp(2.5rem, 6vw + 1rem, 4.5rem);
  --fs-h2: clamp(2rem, 4vw + 1rem, 3.25rem);
  --fs-h3: clamp(1.25rem, 2vw + 1rem, 1.75rem);
  --fs-body: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
  --fs-lead: clamp(1.125rem, 1vw + 1rem, 1.375rem);

  --lh-tight: 1.1;
  --lh-base: 1.55;
  --lh-relaxed: 1.65;

  --ls-tight: -0.02em;
  --ls-xtight: -0.035em;

  --max-w-text: 65ch;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg-app);
  color: var(--text);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}


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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 50;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1200px, calc(100% - 2*clamp(16px, 4vw, 40px)));
  margin-inline: auto;
}

.hero {
  background: var(--bg-panel);
  overflow: hidden;
}

.hero__nav {
  padding-top: clamp(18px, 3.2vw, 46px);
}

.nav-card {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.brand__logo {
  height: 32px;
  width: auto;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(0, 0, 0, .14);
  background: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font: 600 14px/1 "Plus Jakarta Sans", system-ui;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-weight: 600;
}

.nav-links a {
  font-size: 16px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-caret {
  width: 14px;
  height: 14px;
  opacity: .9;
}

.hero__main {
  padding-block: var(--hero-p-v);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.hero__title {
  margin: 0 0 18px;
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-xtight);
  line-height: var(--lh-tight);
  font-weight: 700;
}

.hero__title-accent {
  color: var(--primary);
}

.hero__lead {
  margin: 0 0 24px;
  font-size: var(--fs-lead);
  line-height: var(--lh-base);
  max-width: var(--max-w-text);
  color: rgba(8, 7, 7, 0.85);
}

.store-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.store-row--center {
  justify-content: center;
}

.store-badge {
  position: relative;
  width: 135px;
  height: 40px;
  overflow: hidden;
  border-radius: 8px;
  transform: translateZ(0);
}

.store-badge--as {
  width: 120px;
}

.store-badge .store-badge__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature__subicon {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin: 0 0 12px;
}

.hero__visual {
  position: relative;
}

.hero__visual--merged {
  width: min(680px, 100%);
  aspect-ratio: 1889/1647;
}

.hero__merged {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature {
  background: var(--bg-panel);
  padding-block: var(--section-p-v);
  overflow: hidden;
  position: relative;
}

/* Decorative background shape */
.feature::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(0, 95, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.feature--alt {
  background: var(--bg-app);
  position: relative;
}

.feature--alt::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse at center, rgba(0, 95, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

/* cut-off phone layout */
.feature--cutoff {
  padding-bottom: 0;
}

.feature--cutoff .feature__visual {
  padding-bottom: 0;
  align-self: end;
}

/* On PC, when the image is cutoff at bottom, the text needs bottom padding to look centered */
@media (min-width: 961px) {
  .feature--cutoff .feature__copy {
    padding-bottom: var(--section-p-v);
  }
}

/* alternating background */

.feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(8, 7, 7, .55);
}

.h2 {
  margin: 0 0 16px;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
}

.p {
  margin: 0 0 16px;
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  max-width: var(--max-w-text);
}

.p-lg {
  margin: 0 0 12px;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.55;
  max-width: 56ch;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  opacity: .85;
}

.feature__visual {
  position: relative;
}

.feature__merged {
  position: relative;
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Base paddings handled by .feature and .feature--cutoff */

/* Merged visuals (single exported images) */
.feature__visual--talk .feature__merged--talk {
  right: -2%;
  width: min(660px, 100%);
}

/* removed min-height */

.feature__visual--voice .feature__merged--voice {
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100%);
}

.feature__visual--calls .feature__merged--calls {
  left: 50%;
  top: -6%;
  transform: translateX(-50%);
  width: min(700px, 100%);
}

/* removed min-height */

.feature__visual--groups .feature__merged--groups {
  left: 50%;
  top: -6%;
  transform: translateX(-50%);
  width: min(700px, 100%);
}

.feature__visual--moments .feature__merged--moments {
  right: -2%;
  top: -4%;
  width: min(620px, 100%);
}

.feature__visual--nearby .feature__merged--nearby {
  left: 50%;
  transform: translateX(-50%);
  width: min(380px, 92%);
}

.privacy {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a120c 100%);
  color: #fff;
  padding-block: var(--section-p-v);
  position: relative;
  overflow: hidden;
}

/* Grain overlay */
.privacy::before {
  content: '';
  position: absolute;
  inset: 0;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

.privacy__hero {
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-bottom: clamp(34px, 4vw, 54px);
}

.privacy__icon {
  width: 208px;
  height: 208px;
}

.privacy__title {
  margin: 0;
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: var(--ls-xtight);
  line-height: var(--lh-tight);
}

.privacy__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.privacy__card {
  text-align: center;
}

.privacy__icon-lib {
  display: block;
  margin: 0 auto 24px;
  width: 48px;
  height: 48px;
  color: #fff;
  stroke-width: 1.5px;
}

.privacy__h3 {
  margin: 0 0 14px;
  font-size: var(--fs-h3);
  font-weight: 600;
  text-align: center;
  letter-spacing: var(--ls-tight);
}

.privacy__p {
  margin: 0;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.75);
  text-align: left;
  max-width: var(--max-w-text);
  margin-inline: auto;
}

.download {
  background: #fff;
  padding-block: 56px;
}

.download__inner {
  text-align: center;
}

.download__title {
  margin: 0 0 12px;
  font-size: var(--fs-h2);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
}

.download__sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  background: linear-gradient(180deg, #0F0F0F 0%, #050505 100%);
  color: var(--disabled);
  border-top: 1px solid #DBDDE1;
  padding-block: clamp(48px, 6vw, 86px);
  position: relative;
}

/* Footer grain overlay */
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
}

.footer__inner {
  display: grid;
  gap: 18px;
  place-items: center;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__meta {
  margin: 0;
  font-size: 15px;
  line-height: var(--lh-base);
  color: rgba(180, 183, 187, 0.8);
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--disabled);
  font-size: 16px;
}

@media (max-width: 960px) {
  .hero__main {
    grid-template-columns: 1fr;
    padding-block: 48px;
  }

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

  .feature__copy {
    order: -1;
    margin-bottom: clamp(16px, 3vw, 26px);
  }

  .feature__visual {
    order: 0;
    overflow: hidden;
  }

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

  .feature__copy--with-icon {
    --subicon-size: clamp(64px, 16vw, 84px);
    position: relative;
    padding-right: calc(var(--subicon-size) + 14px);
  }

  .feature__copy--with-icon .feature__subicon {
    position: absolute;
    right: 0;
    top: 0;
    width: var(--subicon-size);
    height: var(--subicon-size);
    margin: 0;
  }

  /* Mobile-safe layouts: keep visuals contained and reduce absolute decorations */
  .feature__visual .feature__merged {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto;
  }

  /* removed min-height */

  .feature__visual--talk .feature__merged--talk {
    width: min(660px, 92%);
  }

  /* removed min-height */

  .feature__visual--voice .feature__merged--voice {
    width: min(820px, 92%);
  }

  /* removed min-height */

  .feature__visual--calls .feature__merged--calls {
    width: min(700px, 92%);
  }

  #groups .feature__visual--groups {
    overflow: hidden;
  }

  .feature__visual--groups .feature__merged--groups {
    width: min(700px, 92%);
  }

  /* removed min-height */

  .feature__visual--moments .feature__merged--moments {
    width: min(620px, 92%);
  }

  /* removed min-height */

  .feature__visual--nearby .feature__merged--nearby {
    width: min(380px, 92%);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 10px;
  }

  .nav-card {
    flex-wrap: wrap;
  }

  .nav-card[data-open="true"] .nav-links {
    display: flex;
  }

  .nav-caret {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0, 0.2, 1);
  will-change: opacity, transform;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}