/* ============================================
   CSS Variables from Design Tokens
   ============================================ */
:root {
  /* Palette */
  --color-primary-bg: #FFFFFF;
  --color-surface: #F8F6F3;
  --color-ink: #1E1B18;
  --color-muted-ink: #5A544F;
  --color-accent: #D6C2A8;
  --color-accent-hover: #E5D6C1;
  --color-divider: rgba(0,0,0,0.08);
  --color-shadow: rgba(30,27,24,0.1);
  --color-shadow-stronger: rgba(30,27,24,0.18);

  /* Typography */
  --font-head: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --font-size-display: 64px;
  --font-size-h1: 48px;
  --font-size-h2: 36px;
  --font-size-h3: 24px;
  --font-size-lead: 18px;
  --font-size-body: 16px;
  --font-size-caption: 14px;

  --line-height-display: 1.05;
  --line-height-h1: 1.1;
  --line-height-h2: 1.2;
  --line-height-h3: 1.25;
  --line-height-lead: 1.6;
  --line-height-body: 1.65;
  --line-height-caption: 1.4;

  --font-weight-heavy: 800;
  --font-weight-bold: 700;
  --font-weight-medium: 500;
  --font-weight-normal: 400;

  --letter-spacing-display: -0.5px;
  --letter-spacing-h1: -0.25px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 72px;
  --space-4xl: 96px;

  /* Elevation */
  --shadow-card: 0 8px 24px rgba(30,27,24,0.08);
  --shadow-floating: 0 16px 36px rgba(30,27,24,0.14);

  /* Layout */
  --page-max-width: 1200px;
  --container-padding: 20px;
  --navbar-height: 72px;

  /* Accessibility */
  --focus-ring-color: var(--color-accent);
  --focus-ring-width: 3px;
  --focus-ring-offset: 2px;
}

/* ============================================
   Base Styles
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-ink);
  background: var(--color-primary-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus Styles */
a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(248, 246, 243, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-divider);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.navbar-brand a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.brand-name {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
}

.navbar-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
}

.navbar-links a {
  position: relative;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.navbar-links a:hover::after {
  width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  background: var(--color-primary-bg);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-headline {
  font-family: var(--font-head);
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-heavy);
  line-height: var(--line-height-display);
  letter-spacing: var(--letter-spacing-display);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
}

.hero-headline .highlight {
  background: linear-gradient(135deg, var(--color-accent) 0%, #c4ad8f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subhead {
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  color: var(--color-muted-ink);
  margin-bottom: var(--space-2xl);
}

.hero-cta {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-ink);
  box-shadow: var(--shadow-floating);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(30,27,24,0.16);
}

.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border: 2px solid var(--color-divider);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-surface);
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 300px;
  height: 600px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-floating);
  border: 1px solid var(--color-divider);
  background: var(--color-surface);
  animation: float 6s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .phone-mockup {
    animation: none;
  }
}

.mockup-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: var(--space-4xl) 0;
  background: var(--color-surface);
}

.section-title {
  font-family: var(--font-head);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h2);
  text-align: center;
  color: var(--color-ink);
  margin-bottom: var(--space-3xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-primary-bg);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-divider);
  transition: all 0.3s ease;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--color-surface);
  border-radius: 50%;
  margin-bottom: var(--space-lg);
}

.feature-title {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h3);
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.feature-body {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-muted-ink);
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
  padding: var(--space-4xl) 0;
  background: var(--color-primary-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-surface);
  border: 2px dashed var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.placeholder-label {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-muted-ink);
}

/* ============================================
   Download CTA Section
   ============================================ */
.download-cta {
  padding: var(--space-4xl) 0;
  background: var(--color-surface);
}

.download-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.download-headline {
  font-family: var(--font-head);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h2);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
}

.download-subcopy {
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  color: var(--color-muted-ink);
  margin-bottom: var(--space-2xl);
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-bottom: var(--space-2xl);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.store-badge:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.badge-image {
  max-width: 200px;
  height: auto;
  display: block;
}

.trust-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.trust-bullets li {
  font-size: var(--font-size-caption);
  color: var(--color-muted-ink);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.trust-bullets li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lead);
}

/* ============================================
   Legal Pages
   ============================================ */
.legal-page {
  padding: var(--space-4xl) 0;
  background: var(--color-primary-bg);
  min-height: 60vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-family: var(--font-head);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h1);
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.legal-content h2 {
  font-family: var(--font-head);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h2);
  color: var(--color-ink);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-lg);
}

.legal-content p {
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-muted-ink);
  margin-bottom: var(--space-lg);
}

.last-updated {
  font-size: var(--font-size-caption);
  color: var(--color-muted-ink);
  margin-bottom: var(--space-2xl);
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.agreement {
  font-weight: var(--font-weight-medium);
  color: var(--color-ink);
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-divider);
}

/* ============================================
   Contact Page
   ============================================ */
.contact-page {
  padding: var(--space-4xl) 0;
  background: var(--color-primary-bg);
  min-height: 60vh;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content h1 {
  font-family: var(--font-head);
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-h1);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.contact-intro {
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  color: var(--color-muted-ink);
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.contact-form {
  background: var(--color-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-3xl);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: var(--font-size-body);
  font-family: var(--font-body);
  background: var(--color-primary-bg);
  color: var(--color-ink);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  text-align: center;
}

.contact-info h2 {
  font-family: var(--font-head);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
}

.contact-info p {
  font-size: var(--font-size-body);
  color: var(--color-muted-ink);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-ink);
  color: var(--color-surface);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  height: 24px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-brand-name {
  font-size: var(--font-size-lead);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-bg);
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--color-surface);
  text-decoration: none;
  font-size: var(--font-size-body);
  transition: color 0.2s ease;
}

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

.social-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-surface);
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--color-accent);
  color: var(--color-ink);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: var(--space-lg);
}

.copyright {
  text-align: center;
  font-size: var(--font-size-caption);
  color: rgba(255,255,255,0.6);
}

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

/* Tablet (768px) */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .hero-headline {
    font-size: var(--font-size-h1);
  }

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

  .navbar-links {
    gap: var(--space-lg);
  }

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

  .footer-brand {
    justify-content: center;
  }

  .footer-links ul {
    justify-content: center;
  }

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

/* Mobile (480px) */
@media (max-width: 480px) {
  .hero {
    min-height: auto;
    padding: var(--space-3xl) 0;
  }

  .hero-headline {
    font-size: var(--font-size-h2);
  }

  .hero-cta {
    flex-direction: column;
  }

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

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

  .navbar-links {
    display: none;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

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

  .footer-links ul {
    flex-direction: column;
    gap: var(--space-sm);
  }
}
