/* ═══════════════════════════════════════════════════════════════
   MailPantry — style.css
   Designed by Syrup Web Services · mailpantry.co.zw
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --orange:      #F4AB4A;
  --orange-deep: #E0922A;
  --orange-pale: #FEF3E2;
  --dark:        #1A1918;
  --dark-mid:    #2C2B2A;
  --dark-soft:   #494847;
  --mid:         #7A7774;
  --light:       #F3F2F1;
  --white:       #FFFFFF;
  --serif:       'DM Serif Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --radius:      12px;
  --shadow:      0 4px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 12px 60px rgba(0,0,0,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Noise texture overlay ───────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ── Navigation ──────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 48px;
  background: rgba(26,25,24,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Logo wrapper */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--orange); }

/* Logo image — fixed 32×32, never grows */
.nav-logo-img {
  display: block;
  width: 32px;
  height: 32px;
  min-width: 32px;   /* prevent flex from squeezing it */
  max-width: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(244,171,74,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,171,74,0.12);
  border: 1px solid rgba(244,171,74,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 32px;
  animation: fadeUp 0.6s ease both;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em { font-style: italic; color: var(--orange); }

.hero-sub {
  margin-top: 24px;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  margin-top: 48px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-download {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--orange);
  color: var(--dark);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius);
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
  box-shadow: 0 4px 24px rgba(244,171,74,0.35);
  position: relative; overflow: hidden;
}
.btn-download::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
}
.btn-download:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(244,171,74,0.45);
}
.btn-download:active { transform: translateY(0); }
.btn-download svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: all 0.18s;
}
.btn-ghost:hover {
  border-color: rgba(244,171,74,0.4);
  color: var(--orange);
  background: rgba(244,171,74,0.06);
}

.meta-row {
  margin-top: 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
  animation: fadeUp 0.6s 0.4s ease both;
}
.meta-row span { display: flex; align-items: center; gap: 6px; }

/* ── App screenshot / mockup ─────────────────────────────────── */
.hero-mockup {
  margin-top: 64px;
  position: relative;
  width: 100%; max-width: 900px;
  animation: fadeUp 0.8s 0.5s ease both;
}

