/* ==========================================================================
   MARMELO MAIL - DESIGN SYSTEM & STYLESHEET (VANILLA CSS)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-dark: #090a0f;
  --bg-card: #12131c;
  --bg-card-hover: #181926;
  --bg-elevated: #1e1f30;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.4);
  
  --primary: #f59e0b; /* Amber do Marmelo */
  --primary-hover: #d97706;
  --primary-glow: rgba(245, 158, 11, 0.25);

  --secondary: #8b5cf6; /* Roxo Inteligência Artificial */
  --secondary-glow: rgba(139, 92, 246, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-faint: #64748b;

  --accent-emerald: #10b981;
  --accent-blue: #38bdf8;
  --accent-red: #f43f5e;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

  /* Containers */
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-top {
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(245, 158, 11, 0.12) 60%, transparent 100%);
}

.glow-accent {
  top: 900px;
  right: -100px;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 80%);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.max-w-4xl {
  max-width: 860px;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0b0c10;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(9, 10, 15, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(9, 10, 15, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.frame-symbol-img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 4px;
  vertical-align: middle;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--primary);
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.badge-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fde68a;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-subtitle strong {
  color: #fff;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 3.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Color utilities */
.text-amber { color: var(--primary); }
.text-purple { color: var(--secondary); }
.text-emerald { color: var(--accent-emerald); }
.text-blue { color: var(--accent-blue); }

/* Showcase Interactive Frame */
.hero-showcase-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

.showcase-frame {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(139, 92, 246, 0.15);
  overflow: hidden;
  text-align: left;
}

.frame-bar {
  background: #11121b;
  padding: 0.75rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.frame-dots {
  display: flex;
  gap: 0.45rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.frame-address {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.user-pill {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Simulated Webmail UI */
.webmail-ui {
  display: grid;
  grid-template-columns: 200px 330px 1fr;
  height: 480px;
  background: #0d0e15;
}

.ui-sidebar {
  background: #12131d;
  padding: 1.2rem 0.8rem;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.ui-compose-btn {
  background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  cursor: pointer;
}

.ui-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.ui-menu li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ui-menu li.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--primary);
  font-weight: 600;
}

.ui-menu li .badge {
  margin-left: auto;
  background: var(--primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
}

.ui-menu li .clean-badge {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--accent-emerald);
}

.ui-quota {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.quota-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.quota-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.quota-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 9999px;
}

/* Mail List */
.ui-mail-list {
  background: #141520;
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mail-list-header {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mail-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.mail-actions .icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.25rem;
}

.mail-item {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 0.75rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mail-item.active {
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid var(--secondary);
}

.mail-item:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03);
}

.mail-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.avatar-1 { background: #8b5cf6; }
.avatar-2 { background: #38bdf8; }
.avatar-3 { background: #f59e0b; }

.mail-info {
  flex: 1;
  overflow: hidden;
}

.mail-sender-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.mail-time {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 400;
}

.mail-subject {
  font-size: 0.82rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}

.mail-snippet {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.35rem;
}

.mail-tags {
  display: flex;
  gap: 0.35rem;
}

.tag {
  font-size: 0.68rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.tag-purple { background: rgba(139, 92, 246, 0.2); color: #c084fc; }
.tag-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.tag-blue { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }

/* Mail View Pane */
.ui-mail-view {
  padding: 1.2rem 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.8rem;
}

.view-subject-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.view-actions {
  display: flex;
  gap: 0.4rem;
}

.view-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mail View Meta & Sender */
.mail-view-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  gap: 1rem;
}

.meta-sender-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.meta-sender-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sender-name-full strong {
  font-size: 0.92rem;
  color: #fff;
}

.sender-email {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-left: 0.35rem;
}

.sender-security-badge {
  font-size: 0.72rem;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-date {
  font-size: 0.78rem;
  color: var(--text-faint);
  white-space: nowrap;
}

.view-message-content {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.view-message-content p {
  margin-bottom: 0.75rem;
}

/* Common Section Headers */
section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3.5rem;
}

/* Comparison Section */
.comparison-section {
  background: #0b0c13;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: var(--bg-card);
  border-radius: 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, 
.comparison-table td {
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th {
  background: #151624;
  font-size: 1rem;
  font-weight: 700;
}

.comparison-table thead th.col-marmelo {
  background: rgba(245, 158, 11, 0.1);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.th-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.th-tag {
  font-size: 0.72rem;
  background: var(--primary);
  color: #000;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-weight: 700;
  display: inline-block;
}

.comparison-table td.col-marmelo {
  background: rgba(245, 158, 11, 0.04);
  font-weight: 700;
  color: #fde68a;
  border-left: 2px solid rgba(245, 158, 11, 0.3);
  border-right: 2px solid rgba(245, 158, 11, 0.3);
}

.feature-name strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.feature-name span {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.check-icon {
  color: var(--accent-emerald);
  margin-right: 0.35rem;
}

.cross-icon {
  color: var(--accent-red);
  margin-right: 0.35rem;
}

.neutral-icon {
  color: var(--text-faint);
  margin-right: 0.35rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.2rem 1.8rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.4rem;
}

.icon-shield { background: rgba(245, 158, 11, 0.15); color: var(--primary); }
.icon-ai { background: rgba(139, 92, 246, 0.15); color: var(--secondary); }
.icon-speed { background: rgba(56, 189, 248, 0.15); color: var(--accent-blue); }
.icon-antispam { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.icon-domain { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.icon-sync { background: rgba(249, 115, 22, 0.15); color: #f97316; }

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive AI Demo */
.ai-demo-section {
  background: #0a0b12;
}

.demo-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background: linear-gradient(135deg, #131422 0%, #0d0e17 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.demo-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.demo-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.demo-selectors {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: all var(--transition-fast);
}

.demo-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.demo-tab-btn.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--secondary);
  color: #c084fc;
}

.demo-interactive-window {
  background: #090a10;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
}

.demo-box-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.box-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f43f5e;
}

.box-title {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.demo-email-raw {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem;
  border-radius: 8px;
  border-left: 2px solid var(--border-subtle);
  margin-bottom: 1.2rem;
  font-style: italic;
}

.demo-arrow {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.ai-spark {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(245, 158, 11, 0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.demo-result-box {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
  padding: 1.2rem;
}

.result-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald);
  margin-bottom: 0.5rem;
}

#demoSummaryText {
  font-size: 0.85rem;
  color: #e2e8f0;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.result-reply-preview strong {
  display: block;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

#demoReplyText {
  font-size: 0.82rem;
  color: #93c5fd;
  background: rgba(56, 189, 248, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
}

/* Billing Toggle Switch */
.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto 3rem;
}

.billing-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.billing-label.active {
  color: #fff;
}

.discount-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.billing-switch {
  width: 52px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  padding: 3px;
}

.billing-switch.annual {
  background: var(--primary);
}

.billing-slider {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  display: block;
  transition: transform var(--transition-fast);
  transform: translateX(0);
}

.billing-switch.annual .billing-slider {
  transform: translateX(24px);
  background: #000;
}

.plan-billed-info {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.pricing-card.featured {
  background: linear-gradient(180deg, #161729 0%, #11121f 100%);
  border: 2px solid var(--primary);
  box-shadow: 0 15px 45px rgba(245, 158, 11, 0.15);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 44px;
  margin-bottom: 1.5rem;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 2rem;
}

.plan-price .currency {
  font-size: 1.3rem;
  font-weight: 700;
}

.plan-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.plan-price .period {
  font-size: 0.95rem;
  color: var(--text-faint);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #e2e8f0;
}

.plan-features li i {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

/* FAQ Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.accordion-header i {
  font-size: 0.85rem;
  color: var(--text-faint);
  transition: transform var(--transition-fast);
}

.accordion-item.active .accordion-header i {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.accordion-item.active .accordion-collapse {
  max-height: 300px;
}

.accordion-body {
  padding: 0 1.5rem 1.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bottom CTA Banner */
.cta-banner-section {
  padding-bottom: 6rem;
}

.cta-banner {
  background: linear-gradient(135deg, #1c153b 0%, #151128 100%);
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  flex-wrap: wrap;
}

.cta-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.65rem;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

/* Footer */
.site-footer {
  background: #06070a;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-2px);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-faint);
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Responsiveness */
@media (max-width: 992px) {
  .webmail-ui {
    grid-template-columns: 180px 1fr;
  }
  .ui-mail-view {
    display: none; /* Em telas médias mostra a lista */
  }
  .demo-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #0f1019;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-toggle {
    display: block;
  }
  .webmail-ui {
    grid-template-columns: 1fr;
    height: 380px;
  }
  .ui-sidebar {
    display: none;
  }
  .cta-banner {
    padding: 2rem;
  }
  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------
 * Downloads Section
 * --------------------------------------------------------- */
.downloads-section {
  padding: 5rem 0;
  position: relative;
}

.downloads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  transition: all var(--transition-fast);
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.download-card.featured-download {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

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

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

.download-icon.icon-android { color: #3ddc84; }
.download-icon.icon-apple { color: #f1f5f9; }
.download-icon.icon-windows { color: #00a4ef; }
.download-icon.icon-linux { color: #facc15; }

.download-info h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.download-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 0.8rem;
}

.download-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.meta-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  width: 100%;
}

.download-card.featured-download .btn-download {
  width: auto;
}

/* Badge Soon */
.badge-soon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.4rem;
  vertical-align: middle;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Feature Subtext (avoids overflow) */
.feature-subtext {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.2rem;
  margin-left: 1.6rem;
}

