/* ==========================================================================
   ProFTPD Modern Website Stylesheet
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #0a2463;
    --color-primary-light: #1e4db7;
    --color-primary-lighter: #e8eef9;
    --color-accent: #17a2b8;
    --color-accent-dark: #128a9e;
    --color-text: #1a1a2e;
    --color-text-secondary: #555770;
    --color-text-muted: #7f8295;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f8fc;
    --color-bg-dark: #0a2463;
    --color-border: #dee2e6;
    --color-border-light: #e9ecef;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-link: #1e4db7;
    --color-link-hover: #0a2463;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --content-max: 780px;
    --header-height: 72px;
    --header-height-scrolled: 56px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(10, 36, 99, 0.08);
    --shadow-md: 0 4px 12px rgba(10, 36, 99, 0.1);
    --shadow-lg: 0 8px 30px rgba(10, 36, 99, 0.12);
    --shadow-dropdown: 0 8px 24px rgba(10, 36, 99, 0.15);

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

/* ==========================================================================
   2. Reset / Normalize
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + var(--space-lg));
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: 2.25rem; margin-bottom: var(--space-lg); }
h2 { font-size: 1.75rem; margin-bottom: var(--space-md); }
h3 { font-size: 1.375rem; margin-bottom: var(--space-md); }
h4 { font-size: 1.125rem; margin-bottom: var(--space-sm); }

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

p:last-child {
    margin-bottom: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.content-page {
    max-width: var(--content-max);
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-4xl);
}

.content-page h1:first-child {
    margin-bottom: var(--space-lg);
}

.section {
    padding: var(--space-3xl) 0;
}

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

.section-dark {
    background-color: var(--color-bg-dark);
    color: #ffffff;
}

.section-dark h2,
.section-dark h3 {
    color: #ffffff;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
    transition: height var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--color-primary);
    flex-shrink: 0;
}

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

.logo img {
    height: 40px;
    width: auto;
    transition: height var(--transition-base);
}

.site-header.scrolled .logo img {
    height: 32px;
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Desktop Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-list > li > a:focus {
    color: var(--color-primary);
    background-color: var(--color-primary-lighter);
    text-decoration: none;
}

.nav-list > li.active > a {
    color: var(--color-primary);
}

/* Dropdown arrow */
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -3px;
    margin-left: 2px;
    transition: transform var(--transition-fast);
}

.has-dropdown.open > a::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dropdown);
    padding: var(--space-sm) 0;
    z-index: 1001;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.has-dropdown {
    position: relative;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
    display: block;
    opacity: 1;
}

.dropdown a {
    display: block;
    padding: var(--space-sm) var(--space-lg);
    color: var(--color-text);
    font-size: 0.875rem;
    font-weight: 400;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.dropdown a:hover,
.dropdown a:focus {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
    text-decoration: none;
}

.dropdown-header {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.dropdown-divider {
    height: 1px;
    background-color: var(--color-border-light);
    margin: var(--space-sm) 0;
}

/* Download CTA button in nav */
.nav-download {
    display: none;
}

@media (min-width: 1024px) {
    .nav-download {
        display: inline-flex;
    }
}

/* Hamburger */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

@media (min-width: 1024px) {
    .nav-toggle {
        display: none;
    }
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--color-text);
    position: relative;
    transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: transform var(--transition-base);
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

body.nav-open .hamburger {
    background-color: transparent;
}

body.nav-open .hamburger::before {
    transform: rotate(45deg) translate(5px, 5px);
}

body.nav-open .hamburger::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: #ffffff;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform var(--transition-base);
    overflow-y: auto;
    padding: calc(var(--header-height) + var(--space-md)) var(--space-lg) var(--space-lg);
    box-shadow: var(--shadow-lg);
}

body.nav-open .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 36, 99, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

body.nav-open .mobile-nav-overlay {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-section {
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-md) 0;
}

.mobile-nav-section:last-child {
    border-bottom: none;
}

.mobile-nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text);
    padding: var(--space-sm) 0;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.mobile-nav-heading .chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.mobile-nav-heading.open .chevron {
    transform: rotate(-135deg);
}

.mobile-nav-heading a {
    color: var(--color-text);
    font-weight: 600;
}

.mobile-nav-heading a:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.mobile-nav-links {
    display: none;
    padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
}

.mobile-nav-links.open {
    display: block;
}

.mobile-nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

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

