/* ==========================================================================
   LikeThis — Shared Styles
   Dark cinematic theme with warm amber accents
   ========================================================================== */

/* --- Custom Properties --- */
:root {
  --bg-deep: #050505;
  --bg-body: #0A0A0A;
  --bg-card: #141414;
  --bg-card-hover: #1A1A1A;
  --bg-surface: #111111;
  --text-primary: #F0EDE8;
  --text-secondary: #8A8578;
  --text-muted: #5A5650;
  --accent: #D4A853;
  --accent-dim: #B8923F;
  --accent-glow: rgba(212, 168, 83, 0.15);
  --accent-glow-strong: rgba(212, 168, 83, 0.3);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(212, 168, 83, 0.25);
  --font-display: 'Palatino', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1100px;
  --container-narrow: 800px;
}

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

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* --- Ambient Background --- */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.04) 0%, transparent 70%);
  animation: ambient-drift 20s ease-in-out infinite;
}

.ambient-bg::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.03) 0%, transparent 70%);
  animation: ambient-drift 25s ease-in-out infinite reverse;
}

@keyframes ambient-drift {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(30px); }
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.site-logo img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.site-logo span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  margin-top: 80px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-contact a {
  color: var(--text-muted);
}

.footer-contact a:hover {
  color: var(--accent);
}

/* ==========================================================================
   Landing Page
   ========================================================================== */

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
}

.hero-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(212, 168, 83, 0.15));
}

/* Viewfinder crosshairs around icon */
.hero-icon-wrapper::before,
.hero-icon-wrapper::after {
  content: '';
  position: absolute;
  z-index: 1;
}

.hero-icon-wrapper::before {
  top: -16px;
  left: -16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--border-accent);
  border-radius: 36px;
  animation: viewfinder-pulse 3s ease-in-out infinite;
}

.hero-icon-wrapper::after {
  top: -28px;
  left: -28px;
  right: -28px;
  bottom: -28px;
  border: 1px solid rgba(212, 168, 83, 0.08);
  border-radius: 44px;
  animation: viewfinder-pulse 3s ease-in-out infinite 0.5s;
}

@keyframes viewfinder-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.03); }
}

/* Crosshair tick marks */
.viewfinder-marks {
  position: absolute;
  top: -28px;
  left: -28px;
  right: -28px;
  bottom: -28px;
  pointer-events: none;
}

.viewfinder-marks span {
  position: absolute;
  background: var(--accent);
  opacity: 0.3;
}

.viewfinder-marks span:nth-child(1) {
  top: 0; left: 50%; width: 1px; height: 10px; transform: translateX(-50%);
}
.viewfinder-marks span:nth-child(2) {
  bottom: 0; left: 50%; width: 1px; height: 10px; transform: translateX(-50%);
}
.viewfinder-marks span:nth-child(3) {
  left: 0; top: 50%; width: 10px; height: 1px; transform: translateY(-50%);
}
.viewfinder-marks span:nth-child(4) {
  right: 0; top: 50%; width: 10px; height: 1px; transform: translateY(-50%);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: var(--bg-body);
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease;
  text-decoration: none;
}

.btn-appstore:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 83, 0.2);
  color: var(--bg-body);
}

.btn-appstore svg {
  width: 20px;
  height: 20px;
}

.hero-note {
  font-size: 0.825rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.hero-note strong {
  color: var(--accent-dim);
  font-weight: 500;
}

/* --- Section Shared --- */
.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
}

.section--centered {
  text-align: center;
}

.section--centered .section-subtitle {
  margin: 0 auto;
}

/* Thin separator line */
.section-divider {
  width: 40px;
  height: 1px;
  background: var(--border-accent);
  margin: 0 auto 80px;
}

/* --- How It Works --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 56px;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.step:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.step-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: block;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 56px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

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

/* --- Pro Section --- */
.pro-card {
  max-width: 580px;
  margin: 56px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.pro-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.2;
}

.pro-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.pro-price {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pro-price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Final CTA --- */
.final-cta {
  text-align: center;
  padding: 80px 0 40px;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 24px;
}

.final-cta h2 em {
  font-style: italic;
  color: var(--accent);
}

/* ==========================================================================
   Legal Pages (Privacy, Terms)
   ========================================================================== */

.legal-page {
  padding: 80px 0 40px;
}

.legal-page .container {
  max-width: var(--container-narrow);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-page .last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.legal-page section {
  margin-bottom: 40px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  padding-top: 8px;
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.legal-page p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-page ul, .legal-page ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-page li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.legal-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 83, 0.3);
  text-underline-offset: 3px;
}

.legal-page a:hover {
  text-decoration-color: var(--accent);
}

.legal-contact {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero {
    padding: 120px 0 100px;
  }

  .section {
    padding: 100px 0;
  }
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    padding: 140px 0 120px;
  }

  .hero h1 {
    letter-spacing: -0.02em;
  }

  .section {
    padding: 120px 0;
  }

  .site-header .container {
    height: 64px;
  }
}
