/*
 * Cloudflare Workers + React Boilerplate - Landing Page Styles
 * Optimised for GitHub Pages
 * British English spelling throughout
 */

/* ===================================
   CSS Custom Properties (Design System)
   =================================== */

:root {
    /* Colour Palette - Warmer, more approachable */
    --colour-cloudflare: #F38020;
    --colour-primary: #E67E22;           /* Warmer golden-orange for CTAs */
    --colour-primary-dark: #D35400;      /* Hover state */
    --colour-react: #61DAFB;
    --colour-claude: #5436DA;
    --colour-white: #FFFFFF;
    --colour-grey-50: #F8F9FA;
    --colour-grey-100: #F1F3F5;
    --colour-grey-200: #E9ECEF;
    --colour-grey-300: #DEE2E6;
    --colour-grey-600: #868E96;
    --colour-grey-700: #495057;
    --colour-grey-800: #343A40;
    --colour-grey-900: #212529;
    --colour-black: #0D0D0D;
    --colour-code-bg: #1a1a2e;
    --colour-code-accent: #16213e;

    /* Hero colours - Vibrant, magical theme */
    --colour-hero-bg: #667eea;
    --colour-hero-accent: #764ba2;
    --colour-text-hero: #1A202C;

    /* Gradient Colours */
    --gradient-primary: linear-gradient(135deg, #E67E22 0%, #61DAFB 50%, #5436DA 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-claude: linear-gradient(135deg, rgba(84, 54, 218, 0.1) 0%, rgba(84, 54, 218, 0.05) 100%);

    /* Typography - Inter for readability and warmth */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'Fira Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    --font-family-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Spacing */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */
    --spacing-3xl: 6rem;     /* 96px */

    /* Border Radius */
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 100ms ease-out;
    --transition-base: 120ms ease-out;
    --transition-slow: 200ms ease-out;

    /* Container */
    --container-max-width: 1200px;
    --container-padding: 1.5rem;
}

/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--colour-grey-900);
    background-color: var(--colour-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

ul, ol {
    list-style: none;
}

code {
    font-family: var(--font-family-mono);
    font-size: 0.9em;
    background-color: var(--colour-grey-100);
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--colour-grey-800);
}

/* ===================================
   Accessibility
   =================================== */

.skip-link {
    position: fixed;
    top: var(--spacing-sm);
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: var(--colour-claude);
    color: var(--colour-white);
    padding: var(--spacing-sm) var(--spacing-lg);
    text-decoration: none;
    z-index: 9999;
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-base);
}

.skip-link:focus {
    transform: translateX(-50%) translateY(0);
    outline: 3px solid var(--colour-white);
    outline-offset: 3px;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--colour-claude);
    outline-offset: 2px;
}

/* Enhanced focus for keyboard navigation mode */
body.keyboard-nav *:focus {
    outline: 3px solid var(--colour-claude);
    outline-offset: 3px;
}

/* ===================================
   Container & Layout
   =================================== */

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--colour-black);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-3xl);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

strong {
    font-weight: var(--font-weight-semibold);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
}

.btn .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--colour-primary);
    color: var(--colour-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--colour-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--colour-grey-800);
    color: var(--colour-white);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--colour-grey-900);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--colour-white);
    border: 2px solid var(--colour-white);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--colour-white);
    color: var(--colour-grey-900);
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: var(--font-size-lg);
}

.btn-large .icon {
    width: 24px;
    height: 24px;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-sm);
}

.btn-sm .icon {
    width: 16px;
    height: 16px;
}

/* ===================================
   Sections
   =================================== */

.section {
    padding: var(--spacing-2xl) 0;
}

.section-light {
    background-color: var(--colour-white);
}

.section-dark {
    background-color: var(--colour-grey-900);
    color: var(--colour-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
    color: var(--colour-white);
}

.section-gradient {
    background: var(--gradient-hero);
    color: var(--colour-white);
}

.section-gradient .section-title {
    color: var(--colour-white);
}

.section-gradient .section-intro {
    color: var(--colour-grey-300);
}

.section-claude {
    background: var(--gradient-claude);
}

.section-cta {
    background: var(--gradient-primary);
    color: var(--colour-white);
    text-align: center;
}

.section-cta h2 {
    color: var(--colour-white);
}

.section-title {
    text-align: center;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-sm);
}

.section-intro {
    text-align: center;
    font-size: var(--font-size-lg);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    color: var(--colour-grey-700);
}

.section-dark .section-intro {
    color: var(--colour-grey-300);
}

/* ===================================
   Sticky Navigation
   =================================== */

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(97, 218, 251, 0.2);
    padding: var(--spacing-sm) 0;
    transform: translateY(-100%);
    transition: transform var(--transition-base);
}

