/* ============================================================
   POP3 for Gmail - Corporate Website
   Light Premium Theme + Full Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Design Tokens - Light Theme ---------- */
:root {
  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-alt: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.72);

  /* Borders */
  --border-subtle: #f1f5f9;
  --border-card: #e2e8f0;
  --border-accent: rgba(37, 99, 235, 0.25);

  /* Accent */
  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-lighter: #60a5fa;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --accent-secondary: #475569;
  --accent-gradient: linear-gradient(135deg, #1d4ed8, #2563eb);
  --accent-gradient-wide: linear-gradient(135deg, #0f172a, #1d4ed8, #2563eb, #475569);
  --accent-gradient-subtle: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(71,85,105,0.04));

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-accent: #1d4ed8;

  /* Semantic */
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.08);
  --danger: #dc2626;
  --warning: #d97706;

  /* Layout */
  --max-width: 1200px;
  --section-padding: clamp(80px, 10vw, 140px);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Effects */
  --glass-blur: blur(20px) saturate(180%);
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 4px 24px rgba(0,0,0,0.06), 0 12px 48px rgba(79,70,229,0.06);
  --glow-shadow: 0 0 80px rgba(79, 70, 229, 0.08);
  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}


.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.75;
  margin-top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 8px rgba(0,0,0,0.03);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  z-index: 1001;
}

.navbar-brand img {
  height: 28px;
  width: 28px;
  flex-shrink: 0;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.navbar-links a:hover { color: var(--text-primary); }
.navbar-links a:hover::after { width: 100%; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.navbar-actions .lang-btn,
.navbar-actions .btn-signin,
.navbar-actions .btn-primary {
  height: 38px;
  padding-top: 0;
  padding-bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  cursor: pointer;
}

.lang-btn:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}

.lang-btn svg {
  width: 14px;
  height: 14px;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow-hover);
  padding: 6px;
  min-width: 150px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: var(--transition-base);
  z-index: 1002;
}

.lang-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  text-align: left;
}

.lang-option:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent);
  font-weight: 600;
}

.lang-option .flag {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 16px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.lang-option .flag svg {
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(79,70,229,0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(79,70,229,0.25);
}

.btn-primary:hover::before { left: 100%; }

.btn-static {
  cursor: default;
}

.btn-static:hover {
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79, 70, 229, 0.04);
  transform: translateY(-1px);
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.btn-signin:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

.btn-signin svg { width: 16px; height: 16px; }

.account-notice {
  position: fixed;
  top: 78px;
  right: 24px;
  z-index: 1400;
  display: grid;
  gap: 4px;
  width: min(360px, calc(100vw - 32px));
  padding: 16px 42px 16px 16px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.16);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  animation: accountNoticeIn 180ms ease-out;
}

.account-notice strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.account-notice span {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.account-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: var(--transition-fast);
}

.account-notice-close:hover {
  color: var(--text-primary);
  background: var(--bg-surface-hover);
}

@keyframes accountNoticeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile hamburger */
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  height: 20px;
  z-index: 1001;
  padding: 0;
}

.navbar-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
  transform-origin: center;
}

.navbar-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

/* Soft gradient background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,0.07), transparent),
    radial-gradient(ellipse 50% 40% at 85% 50%, rgba(139,92,246,0.05), transparent),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(79,70,229,0.04), transparent);
  animation: heroGradientShift 15s ease-in-out infinite alternate;
}

@keyframes heroGradientShift {
  0% {
    background:
      radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,70,229,0.07), transparent),
      radial-gradient(ellipse 50% 40% at 85% 50%, rgba(139,92,246,0.05), transparent),
      radial-gradient(ellipse 60% 50% at 15% 80%, rgba(79,70,229,0.04), transparent);
  }
  100% {
    background:
      radial-gradient(ellipse 70% 50% at 40% 0%, rgba(99,102,241,0.08), transparent),
      radial-gradient(ellipse 60% 50% at 75% 60%, rgba(79,70,229,0.06), transparent),
      radial-gradient(ellipse 50% 40% at 25% 90%, rgba(139,92,246,0.05), transparent);
  }
}

/* Grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-lighter);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 840px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.12);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,70,229,0.1); }
  50% { box-shadow: 0 0 16px 2px rgba(79,70,229,0.06); }
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero h1 .gradient-text {
  background: var(--accent-gradient-wide);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-cta .btn-primary {
  padding: 14px 32px;
  font-size: 0.95rem;
}

.hero-cta .btn-secondary {
  padding: 14px 28px;
  font-size: 0.95rem;
}

/* Hero Visual - mail flow SVG */
.hero-visual {
  margin-top: 72px;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 640px;
  height: auto;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.06), transparent 70%);
  pointer-events: none;
}

