/* Home page — hero redesign (reference layout) */

body.page-home {
  background: #f3f4f2;
  background: linear-gradient(180deg, #f5f6f4 0%, #eeefec 45%, #f8f9f7 100%);
}

.page-home .hero {
  padding: clamp(32px, 5vw, 56px) 24px clamp(56px, 8vw, 88px);
  overflow: hidden;
}

.page-home .hero-grid {
  max-width: 1180px;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(24px, 4vw, 48px);
}

/* Eyebrow */
.page-home .hero-eyebrow {
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent-mid);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.page-home .hero-eyebrow::before {
  display: none;
}

.page-home .hero-eyebrow-icon {
  font-size: 0.65rem;
  opacity: 0.9;
}

/* Headline */
.page-home .hero h1 {
  font-size: clamp(2.75rem, 5.8vw, 4.75rem);
  line-height: 1.02;
  max-width: 12ch;
  margin-bottom: 22px;
  color: #0a1210;
}

.page-home .hero h1 em {
  font-style: italic;
  color: #008f6a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.page-home .hero-lead {
  max-width: 460px;
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.72;
  color: #5c6570;
}

.page-home .hero-lead strong {
  color: #1a2422;
  font-weight: 600;
}

/* CTAs */
.page-home .hero-actions {
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .btn-hero-primary {
  padding: 14px 22px 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cta-fg);
  background: linear-gradient(90deg, #004a44, #007a5c, #00a67a);
  box-shadow: 0 12px 32px rgba(0, 120, 90, 0.28);
  border: none;
}

.page-home .btn-hero-primary:hover {
  box-shadow: 0 16px 40px rgba(0, 120, 90, 0.35);
}

.page-home .btn-hero-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}

.page-home .btn-hero-arrow {
  margin-left: 4px;
  opacity: 0.85;
}

.page-home .btn-hero-secondary {
  padding: 14px 22px 14px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  background: #fff;
  border: 1px solid rgba(12, 18, 32, 0.1);
  box-shadow: 0 2px 8px rgba(12, 18, 32, 0.04);
}

.page-home .btn-hero-secondary:hover {
  background: #fafafa;
  border-color: rgba(12, 18, 32, 0.14);
  transform: translateY(-1px);
}

.page-home .btn-hero-secondary svg {
  width: 16px;
  height: 16px;
  color: var(--accent-mid);
}

/* Social proof */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.hero-trust-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

.hero-trust-avatars {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-trust-avatars li {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid #f5f6f4;
  margin-left: -10px;
  overflow: hidden;
  background: #e2e8e6;
  box-shadow: 0 2px 6px rgba(12, 18, 32, 0.08);
}

.hero-trust-avatars li:first-child {
  margin-left: 0;
}

.hero-trust-avatars img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-trust-stat {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: -0.02em;
}

.hero-trust-stat span {
  color: var(--accent-mid);
}

/* Hero visual — phone + decorative circles */
.page-home .hero-visual {
  min-height: 380px;
  justify-content: flex-end;
  padding-right: clamp(0px, 3vw, 24px);
}

.hero-scene {
  position: relative;
  width: min(320px, 88vw);
  max-width: 320px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-scene-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-scene-orb--1 {
  width: 72%;
  height: 72%;
  right: -8%;
  top: 8%;
  background: radial-gradient(circle at 35% 35%, rgba(0, 83, 76, 0.55), rgba(0, 53, 48, 0.35) 50%, transparent 72%);
  filter: blur(2px);
}

.hero-scene-orb--2 {
  width: 48%;
  height: 48%;
  left: -4%;
  bottom: 18%;
  background: radial-gradient(circle, rgba(0, 144, 111, 0.25), transparent 70%);
}

.hero-scene-orb--3 {
  width: 100%;
  height: 35%;
  left: 0;
  bottom: 0;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(255, 255, 255, 0.9), rgba(0, 189, 136, 0.12) 40%, transparent 70%);
}

.page-home .hero .device-mockup {
  width: min(268px, 72vw);
  max-width: 268px;
  position: relative;
  z-index: 2;
}

.page-home .hero .device-mockup-glow {
  inset: 15% -25% -15%;
  background: radial-gradient(ellipse 65% 55% at 50% 60%, rgba(0, 189, 136, 0.2), transparent 68%);
}

.page-home .hero .device-mockup-stage {
  transform: rotateY(-16deg) rotateX(5deg) rotateZ(-2deg);
}

.page-home .hero-visual:hover .device-mockup-stage {
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(-0.5deg) translateY(-6px);
}

.page-home .hero .device-mockup-frame {
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(155deg, #2a3533 0%, #151c1a 50%, #0a0e0d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 40px 80px rgba(6, 14, 12, 0.5),
    0 0 120px rgba(0, 189, 136, 0.12);
}

.page-home .hero .device-mockup-frame::before {
  top: 16px;
  width: 88px;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
}

.page-home .hero .hero-phone-frame img {
  border-radius: 28px;
  aspect-ratio: 369 / 800;
}

.page-home .hero .device-mockup-floor {
  bottom: 8%;
  height: 40px;
  left: 5%;
  right: 5%;
  background: radial-gradient(ellipse, rgba(0, 189, 136, 0.35), transparent 72%);
  filter: blur(14px);
}

/* Home features section on new bg */
.page-home .home-features {
  position: relative;
  background: #f9fbfa;
  padding: clamp(56px, 8vw, 96px) 24px;
  max-width: none;
  margin: 0;
  overflow: hidden;
}

.home-features-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-features-bg-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.home-features-bg-gradient--tl {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(0, 144, 111, 0.14), transparent 70%);
}

.home-features-bg-gradient--br {
  width: 380px;
  height: 380px;
  bottom: -80px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 83, 76, 0.1), transparent 70%);
}