.sticky-nav.visible {
    transform: translateY(0);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
    color: var(--colour-white);
    text-decoration: none;
}

.nav-logo:hover,
.nav-logo:focus {
    color: var(--colour-react);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-links a {
    color: var(--colour-grey-300);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: color var(--transition-base);
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--colour-react);
}

.nav-cta {
    background: var(--colour-primary) !important;
    color: var(--colour-white) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.nav-cta:hover,
.nav-cta:focus {
    background: var(--colour-primary-dark) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--colour-white);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: var(--spacing-lg);
    right: var(--spacing-lg);
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--colour-primary);
    color: var(--colour-white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover,
.back-to-top:focus {
    background: var(--colour-primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: var(--gradient-hero);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--colour-primary);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: background-position;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating orbs for magical effect */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(240, 147, 251, 0.2) 0%, transparent 30%),
        radial-gradient(circle at 60% 60%, rgba(102, 126, 234, 0.15) 0%, transparent 35%);
    animation: floatOrbs 20s ease-in-out infinite;
    pointer-events: none;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes floatOrbs {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(2%, 2%) rotate(2deg); }
    50% { transform: translate(-1%, 3%) rotate(-1deg); }
    75% { transform: translate(1%, -2%) rotate(1deg); }
}

/* Sparkle particles */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(255, 255, 255, 0.8) 50%, transparent 50%),
        radial-gradient(2px 2px at 30% 70%, rgba(255, 255, 255, 0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 50% 30%, rgba(255, 255, 255, 0.7) 50%, transparent 50%),
        radial-gradient(2px 2px at 70% 80%, rgba(255, 255, 255, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.6) 50%, transparent 50%),
        radial-gradient(3px 3px at 15% 60%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(3px 3px at 85% 15%, rgba(255, 255, 255, 0.5) 50%, transparent 50%),
        radial-gradient(2px 2px at 45% 90%, rgba(255, 255, 255, 0.6) 50%, transparent 50%),
        radial-gradient(2px 2px at 75% 50%, rgba(255, 255, 255, 0.4) 50%, transparent 50%),
        radial-gradient(2px 2px at 25% 35%, rgba(255, 255, 255, 0.5) 50%, transparent 50%);
    animation: sparkle 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

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

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xl);
}

.badges img {
    display: inline-block;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition-base);
}

.badges img:hover {
    transform: translateY(-2px);
}

.hero-title {
    font-family: var(--font-family-heading);
    font-size: calc(var(--font-size-5xl) * 1.2);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
    color: var(--colour-white);
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-normal);
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.95);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-subtitle strong {
    color: var(--colour-white);
    font-weight: var(--font-weight-semibold);
}

.hero-description {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    line-height: 1.7;
    text-wrap: pretty;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* Hero button enhancements for magical theme */
.hero .btn-primary {
    background: var(--colour-white);
    color: var(--colour-hero-bg);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.hero .btn-primary:hover,
.hero .btn-primary:focus {
    background: var(--colour-white);
    color: var(--colour-hero-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--colour-white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero .btn-secondary:hover,
.hero .btn-secondary:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons-large {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-xl);
}

/* Hero Next Step Callout */
.hero-next-step {
    margin-top: var(--spacing-lg);
    text-align: center;
    animation: gentle-bounce 2s ease-in-out infinite;
}

.hero-next-step .hero-arrow {
    display: block;
    font-size: 1.5rem;
    color: var(--colour-white);
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-next-step p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-next-step code {
    background: rgba(255, 255, 255, 0.2);
    color: var(--colour-white);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: var(--font-family-mono);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.hero-steps {
    list-style: none;
    counter-reset: hero-step;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.hero-steps li {
    counter-increment: hero-step;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-xs);
    padding-left: 2rem;
    position: relative;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.hero-steps li::before {
    content: counter(hero-step);
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--colour-white);
}

.hero-steps-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-sm);
}

.hero-steps-note a {
    color: var(--colour-white);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-steps-note a:hover {
    color: var(--colour-accent-light);
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* ===================================
   Hero Steps
   =================================== */

.hero-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
}

.hero-step {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.hero-step:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--colour-white);
    color: var(--colour-hero-bg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.hero-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
    min-width: 0;
}

.hero-step-content strong {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--colour-white);
}

.hero-step-content span {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
}

.hero-step-content code {
    background: rgba(255, 255, 255, 0.2);
    color: var(--colour-white);
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-family-mono);
    font-size: 0.9em;
}

.hero-step .btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
    flex-shrink: 0;
}

.hero-step .btn-sm .icon {
    width: 16px;
    height: 16px;
}

/* ===================================
   Hero Prerequisites
   =================================== */

.hero-prereqs {
    max-width: 700px;
    margin: var(--spacing-md) auto 0;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.hero-prereqs strong {
    color: var(--colour-white);
}

/* ===================================
   Hero First Step (Common Step)
   =================================== */

.hero-first-step {
    max-width: 500px;
    margin: var(--spacing-xl) auto 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.hero-first-step-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--colour-white);
    color: var(--colour-hero-bg);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-first-step-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--colour-white);
    margin: 0 0 var(--spacing-xs);
}

