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

/* ================================
   Design System Variables
   ================================ */
:root {
    /* Spacing System (8px base) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
    --space-16: 128px;
    --space-20: 160px;
    
    /* Colors - OpenMined Brand Guide */
    --color-primary: #4B5563;        /* OpenMined primary dark gray */
    --color-primary-dark: #374151;   /* Darker gray for hover */
    --color-secondary: #10B981;      /* OpenMined green accent */
    --color-accent: #3B82F6;         /* Blue accent */
    --color-dark: #111827;           /* Rich black */
    --color-gray: #6B7280;           /* Medium gray */
    --color-light-gray: #F9FAFB;     /* Light background */
    --color-white: #ffffff;
    --color-code-bg: #F3F4F6;        /* Code background */
    --color-gradient-start: #4B5563;
    --color-gradient-end: #6B7280;
    
    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
}

/* ================================
   Base Typography
   ================================ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-white);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: var(--space-4);
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-3);
}

/* ================================
   Layout Components
   ================================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

section {
    padding: var(--space-20) 0;
}

/* ================================
   Header & Navigation
   ================================ */
header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

nav {
    padding: calc(var(--space-3) * 0.8) 0;
}

.nav-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.syftbox-logo {
    height: 29px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: var(--space-4);
}

.nav-links a {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.github-link {
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* ================================
   Hero Swoop
   ================================ */
.hero-swoop {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: var(--color-white);
    margin-top: -1px; /* Prevent gap between header and swoop */
}

.hero-swoop svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
}

/* ================================
   Hero Section
   ================================ */
.hero {
    padding: var(--space-20) 0;
    text-align: center;
    background: var(--color-light-gray);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: var(--space-3);
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--color-dark);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-gray);
    margin-bottom: var(--space-6);
    font-weight: 400;
}

/* ================================
   Code Comparison
   ================================ */
.code-comparison {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--space-3);
    align-items: stretch;
    margin-bottom: var(--space-6);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.code-before,
.code-after {
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.code-label {
    font-weight: 700;
    margin-bottom: var(--space-2);
    font-size: 1.1rem;
    color: var(--color-dark);
}

.code-arrow {
    font-size: 2.5rem;
    color: var(--color-secondary);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-2);
}

pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: var(--space-3);
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    flex: 1;
    margin: 0;
    font-size: 0.9rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    word-break: break-word;
}

/* Syntax Highlighting */
.language-python .comment, 
.language-yaml .comment { 
    color: #94a3b8; 
    font-style: italic;
}
.language-python .string,
.language-yaml .string { 
    color: #86efac; 
}
.language-python .keyword,
.language-yaml .keyword { 
    color: #93bbfc;
    font-weight: 600;
}
.language-python .function { 
    color: #c4b5fd;
    font-weight: 600;
}

/* ================================
   Install Section
   ================================ */
.install-section {
    margin-bottom: 0;
}

.install-command {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--color-code-bg);
    padding: var(--space-2) var(--space-3);
    border-radius: 8px;
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
}

.install-command code {
    font-size: 1.1rem;
}

.copy-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
    padding: var(--space-1) var(--space-2);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.copy-btn:hover {
    background: #cbd5e0;
    border-color: #a0aec0;
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn span {
    position: relative;
    z-index: 1;
}

.copy-btn::after {
    content: '✓ Copied!';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: white;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.2s;
}

.copy-btn.copied::after {
    transform: translateY(0);
}

.install-note {
    color: var(--color-gray);
    font-size: 1.1rem;
}

/* ================================
   Benefits Section
   ================================ */
.benefits {
    background: var(--color-light-gray);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.benefit {
    text-align: center;
    padding: var(--space-4);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.benefit h3 {
    margin-bottom: var(--space-2);
}

.benefit p {
    color: var(--color-gray);
}

/* ================================
   API Preview Section
   ================================ */
.api-preview {
    padding: var(--space-20) 0;
    background: var(--color-white);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

/* API Preview Dark */
.api-preview-dark {
    padding: var(--space-20) 0;
    color: white;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.api-preview-dark h2 {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.api-preview-dark .section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
}

.api-preview-dark .api-example {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--space-4);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.api-preview-dark .api-example h3 {
    font-size: 1.2rem;
    margin-bottom: var(--space-2);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.api-preview-dark .api-example pre {
    margin: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3);
    border-radius: 8px;
}

.api-preview-dark .api-example code {
    color: rgba(255, 255, 255, 0.85);
}

.api-preview h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--color-gray);
    font-size: 1.2rem;
    margin-bottom: var(--space-8);
}

.api-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-4);
}

.api-example {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.api-example h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-2);
}

