/* ========================================
   NOOSH LANDING PAGE
   ======================================== */

:root {
  --color-primary: #1a1a2e;
  --color-accent: #c9b8ff;
  --color-accent-light: #e8e0ff;
  --color-accent-bg: #ede7f9;
  --color-bg: #f5f6f8;
  --color-bg-white: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --nav-height: 72px;
  --container-max: 1200px;
  --container-pad: 24px;
  --section-pad: 120px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --radius-phone: 36px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-phone: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-title--large {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.section-title--italic {
  font-style: italic;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: #2d2d4e;
  border-color: #2d2d4e;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--sm {
  font-size: 13px;
  padding: 8px 20px;
}

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

.btn__icon {
  flex-shrink: 0;
}

/* ===== PHONE MOCKUP ===== */
.phone-mockup {
  position: relative;
  width: 260px;
  aspect-ratio: 9 / 19.5;
  background: #1a1a1a;
  border-radius: var(--radius-phone);
  padding: 12px;
  box-shadow: var(--shadow-phone);
  flex-shrink: 0;
}

.phone-mockup__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: calc(var(--radius-phone) - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-mockup__screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 1;
}

.phone-mockup__placeholder {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 20px;
}

.phone-mockup--tilted {
  transform: rotate(-5deg);
}

.phone-mockup--sm {
  width: 200px;
}

.phone-mockup--front {
  width: 280px;
  z-index: 2;
}

/* ===== APP SCREENSHOTS ===== */
.app-screenshot {
  display: block;
  max-width: 340px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.10));
}

.app-screenshot--hero {
  max-width: 380px;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.app-screenshot--hero:hover {
  transform: rotate(0deg) scale(1.02);
}

.app-screenshot--center {
  max-width: 360px;
}

.app-screenshot--cta-front {
  max-width: 320px;
  z-index: 2;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.15));
}

.app-screenshot--cta-side {
  max-width: 260px;
  opacity: 0.85;
  transform: scale(0.9);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav--scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(245, 246, 248, 0.95);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  z-index: 1001;
}

.nav__logo-img {
  width: 36px;
  height: 36px;
  border-radius: 22%;
  flex-shrink: 0;
  object-fit: cover;
}

.nav__logo--footer .nav__logo-img {
  width: 40px;
  height: 40px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
  position: relative;
}

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

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

.nav__cta {
  font-size: 14px;
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: var(--section-pad);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bg-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: var(--color-accent-light);
  border-radius: 0;
  opacity: 0.4;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  max-width: 560px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
}

.hero__title-italic {
  font-style: italic;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 440px;
}

.hero__actions {
  margin-bottom: 16px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__available {
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin: 0;
}

.hero__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.features__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.features__header-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 20px 0 28px;
  max-width: 360px;
}

.features__header-right {
  text-align: right;
}

.features__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
}

