/* ============================================================
   Folder Colorizer for Windows 11 — Premium Landing Page
   Inspired by microsoft.com/windows with premium enhancements
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---------- Custom Properties ---------- */
:root {
    /* Core palette */
    --ms-blue: #0078D4;
    --ms-blue-light: #50A0E8;
    --ms-blue-hover: #1A86DB;
    --ms-blue-dark: #005A9E;
    --ms-purple: #8661C5;
    --ms-lavender: #E8DEF8;
    --ms-pink: #E040A0;

    /* Surfaces */
    --surface-white: #FFFFFF;
    --surface-light: #F8F9FB;
    --surface-card: rgba(255, 255, 255, 0.65);
    --surface-glass: rgba(255, 255, 255, 0.45);

    /* Text */
    --text-primary: #11100E;
    --text-secondary: #5C5C5C;
    --text-caption: #9A9A9A;

    /* Borders */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-card: rgba(0, 0, 0, 0.08);
    --border-glass: rgba(255, 255, 255, 0.35);

    /* Radii */
    --r-xs: 4px;
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-2xl: 32px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
    --shadow-screenshot: 0 32px 80px rgba(0,0,0,0.18), 0 12px 28px rgba(0,0,0,0.08);
    --shadow-glow-blue: 0 8px 32px rgba(0, 120, 212, 0.25);
    --shadow-glow-purple: 0 8px 32px rgba(134, 97, 197, 0.2);

    /* Layout */
    --content-max: 1180px;
    --section-pad: 140px;

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-primary);
    background: var(--surface-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: var(--ms-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover { text-decoration: underline; }

::selection {
    background: rgba(0, 120, 212, 0.15);
    color: var(--text-primary);
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ms-blue), var(--ms-purple), var(--ms-pink));
    z-index: 10000;
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
}

/* ---------- Container ---------- */
.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 32px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(200%) blur(24px);
    -webkit-backdrop-filter: saturate(200%) blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.navbar-brand:hover { text-decoration: none; }

.navbar-brand img { width: 22px; height: 22px; }

.navbar-brand span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.navbar-links a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    text-decoration: none;
}

.navbar-links .nav-cta {
    background: var(--ms-blue);
    color: #FFFFFF !important;
    padding: 7px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.navbar-links .nav-cta:hover {
    background: var(--ms-blue-hover);
    box-shadow: var(--shadow-glow-blue);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 56px;
    overflow: hidden;
    background: var(--surface-white);
}

/* Animated gradient mesh background */
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-mesh .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s ease-in-out infinite;
    will-change: transform;
}

.hero-mesh .blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.3), transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.hero-mesh .blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(134, 97, 197, 0.25), transparent 70%);
    bottom: 0%;
    left: 10%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.hero-mesh .blob-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 70%);
    top: 30%;
    left: 40%;
    animation-delay: -14s;
    animation-duration: 22s;
}

.hero-mesh .blob-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(224, 64, 160, 0.12), transparent 70%);
    top: 60%;
    right: 15%;
    animation-delay: -4s;
    animation-duration: 18s;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(30px, 40px) scale(1.03); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 80px 32px 60px;
}

/* Pill badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 8px;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fadeSlideUp 0.7s var(--ease-out-expo) 0.1s both;
}

.hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--ms-blue) 0%, var(--ms-purple) 50%, var(--ms-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.35s both;
}

/* Color chips */
.color-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.45s both;
}

.color-chip {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: default;
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
    position: relative;
}

.color-chip:hover {
    transform: translateY(-6px) scale(1.15);
}