.api-example pre {
    margin: 0;
}

/* ================================
   Why SyftPerm Section
   ================================ */
.why-syftperm {
    padding: var(--space-20) 0;
    background: var(--color-white);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.why-syftperm h2 {
    text-align: center;
    margin-bottom: var(--space-2);
}

.why-syftperm .section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
}

.value-prop {
    background: var(--color-white);
    padding: var(--space-4);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.value-prop h3 {
    color: var(--color-dark);
    margin-bottom: var(--space-2);
    font-size: 1.3rem;
}

.value-prop p {
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

/* ================================
   Video Demo Section
   ================================ */
.video-demo {
    padding: var(--space-20) 0;
    background: var(--color-light-gray);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.video-demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.video-demo .section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-gray);
    margin-bottom: var(--space-6);
}

.demo-video-container {
    max-width: 1200px;
    margin: 0 auto;
}

.demo-video-container video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.1);
}

/* ================================
   Gradient Feature Section
   ================================ */
.gradient-feature {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #fccb90 75%, #d57eeb 100%);
    color: white;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gradient-feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle 800px at 20% 50%, rgba(255, 255, 255, 0.4) 0%, transparent 40%),
        radial-gradient(circle 600px at 80% 30%, rgba(255, 192, 203, 0.5) 0%, transparent 40%),
        radial-gradient(circle 700px at 50% 80%, rgba(255, 218, 185, 0.4) 0%, transparent 45%),
        radial-gradient(circle 900px at 10% 10%, rgba(230, 230, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle 500px at 90% 90%, rgba(176, 224, 230, 0.4) 0%, transparent 40%);
    filter: blur(40px);
    transform: rotate(-15deg) translateZ(0);
    animation: gradientShift 25s ease-in-out infinite;
    mix-blend-mode: soft-light;
}

@keyframes gradientShift {
    0%, 100% { 
        transform: rotate(-15deg) scale(1) translate(0, 0) translateZ(0);
        filter: blur(40px) brightness(1.2);
    }
    20% { 
        transform: rotate(-25deg) scale(1.15) translate(-8%, 12%) translateZ(0);
        filter: blur(60px) brightness(1.3);
    }
    40% { 
        transform: rotate(-5deg) scale(1.1) translate(10%, -8%) translateZ(0);
        filter: blur(30px) brightness(1.1);
    }
    60% { 
        transform: rotate(-30deg) scale(1.2) translate(-15%, -5%) translateZ(0);
        filter: blur(50px) brightness(1.4);
    }
    80% { 
        transform: rotate(-10deg) scale(1.05) translate(5%, 10%) translateZ(0);
        filter: blur(45px) brightness(1.2);
    }
}

.gradient-feature::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: 
        radial-gradient(ellipse 1200px 800px at 30% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse 1000px 1400px at 70% 60%, rgba(255, 182, 193, 0.4) 0%, transparent 45%),
        radial-gradient(ellipse 1500px 900px at 50% 90%, rgba(255, 239, 213, 0.3) 0%, transparent 50%),
        radial-gradient(circle 600px at 85% 15%, rgba(230, 230, 250, 0.4) 0%, transparent 35%);
    filter: blur(60px);
    transform: rotate(35deg) translateZ(0);
    mix-blend-mode: overlay;
    animation: gradientShift2 35s ease-in-out infinite reverse;
    opacity: 0.8;
}

