/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light theme colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222.2, 84%, 4.9%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222.2, 84%, 4.9%);
    --popover: hsl(0, 0%, 100%);
    --popover-foreground: hsl(222.2, 84%, 4.9%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 40%, 96.1%);
    --secondary-foreground: hsl(222.2, 47.4%, 11.2%);
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    --accent: hsl(210, 40%, 96.1%);
    --accent-foreground: hsl(222.2, 47.4%, 11.2%);
    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(217, 91%, 60%);
    
    /* JSON Diff specific colors */
    --diff-added: hsl(142, 76%, 36%);
    --diff-added-foreground: hsl(0, 0%, 100%);
    --diff-added-bg: hsla(142, 76%, 36%, 0.1);
    --diff-removed: hsl(0, 84%, 60%);
    --diff-removed-foreground: hsl(0, 0%, 100%);
    --diff-removed-bg: hsla(0, 84%, 60%, 0.1);
    --diff-changed: hsl(43, 96%, 56%);
    --diff-changed-foreground: hsl(0, 0%, 100%);
    --diff-changed-bg: hsla(43, 96%, 56%, 0.1);
    
    --code-bg: hsl(220, 13%, 18%);
    --code-foreground: hsl(220, 14%, 71%);
    --code-border: hsl(220, 13%, 26%);
    
    --radius: 0.5rem;
    --success: hsl(142, 76%, 36%);
    --success-bg: hsla(142, 76%, 36%, 0.1);
}

/* Dark theme */
.dark {
    --background: hsl(222.2, 84%, 4.9%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222.2, 84%, 4.9%);
    --card-foreground: hsl(210, 40%, 98%);
    --popover: hsl(222.2, 84%, 4.9%);
    --popover-foreground: hsl(210, 40%, 98%);
    --primary: hsl(210, 40%, 98%);
    --primary-foreground: hsl(222.2, 47.4%, 11.2%);
    --secondary: hsl(217.2, 32.6%, 17.5%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(217.2, 32.6%, 17.5%);
    --muted-foreground: hsl(215, 20.2%, 65.1%);
    --accent: hsl(217.2, 32.6%, 17.5%);
    --accent-foreground: hsl(210, 40%, 98%);
    --destructive: hsl(0, 62.8%, 30.6%);
    --destructive-foreground: hsl(210, 40%, 98%);
    --border: hsl(217.2, 32.6%, 17.5%);
    --input: hsl(217.2, 32.6%, 17.5%);
    --ring: hsl(212.7, 26.8%, 83.9%);
}

/* System theme detection (fallback) */
@media (prefers-color-scheme: dark) {
    :root:not(.light):not(.dark) {
        --background: hsl(222.2, 84%, 4.9%);
        --foreground: hsl(210, 40%, 98%);
        --card: hsl(222.2, 84%, 4.9%);
        --card-foreground: hsl(210, 40%, 98%);
        --popover: hsl(222.2, 84%, 4.9%);
        --popover-foreground: hsl(210, 40%, 98%);
        --primary: hsl(210, 40%, 98%);
        --primary-foreground: hsl(222.2, 47.4%, 11.2%);
        --secondary: hsl(217.2, 32.6%, 17.5%);
        --secondary-foreground: hsl(210, 40%, 98%);
        --muted: hsl(217.2, 32.6%, 17.5%);
        --muted-foreground: hsl(215, 20.2%, 65.1%);
        --accent: hsl(217.2, 32.6%, 17.5%);
        --accent-foreground: hsl(210, 40%, 98%);
        --destructive: hsl(0, 62.8%, 30.6%);
        --destructive-foreground: hsl(210, 40%, 98%);
        --border: hsl(217.2, 32.6%, 17.5%);
        --input: hsl(217.2, 32.6%, 17.5%);
        --ring: hsl(212.7, 26.8%, 83.9%);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Main Header Navigation */
.main-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

.dark .main-header {
    background: rgba(0, 0, 0, 0.8);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--foreground);
    font-weight: 600;
    font-size: 1.25rem;
}

.brand-link:hover {
    color: var(--primary);
}

.brand-link i {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--foreground);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--card);
        border-top: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
    }
    
    .nav-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        border-radius: var(--radius);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--accent);
        border-bottom-color: transparent;
    }
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Container */
.container {
    min-height: 100vh;
    padding: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    margin-bottom: 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.header p {
    color: var(--muted-foreground);
    font-size: 1.1rem;
}

/* Theme Switcher */
.theme-switcher {
    position: relative;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--foreground);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--ring);
}

