/*
 * ╔═══════════════════════════════════════════════════════════════╗
 * ║  codez.css  — Codez Studios Design System  v1.0               ║
 * ║  © 2025 Codez Studios. Use across all Codez properties.       ║
 * ╚═══════════════════════════════════════════════════════════════╝
 *
 * TABLE OF CONTENTS
 * ─────────────────
 *  1. Design Tokens (CSS variables)
 *  2. Reset & Base
 *  3. Typography
 *  4. Layout Utilities
 *  5. Glassmorphism & Surfaces
 *  6. Buttons
 *  7. Badges & Tags
 *  8. Navigation
 *  9. Cards
 * 10. Forms & Inputs
 * 11. Orb & Brand Animations
 * 12. Keyframes
 * 13. Scroll Reveal
 * 14. Marquee / Ticker
 * 15. Status Indicators
 * 16. Modals & Overlays
 * 17. Scrollbar
 * 18. Responsive Breakpoints
 * 19. Utility Classes
 */

/* ─────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --cz-purple:       #c084fc;
  --cz-purple-dark:  #6C63FF;
  --cz-blue:         #38bdf8;
  --cz-blue-dark:    #448AFF;
  --cz-violet:       #a78bfa;
  --cz-green:        #4ade80;
  --cz-red:          #f87171;
  --cz-yellow:       #facc15;

  /* Backgrounds */
  --cz-bg:           #0a0a1a;
  --cz-bg-alt:       rgba(255, 255, 255, 0.01);
  --cz-surface:      #0f0f22;
  --cz-surface-2:    #13132a;
  --cz-surface-3:    rgba(255, 255, 255, 0.035);

  /* Borders */
  --cz-border:       rgba(192, 132, 252, 0.10);
  --cz-border-2:     rgba(255, 255, 255, 0.06);
  --cz-border-3:     rgba(255, 255, 255, 0.12);

  /* Text */
  --cz-text:         #ffffff;
  --cz-muted:        rgba(255, 255, 255, 0.45);
  --cz-muted-2:      rgba(255, 255, 255, 0.30);
  --cz-muted-3:      rgba(255, 255, 255, 0.20);

  /* Gradients */
  --cz-grad-brand:   linear-gradient(135deg, #c084fc, #38bdf8);
  --cz-grad-brand-v: linear-gradient(to bottom, #c084fc, #38bdf8);
  --cz-grad-purple:  linear-gradient(135deg, #6C63FF, #448AFF);
  --cz-grad-glow:    radial-gradient(circle, rgba(192, 132, 252, 0.18) 0%, transparent 70%);

  /* Shadows */
  --cz-shadow-sm:    0 4px 16px rgba(0, 0, 0, 0.3);
  --cz-shadow-md:    0 12px 40px rgba(0, 0, 0, 0.45);
  --cz-shadow-lg:    0 24px 80px rgba(0, 0, 0, 0.55);
  --cz-shadow-glow:  0 8px 32px rgba(192, 132, 252, 0.35);
  --cz-shadow-glow-lg: 0 16px 56px rgba(192, 132, 252, 0.50);

  /* Radii */
  --cz-radius-xs:    6px;
  --cz-radius-sm:    10px;
  --cz-radius-md:    14px;
  --cz-radius-lg:    20px;
  --cz-radius-xl:    28px;
  --cz-radius-full:  9999px;

  /* Spacing scale */
  --cz-space-1:      4px;
  --cz-space-2:      8px;
  --cz-space-3:      12px;
  --cz-space-4:      16px;
  --cz-space-5:      20px;
  --cz-space-6:      24px;
  --cz-space-8:      32px;
  --cz-space-10:     40px;
  --cz-space-12:     48px;
  --cz-space-16:     64px;
  --cz-space-20:     80px;
  --cz-space-24:     96px;
  --cz-space-32:     128px;

  /* Font families */
  --cz-font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --cz-font-display: 'Space Grotesk', sans-serif;
  --cz-font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --cz-ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --cz-ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
  --cz-t-fast:       0.15s;
  --cz-t-base:       0.22s;
  --cz-t-slow:       0.45s;
  --cz-t-reveal:     0.70s;

  /* Nav height — used for padding-top offsets */
  --cz-nav-h:        64px;

  /* Content max widths */
  --cz-max-xs:       480px;
  --cz-max-sm:       640px;
  --cz-max-md:       860px;
  --cz-max-lg:       1100px;
  --cz-max-xl:       1200px;
}


/* ─────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--cz-font-body);
  background: var(--cz-bg);
  color: var(--cz-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

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

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

button {
  font-family: var(--cz-font-body);
  cursor: pointer;
}

ul, ol {
  list-style: none;
}


/* ─────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--cz-font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* Display — hero headlines */
.cz-display {
  font-family: var(--cz-font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

/* Heading levels */
.cz-h1 { font-size: clamp(2.4rem, 5vw, 4rem);   font-weight: 800; }
.cz-h2 { font-size: clamp(2rem,   4vw, 3rem);   font-weight: 700; }
.cz-h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 700; }
.cz-h4 { font-size: 1.2rem;  font-weight: 600; }
.cz-h5 { font-size: 1rem;    font-weight: 600; }

/* Body */
.cz-body-lg { font-size: 1.1rem;  line-height: 1.75; }
.cz-body    { font-size: 1rem;    line-height: 1.70; }
.cz-body-sm { font-size: 0.9rem;  line-height: 1.65; }
.cz-caption { font-size: 0.78rem; line-height: 1.55; }
.cz-label   { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.cz-mono    { font-family: var(--cz-font-mono); font-size: 0.85rem; }

/* Text colours */
.cz-text         { color: var(--cz-text);    }
.cz-text-muted   { color: var(--cz-muted);   }
.cz-text-muted-2 { color: var(--cz-muted-2); }
.cz-text-purple  { color: var(--cz-purple);  }
.cz-text-blue    { color: var(--cz-blue);    }
.cz-text-violet  { color: var(--cz-violet);  }
.cz-text-green   { color: var(--cz-green);   }
.cz-text-red     { color: var(--cz-red);     }

/* Gradient text */
.cz-text-grad {
  background: var(--cz-grad-brand);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cz-text-shimmer {
  background: linear-gradient(90deg, #fff 0%, #c084fc 35%, #38bdf8 65%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cz-shimmer 5s linear infinite;
}
.cz-text-shimmer-vaura {
  background: linear-gradient(90deg, #fff 0%, #a78bfa 40%, #448AFF 60%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: cz-shimmer 4s linear infinite;
}


/* ─────────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
   ───────────────────────────────────────────────────────────────── */
.cz-container    { max-width: var(--cz-max-xl); margin: 0 auto; padding: 0 var(--cz-space-6); width: 100%; }
.cz-container-lg { max-width: var(--cz-max-lg); margin: 0 auto; padding: 0 var(--cz-space-6); width: 100%; }
.cz-container-md { max-width: var(--cz-max-md); margin: 0 auto; padding: 0 var(--cz-space-6); width: 100%; }
.cz-container-sm { max-width: var(--cz-max-sm); margin: 0 auto; padding: 0 var(--cz-space-6); width: 100%; }

.cz-section         { padding: 100px var(--cz-space-6); }
.cz-section-sm      { padding: 60px  var(--cz-space-6); }
.cz-section-lg      { padding: 140px var(--cz-space-6); }
.cz-section-alt     { background: var(--cz-bg-alt); }
.cz-section-header  { text-align: center; margin-bottom: 64px; }

.cz-flex           { display: flex; }
.cz-flex-center    { display: flex; align-items: center; justify-content: center; }
.cz-flex-between   { display: flex; align-items: center; justify-content: space-between; }
.cz-flex-col       { display: flex; flex-direction: column; }
.cz-flex-wrap      { flex-wrap: wrap; }

.cz-grid-2  { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--cz-space-5); }
.cz-grid-3  { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--cz-space-5); }
.cz-grid-4  { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--cz-space-5); }
.cz-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--cz-space-4); }

.cz-bg-grid {
  background-image:
    linear-gradient(rgba(192, 132, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.03) 1px, transparent 1px);
  background-size: 52px 52px;
}

.cz-divider {
  height: 1px;
  background: var(--cz-border-2);
  border: none;
  margin: var(--cz-space-8) 0;
}

/* Glow blob */
.cz-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.cz-blob-purple { background: radial-gradient(circle, rgba(192, 132, 252, 0.10) 0%, transparent 70%); filter: blur(80px); }
.cz-blob-blue   { background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, transparent 70%); filter: blur(80px); }


/* ─────────────────────────────────────────────────────────────────
   5. GLASSMORPHISM & SURFACES
   ───────────────────────────────────────────────────────────────── */
.cz-glass {
  background: var(--cz-surface-3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-lg);
}

.cz-glass-sm {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-md);
}

