/* ============================================================================
   DealSend.app - Modern Mobile-First UI
   ============================================================================ */

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

:root {
  /* Color System - Modern Blue/Purple palette */
  --color-primary: #3a34a3;        /* Indigo-600 */
  --color-primary-hover: #4338CA;  /* Indigo-700 */
  --color-primary-light: #EEF2FF;  /* Indigo-50 */
  --color-secondary: #3b45a5;      /* Violet-500 */
  --color-accent: #06B6D4;         /* Cyan-500 */
  --color-success: #10B981;        /* Emerald-500 */
  --color-danger: #EF4444;         /* Red-500 */
  --color-warning: #F59E0B;        /* Amber-500 */
  
  /* Neutrals */
  --color-text: #1F2937;           /* Gray-800 */
  --color-text-light: #6B7280;     /* Gray-500 */
  --color-text-lighter: #9CA3AF;   /* Gray-400 */
  --color-bg: #FFFFFF;
  --color-bg-secondary: #F9FAFB;   /* Gray-50 */
  --color-bg-tertiary: #F3F4F6;    /* Gray-100 */
  --color-border: #E5E7EB;         /* Gray-200 */
  --color-border-hover: #D1D5DB;   /* Gray-300 */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #8B5CF6 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) 0;
}

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

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

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

.nav {
  display: flex;
  gap: var(--space-sm);
}

.nav a {
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav a:hover {
  color: var(--color-text);
  background: var(--color-bg-secondary);
}

.nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* ============================================================================
   MAIN CONTENT
   ============================================================================ */

#app {
  flex: 1;
  padding-bottom: var(--space-3xl);
}

.view {
  min-height: calc(100vh - 200px);
}

/* ============================================================================
   HERO / HOME PAGE
   ============================================================================ */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - 160px);
  padding: var(--space-3xl) var(--space-lg);
}

.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-lg);
  max-width: 900px;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-bg-secondary);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: white;
  color: var(--color-danger);
  border: 1px solid var(--color-border);
}

.btn-danger:hover:not(:disabled) {
  background: #FEF2F2;
  border-color: var(--color-danger);
}

/* ============================================================================
   DASHBOARD / MY FILES
   ============================================================================ */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: var(--space-2xl) 0 var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.page-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
}

#foldersContainer {
  margin-top: var(--space-xl);
}

#foldersList {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.folder-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.folder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.folder-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.fid {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.ts {
  font-size: 13px;
  color: var(--color-text-light);
}

.folder-meta {
  font-size: 14px;
  color: var(--color-text-light);
}

.folder-card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.folder-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
}

.folder-status-success {
  background: #DCFCE7;
  color: #166534;
}