@keyframes gradientShift2 {
    0%, 100% { 
        transform: rotate(35deg) scale(1) translate(0, 0) skew(0deg, 0deg) translateZ(0);
        filter: blur(60px) hue-rotate(0deg);
    }
    25% { 
        transform: rotate(55deg) scale(0.95) translate(15%, -15%) skew(5deg, -5deg) translateZ(0);
        filter: blur(80px) hue-rotate(20deg);
    }
    50% { 
        transform: rotate(20deg) scale(1.3) translate(-10%, 20%) skew(-8deg, 3deg) translateZ(0);
        filter: blur(40px) hue-rotate(-15deg);
    }
    75% { 
        transform: rotate(40deg) scale(1.1) translate(5%, -5%) skew(3deg, -3deg) translateZ(0);
        filter: blur(70px) hue-rotate(10deg);
    }
}

.gradient-feature .container {
    position: relative;
    z-index: 1;
}

.gradient-feature h2 {
    color: white;
    text-align: center;
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.gradient-feature .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--space-8);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: var(--space-6);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.feature-card h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ================================
   Dark Section Wrapper - Contains all dark sections
   ================================ */
.dark-section-wrapper {
    background: #0a0a0a;
    position: relative;
    overflow: hidden;
}

/* ================================
   Under the Hood Section
   ================================ */
.under-the-hood {
    position: relative;
    padding: var(--space-20) 0;
    color: white;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

/* Roaming spotlights for entire dark section */
.dark-section-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 600px at 20% 10%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle 500px at 80% 30%, rgba(118, 75, 162, 0.12) 0%, transparent 50%),
        radial-gradient(circle 450px at 50% 40%, rgba(240, 147, 251, 0.10) 0%, transparent 50%),
        radial-gradient(circle 700px at 10% 80%, rgba(252, 203, 144, 0.08) 0%, transparent 50%),
        radial-gradient(circle 400px at 40% 60%, rgba(213, 126, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle 550px at 70% 70%, rgba(102, 126, 234, 0.10) 0%, transparent 50%),
        radial-gradient(circle 500px at 30% 30%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        radial-gradient(circle 600px at 90% 60%, rgba(252, 203, 144, 0.06) 0%, transparent 50%);
    animation: spotlightRoam 35s ease-in-out infinite;
    pointer-events: none;
}

.dark-section-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle 550px at 90% 20%, rgba(213, 126, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle 480px at 30% 50%, rgba(102, 126, 234, 0.10) 0%, transparent 50%),
        radial-gradient(circle 600px at 60% 50%, rgba(240, 147, 251, 0.08) 0%, transparent 50%),
        radial-gradient(circle 450px at 15% 40%, rgba(252, 203, 144, 0.10) 0%, transparent 50%),
        radial-gradient(circle 500px at 75% 80%, rgba(118, 75, 162, 0.08) 0%, transparent 50%),
        radial-gradient(circle 400px at 45% 20%, rgba(240, 147, 251, 0.06) 0%, transparent 50%);
    animation: spotlightRoam2 30s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes spotlightRoam {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-5%, 10%) scale(1.05);
    }
    50% {
        transform: translate(10%, -5%) scale(0.95);
    }
    75% {
        transform: translate(-3%, -10%) scale(1.02);
    }
}

@keyframes spotlightRoam2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(8%, -15%) scale(1.08);
    }
    66% {
        transform: translate(-12%, 8%) scale(0.92);
    }
}

.under-the-hood .container {
    position: relative;
    z-index: 1;
}

.under-the-hood h2 {
    text-align: center;
    color: white;
    font-size: 3rem;
    margin-bottom: var(--space-3);
}

.under-the-hood .section-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
}

.code-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.code-showcase pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: var(--space-6);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.code-showcase code {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ================================
   Tutorial CTA Section
   ================================ */
.tutorial-cta {
    padding: var(--space-16) 0;
    text-align: center;
    color: white;
}

.tutorial-cta h2 {
    margin-bottom: var(--space-3);
    font-size: 3rem;
    color: white;
}

.tutorial-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
    opacity: 0.95;
}