.cz-glass-dark {
  background: rgba(10, 10, 26, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--cz-border);
}

.cz-surface {
  background: var(--cz-surface);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-lg);
}

.cz-surface-2 {
  background: var(--cz-surface-2);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-lg);
}


/* ─────────────────────────────────────────────────────────────────
   6. BUTTONS
   ───────────────────────────────────────────────────────────────── */

/* Base */
.cz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--cz-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.72rem 1.6rem;
  border-radius: var(--cz-radius-full);
  border: none;
  cursor: pointer;
  transition: transform var(--cz-t-base) var(--cz-ease),
              box-shadow var(--cz-t-base) var(--cz-ease),
              background var(--cz-t-base),
              border-color var(--cz-t-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.cz-btn:active {
  transform: scale(0.97) !important;
}

.cz-btn:focus-visible {
  outline: 2px solid var(--cz-purple);
  outline-offset: 3px;
}

/* Sheen overlay on hover */
.cz-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity var(--cz-t-base);
}
.cz-btn:hover::before { opacity: 1; }

/* Variants */
.cz-btn-primary {
  background: var(--cz-grad-brand);
  color: #fff;
}
.cz-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--cz-shadow-glow);
}

.cz-btn-purple {
  background: var(--cz-grad-purple);
  color: #fff;
}
.cz-btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(108, 99, 255, 0.45);
}