.features__social-proof {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.features__avatars {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.features__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  margin-left: -10px;
}

.features__avatar:first-child {
  margin-left: 0;
}

.features__avatar:nth-child(2) { background: #ffc9b8; }
.features__avatar:nth-child(3) { background: #b8e0ff; }
.features__avatar:nth-child(4) { background: #c9ffb8; }

.features__avatar-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-left: -10px;
  border: 3px solid var(--color-bg);
}

.features__phone-center {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.features__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ===== FEATURE CARD ===== */
.feature-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

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

.feature-card__image {
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent-bg) 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding: 16px 16px 0;
}

.feature-card__image picture {
  display: contents;
}

.feature-card__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-card__img {
  transform: scale(1.05);
}

.feature-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.feature-card__body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.feature-card__tag {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.feature-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

/* ===== STATS ===== */
.stats {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 1.4;
}

/* ===== DEEP DIVES ===== */
.deep-dives {
  padding: var(--section-pad) 0;
}

.deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}

.deep-dive:last-child {
  margin-bottom: 0;
}

.deep-dive__content {
  max-width: 460px;
}

.deep-dive--right .deep-dive__content {
  justify-self: start;
}

.deep-dive--left .deep-dive__content {
  justify-self: end;
}

.deep-dive__subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.deep-dive__text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.deep-dive__mockups {
  display: flex;
  justify-content: center;
  align-items: center;
}

.deep-dive__mockups .app-screenshot {
  max-width: 320px;
}

/* ===== CTA ===== */
.cta {
  padding: var(--section-pad) 0;
  background: var(--color-bg);
}

.cta__container {
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta__title-accent {
  font-style: italic;
}

.cta__text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__mockups {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
}

.cta__mockups picture {
  display: flex;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__brand .nav__logo {
  justify-content: center;
  width: fit-content;
}

.footer__tagline {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__link {
  font-size: 14px;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-white);
  color: var(--color-text);
  transition: all 0.2s ease;
  border: 1px solid var(--color-border);
}

.footer__social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.footer__copy {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card[data-animate]:nth-child(2) { transition-delay: 0.1s; }
.feature-card[data-animate]:nth-child(3) { transition-delay: 0.2s; }
.feature-card[data-animate]:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-pad: 80px;
  }

  .hero__grid {
    gap: 40px;
  }

  .hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
  }

  .features__cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .deep-dive {
    gap: 40px;
    margin-bottom: 100px;
  }

  .phone-mockup {
    width: 220px;
  }

  .phone-mockup--front {
    width: 240px;
  }

  .phone-mockup--sm {
    width: 180px;
  }

  .app-screenshot {
    max-width: 300px;
  }

  .app-screenshot--hero {
    max-width: 320px;
  }

  .app-screenshot--cta-front {
    max-width: 280px;
  }

  .app-screenshot--cta-side {
    max-width: 220px;
  }

  .deep-dive__mockups .app-screenshot {
    max-width: 280px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
    --container-pad: 20px;
    --nav-height: 64px;
  }

  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(245, 246, 248, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links .nav__link {
    font-size: 24px;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__mockup {
    order: -1;
  }

  .hero__bg-accent {
    height: 50%;
  }

  .features__header {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .features__header-right {
    text-align: center;
  }

  .features__avatars {
    justify-content: center;
  }

  .features__cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stat__number {
    font-size: 4rem;
  }

  .deep-dive {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
    margin-bottom: 80px;
  }

  .deep-dive--right .deep-dive__mockups {
    order: -1;
  }

  .deep-dive--right .deep-dive__content,
  .deep-dive--left .deep-dive__content {
    justify-self: center;
    max-width: 100%;
  }

  .phone-mockup {
    width: 220px;
  }

  .phone-mockup--tilted {
    transform: rotate(-3deg);
  }

  .app-screenshot {
    max-width: 280px;
  }

  .app-screenshot--hero {
    max-width: 300px;
    transform: rotate(-2deg);
  }

  .app-screenshot--center {
    max-width: 300px;
  }

  .deep-dive__mockups .app-screenshot {
    max-width: 260px;
  }

  .cta__mockups {
    gap: 8px;
  }

  .cta__mockups picture:first-child,
  .cta__mockups picture:last-child {
    display: none;
  }

  .cta__mockups .app-screenshot--cta-front {
    max-width: 280px;
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-title--large {
    font-size: 2.2rem;
  }

  .btn--lg {
    font-size: 14px;
    padding: 14px 28px;
  }

  .phone-mockup {
    width: 200px;
  }

  .app-screenshot {
    max-width: 240px;
  }

  .app-screenshot--hero {
    max-width: 260px;
  }

  .deep-dive__mockups .app-screenshot {
    max-width: 240px;
  }

  .feature-card__body {
    padding: 16px;
  }
}

/* ===== LEGAL / PRIVACY PAGE ===== */
.legal-page {
  padding-top: var(--nav-height);
}

.legal-main {
  padding: 48px 0 80px;
  background: var(--color-bg);
}

.legal-prose {
  max-width: 42rem;
  padding-bottom: 48px;
}

.legal-prose__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.legal-prose__meta {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}

.legal-prose h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  line-height: 1.25;
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.legal-prose ul {
  list-style: disc;
  margin: 0.75rem 0 1rem 1.25rem;
  padding: 0;
}

.legal-prose li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.legal-prose li::marker {
  color: var(--color-text-muted);
}

.legal-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: #2d2d4e;
}

.legal-prose strong {
  font-weight: 600;
}