.tutorial-highlights {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.highlight {
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn:not(:hover) {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-primary:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-code-bg);
    color: var(--color-dark);
    border: 2px solid var(--color-code-bg);
}

.btn-secondary:hover {
    background: transparent;
    border-color: var(--color-dark);
}

.btn-large {
    padding: var(--space-3) var(--space-5);
    font-size: 1.2rem;
}

/* Tutorial CTA specific button styles */
.tutorial-cta .btn-primary {
    background: white;
    color: var(--color-dark);
}

.tutorial-cta .btn-primary:hover {
    background: var(--color-light-gray);
}

.tutorial-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.tutorial-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ================================
   Try It Out Section
   ================================ */
.try-it-out {
    padding: var(--space-20) 0;
    color: white;
    text-align: center;
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

/* ================================
   Newsletter Section Dark
   ================================ */
.newsletter-section-dark {
    padding: var(--space-20) 0;
    color: white;
    text-align: center;
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.newsletter-section-dark h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: var(--space-3);
    letter-spacing: -0.02em;
    color: white;
}

.newsletter-section-dark p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-8);
}

/* HubSpot Form Styling for Dark Theme */
.newsletter-section-dark .hs-form-field label {
    display: none !important;
}

.newsletter-section-dark .hs-form-field input[type="text"],
.newsletter-section-dark .hs-form-field input[type="email"],
.newsletter-section-dark .hs-form-field textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: white;
    transition: all 0.2s ease;
}

.newsletter-section-dark .hs-form-field input::placeholder,
.newsletter-section-dark .hs-form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-section-dark .hs-form-field input:focus,
.newsletter-section-dark .hs-form-field textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-section-dark .hs-submit input[type="submit"] {
    background: white;
    color: #0a0a0a;
    border: none;
    padding: var(--space-2) var(--space-6);
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.newsletter-section-dark .hs-submit input[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.newsletter-section-dark .hs-richtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    line-height: 1.5;
}

.newsletter-section-dark .hs-richtext p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-2);
}

.newsletter-section-dark .hs-richtext a {
    color: white;
    text-decoration: underline;
}

.newsletter-section-dark .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: var(--space-1) 0 0 0;
}

.newsletter-section-dark .hs-error-msg {
    color: #ff6b6b;
    font-size: 0.875rem;
}

/* Hide unnecessary HubSpot elements */
.newsletter-section-dark .hs-form-required,
.newsletter-section-dark .submitted-message {
    display: none !important;
}

/* Center and constrain the HubSpot form container */
.newsletter-section-dark #hubspot-form-container {
    max-width: 450px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.newsletter-section-dark .hs-form {
    text-align: left;
}

.newsletter-section-dark .hs-form-field {
    margin-bottom: var(--space-3);
}

.newsletter-section-dark .hs-input {
    font-family: var(--font-sans);
}

/* Checkbox styling */
.newsletter-section-dark input[type="checkbox"] {
    margin-right: var(--space-1);
}