.cz-btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--cz-border-3);
}
.cz-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-color: rgba(192, 132, 252, 0.35);
}

.cz-btn-danger {
  background: rgba(248, 113, 113, 0.15);
  color: var(--cz-red);
  border: 1px solid rgba(248, 113, 113, 0.25);
}
.cz-btn-danger:hover {
  background: rgba(248, 113, 113, 0.25);
}

.cz-btn-success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--cz-green);
  border: 1px solid rgba(74, 222, 128, 0.25);
}
.cz-btn-success:hover {
  background: rgba(74, 222, 128, 0.25);
}

/* Sizes */
.cz-btn-sm  { font-size: 0.78rem;  padding: 0.45rem 1rem;  }
.cz-btn-lg  { font-size: 1rem;     padding: 0.9rem 2.2rem; }
.cz-btn-xl  { font-size: 1.05rem;  padding: 1.05rem 2.6rem;}

/* Rounded square variant (not pill) */
.cz-btn-square { border-radius: var(--cz-radius-sm); }

/* Icon-only */
.cz-btn-icon {
  width: 40px; height: 40px;
  padding: 0;
  border-radius: var(--cz-radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--cz-border-2);
  color: var(--cz-muted);
}
.cz-btn-icon:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Loading state */
.cz-btn[data-loading="true"] {
  opacity: 0.75;
  pointer-events: none;
}

