/* =========================================================
   COVESCREEN VIP THEME
   - Purple/Blue premium palette
   - Design tokens: color, type, spacing, radius, shadow, motion
   ========================================================= */

:root {
  /* Brand palette */
  --brand-purple-600: #6c33ff;
  --brand-purple-700: #5926e6;
  --brand-purple-800: #4a1fcc;
  --brand-blue-500: #2ea8ff;
  --brand-blue-600: #1c94ff;
  --brand-blue-700: #1579d6;

  /* Neutrals */
  --grey-50: #f7f8fb;
  --grey-100: #eef1f7;
  --grey-200: #e3e7f0;
  --grey-300: #cfd6e4;
  --grey-800: #1c2230;
  --grey-900: #0f1420;

  /* Surfaces */
  --surface-0: #ffffff;
  --surface-1: rgba(255, 255, 255, 0.65);
  --surface-2: rgba(255, 255, 255, 0.35);
  --surface-3: rgba(255, 255, 255, 0.18);

  /* Status */
  --success-500: #22c55e;
  --warning-500: #f59e0b;
  --danger-500: #ef4444;
  --info-500: var(--brand-blue-600);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #1b1140 0%, #0d1b3d 50%, #0a0f2a 100%);
  --gradient-brand: linear-gradient(135deg, var(--brand-purple-700) 0%, var(--brand-blue-600) 100%);
  --gradient-accent: radial-gradient(1200px 600px at 10% 0%, #7b46ff33 0%, #1c94ff22 35%, transparent 70%);

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --text-color: #1a1f2e;
  --text-color-on-dark: #eaf0ff;

  /* Type scale */
  --fs-xxs: clamp(11px, 0.72vw, 12px);
  --fs-xs:  clamp(12px, 0.78vw, 13px);
  --fs-sm:  clamp(13px, 0.88vw, 14px);
  --fs-md:  clamp(15px, 1.0vw, 16px);
  --fs-lg:  clamp(18px, 1.25vw, 20px);
  --fs-xl:  clamp(22px, 1.6vw, 26px);
  --fs-2xl: clamp(28px, 2.2vw, 34px);
  --fs-3xl: clamp(36px, 3.2vw, 44px);

  /* Spacing */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-56: 56px;
  --space-72: 72px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-round: 999px;

  /* Shadows */
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-medium: 0 14px 40px rgba(16, 24, 40, 0.12);
  --shadow-strong: 0 20px 60px rgba(10, 14, 24, 0.18);

  /* Blur */
  --blur-sm: blur(6px);
  --blur-md: blur(12px);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-quick: 160ms;
  --duration-base: 240ms;
  --duration-slow: 420ms;

  /* Containers */
  --container-max: 1200px;
  --container-pad: 24px;

  /* Z-index */
  --z-nav: 50;
  --z-dropdown: 60;
  --z-overlay: 70;

  /* Brand usage */
  --primary: var(--brand-purple-700);
  --primary-contrast: #ffffff;
  --accent: var(--brand-blue-600);

  /* Links */
  --link: var(--brand-blue-600);
  --link-hover: var(--brand-purple-700);
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text-color);
  background: var(--grey-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Utilities */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.u-flex { display: flex; }
.u-flex-between { display: flex; justify-content: space-between; align-items: center; }
.u-center { display: grid; place-items: center; }
.u-grid { display: grid; gap: var(--space-24); }
.u-hide { display: none !important; }
.u-muted { color: #5b6175; }
.u-max { width: 100%; }

/* Headings */
h1,h2,h3,h4 { margin: 0 0 var(--space-16); color: var(--text-color); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); font-weight: var(--font-weight-bold); }
h2 { font-size: var(--fs-2xl); font-weight: var(--font-weight-bold); }
h3 { font-size: var(--fs-xl); font-weight: var(--font-weight-semibold); }
p,a,li { font-size: var(--fs-md); line-height: 1.6; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-round);
  background: var(--gradient-brand);
  color: var(--primary-contrast);
  font-weight: var(--font-weight-semibold);
  box-shadow: var(--shadow-medium);
  transition: transform var(--duration-quick) var(--ease-out), box-shadow var(--duration-quick) var(--ease-out), filter var(--duration-quick) var(--ease-out);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-strong); filter: saturate(1.05); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-round);
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(44, 120, 255, 0.25);
  transition: border-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out);
}
.btn-ghost:hover { border-color: var(--brand-purple-700); color: var(--brand-purple-700); }

/* Focus ring */
:where(a,button,[tabindex]):focus-visible {
  outline: 2px solid var(--brand-blue-600);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Responsive utilities */
@media (max-width: 960px) {
  .container { padding: 0 18px; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(28px, 6vw, 36px); }
  .btn-primary { padding: 12px 18px; }
}

/* Optional dark surface section utility */
.section-dark {
  color: var(--text-color-on-dark);
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}
.section-dark::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-accent);
  pointer-events: none;
}
