/* ========================================
   Email Slayer Website
   Colors and tokens match the desktop app
   (apps/desktop/renderer/src/assets/styles/main.css)
   ======================================== */

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

:root {
  --color-primary: #ff6b35;
  --color-primary-hover: #ff8555;
  --color-secondary: #4ecdc4;
  --color-bg: #0a0a0f;
  --color-surface: #13131a;
  --color-surface-elevated: #1a1a24;
  --color-border: #2a2a3a;
  --color-text: #e8e8ed;
  --color-text-muted: #9a9ab0;
  --color-text-faint: #6a6a80;
  --color-success: #22c55e;
  --color-error: #ef4444;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 1100px;
  --radius: 12px;
  --radius-sm: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Layout helpers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.nav-logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--color-primary-hover) !important;
  color: #fff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
  }

  .nav-cta {
    margin: 8px 24px;
    text-align: center;
  }
}

/* --- Hero --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background glow matching the app's splash screen */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 24px rgba(255, 107, 53, 0.3));
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  color: var(--color-primary);
}

.hero .tagline {
  font-size: 20px;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero .tagline {
    font-size: 17px;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

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

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--color-surface-elevated);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

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

/* --- Platform badges --- */
.platforms {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  color: var(--color-text-faint);
  font-size: 13px;
}

.platforms span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.feature-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

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

/* --- Screenshot / App preview --- */
.app-preview {
  text-align: center;
}

.app-preview h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.app-preview .subtitle {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 40px;
}

.screenshot-placeholder {
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-faint);
  font-size: 15px;
}

.screenshot-placeholder img {
  width: 100%;
  border-radius: var(--radius);
}

/* --- Privacy callout --- */
.privacy-callout {
  text-align: center;
}

.privacy-callout h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.privacy-callout .subtitle {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.privacy-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.privacy-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: left;
}

.privacy-point .check {
  color: var(--color-success);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

.privacy-point span {
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .privacy-points {
    grid-template-columns: 1fr;
  }
}

/* --- Download / CTA --- */
.download {
  text-align: center;
}

.download h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.download .subtitle {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 32px;
}

.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.footer-brand svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
}

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

.footer-links a {
  color: var(--color-text-muted);
  font-size: 14px;
}

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

/* =====================
   Content pages
   (privacy, terms, support)
   ===================== */
.page-header {
  padding: 120px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
}

.page-header .updated {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-top: 8px;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
}

.page-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-content p,
.page-content li {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

.page-content code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.page-content th {
  font-weight: 600;
  color: var(--color-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-content td {
  color: var(--color-text-muted);
}

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

/* Highlight boxes for TL;DR / callouts */
.callout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 24px;
}

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

.callout li {
  padding: 4px 0;
}

/* FAQ-style details/summary (support page) */
.faq details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.faq summary {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq summary::before {
  content: '+ ';
  color: var(--color-primary);
  font-weight: 700;
}

.faq details[open] summary::before {
  content: '- ';
}

.faq details[open] summary {
  border-bottom: 1px solid var(--color-border);
}

.faq .faq-body {
  padding: 16px 20px;
}

.faq .faq-body p,
.faq .faq-body li {
  font-size: 14px;
}
