/* ========================================
   RiteMark Landing Page Styles
   2025 Design System - Arctic Professional
   ======================================== */

/* ========================================
   CSS Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Johnny Ive Minimalist System - Matching Main App */
  /* Based on shadcn default palette */

  /* Core Colors */
  --background: hsl(0, 0%, 100%);           /* Pure white */
  --foreground: hsl(222.2, 84%, 4.9%);      /* Nearly black */

  /* Primary (Dark accent) */
  --primary: hsl(222.2, 47.4%, 11.2%);      /* Dark blue-black */
  --primary-foreground: hsl(210, 40%, 98%); /* Off-white */

  /* Secondary (Subtle) */
  --secondary: hsl(210, 40%, 96%);          /* Very light gray */
  --secondary-foreground: hsl(222.2, 47.4%, 11.2%);

  /* Muted (Backgrounds) */
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%); /* Medium gray */

  /* Borders & Inputs */
  --border: hsl(214.3, 31.8%, 91.4%);       /* Light gray */
  --input: hsl(214.3, 31.8%, 91.4%);
  --ring: hsl(222.2, 84%, 4.9%);

  /* Legacy color mappings for transition */
  --gray-50: hsl(210, 40%, 98%);
  --gray-100: hsl(210, 40%, 96%);
  --gray-200: hsl(214.3, 31.8%, 91.4%);
  --gray-500: hsl(215.4, 16.3%, 46.9%);
  --gray-700: hsl(222.2, 47.4%, 11.2%);
  --gray-900: hsl(222.2, 84%, 4.9%);

  /* 8pt Spacing System */
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Typography - Refined minimalism with serif accents */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  /* Border Radius */
  --radius: 0.5rem;
}

/* Refined entrance animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

body {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip to main content link (accessibility) */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-600);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  z-index: 100;
}

.skip-to-main:focus {
  top: 0;
}

/* ========================================
   Header Navbar
   ======================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(0, 0%, 100%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background: hsla(0, 0%, 100%, 0.95);
  border-bottom-color: hsl(var(--border));
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--foreground);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Navigation */
.nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
  background-color: var(--muted);
}

.nav-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

/* Header-specific button sizing */
.btn-primary.btn-header {
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 8px;
}

/* Mobile Menu Toggle - Always visible on mobile */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.hamburger {
  position: relative;
  width: 20px;
  height: 2px;
  background-color: var(--foreground);
  transition: background-color 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: var(--foreground);
  transition: transform 0.3s ease;
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  bottom: -6px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  position: relative;
  background: var(--background);
  padding: var(--space-24) var(--space-6);
  border-bottom: 1px solid var(--border);
  margin-top: 64px;
}

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero p {
  font-size: clamp(1.125rem, 1vw + 0.5rem, 1.25rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted-foreground);
  margin-bottom: var(--space-8);
  max-width: 560px;
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Refined Button System */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: var(--primary-foreground);
  padding: 15px 36px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--foreground);
  padding: 13px 32px;
  border-radius: var(--radius);
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  font-size: 16px;
  background: var(--background);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--foreground);
  background-color: var(--muted);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.hero-visual {
  position: relative;
  animation: scaleIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.05),
    0 16px 48px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
  .hero {
    padding: var(--space-16) var(--space-6);
  }

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

  .btn-primary, .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-12);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-16);
  }
}

/* Section Titles */
.section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2rem, 4vw + 0.5rem, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: var(--space-16);
  color: var(--gray-900);
}

/* ========================================
   FEATURES SECTION (BENTO GRID)
   ======================================== */

.features {
  background: hsl(210, 40%, 98%);
  padding: var(--space-24) var(--space-6);
}

.features-header {
  max-width: 1200px;
  margin: 0 auto var(--space-12);
  padding: 0 var(--space-6);
  text-align: center;
}

.features-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.features-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-6) var(--space-6) var(--space-8);
  margin: 0 -var(--space-6);
  scroll-behavior: smooth;
}

.features-scroll-container::-webkit-scrollbar {
  display: none;
}

.features-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
  .features-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .features-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }
}

/* Legacy grid support (if needed) */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 320px;
    gap: 20px;
  }

  .feature-large {
    grid-column: span 2;
    grid-row: span 2;
  }

  .feature-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.feature-card {
  background: var(--background);
  border-radius: 20px;
  padding: var(--space-8);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--foreground);
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  color: var(--background);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin: 0;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin: 0;
  flex-grow: 1;
}

.feature-action {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--foreground);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  align-self: flex-end;
  margin-top: auto;
}

.feature-action svg {
  width: 20px;
  height: 20px;
  color: var(--background);
  stroke-width: 2;
}

.feature-action:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.feature-action:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .feature-card {
    min-height: auto;
    padding: var(--space-6);
  }
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-badge {
  background: var(--warning-600);
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   FEATURE MODAL
   ======================================== */

.feature-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.feature-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--background);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.modal-close:hover {
  background: var(--border);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  color: var(--foreground);
}