/* Disabled */
.cz-btn:disabled {
  opacity: 0.45;
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────
   7. BADGES & TAGS
   ───────────────────────────────────────────────────────────────── */
.cz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--cz-radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Colour variants */
.cz-badge-purple {
  background: rgba(192, 132, 252, 0.10);
  border: 1px solid rgba(192, 132, 252, 0.22);
  color: var(--cz-purple);
}
.cz-badge-violet {
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.25);
  color: var(--cz-violet);
}
.cz-badge-blue {
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.22);
  color: var(--cz-blue);
}
.cz-badge-green {
  background: rgba(74, 222, 128, 0.10);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: var(--cz-green);
}
.cz-badge-red {
  background: rgba(248, 113, 113, 0.10);
  border: 1px solid rgba(248, 113, 113, 0.22);
  color: var(--cz-red);
}
.cz-badge-yellow {
  background: rgba(250, 204, 21, 0.10);
  border: 1px solid rgba(250, 204, 21, 0.22);
  color: var(--cz-yellow);
}
.cz-badge-muted {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--cz-border-2);
  color: var(--cz-muted);
}

/* Pill tag (smaller, used inline in cards) */
.cz-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--cz-radius-full);
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(192, 132, 252, 0.08);
  border: 1px solid rgba(192, 132, 252, 0.15);
  color: var(--cz-purple);
}


/* ─────────────────────────────────────────────────────────────────
   8. NAVIGATION
   ───────────────────────────────────────────────────────────────── */
.cz-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--cz-nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 26, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--cz-border);
  animation: cz-nav-drop 0.5s var(--cz-ease);
  transition: background 0.3s, border-color 0.3s;
}

.cz-nav.scrolled {
  background: rgba(10, 10, 26, 0.92);
  border-color: rgba(192, 132, 252, 0.12);
}

.cz-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--cz-max-xl);
  margin: 0 auto;
  padding: 0 var(--cz-space-6);
  width: 100%;
  gap: var(--cz-space-6);
}

.cz-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.cz-nav-logo img {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: var(--cz-shadow-glow);
}

.cz-nav-wordmark {
  font-family: var(--cz-font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  color: var(--cz-text);
}

.cz-nav-links {
  display: flex;
  align-items: center;
  gap: var(--cz-space-8);
}

.cz-nav-link {
  color: var(--cz-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--cz-t-base);
  white-space: nowrap;
}
.cz-nav-link:hover,
.cz-nav-link.active { color: var(--cz-text); }

.cz-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--cz-space-2);
  flex-shrink: 0;
}

/* Mobile menu overlay */
.cz-mobile-menu {
  position: fixed;
  top: var(--cz-nav-h); left: 0; right: 0;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--cz-border);
  padding: var(--cz-space-6);
  z-index: 199;
  display: none;
  flex-direction: column;
  gap: var(--cz-space-5);
  animation: cz-fade-up 0.2s var(--cz-ease);
}
.cz-mobile-menu.open { display: flex; }

.cz-mobile-menu .cz-nav-link { font-size: 1rem; }


/* ─────────────────────────────────────────────────────────────────
   9. CARDS
   ───────────────────────────────────────────────────────────────── */

/* Project card — main unit */
.cz-card {
  background: var(--cz-surface-2);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-lg);
  padding: var(--cz-space-8);
  transition: transform var(--cz-t-slow) var(--cz-ease),
              border-color var(--cz-t-slow),
              box-shadow var(--cz-t-slow);
  position: relative;
  overflow: hidden;
}

.cz-card-shine {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.55), transparent);
  opacity: 0;
  transition: opacity var(--cz-t-slow);
}

.cz-card:hover {
  transform: translateY(-5px);
  border-color: rgba(192, 132, 252, 0.28);
  box-shadow: var(--cz-shadow-md), 0 0 40px rgba(192, 132, 252, 0.07);
}
.cz-card:hover .cz-card-shine { opacity: 1; }

