/* ============================================
   CrossPoint Sync — Styles
   Mobile-first, no dependencies
   ============================================ */

/* --- Variables --- */
:root {
  --color-bg: #faf8f5;
  --color-white: #ffffff;
  --color-primary: #2f95dc;
  --color-primary-dark: #1a73e8;
  --color-text: #2d2d2d;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1140px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}

ul {
  list-style: none;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.25;
  font-weight: 400;
}

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

.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--color-text);
}

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

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

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

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

.btn--primary:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.btn__apple-icon {
  flex-shrink: 0;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

.nav__icon {
  border-radius: 8px;
}

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

.nav__links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav__cta {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white) !important;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: calc(var(--nav-height) + 64px) 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero__content {
  flex: 1;
}

.hero__title {
  font-size: 2.75rem;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}

.hero__image {
  flex: 0 0 auto;
}

.hero__video {
  margin-top: 48px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Phone frame effect */
.phone-frame {
  background: var(--color-white);
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-frame img {
  border-radius: 22px;
}

/* ============================================
   Value Proposition
   ============================================ */
.value-prop {
  padding: 80px 0;
}

.value-prop__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.value-prop__title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.value-prop__text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
}

/* ============================================
   Features
   ============================================ */
.features {
  padding: 80px 0;
}

/* --- Feature cards (compact, no screenshot) --- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #eef6fd;
  color: var(--color-primary);
  border-radius: 14px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Feature showcase (with screenshot) --- */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}

.feature-showcase + .feature-showcase {
  border-top: 1px solid var(--color-border);
}

.feature-showcase__text {
  min-width: 0;
}

.feature-showcase__image {
  min-width: 0;
}

.feature-showcase--reverse {
  grid-template-columns: 240px 1fr;
}

.feature-showcase--reverse .feature-showcase__text {
  order: 2;
  text-align: right;
}

.feature-showcase--reverse .feature-showcase__icon {
  margin-left: auto;
}

.feature-showcase--reverse p {
  margin-left: auto;
}

.feature-showcase--reverse .feature-showcase__image {
  order: 1;
}

.feature-showcase__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #eef6fd;
  color: var(--color-primary);
  border-radius: 14px;
  margin-bottom: 16px;
}

.feature-showcase h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.feature-showcase p {
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 460px;
}

.phone-frame--feature {
  border-radius: 24px;
  padding: 8px;
}

.phone-frame--feature img {
  border-radius: 18px;
  width: 100%;
  height: auto;
}

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

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

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step__title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step__text {
  color: var(--color-text-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: 80px 0;
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: transform 0.2s;
}

details[open] .faq__question::after {
  content: '\2212';
}

.faq__answer {
  padding: 0 0 20px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ============================================
   Call to Action
   ============================================ */
.cta {
  padding: 80px 0;
  background: var(--color-white);
}

.cta__content {
  text-align: center;
}

.cta__title {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

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

.footer__inner {
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 16px;
}

.footer__links a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer__copy {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   Responsive — Tablet (768px)
   ============================================ */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 36px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero__title {
    font-size: 2rem;
  }

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

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

  .hero__image .phone-frame img {
    width: 240px;
  }

  .hero__video {
    margin-top: 32px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
  }

  .feature-showcase,
  .feature-showcase--reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 36px 0;
  }

  .feature-showcase__image {
    width: 200px;
    margin: 0 auto;
  }

  .feature-showcase--reverse .feature-showcase__text {
    order: 2;
    text-align: center;
  }

  .feature-showcase--reverse .feature-showcase__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-showcase--reverse p {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-showcase--reverse .feature-showcase__image {
    order: 1;
  }

  .feature-showcase p {
    max-width: 100%;
  }

  .feature-showcase__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .value-prop__title {
    font-size: 1.6rem;
  }

  .cta__title {
    font-size: 1.6rem;
  }
}

/* ============================================
   Responsive — Mobile (480px)
   ============================================ */
@media (max-width: 480px) {
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250, 248, 245, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px;
    gap: 16px;
  }

  .nav__links.open {
    display: flex;
  }

  .nav__hamburger {
    display: flex;
  }

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

  .hero__title {
    font-size: 1.7rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .value-prop,
  .features,
  .how-it-works,
  .faq,
  .cta {
    padding: 56px 0;
  }

  .feature-showcase__image {
    width: 180px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}
