/* ============================================
   VIBE CODING ENTHUSIAST - CSS STYLESHEET
   Modern, Professional, SEO-Optimized
   ============================================ */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);

    --secondary: #06b6d4;
    --accent: #f472b6;
    --accent-2: #a855f7;

    /* Backgrounds */
    --bg-primary: #09090b;
    --bg-secondary: #0f0f12;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c22;
    --bg-card-hover: #252530;
    --bg-elevated: #27272a;

    /* Text */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-accent: var(--primary-light);

    /* Borders */
    --border-primary: #27272a;
    --border-secondary: #3f3f46;
    --border-accent: rgba(99, 102, 241, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    --gradient-radial: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --section-padding: 120px;
    --section-padding-mobile: 80px;
    --container-max: 1280px;
    --container-padding: 24px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    z-index: 1000;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    min-height: 44px; /* Minimum touch target size */
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--primary);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-secondary);
}

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

.btn-white:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
}

.logo .accent {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.925rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 8px 4px; /* Improve touch target */
    -webkit-tap-highlight-color: transparent;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: #4ade80;
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border-primary);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Code Window */
.hero-visual {
    position: relative;
}

.code-window {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.code-filename {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-body code {
    display: block;
}

/* Syntax highlighting */
.keyword { color: #c678dd; }
.variable { color: #e5c07b; }
.property { color: #56b6c2; }
.string { color: #98c379; }
.function { color: #61afef; }
.comment { color: #5c6370; font-style: italic; }

/* Floating Badges */
.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.1rem;
}

.badge-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: 2s;
}

.badge-3 {
    bottom: 5%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   TRUST BAR
   ============================================ */
.trust-bar {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.trust-bar .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.trust-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity var(--transition-fast);
}

.trust-logo:hover {
    opacity: 1;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding: var(--section-padding) 0;
}

.service-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.category-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.category-tab:hover {
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.category-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.featured-label,
.popular-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-items {
    margin-bottom: 20px;
}

.service-items li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.service-items li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.service-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

.service-tech-stack span {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-light);
}

.services-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    text-align: center;
}

.services-cta p {
    color: var(--text-muted);
}

/* ============================================
   LEARNING PATHS SECTION
   ============================================ */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin-top: 48px;
}

.path-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-decoration: none;
    transition: all var(--transition-base);
    display: block;
}

.path-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.path-emoji {
    font-size: 48px;
    margin-bottom: 16px;
}

.path-card h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.path-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.path-cta {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.path-card:hover .path-cta {
    color: var(--secondary);
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */
.industries {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
}

.industry-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.industry-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.industry-card:hover .industry-link {
    color: var(--accent-primary);
}

.industry-card:hover .industry-image img {
    transform: scale(1.05);
}

.industry-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industry-content {
    padding: 24px;
}

.industry-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.industry-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-base);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process {
    padding: var(--section-padding) 0;
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.process-step:hover {
    border-color: var(--border-accent);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-output {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
    font-size: 0.85rem;
}

.output-label {
    color: var(--primary-light);
    font-weight: 500;
}

.step-output span:last-child {
    color: var(--text-secondary);
}

/* ============================================
   WORK / CASE STUDIES SECTION
   ============================================ */
.work {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.case-study {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.case-study:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.case-study:hover .case-image img {
    transform: scale(1.05);
}

.case-category {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-light);
}

.case-content {
    padding: 28px;
}

.case-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.case-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.case-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    margin-bottom: 20px;
}

.metric {
    text-align: center;
}

.metric-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tech span {
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--primary-light);
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials {
    padding: var(--section-padding) 0;
}

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

.testimonial-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 1.125rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-accent);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info cite {
    font-style: normal;
    font-weight: 600;
    font-size: 0.95rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-4px);
}

.pricing-header {
    text-align: center;
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
}

.price-note {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.pricing-desc {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-primary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.check {
    color: var(--primary);
    font-weight: 600;
}

/* Productized Section */
.productized-section {
    text-align: center;
    padding-top: 48px;
    border-top: 1px solid var(--border-primary);
}

.productized-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.productized-section > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.productized-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.productized-item {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.productized-item:hover {
    border-color: var(--border-accent);
}

.productized-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.productized-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.productized-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.productized-price {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-light);
}

/* ============================================
   TECH STACK SECTION
   ============================================ */
.tech-stack {
    padding: var(--section-padding) 0;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tech-category {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
}

.tech-category h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-item {
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tech-item:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--border-accent);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    padding: var(--section-padding) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    font-size: 1.5rem;
}

.contact-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-direct {
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.contact-direct p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.email-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-light);
    transition: color var(--transition-fast);
}

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

/* Contact Form */
.contact-form {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.required {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
}

.form-disclaimer {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
    padding: 100px 0;
    background: var(--gradient-primary);
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
}

.final-cta .gradient-text {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
}

/* ============================================
   FOOTER (Simple Design)
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    padding: 48px 0 24px;
}

.footer-simple {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

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

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid var(--border-primary);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .floating-badge {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 64px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .case-studies {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

    .hero-content {
        max-width: 100%;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    /* Typography improvements for tablet/mobile */
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Card improvements */
    .service-card {
        padding: 24px;
    }

    .path-card {
        padding: 24px;
    }

    /* Hero CTA buttons stack on mobile */
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* About section */
    .about-content {
        grid-template-columns: 1fr;
    }

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

    /* Tech categories */
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Floating badges hide on tablet/mobile */
    .floating-badge {
        display: none;
    }

    /* Footer nav wraps */
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
        --container-padding: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .tech-categories {
        grid-template-columns: 1fr;
    }

    .productized-grid {
        grid-template-columns: 1fr;
    }

    .code-body {
        font-size: 0.8rem;
        padding: 16px;
        line-height: 1.6;
    }

    /* Hero stats single column on very small screens */
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }

    .stat {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-primary);
    }

    .stat:last-child {
        border-bottom: none;
    }

    /* Smaller hero description on mobile */
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Hero heading adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    /* Process steps full width */
    .process-step {
        padding: 24px;
    }

    /* Learning paths grid */
    .paths-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ items */
    .faq-item summary {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    /* About section */
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .about-stat {
        padding: 1.25rem;
    }

    .about-stat-value {
        font-size: 1.75rem;
    }

    /* Section headers */
    .section-header {
        margin-bottom: 40px;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Tier grid for booking */
    .tier-grid {
        gap: 16px;
    }

    /* Case studies */
    .case-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    /* Code window header */
    .code-header {
        padding: 12px 16px;
    }

    .code-filename {
        font-size: 0.7rem;
    }
}

/* ============================================
   CONSULTATION BOOKING SECTION
   ============================================ */
.consultation {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

/* Progress Steps */
.booking-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto 48px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.progress-step.active .step-circle {
    background: var(--gradient-primary);
    border-color: var(--primary);
    color: white;
}

.progress-step.completed .step-circle {
    background: #10b981;
    border-color: #10b981;
    color: white;
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary-light);
}

.progress-step.completed .step-label {
    color: #10b981;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--border-primary);
    min-width: 40px;
    max-width: 80px;
    margin: 0 8px;
    margin-bottom: 28px;
    transition: background var(--transition-base);
}

.progress-line.completed {
    background: #10b981;
}

/* Booking Container */
.booking-container {
    max-width: 1000px;
    margin: 0 auto;
}

.booking-step {
    animation: fadeInUp 0.4s ease;
}

.booking-step.hidden {
    display: none;
}

/* Tier Cards */
.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.tier-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.tier-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.tier-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.tier-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.tier-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tier-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.tier-duration {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.tier-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tier-features {
    text-align: left;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}

.tier-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* Booking Step Header */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
}

.selected-tier-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-full);
}

.selected-tier-badge span:first-child {
    font-weight: 500;
    color: var(--text-primary);
}

.selected-tier-badge span:last-child {
    color: var(--primary-light);
    font-weight: 600;
}

/* SimplyBook.me Widget Container */
.simplybook-container {
    min-height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.widget-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    gap: 16px;
    color: var(--text-muted);
}

.booking-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Payment Step */
.payment-header {
    margin-bottom: 24px;
}

.payment-summary {
    max-width: 450px;
    margin: 0 auto;
}

.summary-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
}

.summary-card h3 {
    font-size: 1.125rem;
    margin-bottom: 24px;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
}

.summary-item .label {
    color: var(--text-secondary);
}

.summary-item .value {
    font-weight: 500;
    color: var(--text-primary);
}

.summary-item.total {
    padding-top: 16px;
    font-size: 1.125rem;
}

.summary-item.total .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
}

.summary-divider {
    height: 1px;
    background: var(--border-primary);
    margin: 8px 0;
}

.payment-notice {
    text-align: center;
    padding: 16px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: #fbbf24;
}

#razorpay-button-container {
    margin-bottom: 16px;
}

.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Confirmation Step */
.confirmation-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    margin-bottom: 24px;
}