/* Card icon */
.cz-card-icon {
  width: 50px; height: 50px;
  border-radius: var(--cz-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--cz-space-5);
  background: rgba(192, 132, 252, 0.10);
  border: 1px solid rgba(192, 132, 252, 0.18);
  transition: background var(--cz-t-base);
  flex-shrink: 0;
}
.cz-card:hover .cz-card-icon { background: rgba(192, 132, 252, 0.18); }

/* Team card */
.cz-team-card {
  background: var(--cz-surface-2);
  border: 1px solid var(--cz-border-2);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--cz-t-slow) var(--cz-ease), border-color var(--cz-t-slow), box-shadow var(--cz-t-slow);
}
.cz-team-card:hover {
  border-color: rgba(192, 132, 252, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--cz-shadow-md);
}

/* Avatar */
.cz-avatar {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--cz-grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--cz-space-4);
  box-shadow: var(--cz-shadow-glow);
  transition: transform var(--cz-t-slow), box-shadow var(--cz-t-slow);
  overflow: hidden;
  flex-shrink: 0;
}
.cz-team-card:hover .cz-avatar {
  transform: scale(1.07);
  box-shadow: var(--cz-shadow-glow-lg);
}
.cz-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cz-avatar-initials {
  font-family: var(--cz-font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
}

/* Stat card */
.cz-stat-card {
  background: var(--cz-surface-2);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-md);
  padding: 24px 28px;
  transition: border-color var(--cz-t-base);
}
.cz-stat-card:hover { border-color: rgba(192, 132, 252, 0.25); }

.cz-stat-num {
  font-family: var(--cz-font-display);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: var(--cz-grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature / value card */
.cz-feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-md);
  padding: 26px;
  transition: all var(--cz-t-slow) var(--cz-ease);
  position: relative;
  overflow: hidden;
}
.cz-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,.5), transparent);
  opacity: 0;
  transition: opacity var(--cz-t-base);
}
.cz-feature-card:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(192, 132, 252, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(192, 132, 252, 0.08);
}
.cz-feature-card:hover::before { opacity: 1; }

/* CTA strip */
.cz-cta-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.08), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: var(--cz-radius-xl);
  padding: 64px 40px;
  text-align: center;
}
.cz-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(192, 132, 252, 0.15) 0%, transparent 60%);
  pointer-events: none;
}


/* ─────────────────────────────────────────────────────────────────
   10. FORMS & INPUTS
   ───────────────────────────────────────────────────────────────── */
.cz-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--cz-border-3);
  border-radius: var(--cz-radius-sm);
  padding: 13px 16px;
  color: var(--cz-text);
  font-family: var(--cz-font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--cz-t-base), box-shadow var(--cz-t-base);
  width: 100%;
}
.cz-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.cz-input:focus {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.1);
}
.cz-input:focus.vaura {
  border-color: rgba(108, 99, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.cz-textarea {
  resize: vertical;
  min-height: 100px;
}

.cz-input-group {
  display: flex;
  gap: var(--cz-space-3);
  flex-wrap: wrap;
}

.cz-input-error { border-color: rgba(248, 113, 113, 0.55) !important; }
.cz-input-success { border-color: rgba(74, 222, 128, 0.55) !important; }

.cz-form-error {
  color: rgba(255, 100, 100, 0.85);
  font-size: 0.82rem;
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: var(--cz-space-2);
}
.cz-form-error.visible { display: flex; }


/* ─────────────────────────────────────────────────────────────────
   11. ORB & BRAND ANIMATIONS
   ───────────────────────────────────────────────────────────────── */

/* Studio orb (codez brand) */
.cz-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cz-float 5s ease-in-out infinite;
}

.cz-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.20);
  animation: cz-ring-pulse 3s ease-out infinite;
}
.cz-orb-ring:nth-child(2) { animation-delay: 1s;  }
.cz-orb-ring:nth-child(3) { animation-delay: 2s;  }