.hero-first-step-desc {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 var(--spacing-md);
}

.hero-first-step .btn-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
}

.hero-first-step .btn-large .icon {
    width: 24px;
    height: 24px;
}

/* ===================================
   Hero Flow Connector (Bezier Arrows)
   =================================== */

.hero-flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: var(--spacing-md) auto;
    max-width: 400px;
}

.hero-flow-arrows {
    width: 100%;
    height: 80px;
    max-width: 400px;
}

.hero-flow-arrow-path {
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 2;
    fill: none;
}

.hero-flow-arrow-head {
    fill: rgba(255, 255, 255, 0.4);
}

.hero-flow-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    font-weight: var(--font-weight-medium);
    margin-top: -0.5rem;
}

/* ===================================
   Hero Two-Path Layout
   =================================== */

.hero-paths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.hero-path {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

.hero-path-recommended {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero-path-badge {
    position: absolute;
    top: -10px;
    right: var(--spacing-md);
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--colour-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-path-step-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--colour-white);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-path-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--colour-white);
    margin: 0 0 var(--spacing-xs);
    text-align: center;
}

.hero-path-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin: 0 0 var(--spacing-md);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--colour-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-path {
    width: 100%;
    margin-bottom: var(--spacing-sm);
}

.hero-path-instruction {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

.hero-path-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.hero-path-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.hero-path-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--colour-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.hero-path-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-path-step-content strong {
    color: var(--colour-white);
    font-size: var(--font-size-base);
}

.hero-path-step-content code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-family-mono);
}

.hero-path-step-hint {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
}

.hero-path-step .btn-path {
    margin-bottom: 0;
}

.hero-path-code {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
}

.hero-path-code code {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    background: none;
    padding: 0;
}

.hero-path .hero-steps {
    margin: 0;
    max-width: none;
}

.hero-path .hero-step {
    padding: var(--spacing-sm) var(--spacing-md);
}

.hero-path .hero-step-number {
    width: 28px;
    height: 28px;
    font-size: var(--font-size-base);
}

.hero-path .hero-step-content strong {
    font-size: var(--font-size-base);
}

.hero-path .hero-step-content span {
    font-size: var(--font-size-xs);
}

/* ===================================
   Hero Final Step (Step 3)
   =================================== */

.hero-final-step {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg) var(--spacing-xl);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.hero-final-step-badge {
    display: inline-block;
    background: var(--colour-white);
    color: var(--colour-hero-bg);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--spacing-sm);
}

.hero-final-step-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--colour-white);
    margin: 0 0 var(--spacing-xs);
}

.hero-final-step-title code {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-family-mono);
}

.hero-final-step-desc {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.hero-flow-converge {
    margin-top: 0;
}

@media (max-width: 768px) {
    .hero-first-step {
        margin: var(--spacing-lg) auto 0;
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .hero-first-step-title {
        font-size: var(--font-size-xl);
    }

    .hero-flow-connector {
        margin: var(--spacing-sm) auto;
    }

    .hero-flow-arrows {
        height: 60px;
    }

    .hero-paths {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .hero-path {
        padding: var(--spacing-md);
    }

    .hero-path-badge {
        top: -8px;
        right: var(--spacing-sm);
    }

    .hero-final-step {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    .hero-final-step-title {
        font-size: var(--font-size-xl);
    }

    /* Hide converging arrows on mobile - just use simple connector */
    .hero-flow-converge .hero-flow-arrows {
        display: none;
    }

    .hero-flow-converge::after {
        content: '';
        display: block;
        width: 2px;
        height: 40px;
        background: rgba(255, 255, 255, 0.4);
        margin: 0 auto;
    }
}

/* ===================================
   Quick Start Two-Path Layout
   =================================== */

.quick-start-paths {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.quick-start-path {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.quick-start-path-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--colour-grey-900);
    margin: 0 0 var(--spacing-md);
    text-align: center;
}

.quick-start-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.quick-start-divider::before,
.quick-start-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--colour-grey-300);
}

.quick-start-divider span {
    padding: 0 var(--spacing-md);
    color: var(--colour-grey-600);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===================================
   Beginner Callout (Jason-friendly)
   =================================== */

.beginner-callout {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    max-width: 700px;
    margin: var(--spacing-xl) auto 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(84, 54, 218, 0.2);
    border: 2px solid var(--colour-claude);
    text-align: left;
    animation: floatIn 0.6s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.beginner-callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.beginner-callout-content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--colour-text-hero);
    margin-bottom: 0.25rem;
}

.beginner-callout-content p {
    font-size: var(--font-size-base);
    color: var(--colour-grey-700);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.beginner-callout-content code {
    background: rgba(84, 54, 218, 0.1);
    color: var(--colour-claude);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-family-mono);
    font-weight: var(--font-weight-medium);
}

/* ===================================
   LLM Helper Links
   =================================== */

.llm-helper-links {
    max-width: 600px;
    margin: var(--spacing-lg) auto 0;
    padding: var(--spacing-md) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    animation: floatIn 0.8s ease-out 0.3s both;
}

.llm-helper-text {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-relaxed);
}

.llm-helper-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: nowrap;
}