.success-icon svg {
    stroke: #10b981;
}

.confirmation-content h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.confirmation-content > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.confirmation-details {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}

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

.detail-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.detail-item .value {
    font-weight: 500;
}

.confirmation-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.back-btn svg {
    transition: transform var(--transition-fast);
}

.back-btn:hover svg {
    transform: translateX(-4px);
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Consultation Responsive */
@media (max-width: 768px) {
    .tier-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .booking-progress {
        flex-wrap: wrap;
        gap: 16px;
        max-width: 100%;
    }

    .progress-line {
        display: none;
    }

    .progress-step {
        flex: 1;
        min-width: 70px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .booking-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .selected-tier-badge {
        width: 100%;
        justify-content: space-between;
    }

    .simplybook-container {
        min-height: 500px;
    }

    .widget-loading {
        height: 500px;
    }

    .tier-price {
        font-size: 2rem;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

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

.about-story h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-story p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--primary);
    transform: translateX(8px);
}

.value-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin: 0;
    line-height: 1.5;
}

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

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

.about-stat:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.about-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 640px) {
    .about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-visual {
    animation-delay: 0.2s;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   ARTICLE/GUIDE STYLES
   ============================================ */
.article-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-header {
  padding-top: 120px;
  padding-bottom: 60px;
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.article-content h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* ============================================
   TABLE OF CONTENTS SIDEBAR
   ============================================ */
.toc-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.toc-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: block;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -12px;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

.toc-list .toc-h3 {
  padding-left: 24px;
  font-size: 0.8125rem;
}

/* ============================================
   CODE BLOCKS WITH COPY BUTTON
   ============================================ */
.code-block {
  position: relative;
  margin: 1.5rem 0;
}

.code-block pre {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.code-block code {
  color: var(--text-primary);
}

.code-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.code-copy-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
}

.code-copy-btn.copied {
  color: var(--success, #10b981);
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.share-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
}

.share-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.share-buttons {
  display: flex;
  gap: 8px;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.share-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   DIFFICULTY & TIME BADGES
   ============================================ */
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.badge-intermediate {
  background: rgba(251, 146, 60, 0.1);
  color: #fb923c;
}

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

.badge-time {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge-time svg {
  width: 14px;
  height: 14px;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

/* ============================================
   TECH STACK TABLE
   ============================================ */
.tech-stack-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

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

.tech-stack-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tech-stack-table td {
  color: var(--text-secondary);
}

.tech-stack-table tr:hover td {
  background: var(--bg-card);
}

/* ============================================
   ARTICLE LAYOUT GRID (WITH TOC)
   ============================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

@media (min-width: 1280px) {
  .article-layout {
    grid-template-columns: 280px 1fr 280px;
  }

  .article-layout .toc-sidebar:first-child {
    display: block;
  }
}

/* ============================================
   NEWSLETTER SIGNUP
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  text-align: center;
  margin-top: 4rem;
}

.newsletter-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.newsletter-section p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 12px 24px;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--primary-dark, #4f46e5);
}

@media (max-width: 640px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* ============================================
   GUIDE CARDS (FOR LISTING PAGE)
   ============================================ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.guide-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.guide-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.guide-card-content {
  padding: 24px;
}

.guide-card-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.guide-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.guide-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   FOLLOW SECTION
   ============================================ */
.follow-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    text-align: center;
}

.follow-section .section-header {
    margin-bottom: 40px;
}

.follow-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.follow-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    text-decoration: none;
}

.social-btn.linkedin {
    background: #0077b5;
    color: white;
}

.social-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.social-btn.twitter {
    background: #000000;
    color: white;
}

.social-btn.twitter:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-btn svg {
    flex-shrink: 0;
}

/* Social Follow Buttons (Guide Pages) */
.social-follow-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-follow-btn.linkedin {
    background: #0A66C2;
    color: white;
}

.social-follow-btn.linkedin:hover {
    background: #004182;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(10, 102, 194, 0.4);
}

.social-follow-btn.twitter {
    background: #000000;
    color: white;
}

.social-follow-btn.twitter:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.social-follow-btn svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .social-follow-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ===========================================
   GUIDE PAGE STYLES
   =========================================== */

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-green, #10b981));
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Article Header */
.article-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}
.article-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb-separator {
    color: var(--text-muted);
}
.breadcrumb-current {
    color: var(--text-primary);
}

/* Guide Meta Badges */
.guide-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}
.badge-beginner {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-intermediate {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-advanced {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-time {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(129, 140, 248, 0.3);
}
.badge-time svg {
    width: 14px;
    height: 14px;
}
.badge-industry {
    background: rgba(129, 140, 248, 0.15);
    color: var(--primary);
    border: 1px solid rgba(129, 140, 248, 0.3);
}

/* Article Title */
.article-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 900px;
}
.article-header .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 28px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-btn:hover {
    background: var(--bg-secondary);
    color: var(--primary);
    border-color: var(--primary);
}
.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Article Layout - Main Content with Sidebar */
.article-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 60px) clamp(16px, 4vw, 24px);
}

/* Table of Contents Sidebar */
.toc-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.toc-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.toc-list li {
    margin-bottom: 8px;
}
.toc-list a {
    display: block;
    padding: 8px 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.toc-list a:hover {
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.08);
}
.toc-list a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(129, 140, 248, 0.1);
}
.toc-list .toc-h3 {
    padding-left: 24px;
    font-size: 0.8125rem;
}

/* Article Content */
.article-content {
    max-width: 800px;
}
.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 56px;
    margin-bottom: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border-primary);
}
.article-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.article-content h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}
.article-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}
.article-content ul,
.article-content ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 24px;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content strong {
    color: var(--text-primary);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border: 1px solid var(--border-primary);
}