.mobile-nav .btn {
    display: block;
    text-align: center;
    margin-top: var(--space-md);
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */

.hero {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(30, 77, 183, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-logo {
    height: 80px;
    width: auto;
    margin: 0 auto var(--space-lg);
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 480px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.hero-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

.hero-meta .badge {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .hero {
        padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
    }

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

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

/* ==========================================================================
   6. Buttons & Badges
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.625rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    line-height: 1.4;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: #ffffff;
}

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

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: #ffffff;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #ffffff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    color: #ffffff;
    border-color: var(--color-accent-dark);
}

.btn-download {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

.btn-download:hover {
    background-color: var(--color-primary-light);
    color: #ffffff;
    border-color: var(--color-primary-light);
}

.btn-sm {
    font-size: 0.8125rem;
    padding: 0.375rem 1rem;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-link);
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

.btn-link:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
    transform: none;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2em 0.65em;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    line-height: 1.4;
}

.badge-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--color-success);
}

.badge-primary {
    background-color: var(--color-primary-lighter);
    color: var(--color-primary);
}

.badge-accent {
    background-color: rgba(23, 162, 184, 0.1);
    color: var(--color-accent);
}

/* ==========================================================================
   7. Cards
   ========================================================================== */

.card {
    background: #ffffff;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary-lighter);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-md);
    color: var(--color-primary);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

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

/* Feature Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   8. News / Release Cards
   ========================================================================== */

.news-item {
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    background: #ffffff;
    transition: box-shadow var(--transition-base);
}

.news-item:hover {
    box-shadow: var(--shadow-sm);
}

.news-item-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.news-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.news-date {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.news-item p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.news-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.news-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.news-links a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-lighter);
    text-decoration: none;
}

.older-news {
    display: none;
}

.older-news.show {
    display: block;
}

.show-older-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: none;
    border: 2px dashed var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all var(--transition-fast);
}

.show-older-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: var(--color-primary-lighter);
}

.show-older-btn .arrow {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.show-older-btn.open .arrow {
    transform: rotate(180deg);
}

/* ==========================================================================
   9. Quick Start / Code Blocks
   ========================================================================== */

pre, code {
    font-family: var(--font-mono);
}

code {
    font-size: 0.875em;
    background-color: var(--color-bg-alt);
    padding: 0.15em 0.4em;
    border-radius: var(--border-radius-sm);
    color: var(--color-primary);
}

pre {
    background-color: #1a1a2e;
    color: #e4e4ef;
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: var(--space-lg);
    position: relative;
    line-height: 1.7;
    font-size: 0.875rem;
}

pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
}

.code-block {
    position: relative;
}

.code-block .copy-btn {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-sans);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0;
}

.code-block:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.copy-btn.copied {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #ffffff;
    opacity: 1;
}

/* Light code blocks (for content pages) */
pre.light {
    background-color: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

pre.light .copy-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--color-border);
    color: var(--color-text-muted);
}

pre.light .copy-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

/* Quick Start Section */
.quick-start {
    max-width: 700px;
    margin: 0 auto;
}

.terminal {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.terminal-header {
    background-color: #2d2d3f;
    padding: 0.75rem var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

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

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

.terminal-title {
    flex: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
}

.terminal pre {
    margin: 0;
    border-radius: 0;
    padding: var(--space-lg) var(--space-xl);
}

.terminal .prompt {
    color: var(--color-accent);
    user-select: none;
}

.terminal .comment {
    color: #6b7280;
}

/* ==========================================================================
   10. Trusted By
   ========================================================================== */

.trusted-by {
    text-align: center;
}

.trusted-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg) var(--space-2xl);
    margin-top: var(--space-xl);
}

.trusted-list span {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* ==========================================================================
   11. Content Page Elements
   ========================================================================== */

/* Prose content */
.content-page p {
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.content-page ul,
.content-page ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.content-page ul {
    list-style: disc;
}

.content-page ol {
    list-style: decimal;
}

.content-page li {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.content-page h2 {
    margin-top: var(--space-2xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
}

.content-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

/* Callout boxes */
.callout {
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    margin-bottom: var(--space-lg);
    border-left: 4px solid;
}

.callout-info {
    background-color: var(--color-primary-lighter);
    border-color: var(--color-primary-light);
}

.callout-warning {
    background-color: #fff8e1;
    border-color: var(--color-warning);
}

.callout-security {
    background-color: #fce4ec;
    border-color: #e53935;
}

.callout h4 {
    margin-bottom: var(--space-sm);
}

/* Contributors grid */
.contributors-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .contributors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contributor-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    transition: box-shadow var(--transition-fast);
}

.contributor-card:hover {
    box-shadow: var(--shadow-sm);
}

.contributor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.contributor-info h4 {
    margin-bottom: 0;
}

.contributor-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* Platforms grid */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (min-width: 600px) {
    .platforms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .platforms-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.platform-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
}

.platform-badge.tested::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success);
    flex-shrink: 0;
}

/* Mailing list cards */
.mailing-list-card {
    padding: var(--space-xl);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--space-lg);
}

.mailing-list-card h3 {
    margin-bottom: var(--space-sm);
}

.mailing-list-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.mailing-list-card .list-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Sites grid */
.sites-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .sites-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-card {
    padding: var(--space-lg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    transition: box-shadow var(--transition-fast);
}

.site-card:hover {
    box-shadow: var(--shadow-sm);
}

.site-card h4 {
    margin-bottom: var(--space-xs);
}

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

/* Module cards */
.modules-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Feature detail cards (features page) */
.feature-category {
    margin-bottom: var(--space-3xl);
}

.feature-category h2 {
    border-top: none;
    padding-top: 0;
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 600px) {
    .feature-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-detail {
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border-light);
}

.feature-detail h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.feature-detail p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
   12. Tables (content pages)
   ========================================================================== */

.content-page table {
    margin-bottom: var(--space-lg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.content-page th,
.content-page td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
}

.content-page th {
    background-color: var(--color-bg-alt);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.content-page tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-3xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.footer-col ul li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* ==========================================================================
   14. Section Headers
   ========================================================================== */

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
}

.section-header h2 {
    margin-bottom: var(--space-sm);
}

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

/* ==========================================================================
   15. Utility Classes
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-secondary); }
.text-small { font-size: 0.875rem; }

.mt-0 { margin-top: 0; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }

/* ==========================================================================
   16. Scroll Reveal Animation
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ==========================================================================
   17. Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .mobile-nav,
    .mobile-nav-overlay,
    .nav-toggle,
    .hero::before,
    .copy-btn,
    .show-older-btn {
        display: none !important;
    }

    .hero {
        background: none !important;
        color: #000 !important;
        padding-top: 0 !important;
    }

    .hero h1 { color: #000 !important; }

    .content-page {
        padding-top: 0;
    }

    body {
        font-size: 12pt;
        color: #000;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ==========================================================================
   18. Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