.home-features-wave {
  position: absolute;
  width: 100%;
  left: 0;
  opacity: 0.9;
}

.home-features-wave--1 {
  top: 12%;
}

.home-features-wave--2 {
  bottom: 18%;
}

.home-features-sparkle {
  position: absolute;
  font-size: 0.75rem;
  color: rgba(0, 144, 111, 0.35);
  line-height: 1;
}

.home-features-sparkle--1 { top: 18%; left: 8%; }
.home-features-sparkle--2 { top: 28%; right: 12%; }
.home-features-sparkle--3 { bottom: 32%; left: 15%; }
.home-features-sparkle--4 { bottom: 22%; right: 8%; }

.home-features-inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin-inline: auto;
}

/* Features header — centered serif */
.page-home .home-features-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 56px);
}

.page-home .home-features-head .section-label {
  display: none;
}

.page-home .home-features-head h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #0a1210;
}

.page-home .home-features-head h2 em {
  font-style: italic;
  color: #008f6a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

.home-features-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #64748b;
}

/* Three showcase cards */
.page-home .home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1140px;
  margin-inline: auto;
}

.home-features-grid--secondary {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-top: 22px;
}

/* Lifestyle photo cards (Social, Community) */
.feature-showcase-media--photo {
  min-height: 0;
  padding: 0;
  aspect-ratio: 16 / 10;
  background: #e4ebe8;
}

.feature-showcase-photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-showcase-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(12, 18, 32, 0.06);
  box-shadow: 0 4px 24px rgba(12, 18, 32, 0.06);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.feature-showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(12, 18, 32, 0.1);
}

/* Card media — light mint top */
.feature-showcase-media {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 24px;
  background: linear-gradient(165deg, #eef5f2 0%, #e4ebe8 50%, #dce8e4 100%);
  overflow: hidden;
}

.feature-showcase-media--phone-tilt {
  background: linear-gradient(165deg, #f0f6f4 0%, #e8f0ed 100%);
}

.feature-showcase-media--phone-center {
  background: linear-gradient(180deg, #eef4f2 0%, #e2ebe8 100%);
}

.feature-showcase-media--card {
  background: linear-gradient(165deg, #ecf3f0 0%, #e0ebe7 100%);
  padding: 32px 16px 28px;
}

/* Phone in card */
.feature-showcase-phone {
  position: relative;
  width: 132px;
  filter: drop-shadow(0 16px 32px rgba(8, 16, 14, 0.22));
}

.feature-showcase-phone--straight {
  transform: none;
}

.feature-showcase-media--phone-tilt .feature-showcase-phone {
  transform: rotate(8deg);
  transition: transform 0.35s ease;
}

.feature-showcase-card:hover .feature-showcase-media--phone-tilt .feature-showcase-phone {
  transform: rotate(4deg) translateY(-4px);
}

.feature-showcase-phone-frame {
  position: relative;
  background: linear-gradient(165deg, #2a3533, #0a0f0e);
  border-radius: 22px;
  padding: 6px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feature-showcase-phone-frame::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  z-index: 2;
}

.feature-showcase-phone-frame img {
  display: block;
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 369 / 800;
  object-fit: cover;
  object-position: top center;
}

/* Mood card in third column */
.feature-showcase-moodcard {
  width: min(100%, 200px);
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 14px 28px rgba(6, 12, 10, 0.35),
    0 0 0 1px rgba(0, 189, 136, 0.12);
  transform: rotate(-2deg);
  transition: transform 0.35s ease;
}

.feature-showcase-card:hover .feature-showcase-moodcard {
  transform: rotate(0deg) translateY(-4px);
}

/* Card body — white */
.feature-showcase-body {
  padding: 22px 22px 26px;
  background: #fff;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-showcase-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 144, 111, 0.1);
  color: #007a5c;
  margin-bottom: 14px;
}

.feature-showcase-icon svg {
  width: 20px;
  height: 20px;
}

.feature-showcase-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00906f;
  margin-bottom: 6px;
}

.feature-showcase-title {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a1210;
}

.feature-showcase-desc {
  margin: 0 0 16px;
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

.feature-showcase-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #00906f;
  transition: color 0.2s ease;
}

.feature-showcase-card:hover .feature-showcase-link {
  color: #00534c;
}

.home-features-more {
  text-align: center;
  margin: 32px 0 0;
}

.home-features-more a {
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.home-features-more a:hover {
  color: #00906f;
}

.page-home .home-cta-strip {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(12, 18, 32, 0.06);
}

@media (max-width: 1024px) {
  .page-home .home-features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .home-features-grid--secondary {
    max-width: 400px;
  }
}

@media (max-width: 640px) {
  .feature-showcase-media {
    min-height: 180px;
  }

  .feature-showcase-phone {
    width: 100px;
  }
}

@media (max-width: 1024px) {
  .page-home .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-home .hero h1 {
    margin-inline: auto;
  }

  .page-home .hero-lead {
    margin-inline: auto;
  }

  .page-home .hero-actions {
    justify-content: center;
  }

  .page-home .hero-trust {
    justify-content: center;
  }

  .page-home .hero-visual {
    justify-content: center;
    padding-right: 0;
    min-height: 340px;
  }

  .page-home .hero .device-mockup-stage {
    transform: rotateY(-10deg) rotateX(4deg);
  }
}

@media (max-width: 640px) {
  .page-home .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .page-home .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-home .hero-scene {
    max-width: 260px;
  }

  .page-home .hero .device-mockup {
    max-width: 240px;
  }
}