.theme-toggle i {
    font-size: 1rem;
    transition: opacity 0.2s;
}

.theme-toggle .light-icon {
    opacity: 1;
}

.theme-toggle .dark-icon,
.theme-toggle .system-icon {
    opacity: 0;
    position: absolute;
}

.theme-toggle[data-theme="dark"] .light-icon {
    opacity: 0;
}

.theme-toggle[data-theme="dark"] .dark-icon {
    opacity: 1;
}

.theme-toggle[data-theme="system"] .light-icon {
    opacity: 0;
}

.theme-toggle[data-theme="system"] .system-icon {
    opacity: 1;
}

.theme-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.theme-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.875rem;
}

.theme-option:hover {
    background: var(--accent);
}

.theme-option.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.theme-option i {
    font-size: 0.875rem;
    width: 1rem;
    text-align: center;
}

/* Tabs */
.tabs {
    width: 100%;
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.tab-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius);
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 500;
}

.tab-trigger:hover {
    background: var(--accent);
    color: var(--accent-foreground);
}

.tab-trigger.active {
    background: var(--primary);
    color: var(--primary-foreground);
}

.tab-trigger i {
    font-size: 1rem;
}

/* Tab Panels */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Cards */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.5rem 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2, .card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--card-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 1.5rem;
}

/* Input Grid */
.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .input-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* JSON Input */
.json-input {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    background: var(--code-bg);
    color: var(--code-foreground);
    border: 1px solid var(--code-border);
    border-radius: var(--radius);
    resize: vertical;
    line-height: 1.5;
}

.json-input:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 2px hsla(217, 91%, 60%, 0.2);
}

/* Buttons */
.button-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: hsl(217, 91%, 55%);
}

.btn-outline {
    background: transparent;
    color: var(--foreground);
    border-color: var(--border);
}

.btn-outline:hover:not(:disabled) {
    background: var(--accent);
    color: var(--accent-foreground);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.radio-item:hover {
    background: var(--accent);
}

.radio-item input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
}

.radio-item input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-item input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.25rem;
    height: 0.25rem;
    background: white;
    border-radius: 50%;
}

