/* Design System Variables */
:root {
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(215, 25%, 15%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 25%, 15%);
    --primary: hsl(199, 89%, 48%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(199, 89%, 60%);
    --secondary: hsl(199, 15%, 96%);
    --secondary-foreground: hsl(199, 89%, 48%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215, 16%, 47%);
    --accent: hsl(142, 76%, 36%);
    --accent-foreground: hsl(0, 0%, 100%);
    --destructive: hsl(0, 84%, 60%);
    --destructive-foreground: hsl(0, 0%, 100%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    --ring: hsl(199, 89%, 48%);
    
    --gradient-primary: linear-gradient(135deg, hsl(199, 89%, 48%), hsl(199, 89%, 60%));
    --gradient-accent: linear-gradient(135deg, hsl(142, 76%, 36%), hsl(142, 76%, 50%));
    --gradient-subtle: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(199, 15%, 98%));
    
    --shadow-sm: 0 2px 8px -2px hsl(215, 25%, 15%, 0.08);
    --shadow-md: 0 6px 18px -4px hsl(215, 25%, 15%, 0.10);
    --shadow-lg: 0 12px 28px -6px hsl(215, 25%, 15%, 0.15);
    --shadow-glow: 0 0 40px hsl(199, 89%, 60%, 0.3);
    
    --transition-smooth: all 0.2s cubic-bezier(0.22, 0.9, 0.29, 1);
}

.dark {
    --background: hsl(215, 28%, 10%);
    --foreground: hsl(0, 0%, 98%);
    --card: hsl(215, 28%, 12%);
    --card-foreground: hsl(0, 0%, 98%);
    --primary: hsl(199, 89%, 55%);
    --primary-foreground: hsl(0, 0%, 100%);
    --primary-glow: hsl(199, 89%, 65%);
    --secondary: hsl(215, 25%, 18%);
    --secondary-foreground: hsl(0, 0%, 98%);
    --muted: hsl(215, 25%, 18%);
    --muted-foreground: hsl(215, 15%, 65%);
    --accent: hsl(142, 76%, 45%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(215, 25%, 22%);
    --input: hsl(215, 25%, 22%);
    --ring: hsl(199, 89%, 55%);
    
    --gradient-primary: linear-gradient(135deg, hsl(199, 89%, 55%), hsl(199, 89%, 65%));
    --gradient-accent: linear-gradient(135deg, hsl(142, 76%, 45%), hsl(142, 76%, 55%));
    --gradient-subtle: linear-gradient(180deg, hsl(215, 28%, 10%), hsl(215, 28%, 12%));
    
    --shadow-sm: 0 2px 8px -2px hsl(0, 0%, 0%, 0.3);
    --shadow-md: 0 6px 18px -4px hsl(0, 0%, 0%, 0.4);
    --shadow-lg: 0 12px 28px -6px hsl(0, 0%, 0%, 0.5);
    --shadow-glow: 0 0 40px hsl(199, 89%, 65%, 0.4);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    background: var(--background);
    color: var(--foreground);
}

/* Utility Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-subtle {
    background: var(--gradient-subtle);
}

.bg-radial-gradient {
    background: radial-gradient(circle at top right, hsl(var(--primary), 0.1), transparent 50%);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.text-muted-foreground {
    color: var(--muted-foreground);
}

.text-primary {
    color: var(--primary);
}

.text-accent {
    color: var(--accent);
}

/* Navigation */
#navigation {
    transition: all 0.3s ease;
}

#navigation.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--foreground);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-link-mobile {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.nav-link-mobile:hover {
    color: var(--foreground);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.2s cubic-bezier(0.22, 0.9, 0.29, 1);
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s cubic-bezier(0.22, 0.9, 0.29, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.btn-hero-large {
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.75rem 2.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.2s cubic-bezier(0.22, 0.9, 0.29, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-hero-large:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background: var(--secondary);
}

.btn-outline-hero {
    background: transparent;
    color: var(--foreground);
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-hero:hover {
    background: var(--secondary);
}

.btn-outline-large {
    background: transparent;
    color: var(--foreground);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1.75rem 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-large:hover {
    background: var(--secondary);
}

/* Feature Cards */
.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Input Fields */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--foreground);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(var(--primary), 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Code Blocks */
.code-block {
    background: var(--muted);
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: background 0.2s ease;
}

.copy-btn:hover {
    background: var(--secondary);
}

/* Service Cards */
.service-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card:hover .service-actions {
    opacity: 1;
}

.service-actions {
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--muted-foreground);
    padding: 0 0.5rem;
}

.faq-answer.open {
    max-height: 500px;
    padding: 1rem 0.5rem;
}

/* Chat Messages */
.message {
    display: flex;
    margin-bottom: 1rem;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.message.user .message-content {
    background: var(--primary);
    color: var(--primary-foreground);
}

.message.bot .message-content {
    background: var(--card);
    border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .btn-hero, .btn-outline-hero {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .btn-hero-large, .btn-outline-large {
        font-size: 1rem;
        padding: 1.25rem 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}