.newsletter-section-dark .hs-form-booleancheckbox label {
    display: inline !important;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Form layout fixes */
.newsletter-section-dark .hs-form .hs-submit {
    text-align: center;
    margin-top: var(--space-4);
}

.newsletter-section-dark .legal-consent-container {
    margin-top: var(--space-3);
}

.newsletter-section-dark .hs-form-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* AGGRESSIVE OVERRIDES FOR HUBSPOT FORM */
/* Reset all HubSpot default styles */
.newsletter-section-dark .hs-form fieldset {
    max-width: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.newsletter-section-dark .hs-form .hs-form-field {
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
}

.newsletter-section-dark .hs-form .hs-field-desc {
    display: none !important;
}

.newsletter-section-dark .hs-form .hs-form-field > label {
    display: none !important;
}

/* Remove all default HubSpot spacing */
.newsletter-section-dark .hs-form .inputs-list {
    margin: 0 !important;
    padding: 0 !important;
}

.newsletter-section-dark .hs-form ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* Fix the name field layout issue */
.newsletter-section-dark .hs_firstname,
.newsletter-section-dark .hs_lastname {
    display: inline-block !important;
    width: calc(50% - 0.5rem) !important;
    vertical-align: top !important;
}

.newsletter-section-dark .hs_firstname {
    margin-right: 1rem !important;
}

.newsletter-section-dark .hs_email,
.newsletter-section-dark .field.hs-form-field:not(.hs_firstname):not(.hs_lastname) {
    width: 100% !important;
    display: block !important;
}

/* Force all text to be consistent */
.newsletter-section-dark .hs-form * {
    font-family: var(--font-sans) !important;
}

.newsletter-section-dark .hs-richtext p,
.newsletter-section-dark .hs-richtext span,
.newsletter-section-dark .hs-richtext em,
.newsletter-section-dark .hs-richtext i,
.newsletter-section-dark .hs-richtext strong,
.newsletter-section-dark .legal-consent-container p,
.newsletter-section-dark .legal-consent-container span {
    font-style: normal !important;
    font-weight: normal !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Checkbox text alignment */
.newsletter-section-dark .hs-form-booleancheckbox-display {
    display: flex !important;
    align-items: flex-start !important;
}

.newsletter-section-dark .hs-form-booleancheckbox-display input {
    margin-top: 0.25rem !important;
    margin-right: 0.75rem !important;
}

.newsletter-section-dark .hs-form-booleancheckbox-display > span {
    flex: 1 !important;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.01) 35px, rgba(255,255,255,.01) 70px);
    pointer-events: none;
}

.newsletter-content {
    position: relative;
    z-index: 1;
}

.newsletter-content h2 {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    letter-spacing: -0.5px;
}

.newsletter-content > p {
    font-size: 1.25rem;
    margin-bottom: var(--space-8);
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.email-input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
}

.email-input::placeholder {
    color: var(--color-gray);
}

.email-input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.submit-btn {
    padding: var(--space-2) var(--space-4);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--color-secondary);
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

/* ================================
   Footer
   ================================ */
footer {
    padding: var(--space-6) 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.1);
}

footer p {
    margin: 0;
    color: var(--color-gray);
}

footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Footer Dark Theme */
.footer-dark {
    padding: var(--space-6) 0;
    background: transparent;
    color: var(--color-white);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-dark a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-dark a:hover {
    color: white;
    text-decoration: none;
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .code-comparison {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .code-arrow {
        transform: rotate(90deg);
    }
    
    .nav-links {
        gap: var(--space-4);
    }
    
    .nav-links a {
        font-size: 1rem;
    }
    
    section {
        padding: var(--space-8) 0;
    }
    
    .api-examples {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Cards and Grids
   ================================ */
.grid {
    display: grid;
    gap: var(--space-4);
}

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

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: var(--space-4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

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

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.card-content {
    color: var(--color-gray);
}

.card-content p {
    margin-bottom: var(--space-2);
}

.card-footer {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(0,0,0,0.1);
}

/* ================================
   Alerts
   ================================ */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: 12px;
    margin: var(--space-4) 0;
}

.alert-info {
    background: #F0F9FF;
    color: #1E40AF;
    border: 1px solid #BFDBFE;
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #6EE7B7;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

/* ================================
   Code Blocks
   ================================ */
.code-block {
    background: var(--color-code-bg);
    border-radius: 8px;
    padding: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
    margin: var(--space-2) 0;
}

.code-inline {
    background: var(--color-code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85em;
}

/* ================================
   API Method Blocks
   ================================ */
.api-method {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.api-method-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-2);
}

/* ================================
   Page Headers
   ================================ */
.page-header {
    text-align: center;
    padding: var(--space-8) 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-2);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ================================
   Header Updates
   ================================ */
.header {
    position: sticky;
    top: 0;
    background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.1);
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.95);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    gap: var(--space-4);
}

.nav-link {
    color: var(--color-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-secondary);
}

.nav-link.active {
    color: var(--color-secondary);
    font-weight: 600;
}

/* ================================
   Footer Updates
   ================================ */
.footer {
    background: var(--color-dark);
    color: var(--color-white);
    padding: var(--space-8) 0;
    margin-top: var(--space-16);
}

.footer h4 {
    color: var(--color-white);
}

.footer a {
    color: var(--color-secondary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer ul {
    list-style: none;
}

/* ================================
   Focus States
   ================================ */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* ================================
   Utility Classes
   ================================ */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

/* ================================
   Copy Button Feedback
   ================================ */
.copy-btn.copied {
    background: var(--color-accent);
}

/* ================================
   HubSpot Form Styles
   ================================ */
.newsletter-hubspot-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-6);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-hubspot-form .hs-form {
    text-align: left;
}

.newsletter-hubspot-form .hs-form-field {
    margin-bottom: var(--space-3);
}

/* Two-column grid for name fields */
.newsletter-hubspot-form .hs-form {
    display: grid;
    gap: var(--space-3);
}

.newsletter-hubspot-form .hs-form > .hs-form-field:nth-child(1),
.newsletter-hubspot-form .hs-form > .hs-form-field:nth-child(2) {
    grid-column: span 1;
}

.newsletter-hubspot-form .hs-form > .hs-form-field:nth-child(3),
.newsletter-hubspot-form .hs-form > .hs-form-field:nth-child(4),
.newsletter-hubspot-form .hs-fieldtype-checkbox,
.newsletter-hubspot-form .hs-submit {
    grid-column: 1 / -1;
}

@media (min-width: 480px) {
    .newsletter-hubspot-form .hs-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 479px) {
    .newsletter-hubspot-form .hs-form {
        grid-template-columns: 1fr;
    }
    
    .newsletter-hubspot-form .hs-form > .hs-form-field:nth-child(1),
    .newsletter-hubspot-form .hs-form > .hs-form-field:nth-child(2) {
        grid-column: 1 / -1;
    }
}

.newsletter-hubspot-form label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    letter-spacing: 0.025em;
}

.newsletter-hubspot-form .hs-form-required {
    color: #f87171;
    margin-left: 2px;
}

.newsletter-hubspot-form .hubspot-input,
.newsletter-hubspot-form input[type="text"],
.newsletter-hubspot-form input[type="email"],
.newsletter-hubspot-form textarea {
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-dark);
    font-family: var(--font-sans);
    transition: all 0.2s ease;
}

.newsletter-hubspot-form .hubspot-input:focus,
.newsletter-hubspot-form input[type="text"]:focus,
.newsletter-hubspot-form input[type="email"]:focus,
.newsletter-hubspot-form textarea:focus {
    outline: none;
    background: white;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.newsletter-hubspot-form textarea {
    min-height: 120px;
    resize: vertical;
}

.newsletter-hubspot-form input::placeholder,
.newsletter-hubspot-form textarea::placeholder {
    color: rgba(107, 114, 128, 0.6);
    font-size: 0.95rem;
}


.newsletter-hubspot-form .hs-input[type="checkbox"] {
    margin-right: var(--space-2);
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-secondary);
}

.newsletter-hubspot-form .hubspot-checkbox-wrapper,
.newsletter-hubspot-form .hs-form-booleancheckbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.newsletter-hubspot-form .hubspot-checkbox-wrapper label,
.newsletter-hubspot-form .hs-form-booleancheckbox label {
    margin-bottom: 0;
    margin-left: var(--space-2);
    font-weight: 400;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

.newsletter-hubspot-form .hubspot-submit,
.newsletter-hubspot-form input[type="submit"],
.newsletter-hubspot-form .hs-button {
    padding: var(--space-2) var(--space-5);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: var(--color-secondary);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    margin-top: var(--space-3);
}

.newsletter-hubspot-form .hubspot-submit:hover,
.newsletter-hubspot-form input[type="submit"]:hover,
.newsletter-hubspot-form .hs-button:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.newsletter-hubspot-form .hubspot-submit:active,
.newsletter-hubspot-form input[type="submit"]:active,
.newsletter-hubspot-form .hs-button:active {
    transform: translateY(0);
}

.newsletter-hubspot-form .hs-error-msgs {
    list-style: none;
    padding: 0;
    margin: var(--space-1) 0 0 0;
}

.newsletter-hubspot-form .hs-error-msg {
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: var(--space-1);
}

.newsletter-hubspot-form .hs-form .hs-fieldtype-checkbox ul {
    list-style: none;
    padding: 0;
}

.newsletter-hubspot-form .hs-form .hs-fieldtype-checkbox li {
    margin-bottom: 0;
}

/* Checkbox section styling */
.newsletter-hubspot-form .hs-fieldtype-checkbox {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-hubspot-form .hs-fieldtype-checkbox .hs-form-booleancheckbox {
    padding: var(--space-2) 0;
}

.newsletter-hubspot-form .hs-fieldtype-checkbox .hs-form-booleancheckbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Submit button container */
.newsletter-hubspot-form .hs-submit {
    text-align: center;
    margin-top: var(--space-6);
}

/* Success message */
.newsletter-hubspot-form .submitted-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-secondary);
    padding: var(--space-4);
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
}

/* ================================
   Quick Start Page Styles
   ================================ */
.quickstart-hero {
    padding: var(--space-10) 0;
    text-align: center;
    background: var(--color-light-gray);
}

.quickstart-step {
    padding: var(--space-10) 0;
}

.quickstart-step.alt-bg {
    background: var(--color-light-gray);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: var(--space-2);
}

.quickstart-step h2 {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-4);
}

.quickstart-step p {
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
}

/* ================================
   Next Steps Section
   ================================ */
.next-steps {
    padding: var(--space-12) 0;
    background: var(--color-light-gray);
    text-align: center;
}

.next-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-8);
}

