/* ============================================
   Intimassy Landing Page — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #6C3483;
  --color-primary-dark: #5B2C6F;
  --color-accent: #E74C8B;
  --color-gradient-start: #6C3483;
  --color-gradient-end: #E74C8B;
  --color-text: #1A1A2E;
  --color-text-light: #4A4A6A;
  --color-text-muted: #7A7A9A;
  --color-bg: #FAFAF8;
  --color-bg-alt: #F3F0F7;
  --color-white: #FFFFFF;
  --color-star: #F5A623;
  --color-border: #E8E4EE;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.75rem;
  --font-size-5xl: 3.5rem;
  --line-height-tight: 1.2;
  --line-height-normal: 1.6;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  --nav-height: 72px;

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.nav--scrolled {
  background-color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.nav__brand {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  transition: color var(--transition-normal);
}

.nav--scrolled .nav__brand {
  color: var(--color-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-fast);
}

.nav__link:hover::after {
  width: 100%;
}

.nav--scrolled .nav__link {
  color: var(--color-text-light);
}

.nav--scrolled .nav__link:hover {
  color: var(--color-primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.4rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(231, 76, 139, 0.4);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast), background-color var(--transition-normal);
}

.nav--scrolled .nav__hamburger span {
  background: var(--color-text);
}

.nav__hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-4xl);
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, #8E44AD 50%, var(--color-gradient-end) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(231, 76, 139, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 52, 131, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 1;
}

/* Hero visual — stacked phone screenshots */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero__phone {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, opacity 0.4s ease, box-shadow 0.4s ease;
}

.hero__phone--back {
  width: 260px;
  top: 10%;
  left: 0;
  transform: rotate(-6deg);
  opacity: 0.7;
  z-index: 1;
}

.hero__phone--mid {
  width: 280px;
  top: 5%;
  right: 0;
  transform: rotate(4deg);
  opacity: 0.8;
  z-index: 2;
}

.hero__phone--front {
  width: 240px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  opacity: 0.95;
  z-index: 3;
}

.hero__visual:hover .hero__phone--back {
  transform: rotate(-3deg) translateY(-6px);
  opacity: 0.85;
}

.hero__visual:hover .hero__phone--mid {
  transform: rotate(2deg) translateY(-8px);
  opacity: 0.9;
}

.hero__visual:hover .hero__phone--front {
  transform: translateX(-50%) rotate(0deg) translateY(-10px) scale(1.03);
  opacity: 1;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero__visual::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  bottom: -30px;
  left: -30px;
  background: radial-gradient(ellipse at center, rgba(231, 76, 139, 0.18) 0%, transparent 70%);
  border-radius: var(--radius-xl);
  z-index: 0;
  filter: blur(40px);
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__visual {
  animation: hero-float 6s ease-in-out infinite;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  margin-bottom: var(--space-xl);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #4ADE80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  color: rgba(255, 255, 255, 0.85);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-2xl);
  max-width: 560px;
}

.hero__stores {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast), transform var(--transition-fast);
  backdrop-filter: blur(8px);
}

.store-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.store-badge svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-badge__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-badge__label {
  font-size: 0.65rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.store-badge__store {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

.hero__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.8);
}

.hero__stars {
  display: flex;
  gap: 2px;
}

.hero__stars svg {
  width: 16px;
  height: 16px;
  fill: var(--color-star);
}

.hero__stars svg.star--half {
  fill: url(#star-gradient);
}

/* --- Section Base --- */
.section {
  padding: var(--space-5xl) 0;
  background-color: var(--color-bg);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-3xl);
}

.section__label {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
}

/* --- Features Section --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  border-radius: var(--radius-md);
  color: var(--color-white);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card__screenshot {
  position: relative;
  margin: 0 auto var(--space-lg);
  max-width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.feature-card__screenshot img {
  width: 100%;
  display: block;
}

.feature-card__title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-normal);
}

/* --- Testimonials Section --- */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
}

.testimonial-card__stars svg {
  width: 18px;
  height: 18px;
  fill: var(--color-star);
}

.testimonial-card__quote {
  font-size: var(--font-size-base);
  color: var(--color-text);
  line-height: var(--line-height-normal);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.testimonial-card__info {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.testimonial-card__date {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* --- CTA Section --- */
.cta {
  padding: var(--space-5xl) 0;
  background: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta__desc {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__stores {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  padding: var(--space-3xl) 0;
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__brand {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.footer__link {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copy {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.4);
}

.footer__store-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__store-link {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition-fast);
}

.footer__store-link:hover {
  color: var(--color-white);
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in--delay-1 { transition-delay: 0.1s; }
.fade-in--delay-2 { transition-delay: 0.2s; }
.fade-in--delay-3 { transition-delay: 0.3s; }

/* --- Responsive: Tablet (768px) --- */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
    --space-5xl: 5rem;
    --space-4xl: 4rem;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-white);
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-2xl) var(--space-2xl);
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-normal);
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__link {
    color: var(--color-text);
    font-size: var(--font-size-base);
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
  }

  .nav__hamburger {
    display: flex;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__stores {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero__rating {
    justify-content: center;
  }

  .store-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    min-height: 320px;
  }

  .hero__phone--back {
    width: 200px;
  }

  .hero__phone--mid {
    width: 220px;
  }

  .hero__phone--front {
    width: 190px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-md);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__store-links {
    justify-content: center;
  }
}

/* --- Responsive: Small Mobile (480px) --- */
@media (max-width: 480px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-3xl: 1.5rem;
    --container-padding: 1rem;
    --space-5xl: 4rem;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-3xl);
  }

  .hero__visual {
    min-height: 260px;
  }

  .hero__phone--back {
    width: 160px;
  }

  .hero__phone--mid {
    width: 180px;
  }

  .hero__phone--front {
    width: 150px;
  }

  .feature-card {
    padding: var(--space-lg);
  }

  .testimonial-card {
    padding: var(--space-lg);
  }

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

/* --- Responsive: iPad / Small Desktop (1024px) --- */
@media (max-width: 1024px) {
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --- Responsive: Desktop Large (1200px+) --- */
@media (min-width: 1200px) {
  .features__grid {
    gap: var(--space-3xl);
  }
}