.llm-helper-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex: 1;
    max-width: 120px;
}

.llm-helper-link:hover,
.llm-helper-link:focus {
    transform: translateY(-3px);
    background: var(--colour-white);
    border-color: var(--colour-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.llm-helper-icon {
    width: 40px;
    height: 40px;
    transition: transform var(--transition-base);
}

.llm-helper-link:hover .llm-helper-icon,
.llm-helper-link:focus .llm-helper-icon {
    transform: scale(1.1);
}

.llm-helper-name {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--colour-grey-700);
}

.llm-helper-link:hover .llm-helper-name,
.llm-helper-link:focus .llm-helper-name {
    color: var(--colour-grey-900);
}

/* ===================================
   Value Props Section
   =================================== */

.value-props {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.value-prop {
    text-align: center;
    padding: var(--spacing-lg);
}

.value-prop-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.value-prop h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--colour-grey-900);
}

.value-prop p {
    font-size: var(--font-size-base);
    color: var(--colour-grey-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* ===================================
   Comparison Grid Section
   =================================== */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.comparison-column {
    background: var(--colour-grey-800);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.comparison-column.perfect {
    background: linear-gradient(135deg, rgba(97, 218, 251, 0.1) 0%, rgba(84, 54, 218, 0.1) 100%);
    background-color: var(--colour-grey-800);
    border: 2px solid rgba(97, 218, 251, 0.3);
}

.comparison-column.not-suitable {
    background-color: var(--colour-grey-800);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.comparison-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--colour-white);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
    position: relative;
    font-size: var(--font-size-base);
    color: var(--colour-grey-200);
    line-height: var(--line-height-relaxed);
}

.comparison-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--colour-react);
    border-radius: 50%;
}

.comparison-list a {
    color: var(--colour-react);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--transition-base);
}

.comparison-list a:hover,
.comparison-list a:focus {
    color: var(--colour-white);
    text-decoration-color: var(--colour-white);
}

/* ===================================
   Free Tier Highlights Section
   =================================== */

.free-tier-section {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.05) 0%, rgba(84, 54, 218, 0.05) 100%);
    border-top: 2px solid var(--colour-grey-200);
    border-bottom: 2px solid var(--colour-grey-200);
}

.free-tier-card {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.free-tier-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

.free-tier-table th,
.free-tier-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--colour-grey-200);
}

.free-tier-table th {
    font-weight: var(--font-weight-semibold);
    color: var(--colour-grey-700);
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.free-tier-table td {
    color: var(--colour-grey-800);
    font-size: var(--font-size-base);
}

.free-tier-table td:first-child {
    font-weight: var(--font-weight-medium);
    color: var(--colour-text-hero);
}

.free-tier-table td:last-child {
    color: var(--colour-grey-600);
    font-size: var(--font-size-sm);
}

.free-tier-note {
    text-align: center;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--colour-primary);
    margin: 0;
}

/* ===================================
   Features Grid Section
   =================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-card {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--colour-grey-200);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--colour-react);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--colour-grey-900);
}

.feature-card p {
    font-size: var(--font-size-base);
    color: var(--colour-grey-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0;
}

/* ===================================
   Technology Stack Section
   =================================== */

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.tech-category {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.tech-category-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--colour-grey-900);
    border-bottom: 2px solid var(--colour-grey-200);
    padding-bottom: var(--spacing-sm);
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: var(--colour-grey-50);
    border-radius: var(--radius-md);
}

.tech-name {
    font-weight: var(--font-weight-medium);
    color: var(--colour-grey-900);
    font-size: var(--font-size-base);
}

.tech-version {
    font-size: var(--font-size-sm);
    color: var(--colour-grey-600);
    font-family: var(--font-family-mono);
}