/* ============================================================
   SOCIAL PROOF STRIP
   ============================================================ */
.social-proof {
  position: relative;
  padding: 48px 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

.social-proof-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 150px;
}

.proof-stat .number {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.proof-stat .label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border-card);
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--card-shadow);
}

.proof-badge svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: var(--section-padding) 24px;
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 64px;
}

.features-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-card {
  position: relative;
  padding: 32px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-lighter), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.feature-card:hover::before { opacity: 0.6; }

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Icon variants - soft pastel backgrounds for light theme */
.feature-icon.icon-import  { background: #eff6ff; color: #3b82f6; }
.feature-icon.icon-sync    { background: #ecfdf5; color: #059669; }
.feature-icon.icon-send    { background: #fefce8; color: #ca8a04; }
.feature-icon.icon-label   { background: #f5f3ff; color: #7c3aed; }
.feature-icon.icon-multi   { background: #fdf2f8; color: #db2777; }
.feature-icon.icon-dedup   { background: #f0fdfa; color: #0d9488; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: var(--section-padding) 24px;
  position: relative;
  background: var(--bg-alt);
}

.how-header {
  text-align: center;
  margin-bottom: 80px;
}

.how-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.steps-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.step {
  display: flex;
  gap: 28px;
  padding-bottom: 52px;
  position: relative;
  z-index: 3;
}

.step:last-child { padding-bottom: 0; }

.step-number {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--border-card);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition-base);
  box-shadow: var(--card-shadow);
}

.step.active .step-number {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(79,70,229,0.2);
}

.step-content { padding-top: 12px; }

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

.steps-line-bg {
  position: absolute;
  left: 31px;
  top: 32px;
  width: 2px;
  background: var(--border-card);
  z-index: 1;
}

.steps-line-fill {
  position: absolute;
  left: 31px;
  top: 32px;
  width: 2px;
  height: 0;
  background: var(--accent-gradient);
  z-index: 2;
  transition: height 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   INTERACTIVE DEMO / VISUAL SHOWCASE
   ============================================================ */
.showcase {
  padding: var(--section-padding) 24px;
  position: relative;
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  margin-bottom: 64px;
}

.showcase-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.showcase-container {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}

/* Gmail-like inbox mock */
.inbox-mock {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.02);
}

.inbox-titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border-subtle);
}

.titlebar-dots {
  display: flex;
  gap: 6px;
}

.titlebar-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.titlebar-dots span:nth-child(1) { background: #f87171; }
.titlebar-dots span:nth-child(2) { background: #fbbf24; }
.titlebar-dots span:nth-child(3) { background: #34d399; }

.titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.inbox-body {
  display: flex;
  min-height: 380px;
}

.inbox-sidebar {
  width: 200px;
  padding: 16px 12px;
  border-right: 1px solid var(--border-subtle);
  flex-shrink: 0;
  background: var(--bg-alt);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.sidebar-item.active {
  background: rgba(79, 70, 229, 0.06);
  color: var(--accent);
  font-weight: 600;
}

.sidebar-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sidebar-item .sidebar-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-body);
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-label-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-label-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}

.sidebar-label .label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mail list */
.inbox-list {
  flex: 1;
  padding: 4px 8px;
  overflow: hidden;
}

.mail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-subtle);
}

.mail-row:last-child { border-bottom: none; }
.mail-row:hover { background: var(--bg-alt); }

.mail-row.unread .mail-sender {
  font-weight: 700;
  color: var(--text-primary);
}

.mail-row.unread .mail-subject {
  font-weight: 600;
  color: var(--text-primary);
}

.mail-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mail-indicator.unread { background: var(--accent); }

.mail-sender {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.mail-content {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.mail-subject {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-label {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mail-label.label-work     { background: #fdf2f8; color: #db2777; }
.mail-label.label-personal { background: #eff6ff; color: #3b82f6; }
.mail-label.label-legacy   { background: #f5f3ff; color: #7c3aed; }

.mail-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Sync bar */
.inbox-sync-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 150, 105, 0.03);
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: dotPulse 2s ease-in-out infinite;
}

.sync-text {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--success);
}

.sync-time {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   SECURITY SECTION
   ============================================================ */
.security {
  padding: var(--section-padding) 24px;
  position: relative;
  background: var(--bg-alt);
}

.security::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 350px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.04), transparent 70%);
  pointer-events: none;
}

.security-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.security-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.security-card {
  padding: 30px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
  box-shadow: var(--card-shadow);
}

.security-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--card-shadow-hover);
}

.security-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.security-card-icon svg { width: 20px; height: 20px; }

.security-card-icon.icon-encrypt { background: #ecfdf5; color: #059669; }
.security-card-icon.icon-self    { background: #eff6ff; color: #3b82f6; }
.security-card-icon.icon-oauth   { background: #fefce8; color: #ca8a04; }
.security-card-icon.icon-privacy { background: #fef2f2; color: #dc2626; }

.security-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.security-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   STORY SECTION
   ============================================================ */
.story-section {
  padding: var(--section-padding) 24px;
  position: relative;
  background: var(--bg-surface);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}

.story-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.story-text {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.story-text p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.story-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.story-card-header {
  margin-bottom: 24px;
}

.story-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.story-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.story-features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.story-features-list li svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.story-features-list li strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.story-features-list li span {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

@media (max-width: 968px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq {
  padding: var(--section-padding) 24px;
  background: var(--bg-alt);
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-card);
}

.faq-item:first-child {
  border-top: 1px solid var(--border-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: color var(--transition-fast);
  gap: 16px;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
  padding-bottom: 22px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  padding: var(--section-padding) 24px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(79, 70, 229, 0.05), transparent);
  animation: ctaGlow 6s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-content .cta-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.cta-content .btn-primary {
  padding: 16px 40px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 40px 24px 28px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-alt);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  height: 22px;
  width: 22px;
  flex-shrink: 0;
  display: block;
}

.footer-brand span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.footer-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  background: var(--bg-alt);
}

.legal-navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.legal-main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 72px;
}

.legal-document {
  padding: clamp(32px, 5vw, 56px);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.legal-document h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.legal-updated {
  margin-bottom: 32px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.legal-document h2 {
  margin: 34px 0 12px;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.legal-document p,
.legal-document li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.legal-document p + p {
  margin-top: 14px;
}

.legal-document ul {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.legal-document a {
  color: var(--text-accent);
  font-weight: 600;
}

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

/* ============================================================
   RESPONSIVE - Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .inbox-sidebar { display: none; }
  .steps-container::before { left: 31px; }
  .steps-line-fill { left: 31px; }
}

/* ============================================================
   RESPONSIVE - Mobile (≤ 640px)
   ============================================================ */
@media (max-width: 640px) {
  .navbar-links {
    position: fixed;
    inset: 0;
    background: var(--bg-body);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
    z-index: 999;
  }

  .navbar-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .navbar-links a { font-size: 1.2rem; }
  .navbar-toggle { display: flex; }

  .hero {
    padding: 100px 20px 60px;
    min-height: auto;
  }

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

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-visual { margin-top: 48px; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }

  .social-proof-inner {
    flex-direction: column;
    gap: 24px;
  }

  .proof-divider {
    width: 40px;
    height: 1px;
  }

  .steps-container::before { left: 27px; }
  .steps-line-fill { left: 27px; }
  .step-number { width: 56px; height: 56px; font-size: 1.1rem; }
  .step { gap: 20px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .inbox-body { min-height: 280px; }
  .mail-preview { display: none; }
  .mail-sender { width: 100px; }

  .navbar-actions .btn-primary span { display: none; }
  .navbar-actions .btn-primary { padding: 9px 12px; }

  .lang-dropdown {
    right: -40px;
  }
}

/* ---------- Animation Keyframes ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.mail-row {
  animation: slideInLeft 0.4s ease-out both;
}

.mail-row:nth-child(1) { animation-delay: 0.1s; }
.mail-row:nth-child(2) { animation-delay: 0.2s; }
.mail-row:nth-child(3) { animation-delay: 0.3s; }
.mail-row:nth-child(4) { animation-delay: 0.4s; }
.mail-row:nth-child(5) { animation-delay: 0.5s; }
.mail-row:nth-child(6) { animation-delay: 0.6s; }
.mail-row:nth-child(7) { animation-delay: 0.7s; }

@keyframes mailPath {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}

@keyframes mailEnvelopePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

.mail-flow-path-bg {
  stroke: var(--border-card);
  stroke-width: 2px;
  fill: none;
}

.mail-flow-path {
  stroke: var(--accent);
  stroke-width: 2px;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 8 12;
  animation: mailPath 1.2s linear infinite;
}

.mail-flow-envelope {
  animation: mailEnvelopePulse 2.5s ease-in-out infinite;
  transform-origin: 14px 10px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
