/* 
  MINI ZUP - Premium Email Hosting Prototype
  Design System & Stylesheet
*/

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

/* CSS Variables */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Color Palette */
  --bg-dark: #0a0b12;
  --bg-card: #121422;
  --bg-card-hover: #191c30;
  --bg-input: #1b1d2e;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(99, 102, 241, 0.15);
  
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #d946ef; /* Magenta/Pink */
  --accent: #14b8a6; /* Teal */
  --accent-yellow: #f59e0b; /* Warning/Yellow */
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  bottom: 20%;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--text-primary) 30%, #818cf8 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), 0 0 10px rgba(217, 70, 239, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-color);
}

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

.btn-accent {
  background: linear-gradient(135deg, var(--secondary) 0%, #b5179e 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(217, 70, 239, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 70, 239, 0.5);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Glassmorphism Wrapper */
.glass-panel {
  background: rgba(18, 20, 34, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 11, 18, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

header.scrolled {
  padding: 10px 0;
  background: rgba(10, 11, 18, 0.9);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height var(--transition-normal);
}

header.scrolled .nav-wrapper {
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Sections Base Styling */
section {
  padding: 100px 0;
  position: relative;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
}

.hero-tag .tag-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(20, 184, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); }
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
}

/* Feature Badges under Hero */
.hero-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.badge-item svg {
  color: var(--accent);
}

/* Features Section */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

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

.feature-card {
  padding: 40px 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--shadow-glow);
}

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

.feature-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* Demo Section (Webmail Simulator) */
.demo-section {
  background: radial-gradient(circle at center, rgba(18, 20, 34, 0.4) 0%, rgba(10, 11, 18, 1) 100%);
}

.webmail-mockup {
  width: 100%;
  height: 600px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px 360px 1fr;
  background: #0f101d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* Webmail Sidebar */
.webmail-sidebar {
  background: #0b0c15;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.sidebar-logo span {
  color: var(--accent);
}

.btn-compose {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  transition: all var(--transition-fast);
}

.btn-compose:hover {
  background: #4f46e5;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item:hover, .menu-item.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.menu-item.active {
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
}

.menu-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.menu-badge.badge-grey {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

.sidebar-storage {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.storage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.storage-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 6px;
}

.storage-progress {
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: 10px;
}

/* Mail List Pane */
.mail-list-pane {
  background: #0f101d;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.pane-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pane-header h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.search-box {
  position: relative;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 14px;
  height: 14px;
}

.mail-items-container {
  flex: 1;
  overflow-y: auto;
}

.mail-item {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.mail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.mail-item.unread::before {
  opacity: 1;
}

.mail-item.active {
  background: rgba(99, 102, 241, 0.05);
}

.mail-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.mail-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mail-sender {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.unread-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.mail-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mail-subject {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.mail-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.mail-tag {
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-secure {
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
}

.tag-work {
  background: rgba(99, 102, 241, 0.1);
  color: #818cf8;
}

.tag-social {
  background: rgba(217, 70, 239, 0.1);
  color: #f472b6;
}

/* Mail Content Pane */
.mail-content-pane {
  background: #111221;
  display: flex;
  flex-direction: column;
}

.mail-content-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mail-title-section h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.mail-title-details {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sender-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.sender-info {
  display: flex;
  flex-direction: column;
}

.sender-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.sender-email {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mail-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mail-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.mail-action-btn.active {
  color: var(--accent-yellow);
}

.mail-body-container {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.mail-body {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.mail-body p {
  color: #e2e8f0;
  margin-bottom: 16px;
}

.mail-attachments {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.attachment-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.attachment-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.attachment-pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.attachment-pill svg {
  color: var(--primary);
}

/* Mail Empty State */
.mail-empty-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  padding: 40px;
  text-align: center;
}

.mail-empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

/* Compose Modal */
.compose-modal {
  position: absolute;
  bottom: -500px;
  right: 24px;
  width: 500px;
  background: #16182c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.compose-modal.open {
  bottom: 0;
}

.compose-header {
  background: #0f101d;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.compose-header h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.compose-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.1rem;
}

.compose-close:hover {
  color: var(--text-primary);
}

.compose-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compose-input-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.compose-input-group label {
  width: 60px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.compose-input-group input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.85rem;
}

.compose-body-input {
  width: 100%;
  height: 180px;
  background: none;
  border: none;
  resize: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
  padding-top: 8px;
}

.compose-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #16192b;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: var(--accent);
}

.toast-success svg {
  color: var(--accent);
}

/* Pricing Section */
.pricing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.pricing-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pricing-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-primary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

.discount-badge {
  background: rgba(20, 184, 166, 0.15);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pricing-card {
  padding: 45px 35px;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

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

.pricing-card.popular:hover {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.25);
}

.plan-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.plan-price-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 24px;
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
  letter-spacing: -1px;
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-description {
  font-size: 0.95rem;
  margin-bottom: 30px;
}

.plan-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 30px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.plan-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.plan-feature-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.plan-feature-item.disabled {
  color: var(--text-muted);
}

.plan-feature-item.disabled svg {
  color: var(--text-muted);
  opacity: 0.4;
}

.pricing-card .btn {
  width: 100%;
}

/* FAQ Section */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(18, 20, 34, 0.4);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(18, 20, 34, 0.6);
}

.faq-header {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.faq-icon-wrapper {
  color: var(--text-secondary);
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item.active .faq-icon-wrapper {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-content {
  padding: 0 24px 24px 24px;
  display: none;
}

.faq-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Contact / Newsletter Section */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at bottom center, rgba(99, 102, 241, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
  gap: 12px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

/* Footer */
footer {
  background: #06070a;
  border-top: 1px solid var(--border-color);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 20px 0;
  font-size: 0.95rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.footer-link:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .features-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .webmail-mockup {
    grid-template-columns: 200px 300px 1fr;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero h1 {
    font-size: 2.6rem;
  }
  
  .nav-links, .nav-ctas {
    display: none; /* In production: a toggle mobile menu. In prototype, hide to keep clean layout or responsive drawer */
  }
  
  .menu-toggle {
    display: block;
  }
  
  .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .webmail-mockup {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .webmail-sidebar, .mail-list-pane {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .webmail-sidebar {
    padding: 16px;
  }
  
  .mail-list-pane {
    height: 350px;
  }
  
  .mail-content-pane {
    height: 400px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .compose-modal {
    width: calc(100% - 48px);
    right: 24px;
  }
}
