/* ============================================
   localcode.in - Professional Stylesheet
   ============================================ */

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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --danger-color: #ef4444;
    --text-dark: #0f172a;
    --text-mid: #334155;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg-light: #f8fafc;
    --bg-soft: #f1f5f9;
    --bg-white: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-mid: #1e293b;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.25s ease;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-heading: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.25;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.875rem 0;
    transition: box-shadow 0.25s ease;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-brand i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-mid);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.07);
}

/* Nav CTA Button */
.btn-nav {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.btn-nav:hover {
    background: linear-gradient(135deg, var(--primary-dark), #1a40b8);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    font-size: 1.1rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-toggle:hover {
    background-color: var(--bg-soft);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(150deg, #1e3a8a 0%, var(--primary-color) 40%, #0ea5e9 100%);
    color: var(--bg-white);
    padding: 110px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-white);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 820px;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    letter-spacing: 0.01em;
}

.hero-badge i {
    color: #fcd34d;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.75;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: #f0f5ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--bg-white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-bottom: 30px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    min-width: 150px;
}

.stat:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
}

.stat i {
    font-size: 1.8rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-info strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-info span {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 500;
}

/* Section Styles */
section {
    padding: 96px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

.section-header::after {
    content: '';
    display: block;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 20px auto 0;
}

/* Problem Section */
.problem {
    background-color: var(--bg-soft);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.problem-card {
    background-color: var(--bg-white);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problem-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.25);
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.15) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.9rem;
    color: var(--primary-color);
}

.problem-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.75;
    font-size: 0.95rem;
    flex: 1;
}

/* Quick Start Section */
.quickstart {
    background-color: var(--bg-white);
}

.quickstart-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.step-card {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: 16px;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    color: var(--bg-white);
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.step-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.step-card code {
    display: block;
    background-color: var(--bg-dark);
    color: #a5b4fc;
    padding: 18px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin-bottom: 15px;
    border: 1px solid rgba(165, 180, 252, 0.2);
}

.step-card .step-note {
    font-size: 0.95rem;
    color: var(--accent-color);
    font-style: italic;
    padding: 12px;
    background-color: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

/* Tutorials Section */
.tutorials {
    background-color: var(--bg-light);
    background-image: linear-gradient(135deg, var(--bg-light) 0%, rgba(37, 99, 235, 0.03) 100%);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
}

.tutorial-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.tutorial-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #4f46e5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tutorial-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.tutorial-image i {
    font-size: 4.5rem;
    color: var(--bg-white);
    position: relative;
    z-index: 1;
}

.tutorial-content {
    padding: 30px;
}

.tutorial-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.25) 100%);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
}

.tutorial-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 700;
}

.tutorial-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tutorial-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.05);
}

.tutorial-link:hover {
    gap: 12px;
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.15);
    transform: translateX(5px);
}

/* Tools Section */
.tools {
    background-color: var(--bg-white);
    background-image: linear-gradient(135deg, var(--bg-white) 0%, rgba(245, 158, 11, 0.02) 100%);
}

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

.tool-card {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(245, 158, 11, 0.2);
}

.tool-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: var(--shadow-md);
}

.tool-icon i {
    font-size: 2.8rem;
    color: var(--accent-color);
}

.tool-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.tool-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.tool-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(37, 99, 235, 0.05);
}

.tool-link:hover {
    text-decoration: underline;
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.15);
    transform: translateX(5px);
}

/* Troubleshoot Section */
.troubleshoot {
    background-color: var(--bg-light);
    background-image: linear-gradient(135deg, var(--bg-light) 0%, rgba(239, 68, 68, 0.03) 100%);
}

.troubleshoot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.troubleshoot-card {
    background-color: var(--bg-white);
    padding: 35px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.troubleshoot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(239, 68, 68, 0.2);
}

.troubleshoot-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.troubleshoot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.25) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.troubleshoot-icon i {
    font-size: 1.8rem;
    color: #ef4444;
}

.troubleshoot-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.troubleshoot-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1rem;
}

.troubleshoot-card ul {
    list-style: none;
}

.troubleshoot-card li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.troubleshoot-card li:last-child {
    border-bottom: none;
}

/* AI Coding Agents Section */
.coding-agents {
    background-color: var(--bg-white);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.agent-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1.5px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: var(--transition);
}

.agent-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.2);
}

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

.agent-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.agent-card:hover .agent-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