.folder-status-info {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.folder-status-warning {
  background: #FEF3C7;
  color: #92400E;
}

.folder-status-danger {
  background: #FEE2E2;
  color: #991B1B;
}

.folder-status-neutral {
  background: var(--color-bg-tertiary);
  color: var(--color-text-light);
}

.folder-progress-text {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

.folder-mini-progress {
  height: 7px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.folder-mini-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: inherit;
  transition: width var(--transition-base);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
}

.empty-state svg {
  color: var(--color-text-lighter);
  margin-bottom: var(--space-lg);
}

.empty-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.empty-subtext {
  font-size: 15px;
  color: var(--color-text-light);
}

/* ============================================================================
   EXPIRY SELECTION MODAL
   ============================================================================ */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-lg);
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 200ms ease;
}

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

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.modal-subtitle {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

.expiry-options {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.expiry-option {
  display: flex;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.expiry-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.expiry-option input[type="radio"] {
  margin-right: var(--space-md);
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.expiry-option input[type="radio"]:checked ~ .expiry-label {
  font-weight: 700;
  color: var(--color-primary);
}

.expiry-option:has(input:checked) {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.expiry-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}

.modal-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

.notice-stack {
  position: fixed;
  top: calc(72px + var(--space-md));
  right: var(--space-lg);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.notice {
  padding: 13px 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  animation: noticeEnter 180ms ease both;
}

.notice-info {
  border-color: #C7D2FE;
  background: #EEF2FF;
  color: #312E81;
}

.notice-success {
  border-color: #86EFAC;
  background: #DCFCE7;
  color: #166534;
}

.notice-warning {
  border-color: #FCD34D;
  background: #FEF3C7;
  color: #92400E;
}

.notice-error {
  border-color: #FCA5A5;
  background: #FEE2E2;
  color: #991B1B;
}

.notice-exit {
  animation: noticeExit 160ms ease both;
}

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

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

/* ============================================================================
   FOLDER VIEW (UNIFIED - MOBILE FIRST)
   ============================================================================ */

.folder-container {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-lg);
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: none;
  color: var(--color-text-light);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition-fast);
  margin-bottom: var(--space-lg);
}

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

.btn-back svg {
  width: 20px;
  height: 20px;
}

/* Folder Title */
.folder-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* Expiry Timer */
.folder-expiry-timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-light);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.folder-expiry-timer svg {
  flex-shrink: 0;
}

/* Upload Info Bar */
.folder-upload-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  color: #92400E;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.folder-upload-info-info {
  background: var(--color-primary-light);
  border-color: #C7D2FE;
  color: var(--color-primary);
}

.folder-upload-info-success {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #166534;
}

.folder-upload-info-warning {
  background: #FEF3C7;
  border-color: #FCD34D;
  color: #92400E;
}

.folder-upload-info-error {
  background: #FEE2E2;
  border-color: #FCA5A5;
  color: #991B1B;
}

.folder-upload-info svg {
  flex-shrink: 0;
  color: #F59E0B;
}

/* Content Area */
.folder-content {
  flex: 1;
  margin-bottom: var(--space-lg);
}

/* ============================================================================
   FILE LIST (STATE 1: Editing/Uploading)
   ============================================================================ */

.folder-file-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.folder-empty-panel {
  padding: var(--space-xl);
  border: 1px dashed var(--color-border-hover);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  text-align: center;
}

.folder-empty-title {
  color: var(--color-text);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.folder-empty-text {
  color: var(--color-text-light);
  font-size: 14px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.file-item.queued {
  opacity: 0.6;
}

.file-item.uploading {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-primary-light); }
  50% { box-shadow: 0 0 0 6px var(--color-primary-light); }
}

.file-item.completed {
  border-color: var(--color-success);
  background: #F0FDF4;
}

.file-item.failed {
  border-color: var(--color-danger);
  background: #FEF2F2;
}

/* Paused state - files stopped mid-upload */
.file-item.paused {
  border-color: var(--color-accent);
  background: #ECFEFF;
}

/* File Thumbnail */
.file-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* File Info */
.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-xs);
}

.file-item.queued .file-name {
  color: var(--color-text-lighter);
}

.file-item.uploading .file-name {
  color: var(--color-primary);
}

.file-item.completed .file-name {
  color: var(--color-success);
}

.file-item.failed .file-name {
  color: var(--color-danger);
}

.file-item.paused .file-name {
  color: var(--color-accent);
}

/* Progress Bar */
.file-progress {
  width: 100%;
  height: 4px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.file-progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 300ms ease;
  border-radius: var(--radius-full);
}

.file-item.completed .file-progress-fill {
  background: var(--color-success);
}

.file-item.failed .file-progress-fill {
  background: var(--color-danger);
}

.file-item.paused .file-progress-fill {
  background: var(--color-accent);
}

