:root {
    /* Colors - GrowCalth pink theme */
    --primary: #db5461;
    --primary-light: #f5a5a5;
    --primary-dark: #b91c1c;
    --secondary: #f3f4f6;
    --background: #0a0a0a;
    --foreground: #ffffff;
    --muted-foreground: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --card: rgba(255, 255, 255, 0.05);
    --accent: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 2rem;
}

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

html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--foreground);
    background: #0a0a0a;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background layers */
.background-layers {
  position: fixed;
  top: -100px;
  left: -100px;
  width: calc(100vw + 200px);
  height: calc(100vh + 200px);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

body::before {
  content: '';
  position: fixed;
  top: -50px;
  left: -50px;
  width: calc(100vw + 100px);
  height: calc(100vh + 100px);
  background: #0a0a0a;
  z-index: -2;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, #DB5461 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, #2a2a2a 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, #1a1a1a 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, #DB5461 0%, transparent 40%),
              radial-gradient(circle at 10% 10%, #2a2a2a 0%, transparent 40%);
  animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

.floating-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(219, 84, 97, 0.1);
  backdrop-filter: blur(40px);
  animation: float 15s ease-in-out infinite;
}

.orb:nth-child(1) {
  width: 200px;
  height: 200px;
  top: -250px;
  left: -250px;
}

.orb:nth-child(2) {
  width: 100px;
  height: 100px;
  top: 50%;
  right: -200px;
  animation-delay: -5s;
}

.orb:nth-child(3) {
  width: 50px;
  height: 50px;
  bottom: -150px;
  left: 10%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(15px) rotate(240deg); }
}


/* Page Container */
.page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(219, 84, 97, 0.3);
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: white;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Content */
.content {
    max-width: 900px;
    margin: 0 auto;
}

.last-updated {
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    padding: 1rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* Table of Contents */
.toc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toc-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.toc-item {
    margin: 0;
}

.toc-link {
    display: block;
    color: var(--foreground);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    font-size: 0.9rem;
}

.toc-link:hover {
    background: var(--accent);
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateX(4px);
}

/* Sections */
.section {
    margin-bottom: 3rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.section-content ul {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}

.section-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.section-content li::marker {
    color: var(--primary);
}

.section-content strong {
    color: var(--primary-light);
    font-weight: 600;
}

/* Subsections */
.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-light);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

/* Highlight Boxes */
.highlight-box {
    background: linear-gradient(135deg, rgba(219, 84, 97, 0.1), rgba(245, 165, 165, 0.05));
    border: 1px solid rgba(219, 84, 97, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    backdrop-filter: blur(10px);
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 12px 12px 0 0;
}

.highlight-box strong {
    color: var(--primary);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--card), rgba(219, 84, 97, 0.05));
    border: 1px solid var(--primary);
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(219, 84, 97, 0.2);
}

.contact-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    padding: 1rem 2rem;
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(219, 84, 97, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .toc-list {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .page-container {
        padding-top: 1rem;
    }
    
    .section {
        padding: 1rem;
    }
    
    .section-title::before {
        display: none;
    }
    
    .contact-section {
        padding: 2rem 1rem;
    }
    
    .contact-email {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling improvements */
html {
    scroll-padding-top: 2rem;
}

/* Focus styles for accessibility */
.toc-link:focus,
.contact-email:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .background-layers,
    .floating-orbs {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section,
    .toc,
    .contact-section {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}