@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap");

:root {
  /* ─── Core palette (AliExpress-inspired) ─── */
  --color-background: #f2f2f2;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-on-accent: #ffffff;
  --color-on-dark: #ffffff;

  /* ─── Glass surfaces ─── */
  --color-glass: rgba(255, 255, 255, 0.92);
  --color-glass-strong: #ffffff;
  --color-glass-panel: #ffffff;
  --color-glass-tile: #ffffff;
  --color-section-alt: #f7f7f7;
  --color-footer-bg: #222222;
  --color-upload-bg: #f7f2f2;

  /* ─── Text ─── */
  --color-text-primary: #222222;
  --color-text-secondary: #666666;
  --color-text-muted: #999999;

  /* ─── Accent — logo red / black ─── */
  --color-brand-blue: #e31c23;
  --color-brand-red: #e31c23;
  --color-brand-yellow: #ffd000;
  --color-accent: #e31c23;
  --color-accent-hover: #b7181e;
  --color-accent-cta: #e31c23;
  --color-accent-soft: rgba(227, 28, 35, 0.1);
  --color-accent-muted: rgba(227, 28, 35, 0.16);
  --color-accent-glow: rgba(227, 28, 35, 0.22);
  --color-accent-ring-1: rgba(227, 28, 35, 0.16);
  --color-accent-ring-2: rgba(227, 28, 35, 0.12);
  --color-accent-ring-3: rgba(34, 34, 34, 0.1);
  --color-accent-border-hover: rgba(227, 28, 35, 0.36);

  /* ─── Semantic ─── */
  --color-success: #34c759;
  --color-success-soft: rgba(52, 199, 89, 0.12);
  --color-error: #ff3b30;
  --color-error-soft: rgba(255, 59, 48, 0.12);
  --color-warning: #ff9500;
  --color-warning-soft: rgba(255, 149, 0, 0.12);
  --color-star: #ffb800;

  /* ─── Borders ─── */
  --color-border: rgba(0, 0, 0, 0.06);
  --color-border-strong: rgba(0, 0, 0, 0.1);
  --color-border-glass: rgba(255, 255, 255, 0.55);
  --color-border-tile: rgba(255, 255, 255, 0.95);

  /* ─── Overlays & interaction ─── */
  --color-overlay: rgba(0, 0, 0, 0.35);
  --color-overlay-heavy: rgba(0, 0, 0, 0.45);
  --color-hover-subtle: rgba(0, 0, 0, 0.04);
  --color-hover-medium: rgba(0, 0, 0, 0.05);
  --color-hover-strong: rgba(0, 0, 0, 0.06);
  --color-selection: rgba(227, 28, 35, 0.18);
  --color-scrollbar: rgba(0, 0, 0, 0.15);
  --color-btn-divider: rgba(255, 255, 255, 0.25);

  /* ─── File-type & icon tints (Apple system colors) ─── */
  --color-file-red: #ff3b30;
  --color-file-blue: #0a84ff;
  --color-file-green: #34c759;
  --color-file-orange: #ff9500;
  --color-file-pink: #ff2d55;
  --color-file-purple: #af52de;
  --color-file-yellow: #ffcc00;
  --color-file-yellow-text: #854d0e;
  --color-file-cyan: #5ac8fa;
  --color-file-gray: #8e8e93;

  --color-tint-red: rgba(255, 59, 48, 0.12);
  --color-tint-blue: rgba(10, 132, 255, 0.12);
  --color-tint-green: rgba(52, 199, 89, 0.12);
  --color-tint-orange: rgba(255, 149, 0, 0.12);
  --color-tint-pink: rgba(255, 45, 85, 0.12);
  --color-tint-purple: rgba(175, 82, 222, 0.12);
  --color-tint-violet: rgba(139, 92, 246, 0.12);
  --color-tint-teal: rgba(20, 184, 166, 0.12);
  --color-tint-cyan: rgba(6, 182, 212, 0.12);
  --color-tint-rose: rgba(236, 72, 153, 0.12);

  --color-icon-violet: #8b5cf6;
  --color-icon-teal: #14b8a6;
  --color-icon-cyan: #06b6d4;
  --color-icon-rose: #ec4899;

  /* ─── File-type gradients ─── */
  --gradient-file-pdf: linear-gradient(135deg, var(--color-file-red), #ff6259);
  --gradient-file-word: linear-gradient(135deg, var(--color-file-blue), #409cff);
  --gradient-file-excel: linear-gradient(135deg, var(--color-file-green), #5dd879);
  --gradient-file-ppt: linear-gradient(135deg, var(--color-file-orange), #ffb340);
  --gradient-file-image: linear-gradient(135deg, var(--color-file-blue), var(--color-file-cyan));
  --gradient-file-audio: linear-gradient(135deg, var(--color-file-pink), #ff6482);
  --gradient-file-video: linear-gradient(135deg, var(--color-file-purple), #c77dff);
  --gradient-file-zip: linear-gradient(135deg, var(--color-file-yellow), #ffd60a);

  /* ─── Legacy aliases ─── */
  --color-primary: var(--color-accent);
  --color-primary-dark: var(--color-accent-hover);
  --color-primary-light: var(--color-accent-soft);
  --color-primary-muted: var(--color-accent-muted);
  --color-text: var(--color-text-primary);
  --color-muted: var(--color-text-muted);

  /* ─── Typography ─── */
  --font-family: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-display: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: "SF Mono", ui-monospace, "Cascadia Code", monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.3125rem;
  --font-size-2xl: 1.75rem;
  --font-size-3xl: 2.25rem;
  --font-size-4xl: 3rem;
  --font-size-hero: clamp(2.5rem, 5.5vw, 4rem);

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.05;
  --line-height-snug: 1.2;
  --line-height-normal: 1.47059;
  --line-height-relaxed: 1.6;

  --letter-spacing-tight: -0.025em;
  --letter-spacing-display: -0.035em;

  /* ─── Spacing (4px base) ─── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ─── Radius ─── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 980px;
  --radius-button: 20px;
  --radius-input: 8px;
  --radius-icon: 8px;

  /* ─── Shadows ─── */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  --shadow-tile: 0 8px 24px rgba(227, 28, 35, 0.1), 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-primary: 0 4px 14px rgba(227, 28, 35, 0.28);
  --shadow-primary-lg: 0 8px 28px rgba(227, 28, 35, 0.22);
  --shadow-primary-hover: 0 6px 20px rgba(227, 28, 35, 0.36), 0 12px 40px rgba(34, 34, 34, 0.12);
  --shadow-hero-glow: 0 12px 40px rgba(227, 28, 35, 0.18), 0 0 60px rgba(34, 34, 34, 0.08);
  --shadow-hero-glow-strong: 0 16px 56px rgba(227, 28, 35, 0.24), 0 0 80px rgba(34, 34, 34, 0.1);
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-ring: 0 0 24px rgba(227, 28, 35, 0.12);

  /* ─── Blur ─── */
  --blur-sm: 12px;
  --blur-md: 20px;
  --blur-lg: 28px;
  --glass-filter: blur(var(--blur-md)) saturate(180%);

  /* ─── Motion ─── */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 250ms var(--ease-out);
  --transition-slow: 350ms var(--ease-out);

  /* ─── Layout ─── */
  --header-height: 112px;
  --announcement-height: 0px;
  --container-max: 1200px;
  --container-wide: 1280px;
  --z-dropdown: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* ─── Gradients ─── */
  --gradient-accent: linear-gradient(180deg, #ff4a50 0%, #e31c23 55%, #b7181e 100%);
  --gradient-page:
    radial-gradient(ellipse 90% 60% at 50% -15%, rgba(227, 28, 35, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
  --gradient-hero: radial-gradient(ellipse 70% 50% at 50% -10%, rgba(227, 28, 35, 0.08) 0%, transparent 65%);
  --gradient-primary: var(--gradient-accent);

  --focus-ring: 0 0 0 4px rgba(227, 28, 35, 0.24);
}