.color-chip.red    { background: linear-gradient(135deg, #FF6B6B, #EE5A24); box-shadow: 0 4px 12px rgba(238,90,36,0.3); }
.color-chip.blue   { background: linear-gradient(135deg, #74B9FF, #0984E3); box-shadow: 0 4px 12px rgba(9,132,227,0.3); }
.color-chip.green  { background: linear-gradient(135deg, #55EFC4, #00B894); box-shadow: 0 4px 12px rgba(0,184,148,0.3); }
.color-chip.purple { background: linear-gradient(135deg, #A29BFE, #6C5CE7); box-shadow: 0 4px 12px rgba(108,92,231,0.3); }
.color-chip.orange { background: linear-gradient(135deg, #FFEAA7, #FDCB6E); box-shadow: 0 4px 12px rgba(253,203,110,0.3); }
.color-chip.black  { background: linear-gradient(135deg, #636E72, #2D3436); box-shadow: 0 4px 12px rgba(45,52,54,0.3); }

/* Tooltip on chips */
.color-chip::after {
    content: attr(data-label);
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-caption);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.25s ease;
    pointer-events: none;
}

.color-chip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* CTA group */
.cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.55s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn:hover { text-decoration: none; }

.btn-primary {
    background: linear-gradient(135deg, var(--ms-blue), #2563EB);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(0, 120, 212, 0.3);
}

.btn-primary:hover {
    color: #FFFFFF;
    box-shadow: 0 8px 32px rgba(0, 120, 212, 0.4);
    transform: translateY(-2px);
}

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

/* Shimmer effect on primary button */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    border: 1px solid var(--border-card);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    background: none;
    color: var(--ms-blue);
    padding: 10px 0;
    font-weight: 600;
    border: none;
    width: fit-content;
    overflow: visible;
}

.btn-link:hover { text-decoration: none; }

.btn-link .arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease-out-expo);
    margin-left: 4px;
}

.btn-link:hover .arrow {
    transform: translateX(5px);
}
.btn-link span:not(.arrow) {
    position: relative;
}
.btn-link span:not(.arrow)::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--ms-blue);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.btn-link:hover span:not(.arrow)::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Hero screenshot */
.hero-image-wrapper {
    position: relative;
    margin-top: 64px;
    max-width: 900px;
    width: 100%;
    animation: fadeSlideUp 1s var(--ease-out-expo) 0.65s both;
}

.hero-image-wrapper img {
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-screenshot);
    transition: transform 0.6s var(--ease-out-expo);
}

/* Decorative glow behind hero image */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(0, 120, 212, 0.12), rgba(134, 97, 197, 0.08), transparent 70%);
    filter: blur(60px);
    z-index: -1;
    border-radius: 50%;
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
    position: relative;
    padding: 60px 0;
    background: var(--surface-light);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    padding: 8px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---------- SECTION SHARED ---------- */
.section {
    position: relative;
    padding: var(--section-pad) 0;
}

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

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ms-blue);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(30px, 3.5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---------- FEATURES SECTION ---------- */
.features-section {
    background: var(--surface-white);
}

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

.feature-card {
    position: relative;
    background: var(--surface-light);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: 36px 32px;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
    overflow: hidden;
    /* 3D tilt ready */
    transform-style: preserve-3d;
    perspective: 800px;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Gradient border glow on hover */
.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 120, 212, 0.3), rgba(134, 97, 197, 0.2), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
}

.feature-icon.blue   { background: linear-gradient(135deg, rgba(0,120,212,0.12), rgba(0,120,212,0.05)); }
.feature-icon.green  { background: linear-gradient(135deg, rgba(0,184,148,0.12), rgba(0,184,148,0.05)); }
.feature-icon.purple { background: linear-gradient(135deg, rgba(108,92,231,0.12), rgba(108,92,231,0.05)); }
.feature-icon.orange { background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(249,115,22,0.05)); }
.feature-icon.red    { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.05)); }
.feature-icon.gray   { background: linear-gradient(135deg, rgba(100,100,100,0.12), rgba(100,100,100,0.05)); }

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- SHOWCASE SECTION ---------- */
.showcase-section {
    position: relative;
    overflow: hidden;
}

/* Large gradient background for showcase */
.showcase-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        #FFFFFF 0%,
        #EEE8F5 15%,
        #DAE5F5 40%,
        #E0D6F0 65%,
        #D6E4F7 85%,
        #FFFFFF 100%
    );
    z-index: 0;
}

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

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-text h2 {
    font-size: clamp(28px, 2.8vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.showcase-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 28px;
}

.showcase-image {
    position: relative;
}

.showcase-image img {
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-screenshot);
    transition: transform 0.6s var(--ease-out-expo);
}