.next-link {
    background: white;
    padding: var(--space-4);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.next-link h3 {
    margin-bottom: var(--space-2);
}

.next-link p {
    color: var(--color-gray);
    margin-bottom: var(--space-3);
}

/* ================================
   Active Navigation State
   ================================ */
.nav-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* ================================
   API Page Styles
   ================================ */
.api-hero {
    padding: var(--space-10) 0;
    text-align: center;
    background: var(--color-light-gray);
}

.api-section {
    padding: var(--space-10) 0;
}

.api-section.alt-bg {
    background: var(--color-light-gray);
}

.api-section h2 {
    margin-bottom: var(--space-6);
}

/* ================================
   Tutorials Page Styles
   ================================ */
.tutorials-hero {
    padding: var(--space-10) 0;
    text-align: center;
    background: var(--color-light-gray);
}

.tutorials-section {
    padding: var(--space-10) 0;
}

.learning-path {
    padding: var(--space-10) 0;
    background: var(--color-white);
}

.additional-resources {
    padding: var(--space-10) 0;
    background: var(--color-light-gray);
}

/* ================================
   Widget Section Styles
   ================================ */
.widgets-section {
    padding: var(--space-10) 0;
    background: var(--color-light-gray);
}

.widget-video-container {
    margin: var(--space-6) 0;
    text-align: center;
}

.widget-video-container video {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.widget-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.widget-feature {
    background: var(--color-white);
    border-radius: 12px;
    padding: var(--space-4);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.widget-feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.widget-feature h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-2);
    color: var(--color-dark);
}

.widget-feature p {
    color: var(--color-gray);
    margin-bottom: var(--space-3);
    font-size: 1rem;
    line-height: 1.5;
}

.widget-feature code {
    display: inline-block;
    background: var(--color-code-bg);
    padding: var(--space-1) var(--space-2);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-primary);
    border: 1px solid rgba(0,0,0,0.1);
}

/* ================================
   Responsive Design
   ================================ */
@media (max-width: 1024px) {
    .code-comparison {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .code-arrow {
        transform: rotate(90deg);
        margin: var(--space-2) 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .api-examples {
        grid-template-columns: 1fr;
    }
    
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: var(--space-3);
        font-size: 0.9rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .email-input,
    .submit-btn {
        width: 100%;
    }
}