/* SyncDate – One-Pager Styles */

:root {
  --accent: #6C5CE7;
  --accent-soft: #E8E4FF;
  --accent-dark: #5A4BD1;
  --like: #00B894;
  --skip: #E17055;
  --bg: #F4F5FA;
  --bg-card: rgba(255, 255, 255, 0.72);
  --text: #1A1D26;
  --text-muted: #6B7280;
  --border: rgba(108, 92, 231, 0.12);
  --shadow: 0 4px 24px rgba(108, 92, 231, 0.08);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --header-height: 72px;
  --container: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background effects */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 184, 148, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(225, 112, 85, 0.06), transparent),
    var(--bg);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(244, 245, 250, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.lang-btn {
  padding: 6px 10px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(108, 92, 231, 0.06);
}

.lang-btn.active {
  color: white;
  background: var(--accent);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--accent);
}

.logo-icon svg {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 10px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(108, 92, 231, 0.06);
}

.nav-cta {
  background: var(--accent) !important;
  color: white !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: rgba(108, 92, 231, 0.2);
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + 60px) 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #A29BFE 50%, var(--like) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
}

.phone-frame {
  position: relative;
  width: 280px;
  background: #1A1D26;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 3px solid #2D3142;
}

.phone-frame.small {
  width: 200px;
  border-radius: 28px;
  padding: 8px;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #1A1D26;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen,
.phone-frame img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 9/19;
  object-fit: cover;
}

.phone-frame.small img {
  border-radius: 20px;
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}

.card-like {
  top: 15%;
  left: -60px;
  animation-delay: 0s;
}

.card-map {
  bottom: 20%;
  right: -50px;
  animation-delay: 2s;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.125rem;
}

.card-icon.like {
  background: rgba(0, 184, 148, 0.12);
  color: var(--like);
}

.card-icon.map {
  background: var(--accent-soft);
  font-size: 1rem;
}

.floating-card strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
}

.floating-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 92, 231, 0.25);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.map-icon { background: var(--accent-soft); color: var(--accent); }
.chat-icon { background: rgba(0, 184, 148, 0.12); color: var(--like); }
.privacy-icon { background: rgba(225, 112, 85, 0.12); color: var(--skip); }
.profile-icon { background: rgba(108, 92, 231, 0.08); color: var(--accent-dark); }
.filter-icon { background: rgba(0, 184, 148, 0.08); color: var(--like); }
.shop-icon { background: rgba(255, 193, 7, 0.15); color: #E6A800; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 40px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step:nth-child(even) {
  grid-template-columns: auto 1fr auto;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
  -webkit-text-stroke: 1px var(--accent);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-muted);
  max-width: 420px;
}

.step-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* App Showcase */
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.showcase-content > p {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.7;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}

.check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(0, 184, 148, 0.12);
  color: var(--like);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.phone-stack {
  position: relative;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-item {
  position: absolute;
}

.phone-back {
  left: 10%;
  transform: rotate(-8deg);
  z-index: 1;
}

.phone-front {
  right: 10%;
  transform: rotate(6deg);
  z-index: 2;
}

/* Download */
.download-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, #8B7CF6 100%);
  border-radius: var(--radius-lg);
  color: white;
  overflow: hidden;
  position: relative;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,184,148,0.2) 0%, transparent 40%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.download-content p {
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  transition: background var(--transition), transform var(--transition);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.store-label {
  display: block;
  font-size: 0.6875rem;
  opacity: 0.85;
}

.store-name {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
}

.download-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.download-visual img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-top: 12px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .showcase-grid,
  .download-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 0;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .step-image {
    margin: 0 auto;
  }

  .showcase-list {
    align-items: center;
  }

  .download-content {
    text-align: center;
  }

  .store-buttons {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-right {
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .lang-switcher {
    order: 1;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 24px;
    background: rgba(244, 245, 250, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    order: 3;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  .nav-cta {
    margin-left: 0 !important;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-top: calc(var(--header-height) + 32px);
    min-height: auto;
  }

  .floating-card {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .download-card {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .phone-stack {
    height: 320px;
  }

  .phone-frame.small {
    width: 160px;
  }
}

/* Legal & sub pages */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 10px;
}

.legal-page {
  padding: calc(var(--header-height) + 48px) 0 80px;
  min-height: calc(100vh - var(--header-height));
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  transition: opacity var(--transition);
}

.legal-back:hover {
  opacity: 0.75;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-content {
  max-width: 720px;
  padding: 32px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.legal-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.legal-content section {
  margin-bottom: 28px;
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.legal-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-block {
  padding-bottom: 8px;
}

.contact-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
}

.contact-link:hover {
  color: var(--accent-dark);
}

.footer-compact {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-compact .footer-bottom {
  padding-top: 0;
  border-top: none;
  text-align: center;
}

@media (max-width: 768px) {
  .legal-content {
    padding: 24px 20px;
  }

  .nav-right .btn-sm {
    display: none;
  }
}