/* Inline code in articles */
.article-content code:not(.code-block code) {
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
}

/* Anchor links */
.article-content h2 .anchor-link,
.article-content h3 .anchor-link {
    opacity: 0;
    margin-left: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.article-content h2:hover .anchor-link,
.article-content h3:hover .anchor-link {
    opacity: 1;
}
.article-content h2 .anchor-link:hover,
.article-content h3 .anchor-link:hover {
    color: var(--primary);
}

/* Tech Stack Table */
.tech-stack-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 0.9rem;
}
.tech-stack-table thead {
    background: var(--bg-secondary);
}
.tech-stack-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-primary);
}
.tech-stack-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
}
.tech-stack-table tbody tr:hover {
    background: rgba(129, 140, 248, 0.04);
}
.tech-stack-table code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
}

/* Code Blocks */
.code-block {
    position: relative;
    margin: 24px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #1a1b26;
    border: 1px solid var(--border-primary);
}
.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.code-lang {
    font-size: 0.75rem;
    font-weight: 500;
    color: #a9b1d6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.code-block pre {
    margin: 0;
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #c0caf5;
}
.code-block code {
    font-family: inherit;
}
.code-copy-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #a9b1d6;
    cursor: pointer;
    transition: all 0.2s ease;
}
.code-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.code-copy-btn.copied {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #10b981;
}

