/* Dueit Landing Page Styles */
/* Based on app theme - solid colors, clean design, no gradients */

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Dark mode (default) */
  --bg-primary: #0B0F19;
  --bg-surface: #111827;
  --bg-surface-hover: #1a2233;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --border-color: #1f2937;

  /* Accent colors from app */
  --green: #22c55e;
  --purple: #a855f7;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --amber: #f59e0b;
  --pink: #ec4899;
  --indigo: #6366f1;
  --cyan: #06b6d4;

  /* Brand */
  --accent: #22c55e;

  /* Spacing */
  --radius: 12px;
  --radius-sm: 8px;
}

/* Light mode */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #ffffff;
    --bg-surface: #f6f7fb;
    --bg-surface-hover: #eef0f5;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  opacity: 0.8;
}

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

/* ============================================
   Layout
   ============================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   Header Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

@media (prefers-color-scheme: light) {
  .site-header {
    background-color: rgba(246, 247, 251, 0.98);
    border-bottom: 1px solid #d1d5db;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo img {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.header-nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--accent);
  opacity: 1;
}

/* Mobile responsive header */
@media (max-width: 480px) {
  .site-header {
    padding: 12px 0;
  }

  .header-container {
    gap: 12px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .header-nav {
    gap: 12px;
  }

  .header-nav a {
    font-size: 0.75rem;
  }
}

/* ============================================
   Header/Hero
   ============================================ */
.hero {
  padding: 140px 0 60px;
  /* Added extra top padding for fixed header */
  text-align: center;
}

.logo {
  width: 120px;
  height: auto;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}

/* ============================================
   Download Buttons
   ============================================ */
.download-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.download-buttons a {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.download-buttons a:hover {
  opacity: 0.8;
}

.download-buttons img {
  height: 44px;
  width: auto;
}

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

.features h2 {
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-icon.green {
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.feature-icon.purple {
  background-color: rgba(168, 85, 247, 0.15);
  color: var(--purple);
}

.feature-icon.blue {
  background-color: rgba(59, 130, 246, 0.15);
  color: var(--blue);
}

.feature-icon.teal {
  background-color: rgba(20, 184, 166, 0.15);
  color: var(--teal);
}

.feature-icon.amber {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.feature-icon.pink {
  background-color: rgba(236, 72, 153, 0.15);
  color: var(--pink);
}

.feature-icon.indigo {
  background-color: rgba(99, 102, 241, 0.15);
  color: var(--indigo);
}

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

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

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

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

.footer-links {
  display: flex;
  gap: 24px;
}

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

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

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

/* ============================================
   404 Page
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.error-page .logo {
  width: 80px;
  margin-bottom: 24px;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page h1 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.error-message {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  background-color: var(--accent);
  color: #0B0F19;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}

.back-button:hover {
  opacity: 0.9;
}

/* ============================================
   Policy Pages
   ============================================ */
.policy-page {
  padding: 40px 0 80px;
}

.policy-nav {
  margin-bottom: 40px;
}

.back-link {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--accent);
}

/* Policy HTML content styling (from dillinger export) */
#preview {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
}

#preview h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

#preview h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

#preview h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

#preview p {
  margin-bottom: 16px;
  color: var(--text-primary);
}

#preview ul,
#preview ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

#preview li {
  margin-bottom: 8px;
  color: var(--text-primary);
}

#preview ul ul,
#preview ol ul,
#preview ul ol,
#preview ol ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

#preview blockquote {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

#preview blockquote p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

#preview hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 32px 0;
}

#preview a {
  color: var(--accent);
  text-decoration: none;
}

#preview a:hover {
  text-decoration: underline;
}

#preview code {
  background-color: var(--bg-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.875em;
}

#preview strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .logo {
    width: 100px;
  }

  .features h2 {
    font-size: 1.5rem;
  }

  .error-code {
    font-size: 4rem;
  }

  #preview {
    padding: 24px 16px 60px;
  }

  #preview h1 {
    font-size: 1.5rem;
  }

  #preview h2 {
    font-size: 1.25rem;
  }
}