.cz-orb-core {
  border-radius: 50%;
  background: conic-gradient(from 0deg, #c084fc, #38bdf8, #a78bfa, #c084fc);
  animation: cz-orb-rotate 8s linear infinite;
  position: relative;
  z-index: 2;
}
.cz-orb-core::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.15), transparent 55%), var(--cz-bg);
}

.cz-orb-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.28) 0%, transparent 70%);
  filter: blur(18px);
  z-index: 1;
}

/* Vaura-tinted orb */
.cz-orb-vaura .cz-orb-core {
  background: conic-gradient(from 0deg, #6C63FF, #448AFF, #a78bfa, #6C63FF);
}
.cz-orb-vaura .cz-orb-glow {
  background: radial-gradient(circle, rgba(108, 99, 255, 0.3) 0%, transparent 70%);
}
.cz-orb-vaura .cz-orb-ring {
  border-color: rgba(108, 99, 255, 0.2);
}


/* ─────────────────────────────────────────────────────────────────
   12. KEYFRAMES
   ───────────────────────────────────────────────────────────────── */
@keyframes cz-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes cz-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cz-nav-drop {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes cz-float {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-12px); }
}
@keyframes cz-orb-rotate {
  to { transform: rotate(360deg); }
}
@keyframes cz-ring-pulse {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.85); opacity: 0;  }
}
@keyframes cz-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1);    }
  50%       { opacity: 1;   transform: scale(1.08); }
}
@keyframes cz-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes cz-scan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(500%);  }
}
@keyframes cz-spin {
  to { transform: rotate(360deg); }
}
@keyframes cz-ticker {
  from { transform: translateX(0);    }
  to   { transform: translateX(-50%); }
}
@keyframes cz-dot-blink {
  0%, 100% { opacity: 1;   }
  50%       { opacity: 0.3; }
}
@keyframes cz-chat-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1);       }
}
@keyframes cz-dot-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1;   }
}
@keyframes cz-gradient-shift {
  0%, 100% { background-position: 0% 50%;   }
  50%       { background-position: 100% 50%; }
}


/* ─────────────────────────────────────────────────────────────────
   13. SCROLL REVEAL
   ───────────────────────────────────────────────────────────────── */
.cz-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--cz-t-reveal) var(--cz-ease),
              transform var(--cz-t-reveal) var(--cz-ease);
}
.cz-reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity var(--cz-t-reveal) var(--cz-ease),
              transform var(--cz-t-reveal) var(--cz-ease);
}
.cz-reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity var(--cz-t-reveal) var(--cz-ease),
              transform var(--cz-t-reveal) var(--cz-ease);
}
.cz-reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--cz-t-reveal) var(--cz-ease),
              transform var(--cz-t-reveal) var(--cz-ease);
}

.cz-reveal.visible,
.cz-reveal-left.visible,
.cz-reveal-right.visible,
.cz-reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Staggered delay helpers */
.cz-delay-1 { transition-delay: 0.08s; }
.cz-delay-2 { transition-delay: 0.16s; }
.cz-delay-3 { transition-delay: 0.24s; }
.cz-delay-4 { transition-delay: 0.32s; }
.cz-delay-5 { transition-delay: 0.40s; }

/* Animate-in (plays once on page load) */
.cz-animate-in   { animation: cz-fade-up 0.7s var(--cz-ease) both; }
.cz-animate-in-1 { animation: cz-fade-up 0.7s 0.10s var(--cz-ease) both; }
.cz-animate-in-2 { animation: cz-fade-up 0.7s 0.20s var(--cz-ease) both; }
.cz-animate-in-3 { animation: cz-fade-up 0.7s 0.30s var(--cz-ease) both; }
.cz-animate-in-4 { animation: cz-fade-up 0.7s 0.40s var(--cz-ease) both; }


/* ─────────────────────────────────────────────────────────────────
   14. MARQUEE / TICKER
   ───────────────────────────────────────────────────────────────── */
