/* ================================================================
   Qubify Design System (QDS) v2.0
   Path: public/assets/css/design-system.css
   
   Core tokens, reset, typography, and foundational component styles.
   ================================================================ */

/* ── Google Fonts Import ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  /* Brand Primary & Accents */
  --color-brand-primary: #5E35B1;
  --color-brand-primary-light: #7E57C2;
  --color-brand-primary-dark: #4527A0;
  --color-brand-primary-ghost: rgba(94, 53, 177, 0.06);

  /* Brand Secondary & Highlights */
  --color-brand-accent: #8E24AA;
  --color-brand-glow: rgba(126, 87, 194, 0.25);
  --color-brand-highlight: #00E5FF;

  /* Neutral Dark / Typography */
  --color-neutral-900: #0F0C20;
  --color-neutral-800: #1C1930;
  --color-neutral-700: #332F4D;
  --color-neutral-600: #55506E;
  --color-neutral-500: #7C7799;

  /* Neutral Light / Surfaces */
  --color-neutral-100: #F3F1FA;
  --color-neutral-50:  #F8F7FD;
  --color-surface-white: #FFFFFF;

  /* Feedback & Badges */
  --color-success: #00875A;
  --color-warning: #FFAB00;
  --color-danger:  #DE350B;

  /* Gradients */
  --gradient-brand-cube: linear-gradient(135deg, #7E57C2 0%, #5E35B1 60%, #4527A0 100%);
  --gradient-dark-card: linear-gradient(180deg, #1C1930 0%, #0F0C20 100%);
  --gradient-hero-glow: radial-gradient(circle at 50% 20%, rgba(94, 53, 177, 0.12) 0%, transparent 70%);

  /* Typography Families */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Type Scale */
  --text-display-1: clamp(2.75rem, 5vw, 4.5rem);
  --text-heading-1: clamp(2.25rem, 4vw, 3.5rem);
  --text-heading-2: clamp(1.75rem, 3vw, 2.5rem);
  --text-heading-3: clamp(1.25rem, 2vw, 1.75rem);
  --text-body-lg:   1.125rem;
  --text-body-md:   1rem;
  --text-body-sm:   0.875rem;
  --text-eyebrow:   0.8125rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-neutral-700);
  background-color: var(--color-surface-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--color-neutral-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: var(--text-display-1); line-height: 1.08; font-weight: 800; }
h2 { font-size: var(--text-heading-2); line-height: 1.2; }
h3 { font-size: var(--text-heading-3); line-height: 1.3; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-brand-primary) 0%, #9C27B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 96px 0;
}

.text-center { text-align: center; }

/* ── Badge / Eyebrow ──────────────────────────────────────────── */
.badge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: var(--text-eyebrow);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-brand-primary);
  background: var(--color-brand-primary-ghost);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-brand-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(94, 53, 177, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(94, 53, 177, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(94, 53, 177, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(94, 53, 177, 0); }
}

/* ── Section Headers ──────────────────────────────────────────── */
.section-header {
  margin-bottom: 48px;
}

.section-title {
  font-size: var(--text-heading-2);
  margin-bottom: 16px;
}

.section-subtitle, .section-lead {
  font-size: var(--text-body-lg);
  color: var(--color-neutral-600);
  max-width: 680px;
}

.text-center .section-subtitle,
.text-center .section-lead {
  margin-left: auto;
  margin-right: auto;
}