/* Switch */
.switch {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.switch input[type="checkbox"] {
    display: none;
}

.slider {
    width: 3rem;
    height: 1.5rem;
    background: var(--muted);
    border-radius: 1rem;
    position: relative;
    transition: background 0.2s;
}

.slider::after {
    content: '';
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    width: 1.25rem;
    height: 1.25rem;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
}

.switch input[type="checkbox"]:checked + .slider {
    background: var(--primary);
}

.switch input[type="checkbox"]:checked + .slider::after {
    transform: translateX(1.5rem);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid;
}

.badge-outline {
    background: transparent;
    color: var(--muted-foreground);
    border-color: var(--border);
}

.badge-added {
    background: var(--diff-added-bg);
    color: var(--diff-added);
    border-color: var(--diff-added);
}

.badge-removed {
    background: var(--diff-removed-bg);
    color: var(--diff-removed);
    border-color: var(--diff-removed);
}

.badge-changed {
    background: var(--diff-changed-bg);
    color: var(--diff-changed);
    border-color: var(--diff-changed);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
    border-color: var(--success);
}

.badge-destructive {
    background: var(--destructive);
    color: var(--destructive-foreground);
    border-color: var(--destructive);
}

/* Error Messages */
.error-message {
    color: var(--destructive);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Validation Status */
.validation-status {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* JSON Info */
.json-info {
    background: var(--muted);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.json-info h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    font-size: 0.875rem;
}

.font-mono {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Diff List */
.diff-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diff-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
}

.diff-item.added {
    background: var(--diff-added-bg);
    border-color: var(--diff-added);
}

.diff-item.removed {
    background: var(--diff-removed-bg);
    border-color: var(--diff-removed);
}

.diff-item.changed {
    background: var(--diff-changed-bg);
    border-color: var(--diff-changed);
}

.diff-content {
    flex: 1;
}

.diff-path {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.diff-values {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.diff-value {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.diff-value.removed::before {
    content: '- ';
    color: var(--diff-removed);
}

.diff-value.added::before {
    content: '+ ';
    color: var(--diff-added);
}

.diff-value code {
    background: var(--muted);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

/* Text Diff */
.text-diff-list {
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.text-diff-line {
    display: flex;
    padding: 0.25rem 0.75rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
}

.text-diff-line.added {
    background: var(--diff-added-bg);
    color: var(--diff-added);
    border-left: 4px solid var(--diff-added);
}

.text-diff-line.removed {
    background: var(--diff-removed-bg);
    color: var(--diff-removed);
    border-left: 4px solid var(--diff-removed);
}

.text-diff-line.unchanged {
    background: var(--background);
    color: var(--foreground);
    border-left: 4px solid var(--muted);
}

.line-number {
    display: inline-block;
    width: 2rem;
    text-align: right;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.line-prefix {
    display: inline-block;
    width: 1rem;
    margin-right: 0.5rem;
}

/* Tree List */
.tree-list {
    max-height: 600px;
    overflow-y: auto;
}

.tree-node {
    margin-left: 1.5rem;
}

.tree-node:first-child {
    margin-left: 0;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.tree-item:hover {
    background: var(--accent);
}

.tree-item.added {
    background: var(--diff-added-bg);
    color: var(--diff-added);
}

.tree-item.removed {
    background: var(--diff-removed-bg);
    color: var(--diff-removed);
}

.tree-item.changed {
    background: var(--diff-changed-bg);
    color: var(--diff-changed);
}

.tree-toggle {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.tree-toggle.expanded {
    transform: rotate(90deg);
}

.tree-key {
    font-weight: 500;
}

.tree-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Stats Badges */
.stats-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Error List */
.error-list {
    margin-top: 1rem;
}

.error-list h4 {
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--destructive);
}

.error-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.error-list li {
    font-size: 0.875rem;
    color: var(--destructive);
    background: hsla(0, 84%, 60%, 0.1);
    padding: 0.5rem;
    border-radius: var(--radius);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-muted {
    color: var(--muted-foreground);
}

.text-success {
    color: var(--success);
}

.text-destructive {
    color: var(--destructive);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

.toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.toast-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .tab-list {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-badges {
        flex-direction: column;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer */
.main-footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding: 3rem 0 2rem;
}

.footer-section h3 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section h4 {
    color: var(--foreground);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--accent);
    color: var(--accent-foreground);
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-content p {
    color: var(--muted-foreground);
    margin: 0;
    font-size: 0.875rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: var(--muted);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--foreground);
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: var(--background);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.about-list li {
    padding: 0.75rem 0;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

.about-list li:last-child {
    border-bottom: none;
}

.use-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--accent);
    border-radius: var(--radius);
    color: var(--accent-foreground);
    font-weight: 500;
}

.use-case i {
    font-size: 1.25rem;
    color: var(--primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-foreground);
    font-weight: 500;
}

/* Responsive Design for Features and About */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .use-cases {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

/* SEO Section */
.seo-section {
    padding: 4rem 0;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.resource-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-links li {
    padding: 0.75rem 0;
    color: var(--foreground);
    border-bottom: 1px solid var(--border);
}

.resource-links li:last-child {
    border-bottom: none;
}

.resource-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.resource-links a:hover {
    color: var(--primary-foreground);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }
} 