/* File Status */
.file-status {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.file-percentage {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  min-width: 40px;
  text-align: right;
}

.file-item.completed .file-percentage {
  color: var(--color-success);
}

.file-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.btn-trash {
  padding: var(--space-xs);
  background: transparent;
  border: none;
  color: var(--color-text-lighter);
  cursor: pointer;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-trash:hover {
  color: var(--color-danger);
}

.btn-trash svg {
  width: 18px;
  height: 18px;
}

/* ============================================================================
   FINALIZED VIEW (STATE 2: Blurred Thumbnails)
   ============================================================================ */

.folder-finalized {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.folder-thumbnails-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-md);
}

.folder-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.folder-metadata {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.folder-metadata-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.folder-metadata-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.folder-metadata-item:last-child {
  border-bottom: none;
}

.folder-metadata-label {
  color: var(--color-text);
  font-weight: 600;
}

.folder-metadata-value {
  color: var(--color-text-light);
  text-align: right;
}

/* ============================================================================
   FOLDER FOOTER (BUTTONS)
   ============================================================================ */

.folder-footer {
  position: sticky;
  bottom: 0;
  background: var(--color-bg-tertiary);
  border-top: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  margin: 0 calc(-1 * var(--space-lg));
  margin-bottom: calc(-1 * var(--space-lg));
}

.folder-buttons {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  margin-top: auto;
  padding: var(--space-2xl) 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.footer-terms {
  font-size: 13px;
  color: var(--color-text-lighter);
}

.footer-terms a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-terms a:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .notice-stack {
    top: auto;
    right: var(--space-md);
    bottom: calc(84px + var(--space-md));
    left: var(--space-md);
    width: auto;
  }

  .folder-upload-info {
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.4;
  }

  .folder-buttons {
    flex-direction: column;
  }
  
  .folder-buttons .btn {
    width: 100%;
  }
  
  #foldersList {
    grid-template-columns: 1fr;
  }
  
  .folder-thumbnails-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .nav a {
    padding: var(--space-xs) var(--space-md);
    font-size: 14px;
  }
  
  .folder-container {
    padding: var(--space-md);
  }
  
  .file-thumb {
    width: 36px;
    height: 36px;
  }
}



/* Add this to your style.css file */

/* Encrypting state */
.file-item.encrypting {
  border-color: var(--color-secondary);
  background: #F5F3FF; /* Light purple */
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.file-item.encrypting .file-name {
  color: var(--color-secondary);
}

.file-item.encrypting .file-progress-fill {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  animation: pulse-encrypt 2s ease-in-out infinite;
}

@keyframes pulse-encrypt {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Make percentage text italic during encryption */
.file-item.encrypting .file-percentage {
  font-style: italic;
  color: var(--color-secondary);
}

/* Animated ellipsis for "Securing..." and "Preparing..." */
.ellipsis-animated::after {
  content: '';
  animation: ellipsis 1.5s infinite;
  display: inline-block;
  width: 1.5em;
  text-align: left;
}

@keyframes ellipsis {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}









/* ====== Hero: gradient and layout upgrades ====== */

.hero--gradient {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.hero--gradient::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 80%;
  background: radial-gradient(60% 60% at 50% 40%, rgba(79,70,229,0.18) 0%, rgba(139,92,246,0.12) 35%, rgba(255,255,255,0) 70%);
  filter: blur(24px);
  pointer-events: none;
}
.hero--gradient::after {
  content: "";
  position: absolute;
  inset: auto -10% -25% -10%;
  height: 60%;
  background: radial-gradient(60% 60% at 50% 60%, rgba(6,182,212,0.12) 0%, rgba(255,255,255,0) 70%);
  filter: blur(28px);
  pointer-events: none;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);      /* gives space below the CTA button */
  margin-bottom: var(--space-3xl);   /* separates from next section */
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(79,70,229,0.08);         /* indigo tint */
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all var(--transition-fast);
}

.trust-badge:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}





/* audiences */
.audiences {
  display: grid;
  gap: var(--space-sm);
  justify-items: center;
}

.audiences-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
}

.audiences-pills {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.audiences-pills li {
  font-size: 13px;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 12px;
}

/* responsive */
@media (max-width: 940px) {
  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .hero-cards {
    grid-template-columns: 1fr;
  }
  .snapshot-mock img {
    border-radius: var(--radius-md);
  }
}



.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl); /* adds breathing room below the CTA */
  margin-bottom: var(--space-3xl);
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}

.hero-card {
  position: relative;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(79,70,229,0.06) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.hero-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* nice circular background for the icon */
.hero-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 28px;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), color var(--transition-base);
}

.hero-card:hover .hero-card-icon {
  background: var(--gradient-primary);
  color: white;
}

.hero-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.hero-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 260px;
  margin: 0 auto;
}

/* give the whole section a softer gradient background */
.hero--gradient {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 50%);
  position: relative;
  overflow: hidden;
}
.hero--gradient::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 50% 30%, rgba(79,70,229,0.12) 0%, rgba(6,182,212,0.08) 35%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.hero--gradient > * {
  position: relative;
  z-index: 1;
}



/* ============================================================================
   PROOF SECTION - Split Layout (Refined)
   ============================================================================ */

.proof-section {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-3xl) var(--space-lg);
  margin-bottom: var(--space-3xl);
}

.proof-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl); /* tighter gap */
  max-width: 1100px;
  width: 100%;
  flex-wrap: nowrap; /* never stack */
}

.proof-image {
  flex: 0 0 320px; /* smaller fixed width for the phone */
  display: flex;
  justify-content: center;
}

.proof-image img {
  width: 100%;
  height: auto;
  max-width: 280px; /* smaller phone image */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.proof-text {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
}

.proof-text h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 0;
}

/* Keep them side by side and centered even on mobile */
@media (max-width: 768px) {
  .proof-container {
    flex-wrap: nowrap;
    gap: var(--space-lg); /* smaller gap for smaller screens */
  }

  .proof-image {
    flex: 0 0 200px;
  }

  .proof-image img {
    max-width: 180px;
  }

  .proof-text h2 {
    font-size: clamp(20px, 5vw, 36px);
    text-align: left;
  }
}