.agent-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.agent-card h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.agent-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Best Practices Section */
.best-practices {
    background-color: var(--bg-soft);
}

.best-practices-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.practice-card {
    background-color: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: var(--transition);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
}

.practice-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.practice-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.practice-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.practice-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Cost Comparison Section */
.cost-comparison {
    background-color: var(--bg-white);
}

.comparison-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.comparison-column {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.comparison-column:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(37, 99, 235, 0.2);
}

.comparison-column-local {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.comparison-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 700;
}

.cost-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cost-badge {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.comparison-column-local .cost-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.comparison-list {
    list-style: none;
    margin-bottom: 25px;
}

.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.comparison-item:last-child {
    border-bottom: none;
}

.comparison-item i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.comparison-item i.fa-times-circle {
    color: #ef4444;
}

.comparison-item i.fa-check-circle {
    color: var(--secondary-color);
}

.comparison-content {
    flex: 1;
}

.comparison-content strong {
    display: block;
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 5px;
}

.comparison-content p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.comparison-item-local {
    background-color: rgba(16, 185, 129, 0.03);
    border-radius: 8px;
    padding: 12px;
}

.comparison-item-local .comparison-content strong {
    color: var(--secondary-color);
}

.cost-estimate {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.cost-estimate p {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cost-savings {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 8px;
}

/* Hardware Requirements Section */
.hardware {
    background-color: var(--bg-soft);
}

.hardware-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.hardware-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hardware-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.35);
}

.hardware-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

.hardware-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.hardware-card h3 {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.hardware-specs {
    list-style: none;
}

.hardware-specs li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hardware-specs li:last-child {
    border-bottom: none;
}

.hardware-specs strong {
    color: var(--text-dark);
    font-weight: 600;
}

.hardware-tips {
    background-color: rgba(245, 158, 11, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-top: 40px;
    border: 2px solid rgba(245, 158, 11, 0.2);
}

.hardware-tips h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hardware-tips h3 i {
    color: var(--accent-color);
}

.hardware-tips ul {
    list-style: none;
}

.hardware-tips li {
    padding: 10px 0;
    color: var(--text-light);
    border-bottom: 1px solid rgba(245, 158, 11, 0.1);
    font-size: 0.9rem;
    line-height: 1.5;
}

.hardware-tips li:last-child {
    border-bottom: none;
}

.hardware-tips li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Community Section */
.community {
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, var(--bg-dark) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--bg-white);
}

.community .section-header h2,
.community .section-header p {
    color: var(--bg-white);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.community-card {
    background-color: rgba(255, 255, 255, 0.12);
    padding: 35px;
    border-radius: 16px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.community-card:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
}

.community-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--bg-white);
    font-weight: 700;
}

.community-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.community-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.community-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 800;
    transition: var(--transition);
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.community-link:hover {
    gap: 12px;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

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

.resource-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

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

.resource-list li:hover {
    color: var(--accent-color);
    padding-left: 8px;
}

.resource-list a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.resource-list a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 20px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: var(--bg-white);
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
}

.footer-section a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.3rem;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 1100px) {
    .best-practices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .problem-grid,
    .agents-grid,
    .hardware-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: 1.2rem;
    }

    .hero {
        padding: 60px 0 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat {
        min-width: 130px;
        padding: 12px 16px;
    }

    .stat i {
        font-size: 1.4rem;
    }

    .stat-info strong {
        font-size: 1.05rem;
    }

    section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .problem-grid,
    .agents-grid,
    .hardware-grid,
    .best-practices-grid,
    .community-grid,
    .quickstart-steps,
    .tutorial-grid,
    .tools-grid,
    .troubleshoot-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }

    .comparison-container {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        font-size: 1.5rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-brand i {
        font-size: 1.8rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section a {
        font-size: 0.95rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .card-icon,
    .tool-icon {
        width: 60px;
        height: 60px;
    }

    .card-icon i,
    .tool-icon i {
        font-size: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.6s ease-out;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Code Block Styling */
pre {
    background-color: var(--bg-dark);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-dark);
}

table tr:hover {
    background-color: var(--bg-light);
}

/* Alert Box Styling */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
    color: var(--text-dark);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-color);
    color: var(--text-dark);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: var(--secondary-color);
    color: var(--text-dark);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: var(--text-dark);
}

.alert i {
    margin-right: 10px;
}

/* Badge Styling */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-primary {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
}

.badge-accent {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--accent-color);
}