.showcase-image:hover img {
    transform: scale(1.03) translateY(-4px);
}

/* Glow behind showcase images */
.showcase-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(0, 120, 212, 0.12), transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
}

/* ---------- HOW IT WORKS ---------- */
.how-section {
    background: var(--surface-white);
}

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

/* Connecting line between steps */
.how-steps::before {
    content: '';
    position: absolute;
    top: 52px;
    left: calc(16.66% + 24px);
    right: calc(16.66% + 24px);
    height: 2px;
    background: linear-gradient(90deg, var(--ms-blue), var(--ms-purple), var(--ms-pink));
    opacity: 0.25;
    border-radius: 1px;
}

.how-step {
    text-align: center;
    padding: 40px 28px;
    border-radius: var(--r-lg);
    background: var(--surface-light);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease;
    position: relative;
    z-index: 1;
}

.how-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--ms-blue), var(--ms-purple));
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    box-shadow: var(--shadow-glow-blue);
}

.how-step h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.how-step p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    text-align: center;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0A1628 0%, #0D2137 40%, #162544 100%);
    z-index: 0;
}

/* Decorative glows on dark CTA */
.cta-banner-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 120, 212, 0.3), transparent 70%);
    filter: blur(80px);
}

.cta-banner-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(134, 97, 197, 0.25), transparent 70%);
    filter: blur(80px);
}

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

.cta-banner h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.cta-banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.cta-banner .btn-primary {
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--surface-light);
    border-top: 1px solid var(--border-subtle);
    padding: 56px 0 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-brand:hover { text-decoration: none; }
.footer-brand img { width: 20px; height: 20px; }

.footer-copy {
    font-size: 13px;
    color: var(--text-caption);
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 56px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--ms-blue);
    text-decoration: none;
}

/* ============================================================
   SECONDARY PAGES
   ============================================================ */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        #D6E4F7 0%,
        #E0D6F0 30%,
        #EEE8F5 60%,
        #FFFFFF 100%
    );
    z-index: 0;
}

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

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 17px;
}

.doc-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 32px 140px;
}

.doc-card {
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: var(--r-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.doc-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    letter-spacing: -0.01em;
}

.doc-card h2:first-of-type { margin-top: 0; }

.doc-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.doc-card ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.doc-card li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.doc-card code {
    background: rgba(0, 120, 212, 0.08);
    color: var(--ms-blue);
    padding: 2px 8px;
    border-radius: var(--r-xs);
    font-size: 13px;
    font-weight: 500;
}

.doc-card .license-text {
    font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.9;
    white-space: pre-wrap;
    background: var(--surface-light);
    padding: 28px;
    border-radius: var(--r-md);
    border: 1px solid var(--border-subtle);
}

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

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-item,
    .showcase-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
        gap: 48px;
    }

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

@media (max-width: 768px) {
    :root { --section-pad: 100px; }

    .container { padding: 0 20px; }

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

    .how-steps {
        grid-template-columns: 1fr;
    }

    .how-steps::before { display: none; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .footer-inner { flex-direction: column; }
    .footer-links-group { flex-direction: column; gap: 28px; }

    .hero-title { font-size: 38px; }

    .cta-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 300px; justify-content: center; }
}

@media (max-width: 480px) {
    .navbar-links { display: none; }
    .color-chips { gap: 6px; }
    .color-chip { width: 30px; height: 30px; border-radius: 8px; }
    .hero-content { padding: 60px 20px 40px; }
    .doc-card { padding: 28px 20px; }
}
