/*
Theme Name: ZuKi Developer Theme
Theme URI: https://zuki2.goyslop.llc
Author: Baddie Bot LLC
Author URI: https://zuki2.goyslop.llc
Description: World-class dark SaaS theme for ZuKi. Inspired by Resend's aesthetic with premium typography (Instrument Serif, Plus Jakarta Sans, Inter, JetBrains Mono) and glassmorphic design.
Version: 3.0.0
License: Proprietary
License URI: https://zuki2.goyslop.llc
Text Domain: zuki-dev
Tags: dark, saas, premium, minimal, responsive
*/

/* ========================================
   CSS RESET & BASE
   ======================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ===== COLORS ===== */
  --bg-primary: #000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-dark: #0d0d0d;
  
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.08);
  
  --text-primary: #EDEDED;
  --text-secondary: #6B6B6B;
  --text-tertiary: #444;
  
  --purple: #a855f7;
  --indigo: #6366f1;
  --blue: #3b82f6;
  --green: #00D47E;
  
  /* ===== TYPOGRAPHY ===== */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;
  
  /* Type Scale - Fluid with clamp() */
  --text-h1: clamp(3.5rem, 7vw, 6rem);
  --text-h2: clamp(2rem, 4vw, 3.5rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: clamp(1rem, 1.1vw, 1.125rem);
  --text-small: 0.875rem;
  --text-label: 0.75rem;
  
  /* Line Heights */
  --lh-display: 1.05;
  --lh-heading: 1.1;
  --lh-body: 1.6;
  --lh-relaxed: 1.7;
  
  /* Letter Spacing */
  --ls-tight: -0.03em;
  --ls-normal: 0;
  --ls-tracked: 0.1em;
  
  /* ===== SPACING (8px grid) ===== */
  --space-1: 0.5rem;   /* 8px */
  --space-2: 1rem;     /* 16px */
  --space-3: 1.5rem;   /* 24px */
  --space-4: 2rem;     /* 32px */
  --space-6: 3rem;     /* 48px */
  --space-8: 4rem;     /* 64px */
  --space-12: 6rem;    /* 96px */
  --space-16: 8rem;    /* 128px */
  --space-20: 10rem;   /* 160px */
  
  /* Section Padding - Fluid */
  --section-padding: clamp(6rem, 10vw, 10rem);
  
  /* Container */
  --container-max: 1200px;
  --container-padding: clamp(1.5rem, 5vw, 3rem);
  
  /* ===== BORDER RADIUS ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  
  /* ===== SHADOWS ===== */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.6);
  
  /* ===== BREAKPOINTS (for reference) ===== */
  /* 480px, 768px, 1024px, 1280px */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

::selection {
  background: var(--purple);
  color: white;
}

/* ========================================
   TYPOGRAPHY SYSTEM
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h1 {
  font-family: var(--font-display);
  font-size: var(--text-h1);
  line-height: var(--lh-display);
  font-weight: 400;
  margin-bottom: var(--space-4);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

h4 {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--purple);
}

code, pre {
  font-family: var(--font-mono);
}

/* Label/Badge Text Style */
.text-label {
  font-family: var(--font-body);
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-tracked);
}

/* ========================================
   LAYOUT PRIMITIVES
   ======================================== */

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-wide {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.section {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
  position: relative;
}

/* ========================================
   GRADIENT TEXT
   ======================================== */

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradient-shift 8s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ========================================
   BUTTONS (with micro-interactions)
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-subtle);
  transform: translateY(-2px);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: white;
  border: none;
  position: relative;
}

.btn-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--indigo), var(--blue));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4);
}

.btn-gradient:hover::after {
  opacity: 1;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  min-height: 44px; /* Touch target */
}

/* ========================================
   CARDS (with glassmorphism)
   ======================================== */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top right, rgba(168, 85, 247, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
}

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

.card:hover::before {
  opacity: 1;
}

/* ========================================
   BADGES
   ======================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: var(--text-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-tracked);
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-success {
  background: rgba(0, 212, 126, 0.15);
  color: var(--green);
  border-color: rgba(0, 212, 126, 0.3);
}

/* ========================================
   SECTION DIVIDERS
   ======================================== */

.section-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(
    to right, 
    transparent, 
    var(--border-subtle) 20%, 
    var(--border-subtle) 80%, 
    transparent
  );
}

.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.2), transparent 70%);
  filter: blur(20px);
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays for sequential animations */
.stagger-1 { animation-delay: 100ms; }
.stagger-2 { animation-delay: 200ms; }
.stagger-3 { animation-delay: 300ms; }
.stagger-4 { animation-delay: 400ms; }
.stagger-5 { animation-delay: 500ms; }

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

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

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-muted { color: var(--text-tertiary); }

/* Spacing utilities (maintain 8px grid) */
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* ========================================
   RESPONSIVE DESIGN (Mobile-First)
   ======================================== */

/* Small phones (480px and up) */
@media (min-width: 480px) {
  :root {
    --container-padding: 2rem;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  :root {
    --container-padding: 2.5rem;
  }
}

/* Desktops (1024px and up) */
@media (min-width: 1024px) {
  :root {
    --container-padding: 3rem;
  }
}

/* Large desktops (1280px and up) */
@media (min-width: 1280px) {
  /* Type scale adjustments for large screens */
  h1 {
    letter-spacing: -0.04em;
  }
}

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

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  body {
    background: white;
    color: black;
  }
  
  .site-header,
  .site-footer,
  .btn,
  video {
    display: none;
  }
}