.cz-ticker-wrap {
  overflow: hidden;
  border-top:    1px solid var(--cz-border);
  border-bottom: 1px solid var(--cz-border);
  padding: 14px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
  mask:         linear-gradient(90deg, transparent, #fff 10%, #fff 90%, transparent);
}

.cz-ticker-inner {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: cz-ticker 28s linear infinite;
}
.cz-ticker-inner:hover { animation-play-state: paused; }

.cz-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.32);
  white-space: nowrap;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cz-ticker-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cz-purple);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────────────────────────
   15. STATUS INDICATORS
   ───────────────────────────────────────────────────────────────── */
.cz-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cz-dot-green  { background: var(--cz-green);  box-shadow: 0 0 6px var(--cz-green);  animation: cz-pulse 2s ease-in-out infinite; }
.cz-dot-purple { background: var(--cz-purple); box-shadow: 0 0 6px var(--cz-purple); animation: cz-dot-blink 2s ease-in-out infinite; }
.cz-dot-yellow { background: var(--cz-yellow); box-shadow: 0 0 6px var(--cz-yellow); animation: cz-dot-blink 2s ease-in-out infinite; }
.cz-dot-red    { background: var(--cz-red);    box-shadow: 0 0 6px var(--cz-red); }
.cz-dot-blue   { background: var(--cz-blue);   box-shadow: 0 0 6px var(--cz-blue); }

/* Spinner */
.cz-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cz-spin 0.75s linear infinite;
  flex-shrink: 0;
}
.cz-spinner-sm { width: 12px; height: 12px; border-width: 1.5px; }
.cz-spinner-lg { width: 24px; height: 24px; border-width: 3px;   }
.cz-spinner-purple { border-color: rgba(192,132,252,0.2); border-top-color: var(--cz-purple); }

/* Build status pill */
.cz-build-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--cz-radius-full);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background var(--cz-t-base), border-color var(--cz-t-base);
}


/* ─────────────────────────────────────────────────────────────────
   16. MODALS & OVERLAYS
   ───────────────────────────────────────────────────────────────── */
.cz-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: cz-fade-in 0.2s ease;
}
.cz-overlay.open { display: flex; }

.cz-modal {
  width: min(520px, calc(100% - 40px));
  background: var(--cz-bg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--cz-radius-xl);
  box-shadow: var(--cz-shadow-lg);
  padding: 28px;
  position: relative;
  animation: cz-fade-up 0.25s var(--cz-ease);
}

.cz-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--cz-border-2);
  border-radius: var(--cz-radius-full);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cz-muted);
  cursor: pointer;
  transition: background var(--cz-t-base), color var(--cz-t-base);
}
.cz-modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; }


/* ─────────────────────────────────────────────────────────────────
   17. SCROLLBAR
   ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(192, 132, 252, 0.28); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(192, 132, 252, 0.5); }


/* ─────────────────────────────────────────────────────────────────
   18. RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────────── */

/* Tablets & down */
@media (max-width: 1024px) {
  .cz-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cz-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  .cz-nav-links      { display: none !important; }
  .cz-hide-mobile    { display: none !important; }
  .cz-show-mobile    { display: block; }

  .cz-grid-2,
  .cz-grid-3,
  .cz-grid-4 { grid-template-columns: 1fr; }

  .cz-section     { padding: 72px var(--cz-space-5); }
  .cz-section-lg  { padding: 88px var(--cz-space-5); }
  .cz-section-sm  { padding: 48px var(--cz-space-5); }

  .cz-cta-strip { padding: 40px 24px; }

  .cz-display { font-size: clamp(2.4rem, 8vw, 3.6rem); }
}

/* Very small */
@media (max-width: 480px) {
  .cz-container,
  .cz-container-lg,
  .cz-container-md,
  .cz-container-sm {
    padding: 0 var(--cz-space-5);
  }
}