.mockup-frame {
  background: var(--dark-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 16px 16px;
}

/* Fallback CSS mockup */
.mockup-bar {
  background: var(--dark-soft);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 8px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-title {
  flex: 1; text-align: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.mockup-body {
  display: grid; grid-template-columns: 180px 300px 1fr;
  height: 320px;
}
.mockup-sidebar {
  background: rgba(20,19,18,0.8);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 12px 0;
}
.mockup-folder {
  padding: 8px 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  display: flex; align-items: center; gap: 8px;
  transition: background 0.15s;
}
.mockup-folder.active {
  background: rgba(244,171,74,0.15);
  color: var(--orange);
  border-left: 2px solid var(--orange);
}
.mockup-folder:hover:not(.active) { background: rgba(255,255,255,0.04); }

.mockup-list { border-right: 1px solid rgba(255,255,255,0.05); overflow: hidden; }
.mockup-email-item {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
}
.mockup-email-item.selected { background: rgba(244,171,74,0.2); }
.mockup-email-item:hover:not(.selected) { background: rgba(255,255,255,0.03); }
.mockup-email-from  { font-size: 0.7rem;  color: rgba(255,255,255,0.5);  margin-bottom: 2px; }
.mockup-email-subj  { font-size: 0.75rem; color: rgba(255,255,255,0.85); font-weight: 600; margin-bottom: 3px; }
.mockup-email-prev  { font-size: 0.68rem; color: rgba(255,255,255,0.3); }
.mockup-unread-dot  {
  width: 4px; border-radius: 2px;
  background: var(--orange);
  position: absolute; left: 4px; top: 12px; bottom: 12px;
}

.mockup-preview {
  padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.mockup-preview-header { padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mockup-preview-from { font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.mockup-preview-subj { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-top: 4px; }
.mockup-preview-line {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.07);
}
.mockup-preview-line.w80 { width: 80%; }
.mockup-preview-line.w60 { width: 60%; }
.mockup-preview-line.w90 { width: 90%; }
.mockup-preview-line.w45 { width: 45%; }

/* ── Sections ────────────────────────────────────────────────── */
.section {
  position: relative; z-index: 1;
  padding: 100px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-sub {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 60px;
}

/* ── Features grid ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-card {
  background: var(--dark-mid);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: #2e2d2c; }

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(244,171,74,0.12);
  border: 1px solid rgba(244,171,74,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ── Download section ────────────────────────────────────────── */
.download-section {
  position: relative; z-index: 1;
  padding: 0 24px 100px;
}

.download-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--dark-mid) 0%, #232120 100%);
  border: 1px solid rgba(244,171,74,0.2);
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  box-shadow: 0 0 80px rgba(244,171,74,0.06);
}

.download-info h2 {
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.download-info p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.version-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244,171,74,0.1);
  border: 1px solid rgba(244,171,74,0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.82rem;
  color: var(--orange);
  margin-bottom: 28px;
}

.specs-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
}
.specs-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.specs-list li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Installation steps ──────────────────────────────────────── */
.install-steps { display: flex; flex-direction: column; gap: 20px; }

.step { display: flex; gap: 16px; align-items: flex-start; }

.step-num {
  width: 32px; height: 32px; flex-shrink: 0;
  background: rgba(244,171,74,0.15);
  border: 1px solid rgba(244,171,74,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
}

.step-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: rgba(255,255,255,0.9);
}

.step-content p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
  margin: 0;
}

.step-divider {
  width: 1px;
  height: 16px;
  background: rgba(244,171,74,0.2);
  margin-left: 15px;
}

/* ── Download progress overlay ───────────────────────────────── */
.download-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  z-index: 999;
  align-items: center; justify-content: center;
}
.download-overlay.active { display: flex; }

.download-modal {
  background: var(--dark-mid);
  border: 1px solid rgba(244,171,74,0.25);
  border-radius: 20px;
  padding: 48px 56px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  animation: scaleIn 0.3s ease;
}
@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.download-modal h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.download-modal p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 28px; }

.progress-track {
  background: rgba(255,255,255,0.08);
  border-radius: 100px; height: 6px;
  overflow: hidden; margin-bottom: 12px;
}
.progress-bar {
  height: 100%; width: 0%;
  background: var(--orange);
  border-radius: 100px;
  transition: width 0.3s ease;
}
.progress-label { font-size: 0.78rem; color: rgba(255,255,255,0.35); }

.download-modal-close {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 20px;
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.15s;
}
.download-modal-close:hover { border-color: rgba(255,255,255,0.3); color: white; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
}
.footer-logo span { color: var(--orange); }

footer p { font-size: 0.8rem; color: rgba(255,255,255,0.25); }

footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--orange); }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  position: relative; z-index: 1;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 0 48px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 10px 16px;
  }

  /* Logo: image stays 28px, hide the text wordmark on small screens */
  .nav-logo {
    font-size: 1.1rem;
    gap: 8px;
  }
  .nav-logo-img {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
  }
  .nav-logo-text {
    display: none;   /* hides "MailPantry" text, keeps icon only */
  }

  /* Hide nav links — hamburger could go here later */
  .nav-links { display: none; }

  /* Mockup */
  .mockup-body { grid-template-columns: 1fr; height: auto; }
  .mockup-sidebar, .mockup-list { display: none; }

  /* Download card */
  .download-card {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 32px 20px;
  }

  /* Footer */
  footer {
    padding: 32px 20px;
    flex-direction: column;
    text-align: center;
  }

  /* Divider */
  .divider { margin: 0 20px; }
}

@media (max-width: 480px) {
  .nav-logo-img {
    width: 26px;
    height: 26px;
    min-width: 26px;
    max-width: 26px;
  }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-download, .btn-ghost { width: 100%; justify-content: center; }
}