/* Code Syntax Highlighting */
.code-block .keyword { color: #bb9af7; }
.code-block .string { color: #9ece6a; }
.code-block .comment { color: #565f89; font-style: italic; }
.code-block .function { color: #7aa2f7; }
.code-block .variable { color: #c0caf5; }
.code-block .property { color: #73daca; }
.code-block .number { color: #ff9e64; }
.code-block .operator { color: #89ddff; }
.code-block .type { color: #2ac3de; }

/* Callout Boxes */
.callout {
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
    border-left: 4px solid;
}
.callout-tip {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}
.callout-tip .callout-title { color: #10b981; }
.callout-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}
.callout-warning .callout-title { color: #f59e0b; }
.callout-info {
    background: rgba(129, 140, 248, 0.1);
    border-color: var(--primary);
}
.callout-info .callout-title { color: var(--primary); }
.callout-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.callout p {
    margin: 0;
    color: var(--text-secondary);
}
.callout code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
}

/* AI Workflow Cards */
.ai-workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.ai-tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}
.ai-tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.ai-tool-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.ai-tool-card h4 span {
    font-size: 1.25rem;
}
.ai-tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}
.ai-tool-card ul {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 0.875rem;
}
.ai-tool-card li {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

/* Phase Progress Indicator */
.phase-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(129, 140, 248, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(129, 140, 248, 0.2);
}
.phase-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    font-size: 0.9rem;
}
.phase-title {
    font-weight: 600;
    color: var(--text-primary);
}
.phase-time {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Architecture Diagram */
.architecture-box {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 24px 0;
}
.architecture-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.architecture-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.arch-node {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    text-align: center;
    min-width: 140px;
}
.arch-node-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.arch-node-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}
.arch-arrow {
    color: var(--text-muted);
    font-size: 1.25rem;
}

/* Share Section at Bottom */
.share-section {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 32px 0;
    margin-top: 48px;
    border-top: 1px solid var(--border-primary);
}
.share-label {
    font-weight: 500;
    color: var(--text-secondary);
}

/* Related Guides */
.related-guides {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border-primary);
}
.related-guides-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.related-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.related-guide-card {
    display: block;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;
}
.related-guide-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.related-guide-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.related-guide-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Newsletter Section */
.newsletter-section {
    margin-top: 64px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(129, 140, 248, 0.05));
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    text-align: center;
}
.newsletter-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
}
.newsletter-section > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 440px;
    margin: 0 auto;
}
.newsletter-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    font-size: 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}
.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
}
.newsletter-form input[type="email"]::placeholder {
    color: var(--text-muted);
}
.newsletter-form button {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.newsletter-form button:hover {
    background: var(--primary-hover, #6366f1);
    transform: translateY(-1px);
}

/* Feature list styling */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-primary);
}
.feature-list li:last-child {
    border-bottom: none;
}
.feature-list .feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(129, 140, 248, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.feature-list .feature-icon svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

/* ===========================================
   GUIDE PAGE MOBILE RESPONSIVE
   =========================================== */

@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .toc-sidebar {
        position: static;
        background: var(--bg-card);
        border: 1px solid var(--border-primary);
        border-radius: var(--radius-lg);
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .architecture-flow {
        flex-direction: column;
    }
    .arch-arrow {
        transform: rotate(90deg);
    }
    .article-header {
        padding: 120px 0 40px;
    }
    .article-header h1 {
        font-size: 1.75rem;
    }
    .article-header .lead {
        font-size: 1rem;
    }
    .related-guides-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-form button {
        width: 100%;
    }
    .guide-meta {
        gap: 8px;
    }
    .badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }
}