/* ===================================
   Quick Start Steps Section
   =================================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.steps-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
    .steps-grid-3 {
        grid-template-columns: 1fr;
    }
}

.step {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: all var(--transition-base);
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--colour-white);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.step-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--colour-grey-900);
}

.step-description {
    font-size: var(--font-size-base);
    color: var(--colour-grey-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
}

.step-code {
    background: var(--colour-grey-900);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.step-code code {
    background: transparent;
    color: var(--colour-grey-200);
    font-size: var(--font-size-sm);
    display: block;
    padding: 0;
    line-height: var(--line-height-relaxed);
}

.quick-start-cta {
    margin-top: var(--spacing-xl);
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--gradient-claude);
    border-radius: var(--radius-xl);
}

.quick-start-text {
    font-size: var(--font-size-lg);
    color: var(--colour-grey-800);
    margin: 0;
}

/* ===================================
   Examples Section
   =================================== */

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.example-category {
    background: var(--colour-grey-800);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.example-category-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--colour-white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: var(--spacing-sm);
}

.example-list {
    list-style: none;
}

.example-list li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-md);
    position: relative;
    font-size: var(--font-size-base);
    color: var(--colour-grey-200);
    line-height: var(--line-height-relaxed);
}

.example-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: var(--spacing-sm);
    color: var(--colour-react);
    font-weight: var(--font-weight-bold);
}

.examples-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ===================================
   Use Cases Section
   =================================== */

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.use-case-card {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid var(--colour-grey-200);
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--colour-primary);
}

.use-case-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.use-case-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--colour-grey-900);
}

.use-case-description {
    font-size: var(--font-size-base);
    color: var(--colour-grey-700);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
}

.use-case-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-top: auto;
}

.use-case-tag {
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.75rem;
    background: var(--colour-grey-100);
    color: var(--colour-grey-700);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

/* ===================================
   Workflow Comparison Section
   =================================== */

.section-workflow {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.workflow-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.workflow-column {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.workflow-column.traditional {
    border: 2px solid var(--colour-grey-300);
}

.workflow-column.modern {
    border: 3px solid var(--colour-primary);
    position: relative;
    overflow: hidden;
}

.workflow-column.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.workflow-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--colour-grey-900);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--colour-grey-200);
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.workflow-step {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

.workflow-step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--colour-grey-200);
    color: var(--colour-grey-700);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.workflow-column.modern .workflow-step-number {
    background: var(--colour-primary);
    color: var(--colour-white);
}

.workflow-step-content h4 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.25rem;
    color: var(--colour-grey-900);
}

.workflow-step-content p {
    font-size: var(--font-size-sm);
    color: var(--colour-grey-600);
    line-height: var(--line-height-relaxed);
    margin-bottom: 0.5rem;
}

.workflow-time {
    display: inline-block;
    font-size: var(--font-size-xs);
    padding: 0.25rem 0.5rem;
    background: var(--colour-grey-100);
    color: var(--colour-grey-700);
    border-radius: var(--radius-sm);
    font-weight: var(--font-weight-medium);
}

.workflow-column.modern .workflow-time {
    background: rgba(230, 126, 34, 0.1);
    color: var(--colour-primary);
}

.workflow-total {
    font-size: var(--font-size-lg);
    padding: var(--spacing-md);
    background: var(--colour-grey-100);
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--colour-grey-800);
}

.workflow-total-success {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15) 0%, rgba(97, 218, 251, 0.15) 100%);
    color: var(--colour-primary);
    font-weight: var(--font-weight-semibold);
}

.workflow-savings {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.workflow-savings-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    color: var(--colour-white);
}

.workflow-savings-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.workflow-savings-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 0.5rem;
    color: var(--colour-white);
}

.workflow-savings-content p {
    font-size: var(--font-size-lg);
    margin: 0;
    opacity: 0.95;
}

/* ===================================
   PRP Spotlight Section
   =================================== */

.prp-spotlight {
    background: linear-gradient(135deg, #5436DA 0%, #7C5FDC 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.prp-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}

.prp-spotlight-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--colour-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(10px);
}

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

.prp-spotlight-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.prp-spotlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    line-height: 1;
}

.prp-spotlight-title {
    font-size: var(--font-size-3xl);
    color: var(--colour-white);
    margin-bottom: 0.5rem;
    font-family: var(--font-family-heading);
}

.prp-spotlight-title code {
    background: rgba(255, 255, 255, 0.15);
    color: var(--colour-white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family-mono);
}

.prp-spotlight-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.prp-spotlight-description {
    color: var(--colour-white);
}

.prp-spotlight-description p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--spacing-lg);
}

