/* OzyOps Design System - Based on getfreed.ai aesthetic */
/* Adapted for trades.ozyops.com with dark theme and purple/teal accents */

:root {
  /* === COLORS === */

  /* Dark Backgrounds */
  --bg-navy-dark: #061f2f;
  --bg-dark: #0a0a0a;
  --bg-dark-lighter: #1a1a1a;
  --bg-dark-card: #151515;

  /* Primary Colors - Purple/Blue/Teal */
  --primary-purple: #4d65ff;
  --primary-purple-hover: #6b7fff;
  --accent-purple: #9168FF;
  --accent-purple-light: #8558EE;
  --accent-teal: #00d4aa;
  --accent-teal-light: #1ae4ba;

  /* Secondary/Highlight Colors */
  --accent-lavender: #F2EDFF;
  --accent-lavender-mid: #E2D6FF;
  --accent-lavender-dark: #d4c2ff;
  --accent-sky-blue: #C2E5FF;
  --accent-blue-light: #E0F2FF;

  /* Warm Accents */
  --accent-peach: #ffe8c2;
  --accent-orange: #ffe1a5;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-dark: #061f2f;
  --text-muted: #808080;

  /* === TYPOGRAPHY === */

  /* Font Stack - System Fonts */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  --font-size-7xl: 4.5rem;      /* 72px */

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.8;

  /* === SPACING === */

  /* Base spacing scale */
  --space-xs: 0.25rem;    /* 4px */
  --space-sm: 0.5rem;     /* 8px */
  --space-md: 1rem;       /* 16px */
  --space-lg: 1.5rem;     /* 24px */
  --space-xl: 2rem;       /* 32px */
  --space-2xl: 3rem;      /* 48px */
  --space-3xl: 4rem;      /* 64px */
  --space-4xl: 6rem;      /* 96px */
  --space-5xl: 8rem;      /* 128px */

  /* Section Gaps */
  --gap-section: 3rem;    /* 48px */
  --gap-row: 3rem;        /* 48px */

  /* === BORDERS & CORNERS === */

  --border-radius-sm: 0.375rem;    /* 6px */
  --border-radius-md: 1rem;        /* 16px */
  --border-radius-lg: 1.5rem;      /* 24px */
  --border-radius-xl: 2rem;        /* 32px */
  --border-radius-full: 9999px;

  /* === SHADOWS === */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(77, 101, 255, 0.3);

  /* === FOCUS STATES === */

  --outline-width: 0.125rem;      /* 2px */
  --outline-offset: 0.125rem;     /* 2px */
  --outline-color: var(--primary-purple);

  /* === TRANSITIONS === */

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* === LAYOUT === */

  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Breakpoints (for reference in JS) */
  --bp-mobile: 480px;
  --bp-tablet: 768px;
  --bp-desktop-sm: 992px;
  --bp-desktop: 1200px;
}

/* === GLOBAL RESETS & BASE STYLES === */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === TEXT SELECTION === */

::selection {
  background-color: var(--accent-lavender);
  color: var(--text-dark);
}

::-moz-selection {
  background-color: var(--accent-lavender);
  color: var(--text-dark);
}

/* === FOCUS STATES === */

:focus-visible {
  outline: var(--outline-width) solid var(--outline-color);
  outline-offset: var(--outline-offset);
}

/* === CONTAINER === */

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

/* === SECTION SPACING === */

section {
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

@media (max-width: 767px) {
  section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}

/* === GRADIENTS === */

.gradient-purple-teal {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-teal) 100%);
}

.gradient-purple-blue {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
}

.gradient-dark-overlay {
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
}

/* === CARD STYLES === */

.card {
  background-color: var(--bg-dark-card);
  border-radius: var(--border-radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Card with mouse-following glow effect */
.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(77, 101, 255, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity var(--transition-slow);
  pointer-events: none;
  z-index: 1;
}

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

.card-glow > * {
  position: relative;
  z-index: 2;
}

/* === BUTTON STYLES === */

.btn {
  display: inline-block;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-slow), color var(--transition-slow), transform var(--transition-base);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background-color: var(--primary-purple-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
  background-color: var(--primary-purple);
  color: var(--text-primary);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: var(--font-size-lg);
}

/* === TEXT HIGHLIGHT === */

.text-highlight {
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  width: 100%;
  height: 0.4em;
  background-color: var(--accent-lavender);
  z-index: -1;
  border-radius: 0.2em;
}

.text-highlight-purple::after {
  background-color: var(--accent-lavender);
}

.text-highlight-teal::after {
  background-color: var(--accent-teal);
  opacity: 0.3;
}

/* === UTILITY CLASSES === */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-purple), var(--accent-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