/* ─────────────────────────────────────────────────────────────────
   19. UTILITY CLASSES
   ───────────────────────────────────────────────────────────────── */

/* Spacing */
.cz-mt-0  { margin-top: 0; }
.cz-mt-2  { margin-top: var(--cz-space-2); }
.cz-mt-4  { margin-top: var(--cz-space-4); }
.cz-mt-6  { margin-top: var(--cz-space-6); }
.cz-mt-8  { margin-top: var(--cz-space-8); }
.cz-mt-10 { margin-top: var(--cz-space-10); }
.cz-mt-12 { margin-top: var(--cz-space-12); }
.cz-mb-2  { margin-bottom: var(--cz-space-2); }
.cz-mb-4  { margin-bottom: var(--cz-space-4); }
.cz-mb-6  { margin-bottom: var(--cz-space-6); }
.cz-mb-8  { margin-bottom: var(--cz-space-8); }
.cz-mb-10 { margin-bottom: var(--cz-space-10); }
.cz-mb-12 { margin-bottom: var(--cz-space-12); }

/* Text alignment */
.cz-text-center { text-align: center; }
.cz-text-left   { text-align: left;   }
.cz-text-right  { text-align: right;  }

/* Position */
.cz-relative { position: relative; }
.cz-overflow-h { overflow: hidden; }
.cz-z-0 { z-index: 0; }
.cz-z-1 { z-index: 1; }

/* Misc */
.cz-w-full { width: 100%; }
.cz-pointer { cursor: pointer; }
.cz-no-select { -webkit-user-select: none; user-select: none; }
.cz-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Separator dot */
.cz-sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--cz-muted-2);
  vertical-align: middle;
  margin: 0 6px;
}

/* Phone mockup — reusable across Vaura pages */
.cz-phone {
  width: 220px; height: 440px;
  background: #111218;
  border-radius: 36px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.08),
              0 0 60px rgba(108,99,255,0.15);
  position: relative;
  overflow: hidden;
}
.cz-phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px;
  background: var(--cz-bg);
  border-radius: 11px;
  z-index: 10;
}
.cz-phone-screen {
  position: absolute; inset: 6px;
  border-radius: 31px;
  background: linear-gradient(160deg, #0d0e16 0%, #111320 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 40px 14px 16px;
}
.cz-scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108,99,255,0.6), transparent);
  animation: cz-scan 3s linear infinite;
  pointer-events: none;
}

/* Chat bubbles */
.cz-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, #6C63FF, #448AFF);
  border-radius: 16px 16px 4px 16px;
  padding: 8px 12px;
  font-size: 0.72rem; max-width: 75%;
  animation: cz-chat-in 0.35s ease both;
  line-height: 1.4;
}
.cz-bubble-ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px 16px 16px 4px;
  padding: 8px 12px;
  font-size: 0.72rem; max-width: 80%;
  animation: cz-chat-in 0.35s ease both;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
}
.cz-typing-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: cz-dot-bounce 1.2s infinite;
}

/* Copy button */
.cz-copy-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--cz-radius-xs);
  padding: 8px 14px;
  color: var(--cz-muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--cz-t-base);
  font-family: var(--cz-font-body);
  display: flex; align-items: center; gap: 6px;
}
.cz-copy-btn:hover { background: rgba(255,255,255,0.10); color: #fff; }
.cz-copy-btn.copied {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.30);
  color: var(--cz-green);
}

/* Manifesto lines (codez homepage) */
.cz-manifesto-line {
  font-family: var(--cz-font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.10);
  transition: color 0.45s var(--cz-ease), text-shadow 0.45s;
  cursor: default;
  padding: 5px 0;
}
.cz-manifesto-line.lit {
  color: #fff;
  text-shadow: 0 0 40px rgba(192, 132, 252, 0.22);
}
.cz-manifesto-line .accent {
  color: var(--cz-purple);
  -webkit-text-fill-color: var(--cz-purple);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}