.prp-spotlight-description code {
    background: rgba(255, 255, 255, 0.15);
    color: var(--colour-white);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.prp-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.prp-benefit {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}

.prp-benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.prp-benefit strong {
    display: block;
    font-size: var(--font-size-lg);
    margin-bottom: 0.25rem;
    color: var(--colour-white);
}

.prp-benefit p {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: var(--line-height-relaxed);
}

.prp-workflow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}

.prp-workflow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    color: var(--colour-white);
    font-weight: var(--font-weight-medium);
    min-width: min(120px, 100%);
    text-align: center;
}

.prp-workflow-number {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
}

.prp-workflow-success {
    background: rgba(97, 218, 251, 0.3);
    border: 2px solid rgba(97, 218, 251, 0.6);
}

.prp-workflow-arrow {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.6);
    font-weight: var(--font-weight-bold);
}

.commands-section-title {
    font-size: var(--font-size-2xl);
    text-align: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    color: var(--colour-grey-900);
}

/* ===================================
   Claude Code Commands Section
   =================================== */

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.command-card {
    background: var(--colour-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid var(--colour-grey-200);
    position: relative;
}

.command-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--colour-claude);
}

.command-card-highlight {
    border-color: var(--colour-claude);
    background: linear-gradient(135deg, rgba(84, 54, 218, 0.03) 0%, rgba(84, 54, 218, 0.01) 100%);
}

.command-card-highlight:hover {
    border-color: var(--colour-claude);
    box-shadow: 0 10px 30px rgba(84, 54, 218, 0.3);
}

.command-name {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--colour-claude);
    margin-bottom: var(--spacing-sm);
}

.command-description {
    font-size: var(--font-size-base);
    color: var(--colour-grey-700);
    line-height: var(--line-height-relaxed);
    margin: 0;
}

.command-badge {
    display: inline-block;
    margin-top: var(--spacing-sm);
    padding: 0.25rem 0.75rem;
    background: var(--colour-claude);
    color: var(--colour-white);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

/* ===================================
   Final CTA Section
   =================================== */

.cta-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    color: var(--colour-white);
}

.cta-description {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Footer
   =================================== */

.footer {
    background: var(--colour-grey-900);
    color: var(--colour-grey-300);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--colour-white);
    margin-bottom: var(--spacing-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a {
    color: var(--colour-grey-300);
    transition: color var(--transition-base);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--colour-react);
}

.footer-bottom {
    border-top: 1px solid var(--colour-grey-800);
    padding-top: var(--spacing-lg);
    text-align: center;
}

.footer-license,
.footer-credit {
    font-size: var(--font-size-sm);
    color: var(--colour-grey-400);
    margin-bottom: var(--spacing-xs);
}

.footer-license a {
    color: var(--colour-grey-400);
    text-decoration: underline;
}

.footer-license a:hover {
    color: var(--colour-react);
}

/* ===================================
   Animations
   =================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Stagger animation delays */
.value-prop:nth-child(1) { animation-delay: 0.1s; }
.value-prop:nth-child(2) { animation-delay: 0.2s; }
.value-prop:nth-child(3) { animation-delay: 0.3s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.15s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.25s; }
.feature-card:nth-child(5) { animation-delay: 0.3s; }
.feature-card:nth-child(6) { animation-delay: 0.35s; }

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }
.step:nth-child(4) { animation-delay: 0.4s; }

/* Pending animation state */
.fade-in-pending {
    opacity: 0;
    transform: translateY(30px);
}