.modal-body {
  padding: var(--space-8);
}

.modal-body h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--foreground);
}

.modal-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
}

.modal-body ul {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0;
}

.modal-body li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.modal-body li:last-child {
  border-bottom: none;
}

.modal-body li svg {
  width: 20px;
  height: 20px;
  color: var(--foreground);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ========================================
   MOBILE NAVIGATION MENU
   ======================================== */

.mobile-nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: block;
  visibility: hidden;
}

.mobile-nav.active {
  transform: translateY(0);
  visibility: visible;
}

.mobile-nav-link,
.mobile-nav-cta {
  display: block;
  padding: 18px var(--space-6);
  color: var(--foreground);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.mobile-nav-link:active {
  background-color: var(--muted);
}

.mobile-nav-link:last-of-type {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-cta {
  background: var(--foreground);
  color: var(--background);
  text-align: center;
  margin: var(--space-4);
  border-radius: var(--radius);
  border: none;
  font-weight: 600;
}

.mobile-nav-cta:active {
  opacity: 0.8;
  background: var(--foreground);
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }
}

/* Swipe Indicator (Mobile Only) */
.swipe-indicator {
  display: none;
  position: absolute;
  right: 50%;
  bottom: -60px;
  transform: translateX(50%);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  z-index: 100;
  pointer-events: none;
  animation: swipe-bounce 2s ease-in-out infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.swipe-indicator svg {
  width: 28px;
  height: 28px;
  color: white;
  stroke-width: 3;
}

.swipe-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes swipe-bounce {
  0%, 100% {
    transform: translateX(50%) translateY(0);
    opacity: 0.9;
  }
  50% {
    transform: translateX(50%) translateY(-8px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  /* Hide desktop header actions on mobile */
  .header-actions {
    display: none;
  }

  /* Show hamburger menu on mobile */
  .mobile-menu-toggle {
    display: flex;
  }

  .features {
    padding: var(--space-16) var(--space-6);
  }

  .features-header {
    margin-bottom: var(--space-8);
    padding: 0;
  }

  .features-scroll-container {
    overflow-x: visible;
    padding: 0;
    margin: 0;
  }

  .swipe-indicator {
    display: none !important;
  }

  .features-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0;
  }

  .feature-card {
    min-height: auto;
    padding: var(--space-6);
  }
}

/* ========================================
   DEMO SECTION
   ======================================== */

.demo {
  padding: var(--space-24) 0;
  background: var(--gray-50);
}

.demo-placeholder {
  max-width: 900px;
  margin: 0 auto;
  background: var(--gray-100);
  border-radius: 12px;
  padding: var(--space-24) var(--space-8);
  text-align: center;
  border: 2px dashed var(--gray-200);
}

.demo-text {
  font-size: 1.25rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq {
  padding: var(--space-24) 0;
  background: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: var(--space-4);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-600);
}

.faq-item[open] {
  border-color: var(--primary-600);
  box-shadow: 0 4px 12px rgba(21, 112, 239, 0.12);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-6);
  cursor: pointer;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-900);
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex: 1;
}

.faq-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.faq-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gray-700);
  stroke-width: 2;
  transition: all 0.3s ease;
}

.faq-question:hover .faq-icon {
  background: var(--primary-50);
  border-color: var(--primary-600);
  transform: scale(1.05);
}

.faq-question:hover .faq-icon svg {
  color: var(--primary-600);
}

.faq-item[open] .faq-icon {
  background: var(--primary-50);
  border-color: var(--primary-600);
}

.faq-item[open] .faq-icon svg {
  color: var(--primary-600);
}

.faq-question:hover {
  color: var(--primary-600);
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-600);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--gray-700);
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: var(--space-3);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--gray-900);
  font-weight: 600;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-24) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

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

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-col p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: var(--space-3);
}

.footer-col ul li:last-child {
  margin-bottom: 0;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: white;
}

.footer-col a:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

/* Focus states for all interactive elements */
a:focus,
button:focus,
summary:focus {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
  .feature-card {
    border: 2px solid var(--gray-900);
  }

  .btn-primary {
    border: 2px solid transparent;
  }

  .btn-secondary {
    border-width: 3px;
  }
}

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

/* Mobile-specific adjustments */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.875rem;
  }

  .feature-card {
    padding: var(--space-6);
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .footer {
    padding: var(--space-16) 0 var(--space-6);
  }
}

/* Print styles */
@media print {
  .skip-to-main,
  .cta-buttons,
  .footer {
    display: none;
  }

  body {
    background: white;
  }

  .hero,
  .features,
  .faq {
    background: white;
  }
}
/* ========================================
   SECURITY & PRIVACY SECTION
   ======================================== */

.security-privacy {
  padding: var(--space-24) 0;
  background: var(--background);
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw + 0.5rem, 1.25rem);
  color: var(--muted-foreground);
  max-width: 700px;
  margin: -var(--space-12) auto var(--space-16);
  line-height: 1.6;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

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

@media (min-width: 1024px) {
  .security-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.security-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 320px;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--foreground);
}

