/* ============================================
   CSS RESET & VARIABLES
   ============================================ */

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

:root {
  /* Glassmorphism Colors */
  --color-glass-white: rgba(255, 255, 255, 0.1);
  --color-glass-light: rgba(255, 255, 255, 0.15);
  --color-glass-medium: rgba(255, 255, 255, 0.08);
  --color-glass-border: rgba(255, 255, 255, 0.2);

  /* Gradient Colors */
  --gradient-purple: #8b5cf6;
  --gradient-blue: #3b82f6;
  --gradient-pink: #ec4899;
  --gradient-cyan: #06b6d4;

  /* Text Colors */
  --color-text-primary: rgba(255, 255, 255, 0.95);
  --color-text-secondary: rgba(255, 255, 255, 0.75);
  --color-text-tertiary: rgba(255, 255, 255, 0.55);

  /* Accent Colors */
  --color-accent-glow: rgba(139, 92, 246, 0.6);
  --color-accent-glow-strong: rgba(139, 92, 246, 0.8);

  /* Typography */
  --font-primary: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  --font-code: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.4);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

body {
  font-family: var(--font-primary);
  color: var(--color-text-primary);
  line-height: 1.7;
  background: #0f0f23;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #16213e 100%);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gradient-purple), transparent);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gradient-blue), transparent);
  bottom: 10%;
  left: -5%;
  animation-delay: 7s;
}

.orb-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--gradient-pink), transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 14s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(50px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
  }
}

/* ============================================
   GLASS CARD EFFECT
   ============================================ */

.glass-card {
  background: var(--color-glass-white);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: var(--color-glass-light);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
  padding: var(--spacing-2xl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  text-align: center;
  padding: var(--spacing-xl);
  background: var(--color-glass-light);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--gradient-purple), var(--gradient-blue), var(--gradient-pink));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, #ffffff, var(--gradient-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.hero-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--gradient-purple), var(--gradient-pink));
  margin: var(--spacing-md) auto;
  border-radius: 2px;
  box-shadow: 0 0 20px var(--color-accent-glow);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content {
  padding: var(--spacing-xl) 0;
}

.article-card {
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.article-intro p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-md);
}

.article-section {
  margin-top: var(--spacing-2xl);
}

.article-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative;
  padding-left: var(--spacing-md);
}

.article-section h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(180deg, var(--gradient-purple), var(--gradient-pink));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.article-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.article-section p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
}

/* ============================================
   CODE BLOCKS
   ============================================ */

.code-block {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  overflow-x: auto;
  box-shadow: inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.code-block pre {
  margin: 0;
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.6;
  color: #e2e8f0;
}

.code-block code {
  font-family: var(--font-code);
  color: #e2e8f0;
}

/* ============================================
   CHECKLISTS
   ============================================ */

.checklist-section {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--color-glass-medium);
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.checklist-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  color: var(--color-text-primary);
}

.checklist-section h3:first-child {
  margin-top: 0;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  padding: var(--spacing-xs) 0;
  padding-left: var(--spacing-lg);
  color: var(--color-text-secondary);
  position: relative;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gradient-cyan);
  font-weight: bold;
  font-size: 1.2rem;
  text-shadow: 0 0 10px var(--color-accent-glow);
}

/* ============================================
   CALL TO ACTION SECTION
   ============================================ */

.cta-section {
  margin: var(--spacing-2xl) 0;
}

.cta-card {
  padding: var(--spacing-xl);
  background: var(--color-glass-light);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--gradient-purple), var(--gradient-pink), var(--gradient-cyan));
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.3;
  filter: blur(15px);
}

.cta-content {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.cta-image-wrapper {
  position: relative;
  flex-shrink: 0;
}

.cta-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 40px var(--color-accent-glow-strong);
  position: relative;
  z-index: 1;
}

.cta-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gradient-purple), transparent);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.6;
  z-index: 0;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.8;
  }
}

.cta-text {
  flex: 1;
  min-width: 280px;
}

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, #ffffff, var(--gradient-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-description {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.6;
}

.cta-highlight {
  font-size: 1rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: linear-gradient(135deg, var(--gradient-purple), var(--gradient-pink));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.cta-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-2xl);
}

.footer-card {
  padding: var(--spacing-lg);
  text-align: center;
  background: var(--color-glass-medium);
}

.footer-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xs);
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
  }

  .hero-section {
    min-height: 50vh;
    padding: var(--spacing-xl) 0;
  }

  .hero-card {
    padding: var(--spacing-lg);
  }

  .article-card {
    padding: var(--spacing-lg);
  }

  .cta-content {
    flex-direction: column;
    text-align: center;
  }

  .cta-image {
    width: 150px;
    height: 150px;
  }

  .cta-image-glow {
    width: 170px;
    height: 170px;
  }

  .code-block {
    font-size: 0.85rem;
  }

  .orb-1,
  .orb-2,
  .orb-3 {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .article-section h2 {
    padding-left: var(--spacing-sm);
  }

  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

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

@media print {
  .animated-background,
  .cta-section,
  .site-footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }

  .hero-title,
  .cta-title,
  .article-section h2 {
    -webkit-text-fill-color: black;
    color: black;
  }

  .article-section p,
  .article-intro p {
    color: black;
  }
}
