/* ReFound — Landing Page */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #f0f0f0;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --green: #4ade80;
  --green-dark: #22c55e;
  --gold: #f5a623;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-pill: 9999px;
  --container: 1200px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Icons */
.icon--green {
  color: var(--green);
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--black);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn--lg.btn-open-notify {
  white-space: normal;
  text-align: center;
  max-width: 320px;
}

/* Section labels */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.section-label--dark {
  color: var(--gray-500);
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 40px;
}

.section-title--center {
  text-align: center;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--black);
  height: var(--header-h);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo__icon {
  color: var(--green);
  flex-shrink: 0;
}

.logo--sm {
  font-size: 16px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 24px 24px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav .btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  margin-top: 8px;
}

.mobile-nav.is-open {
  display: flex;
}

/* Hero */
.hero {
  --hero-bg: #0c0c0d;
  background: var(--hero-bg);
  padding: calc(var(--header-h) + 64px) 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 48px;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero__delivery {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.9;
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.feature-list span {
  font-size: 13px;
  line-height: 1.5;
}

.feature-list--light strong,
.feature-list--light span {
  color: var(--white);
}

.feature-list--light span {
  opacity: 0.65;
}

.feature-list--dark strong {
  color: var(--black);
}

.feature-list--dark span {
  color: var(--gray-600);
}

/* Trusted / Who is it for */
.trusted {
  background: var(--gray-50);
  padding: 48px 0;
  border-bottom: 1px solid var(--gray-200);
}

.trusted__intro {
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
}

.hero__visual img {
  width: 100%;
  display: block;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  mask-composite: intersect;
}

.hero__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--hero-bg) 0%, transparent 8%, transparent 92%, var(--hero-bg) 100%),
    linear-gradient(to right, var(--hero-bg) 0%, transparent 4%, transparent 96%, var(--hero-bg) 100%);
  pointer-events: none;
}

.trusted__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}

.trusted__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--black);
}

.trusted__item svg {
  opacity: 0.8;
}

.trusted__item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
}

/* How It Works */
.how-it-works {
  background: var(--white);
  padding: 96px 0;
}

.how-it-works__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.steps li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
}

.steps strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.steps p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

.how-it-works__visual img {
  width: 100%;
  border-radius: 12px;
}

/* What's Included */
.included {
  background: var(--gray-50);
  padding: 96px 0 64px;
  text-align: center;
}

.included .section-label {
  text-align: center;
}

.included .section-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.included__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 220px));
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}

.product-card {
  text-align: center;
}

.product-card__image {
  background: var(--white);
  border-radius: 12px;
  padding: 24px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.product-card__image img {
  width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.product-card__image--duo {
  gap: 8px;
}

.product-card__image--duo img {
  width: auto;
  flex: 1;
  max-width: calc(50% - 4px);
}

.product-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 12px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* Footer CTA */
.cta-footer {
  background: var(--black);
  padding: 56px 0 48px;
}

.cta-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.cta-footer__icon {
  opacity: 0.9;
  margin-bottom: 4px;
}

.cta-footer__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 520px;
}

.cta-footer__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
  margin-top: 8px;
  width: 100%;
}

.trust-badge {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex-shrink: 0;
}

.trust-badge strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.trust-badge span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* Site Footer */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.site-footer__links {
  display: flex;
  gap: 24px;
}

.site-footer__links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    align-items: center;
  }

  .hero__cta {
    align-items: center;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .feature-list li {
    text-align: left;
  }

  .hero__visual {
    order: -1;
  }

  .how-it-works__inner {
    grid-template-columns: 1fr;
  }

  .included__grid {
    grid-template-columns: repeat(2, minmax(0, 220px));
    justify-content: center;
  }

  .trusted__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-footer__trust {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-inline: 16px;
  }

  .nav,
  .header .btn--sm {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .included__grid {
    grid-template-columns: repeat(2, minmax(0, 200px));
    justify-content: center;
  }

  .trusted__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
    padding-bottom: 48px;
    min-height: auto;
  }

  .hero__inner {
    gap: 32px;
  }

  .how-it-works,
  .included {
    padding: 64px 0;
  }

  .included {
    padding-bottom: 48px;
  }

  .cta-footer {
    padding: 40px 0 36px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .site-footer__links {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .included__grid {
    grid-template-columns: minmax(0, 280px);
    justify-content: center;
  }
}

/* Notify modal */
.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;
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.modal__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.modal__text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal__note {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notify-form__input {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font);
  font-size: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.notify-form__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.notify-form__input:focus {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
}

.notify-form__input.is-invalid {
  border-color: #f87171;
}

.notify-form__error {
  font-size: 13px;
  color: #f87171;
  margin-top: -4px;
}

.notify-form__submit {
  width: 100%;
  margin-top: 4px;
}

.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.modal__success[hidden] {
  display: none;
}

.modal__success-icon {
  margin-bottom: 8px;
}

.modal__success .modal__text {
  margin-bottom: 20px;
}

.notify-form__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

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

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