.security-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.security-icon svg {
  width: 28px;
  height: 28px;
  color: var(--foreground);
  stroke-width: 2;
}

.security-card h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: var(--space-3);
}

.security-card > p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

.security-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.security-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.security-features li svg {
  width: 18px;
  height: 18px;
  color: var(--foreground);
  stroke-width: 2.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.security-features li span {
  flex: 1;
}

.security-features a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.security-features a:hover {
  text-decoration-color: var(--foreground);
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: var(--space-16) 0;
}

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

.trust-badge {
  background: var(--muted);
  border-radius: 16px;
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.trust-badge:hover {
  transform: scale(1.02);
  background: var(--border);
}

.badge-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--background);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon svg {
  width: 24px;
  height: 24px;
  color: var(--foreground);
  stroke-width: 2;
}

.badge-content {
  flex: 1;
}

.badge-content strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 2px;
}

.badge-content p {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Security Contact */
.security-contact {
  background: var(--muted);
  border-radius: 16px;
  padding: var(--space-8);
  text-align: center;
  margin-top: var(--space-16);
}

.security-contact h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: var(--space-4);
}

.security-contact p {
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin: 0;
}

.security-contact a {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: text-decoration-color 0.2s ease;
}

.security-contact a:hover {
  text-decoration-color: var(--foreground);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .security-card {
    min-height: auto;
    padding: var(--space-6);
  }

  .trust-badge {
    flex-direction: column;
    text-align: center;
  }

  .badge-icon {
    margin-bottom: var(--space-2);
  }
}

/* ========================================
   Changelog Section Styles
   ======================================== */

.changelog {
  background: var(--background);
  padding: var(--space-24) var(--space-6);
  border-top: 1px solid var(--border);
}

.changelog-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.changelog-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.changelog-header h2 {
  font-size: clamp(2rem, 4vw + 1rem, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: var(--space-4);
}

.changelog-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.changelog-item {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-6);
  align-items: start;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.changelog-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--foreground);
}

.changelog-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.changelog-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.changelog-item:hover .changelog-icon {
  transform: scale(1.1);
}

.feature-icon {
  background: linear-gradient(135deg, var(--foreground) 0%, hsl(222.2, 47.4%, 20%) 100%);
}

.improvement-icon {
  background: linear-gradient(135deg, hsl(215.4, 16.3%, 46.9%) 0%, hsl(215.4, 16.3%, 56.9%) 100%);
}

.bugfix-icon {
  background: linear-gradient(135deg, var(--muted-foreground) 0%, hsl(215.4, 16.3%, 60%) 100%);
}

.changelog-icon svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke-width: 2;
}

.changelog-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-foreground);
}

.changelog-content h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: var(--space-4);
}

.changelog-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0;
}

.changelog-badge {
  align-self: start;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.changelog-item:hover .changelog-badge {
  transform: scale(1.05);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.feature-badge {
  background: var(--foreground);
  color: var(--background);
}

.improvement-badge {
  background: var(--muted);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.bugfix-badge {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.changelog-footer {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.changelog-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  transition: gap 0.2s ease;
}

.changelog-cta:hover {
  gap: 12px;
}

.changelog-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.changelog-cta:hover svg {
  transform: translateX(2px);
}

@media (max-width: 768px) {
  .changelog-item {
    display: grid;
    grid-template-areas:
      "meta badge"
      "content content";
    grid-template-columns: 1fr auto;
    gap: var(--space-4);
  }

  .changelog-meta {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }

  .changelog-meta {
    grid-area: meta;
  }

  .changelog-content {
    grid-area: content;
  }

  .changelog-badge {
    grid-area: badge;
  }
}

/* ========================================
   Security & Privacy Section Styles
   ======================================== */

.security {
  background: hsl(210, 40%, 98%);
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border);
}

.security .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.security-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-top: var(--space-4);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.security-card {
  background: var(--background);
  border-radius: 16px;
  padding: var(--space-8);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.security-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: var(--foreground);
}

.security-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  transition: transform 0.2s ease;
}

.security-card:hover .security-icon {
  transform: scale(1.1) rotate(5deg);
}

.security-icon svg {
  width: 28px;
  height: 28px;
  color: var(--background);
  stroke-width: 2;
}

.security-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
  margin-bottom: var(--space-4);
}

.security-card > p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: var(--space-6);
}

.security-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.security-checklist li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: 14px;
  line-height: 1.5;
  color: var(--foreground);
}

.security-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--foreground);
  flex-shrink: 0;
  stroke-width: 2.5;
  margin-top: 2px;
}

.security-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-8);
}

.security-badge-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
}

.security-badge-item svg {
  width: 24px;
  height: 24px;
  color: var(--foreground);
  stroke-width: 2;
}

.security-footer {
  text-align: center;
}

.security-footer p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: var(--space-4);
}

.security-footer a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.security-footer a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .security-card {
    padding: var(--space-6);
  }

  .security-badges {
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
  }
}