/* ===================================
   Motion Preferences
   =================================== */

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

    .fade-in-up,
    .fade-in-pending {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 4rem;
        --container-padding: 1rem;
    }

    /* Hero gradient optimisation for mobile */
    .hero {
        animation: gradientShift 12s ease infinite;
        background-size: 300% 300%;
    }

    /* Simplify pseudo-element animations for mobile performance */
    .hero::before {
        animation: floatOrbs 30s ease-in-out infinite;
        top: -25%;
        left: -25%;
        width: 150%;
        height: 150%;
    }

    .hero::after {
        animation: none;
        opacity: 0.7;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(26, 26, 46, 0.98);
        flex-direction: column;
        justify-content: center;
        gap: var(--spacing-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: var(--font-size-xl);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .badges {
        gap: 6px;
        margin-bottom: var(--spacing-lg);
    }

    .badges img {
        height: 20px;
    }

    /* Hero Steps mobile */
    .hero-steps {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
    }

    .hero-step {
        padding: var(--spacing-sm) var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .hero-step-number {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-base);
    }

    .hero-step-content strong {
        font-size: var(--font-size-base);
    }

    .hero-step-content span {
        font-size: var(--font-size-xs);
    }

    .hero-step .btn-sm {
        padding: 0.4rem 0.75rem;
        font-size: var(--font-size-xs);
    }

    /* LLM Helper Links mobile */
    .llm-helper-links {
        margin-left: var(--spacing-sm);
        margin-right: var(--spacing-sm);
        padding: var(--spacing-md);
    }

    .llm-helper-icons {
        gap: var(--spacing-xs);
        flex-wrap: wrap;
    }

    .llm-helper-link {
        padding: 0.75rem 1rem;
        max-width: 100px;
    }

    .llm-helper-icon {
        width: 32px;
        height: 32px;
    }

    .llm-helper-name {
        font-size: var(--font-size-xs);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .cta-title {
        font-size: var(--font-size-3xl);
    }

    .cta-description {
        font-size: var(--font-size-lg);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .features-grid,
    .tech-stack-grid,
    .steps-grid,
    .commands-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }

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

    .value-props {
        grid-template-columns: 1fr;
    }

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

    /* Hide traditional workflow on mobile - focus on the solution */
    .workflow-column.traditional {
        display: none;
    }

    .workflow-savings-content {
        flex-direction: column;
        text-align: center;
    }

    .prp-workflow {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .prp-workflow-step {
        width: 100%;
        min-width: unset;
    }

    .prp-workflow-arrow {
        transform: rotate(90deg);
    }

    .prp-benefits {
        grid-template-columns: 1fr;
    }

    .prp-spotlight-header {
        flex-direction: column;
    }

    .prp-spotlight {
        padding: var(--spacing-lg);
    }

    .prp-spotlight-title {
        font-size: var(--font-size-2xl);
    }

    /* Free Tier section mobile - card layout */
    .free-tier-card {
        padding: var(--spacing-md);
    }

    .free-tier-table {
        display: block;
    }

    .free-tier-table thead {
        display: none;
    }

    .free-tier-table tbody {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .free-tier-table tr {
        display: flex;
        flex-direction: column;
        background: var(--colour-grey-50);
        border-radius: var(--radius-lg);
        padding: var(--spacing-md);
        border: 1px solid var(--colour-grey-200);
    }

    .free-tier-table td {
        display: block;
        padding: var(--spacing-xs) 0;
        border-bottom: none;
        text-align: left;
    }

    .free-tier-table td:first-child {
        font-size: var(--font-size-lg);
        color: var(--colour-primary);
        padding-bottom: var(--spacing-xs);
        border-bottom: 1px solid var(--colour-grey-200);
        margin-bottom: var(--spacing-xs);
    }

    .free-tier-table td:nth-child(2) {
        font-weight: var(--font-weight-semibold);
        color: var(--colour-grey-900);
    }

    .free-tier-table td:last-child {
        font-size: var(--font-size-sm);
        color: var(--colour-grey-600);
    }

    /* Add labels for mobile cards */
    .free-tier-table td:nth-child(2)::before {
        content: 'Free: ';
        font-weight: var(--font-weight-normal);
        color: var(--colour-grey-600);
    }

    .free-tier-table td:last-child::before {
        content: 'Enough for: ';
        font-weight: var(--font-weight-normal);
    }

    /* Workflow steps mobile */
    .workflow-step-content h4 {
        font-size: var(--font-size-base);
    }

    .workflow-step-content p {
        font-size: var(--font-size-xs);
    }

    /* Examples grid */
    .examples-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --spacing-3xl: 3rem;
        --spacing-2xl: 2.5rem;
        --container-padding: 0.75rem;
    }

    .hero {
        padding: var(--spacing-2xl) 0;
        animation: gradientShift 15s ease infinite;
    }

    /* Disable heavy pseudo-element animations on small mobile for performance */
    .hero::before {
        animation: none;
        opacity: 0.5;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
    }

    .hero::after {
        display: none;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .section-intro {
        font-size: var(--font-size-base);
    }

    .badges {
        gap: 4px;
        margin-bottom: var(--spacing-lg);
    }

    .badges img {
        height: 18px;
    }

    .btn-large {
        padding: 1rem 1.5rem;
        font-size: var(--font-size-base);
    }

    .btn {
        padding: 0.875rem 1.5rem;
    }

    /* Hero Steps small screens */
    .hero-steps {
        margin-left: 0;
        margin-right: 0;
        gap: var(--spacing-sm);
    }

    .hero-step {
        flex-wrap: wrap;
        padding: var(--spacing-sm);
    }

    .hero-step-number {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-sm);
    }

    .hero-step .btn-sm {
        width: 100%;
        margin-top: var(--spacing-xs);
        justify-content: center;
    }

    /* LLM Helper Links small screens */
    .llm-helper-links {
        margin-left: 0;
        margin-right: 0;
        padding: var(--spacing-sm);
    }

    .llm-helper-text {
        font-size: var(--font-size-sm);
    }

    .llm-helper-icons {
        gap: var(--spacing-xs);
    }

    .llm-helper-link {
        padding: 0.625rem 0.875rem;
        max-width: 90px;
    }

    .llm-helper-icon {
        width: 28px;
        height: 28px;
    }

    .llm-helper-name {
        font-size: 0.7rem;
    }

    /* Free Tier section small screens */
    .free-tier-card {
        padding: var(--spacing-sm);
        border-radius: var(--radius-lg);
    }

    .free-tier-table tbody {
        gap: var(--spacing-sm);
    }

    .free-tier-table tr {
        padding: var(--spacing-sm);
    }

    .free-tier-table td:first-child {
        font-size: var(--font-size-base);
    }

    .free-tier-note {
        font-size: var(--font-size-base);
    }

    /* Cards and panels */
    .feature-card,
    .use-case-card,
    .command-card,
    .step,
    .tech-category,
    .example-category,
    .comparison-column,
    .workflow-column {
        padding: var(--spacing-md);
    }

    /* PRP spotlight small screens */
    .prp-spotlight {
        padding: var(--spacing-md);
        border-radius: var(--radius-lg);
    }

    .prp-spotlight-title {
        font-size: var(--font-size-xl);
    }

    .prp-spotlight-subtitle {
        font-size: var(--font-size-base);
    }

    .prp-spotlight-description p {
        font-size: var(--font-size-base);
    }

    .prp-benefit {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }

    .prp-benefit-icon {
        font-size: 1.5rem;
    }

    .prp-workflow {
        padding: var(--spacing-md);
    }

    /* Workflow comparison small screens */
    .workflow-title {
        font-size: var(--font-size-xl);
    }

    .workflow-step-number {
        width: 28px;
        height: 28px;
        font-size: var(--font-size-sm);
    }

    .workflow-savings {
        padding: var(--spacing-md);
    }

    .workflow-savings-icon {
        font-size: 2rem;
    }

    .workflow-savings-content h3 {
        font-size: var(--font-size-xl);
    }

    .workflow-savings-content p {
        font-size: var(--font-size-base);
    }

    /* Comparison section */
    .comparison-title {
        font-size: var(--font-size-xl);
    }

    /* CTA section */
    .cta-title {
        font-size: var(--font-size-2xl);
    }

    .cta-description {
        font-size: var(--font-size-base);
    }

    /* Footer small screens */
    .footer {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }

    .footer-content {
        gap: var(--spacing-lg);
    }
}

/* Extra small screens (360px and below) */
@media (max-width: 360px) {
    :root {
        --container-padding: 0.5rem;
    }

    .hero-title {
        font-size: 1.375rem;
    }

    .section-title {
        font-size: var(--font-size-lg);
    }

    .step-code code {
        font-size: var(--font-size-xs);
        word-break: break-all;
    }

    .prp-spotlight-title {
        font-size: var(--font-size-lg);
    }

    .prp-spotlight-title code {
        display: block;
        margin-top: 0.5rem;
    }
}

/* Large screens (1400px and above) */
@media (min-width: 1400px) {
    :root {
        --container-max-width: 1400px;
    }
}

/* ===================================
   Technical Details (Collapsible)
   =================================== */

.technical-details {
    margin-top: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.technical-details summary {
    padding: var(--spacing-sm) var(--spacing-md);
    cursor: pointer;
    color: var(--colour-grey-300);
    font-size: var(--font-size-sm);
    transition: background var(--transition-base);
}

.technical-details summary:hover {
    background: rgba(255, 255, 255, 0.05);
}

.technical-details summary strong {
    color: var(--colour-white);
}

.technical-details-content {
    padding: var(--spacing-md);
    padding-top: 0;
    color: var(--colour-grey-300);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.technical-details-content p {
    margin-bottom: var(--spacing-sm);
}

.technical-details-content p:last-child {
    margin-bottom: 0;
}

.technical-comparison-table {
    width: 100%;
    margin: var(--spacing-md) 0;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.technical-comparison-table th,
.technical-comparison-table td {
    padding: var(--spacing-xs) var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.technical-comparison-table th {
    color: var(--colour-white);
    font-weight: var(--font-weight-semibold);
    background: rgba(255, 255, 255, 0.05);
}

.technical-comparison-table td {
    color: var(--colour-grey-300);
}

.technical-comparison-table tr:last-child td {
    border-bottom: none;
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .hero,
    .cta-buttons,
    .cta-buttons-large,
    .footer {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }
}
