/* ==========================================================================
   Your Poker Theme — Complete CSS Design System
   Dark & Premium aesthetic: high-end poker room meets modern SaaS
   ========================================================================== */

/* ==========================================================================
   1. CSS Reset
   ========================================================================== */

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

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124, 58, 237, 0.03) 0%, transparent 50%),
        var(--bg-primary);
}

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

img {
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

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

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    line-height: 1.2;
    text-wrap: balance;
}

p {
    overflow-wrap: break-word;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ==========================================================================
   2. CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors — Primary palette */
    --bg-primary: #0a0a0f;
    --bg-surface: #12121a;
    --bg-surface-hover: #1a1a2e;
    --bg-elevated: #16162a;
    --border-default: #2a2a3e;
    --border-subtle: #1f1f30;
    --text-primary: #f0f0f5;
    --text-secondary: #9e9eb8;
    --text-muted: #6e6e88;

    /* Colours — Accent (Royal Purple) */
    --accent: #7C3AED;
    --accent-hover: #9556f5;
    --accent-glow: rgba(124, 58, 237, 0.25);
    --accent-subtle: rgba(124, 58, 237, 0.1);

    /* Colors — Semantic */
    --success: #00d68f;
    --pro-color: #6366f1;
    --max-color: #f59e0b;

    /* 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;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

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

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

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

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 4px 24px var(--accent-glow);

    /* Header */
    --header-height: 72px;
}

/* ==========================================================================
   3. Base Typography
   ========================================================================== */

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    font-weight: 400;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--text-primary);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

h4 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
}

h5 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-secondary);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-hover);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

strong,
b {
    font-weight: 700;
}

small {
    font-size: 0.875rem;
}

/* ==========================================================================
   4. Layout
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: 6rem 0;
}

.section--sm {
    padding: 3rem 0;
}

.section--lg {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   5. Grid
   ========================================================================== */

.grid {
    display: grid;
    gap: 1.5rem;
}

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

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

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

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

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

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

/* ==========================================================================
   6. Cards
   ========================================================================== */

.card,
.feature-card {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.04) 0%, transparent 60%),
        rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.card:hover,
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

/* ==========================================================================
   7. Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    text-decoration: none;
}

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

.btn:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 6px 24px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: var(--accent-subtle);
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

.btn svg {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
}

/* ==========================================================================
   8. Badges
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid transparent;
}

.badge-home {
    color: var(--success);
    background: rgba(0, 214, 143, 0.1);
    border-color: rgba(0, 214, 143, 0.2);
}

.badge-pro {
    color: var(--pro-color);
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.badge-max {
    color: var(--max-color);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
}

/* ==========================================================================
   9. Header
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    transition: background var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
}

.site-header.is-scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-bottom-color: var(--border-default);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: left var(--transition-base), right var(--transition-base);
}

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

.nav-link:hover::after {
    left: 0;
    right: 0;
}

.nav-link.is-active {
    color: var(--text-primary);
}

.nav-link.is-active::after {
    left: 0;
    right: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform var(--transition-base),
                opacity var(--transition-base);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base),
                visibility var(--transition-base);
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    transform: translateX(-10px);
    transition: color var(--transition-fast),
                opacity var(--transition-base),
                transform var(--transition-base);
}

.mobile-nav.is-open .mobile-nav-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

.mobile-nav.is-open .btn {
    opacity: 0;
    animation: mobileNavBtnIn var(--transition-base) 0.25s forwards;
}

@keyframes mobileNavBtnIn {
    to { opacity: 1; }
}

.mobile-nav-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-default);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col {
    min-width: 0;
}

.footer-heading {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-block;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(3px);
}

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

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

.footer-location {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   11. Hero Section
   ========================================================================== */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--accent-subtle) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title .text-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #a855f7 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(120px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   12. Download Buttons
   ========================================================================== */

.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    text-decoration: none;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-primary);
}

.download-btn:hover {
    border-color: var(--accent);
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

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

.download-btn--primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.download-btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #ffffff;
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* ==========================================================================
   13. Feature Grid
   ========================================================================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), color var(--transition-base);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
    color: var(--accent-hover);
}

.feature-card__icon svg {
    width: 100%;
    height: 100%;
}

.feature-card__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-card__description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

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

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   14. Stats Bar
   ========================================================================== */

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 3rem;
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-default);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-bar {
        gap: 2rem;
        padding: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-bar {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   15. Pricing Cards
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.pricing-card {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pricing-card--featured {
    border-color: var(--accent);
    transform: scale(1.02);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.pricing-card--featured:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.pricing-card--pro:hover,
.pricing-card--max:hover {
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.billing-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.billing-label--active {
    color: var(--text-primary);
}

.billing-save {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(0, 214, 143, 0.1);
    border: 1px solid rgba(0, 214, 143, 0.2);
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.billing-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: var(--border-color);
    border: none;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.billing-switch[aria-checked="true"] {
    background: var(--accent);
}

.billing-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.billing-switch[aria-checked="true"] .billing-switch__thumb {
    transform: translateX(22px);
}

/* Pricing billed text */
.pricing-billed {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: -0.5rem 0 1rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 1rem 0;
    line-height: 1.2;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.pricing-features li.disabled {
    color: var(--text-muted);
    text-decoration: line-through;
}

.pricing-features li.disabled::before {
    content: '\2715';
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

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

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

/* ==========================================================================
   16. CTA Section
   ========================================================================== */

.cta-section {
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.cta-section .section-header {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    position: relative;
    z-index: 1;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   17. Feature Detail Sections (Features Page)
   ========================================================================== */

.feature-section {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.feature-section:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-section__content {
    flex: 1;
    min-width: 0;
}

.feature-section__content h3 {
    margin-bottom: 1rem;
}

.feature-section__content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: var(--text-lg);
    line-height: 1.7;
}

.feature-section__visual {
    flex: 1;
    min-width: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-section__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

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

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

@media (max-width: 768px) {
    .feature-section {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
    }

    .feature-section:nth-child(even) {
        flex-direction: column;
    }
}

/* ==========================================================================
   18. Blog Styles
   ========================================================================== */

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

.post-card {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}

.post-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.post-card a {
    text-decoration: none;
    color: inherit;
}

.post-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-card__image {
    transform: scale(1.03);
}

.post-card__content {
    padding: 1.5rem;
}

.post-card__tag {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.post-card__excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.post-card__meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   19. Single Post Styles
   ========================================================================== */

.post-header {
    text-align: center;
    padding: 6rem 0 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.post-header .post-card__tag {
    display: inline-block;
    margin-bottom: 1rem;
}

.post-header h1 {
    margin-bottom: 1rem;
}

.post-header .post-card__meta {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.post-feature-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text-secondary);
}

.post-content h2 {
    margin: 3rem 0 1rem;
    color: var(--text-primary);
}

.post-content h3 {
    margin: 2.5rem 0 0.75rem;
    color: var(--text-primary);
}

.post-content h4 {
    margin: 2rem 0 0.5rem;
    color: var(--text-primary);
}

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

.post-content a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.post-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.post-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content blockquote p {
    margin-bottom: 0;
}

.post-content code {
    background: var(--bg-surface);
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.post-content pre {
    background: var(--bg-surface);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 2rem 0;
    border: 1px solid var(--border-default);
}

.post-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

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

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

.post-content hr {
    border: none;
    border-top: 1px solid var(--border-default);
    margin: 3rem 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-default);
    text-align: left;
}

.post-content th {
    background: var(--bg-surface);
    font-weight: 600;
    color: var(--text-primary);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Ghost card styles */
.kg-image-card {
    margin: 2rem 0;
}

.kg-image-card img {
    margin: 0 auto;
}

.kg-image-card.kg-width-wide img {
    max-width: 1040px;
    width: calc(100% + 2rem);
    margin-left: -1rem;
}

.kg-image-card.kg-width-full img {
    max-width: calc(100vw - var(--scrollbar-width, 0px));
    width: calc(100vw - var(--scrollbar-width, 0px));
    margin-left: calc(50% - 50vw + var(--scrollbar-width, 0px) / 2);
}

.kg-image-card figcaption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.kg-bookmark-card {
    margin: 2rem 0;
}

.kg-bookmark-container {
    display: flex;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-base);
}

.kg-bookmark-container:hover {
    border-color: var(--accent);
}

.kg-bookmark-content {
    flex: 1;
    padding: 1.25rem;
}

.kg-bookmark-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.kg-bookmark-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
    color: var(--text-muted);
}

.kg-bookmark-thumbnail {
    flex-shrink: 0;
    width: 160px;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
}

.kg-gallery-card {
    margin: 2rem 0;
}

.kg-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.kg-gallery-row {
    display: flex;
    gap: 0.5rem;
}

.kg-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.kg-callout-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    margin: 2rem 0;
}

.kg-callout-emoji {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.kg-callout-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.kg-toggle-card {
    margin: 1.5rem 0;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.kg-toggle-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    background: var(--bg-surface);
}

.kg-toggle-heading h4 {
    margin: 0;
    font-size: 1rem;
}

.kg-toggle-content {
    padding: 0 1.25rem 1rem;
}

.kg-video-card,
.kg-audio-card {
    margin: 2rem 0;
}

.kg-embed-card {
    margin: 2rem 0;
}

.kg-embed-card iframe {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ==========================================================================
   20. Page Content Styles
   ========================================================================== */

.page-content {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 4rem 1rem;
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-content h1 {
    margin-bottom: 2rem;
}

.page-content h2 {
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
}

.page-content h3 {
    margin: 2rem 0 0.75rem;
    color: var(--text-primary);
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

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

.page-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.page-content a {
    color: var(--accent);
}

.page-content a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* ==========================================================================
   21. FAQ Styles
   ========================================================================== */

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

.faq-item {
    border-bottom: 1px solid var(--border-default);
    padding: 1.5rem 0;
}

.faq-item:first-child {
    border-top: 1px solid var(--border-default);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 0;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item.is-open .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    color: var(--text-secondary);
    padding-right: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition: max-height var(--transition-slow),
                opacity var(--transition-base),
                margin-top var(--transition-base);
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.75rem;
}

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   22. Error Page
   ========================================================================== */

.error-page {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--header-height) 1.5rem 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.error-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 480px;
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }

    .error-message {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   23. Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 3rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.pagination .active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.pagination .page-number {
    color: var(--text-muted);
    font-size: 0.9rem;
    background: none;
    border: none;
    min-width: auto;
}

/* ==========================================================================
   24. Animations
   ========================================================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-in"] {
    opacity: 0;
    transform: none;
}

[data-animate="fade-in"].is-visible {
    opacity: 1;
}

[data-animate="scale-in"] {
    opacity: 0;
    transform: scale(0.95);
}

[data-animate="scale-in"].is-visible {
    opacity: 1;
    transform: scale(1);
}

[data-animate="slide-left"] {
    opacity: 0;
    transform: translateX(-30px);
}

[data-animate="slide-left"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

[data-animate="slide-right"] {
    opacity: 0;
    transform: translateX(30px);
}

[data-animate="slide-right"].is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays */
[data-animate-delay="1"] { transition-delay: 0.1s; }
[data-animate-delay="2"] { transition-delay: 0.2s; }
[data-animate-delay="3"] { transition-delay: 0.3s; }
[data-animate-delay="4"] { transition-delay: 0.4s; }
[data-animate-delay="5"] { transition-delay: 0.5s; }
[data-animate-delay="6"] { transition-delay: 0.6s; }

@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;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   25. Utility Classes
   ========================================================================== */

.sr-only {
    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-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

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

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

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

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

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

/* Margin top utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-8 { margin-top: 4rem; }

/* Margin bottom utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 4rem; }

/* Padding utilities */
.p-0 { padding: 0; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

/* Display */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-none { display: none; }

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

/* Width */
.w-full { width: 100%; }

/* Visually hidden (screen reader only) */
.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;
}

/* ==========================================================================
   26. Responsive Breakpoints
   ========================================================================== */

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

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

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

    .feature-section {
        gap: 2.5rem;
    }

    .stats-bar {
        gap: 2rem;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

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

    /* Header mobile layout */
    .site-nav {
        display: none;
    }

    .header-actions {
        display: none;
    }

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

    .mobile-nav {
        display: block;
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: 3rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }

    /* Download buttons stack on mobile */
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* Blog mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Post mobile */
    .post-header {
        padding: 3rem 0 2rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-feature-image {
        border-radius: var(--radius-md);
        margin-bottom: 2rem;
    }

    /* Cards */
    .card {
        padding: 1.5rem;
    }

    /* Page content */
    .page-content {
        padding: 2rem 0;
    }

    /* CTA */
    .cta-section {
        padding: 4rem 0;
    }
}

/* ==========================================================================
   27. Feature Comparison Table
   ========================================================================== */

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.comparison-table th {
    padding: 1rem 1.25rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-default);
}

.comparison-feature-col {
    text-align: left;
    width: 40%;
}

.comparison-plan-col {
    width: 20%;
}

.comparison-plan-col--pro {
    color: var(--accent);
}

.comparison-table td {
    padding: 0.75rem 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table td:first-child {
    text-align: left;
    color: var(--text-primary);
    font-weight: 500;
}

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

.comparison-table .comparison-category td {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--bg-primary);
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--border-default);
}

.comparison-table tbody tr:not(.comparison-category):hover {
    background: var(--bg-surface-hover);
}

/* Checkmarks */
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3),
.comparison-table td:nth-child(4) {
    font-size: 0.85rem;
}

/* ==========================================================================
   28. Download Cards
   ========================================================================== */

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    gap: 0.75rem;
}

.download-card:hover {
    border-color: var(--accent);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.download-card--pending {
    opacity: 0.6;
    pointer-events: none;
}

.download-card__icon {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.download-card__icon svg {
    margin: 0 auto;
}

.download-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.download-card__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.download-card__format {
    display: inline-block;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    margin-top: auto;
}

/* Requirements */
.requirements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.requirements-list li {
    list-style: none;
}

.requirements-list strong {
    color: var(--text-primary);
}

/* ==========================================================================
   29. Tag Filter Bar
   ========================================================================== */

.tag-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
}

.tag-filter__item {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    transition: all var(--transition-fast);
}

.tag-filter__item:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.tag-filter__item--active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   30. Changelog
   ========================================================================== */

.changelog-entry {
    padding: 2.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.changelog-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

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

.changelog-entry h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.changelog-entry ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}

.changelog-entry li {
    list-style: disc;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================================================
   31. Back to Top Button
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--transition-base);
    z-index: 99;
}

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

.back-to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   32. Notify Modal
   ========================================================================== */

.notify-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.notify-modal[hidden] {
    display: none;
}

.notify-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.notify-modal__content {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    z-index: 1;
    animation: modalEnter var(--transition-base) ease;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notify-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--text-muted);
    background: transparent;
    transition: all var(--transition-fast);
}

.notify-modal__close:hover {
    color: var(--text-primary);
    background: var(--bg-surface-hover);
}

.notify-modal h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.notify-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-default);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.notify-input:focus {
    border-color: var(--accent);
}

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

.notify-success {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--success);
    font-weight: 500;
}

/* ==========================================================================
   33. App Screenshot Mockup (Homepage Hero)
   ========================================================================== */

.hero-screenshot {
    margin-top: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    perspective: 1200px;
}

.screenshot-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px var(--accent-glow);
    transform: rotateX(2deg);
    transition: transform 0.4s ease;
}

.screenshot-wrapper:hover {
    transform: rotateX(0);
}

.screenshot-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-subtle);
}

.screenshot-dots {
    display: flex;
    gap: 6px;
}

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

.screenshot-dot--red { background: #ff5f57; }
.screenshot-dot--yellow { background: #ffbd2e; }
.screenshot-dot--green { background: #28ca41; }

.screenshot-titlebar-text {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.screenshot-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 360px;
}

.screenshot-sidebar {
    background: var(--bg-elevated);
    border-right: 1px solid var(--border-subtle);
    padding: 1rem 0;
}

.screenshot-sidebar-item {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.screenshot-sidebar-item--active {
    color: var(--text-primary);
    background: var(--accent-subtle);
    border-right: 2px solid var(--accent);
}

.screenshot-sidebar-icon {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: var(--border-default);
    flex-shrink: 0;
}

.screenshot-sidebar-item--active .screenshot-sidebar-icon {
    background: var(--accent);
}

.screenshot-main {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.screenshot-stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.screenshot-stat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.screenshot-stat-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.screenshot-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.screenshot-stat-value--accent {
    color: var(--accent);
}

.screenshot-stat-value--success {
    color: var(--success);
}

.screenshot-table-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.screenshot-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.7rem;
    color: var(--text-secondary);
    align-items: center;
}

.screenshot-table-row span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   34. Skip to Content (Accessibility)
   ========================================================================== */

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10000;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ==========================================================================
   35. Announcement Bar
   ========================================================================== */

.announcement-bar {
    background: linear-gradient(90deg, var(--accent), #9333ea, var(--accent));
    background-size: 200% 100%;
    animation: announcementGradient 6s ease infinite;
    color: #fff;
    text-align: center;
    padding: 0.625rem 3rem 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 100;
}

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

.announcement-bar p {
    margin: 0;
}

.announcement-bar a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 700;
}

.announcement-bar a:hover {
    opacity: 0.9;
}

.announcement-bar__close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    line-height: 1;
}

.announcement-bar__close:hover {
    opacity: 1;
}

.announcement-bar[hidden] {
    display: none;
}

/* ==========================================================================
   36. Reading Progress Bar
   ========================================================================== */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    pointer-events: none;
}

.reading-progress__bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    border-radius: 0 2px 2px 0;
    box-shadow: 4px 0 12px var(--accent-glow);
}

/* ==========================================================================
   37. Cookie Consent Banner
   ========================================================================== */

.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    width: calc(100% - 2rem);
    max-width: 600px;
    animation: cookieSlideUp 0.4s ease;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__content {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cookie-banner__content p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.cookie-banner__content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(1rem); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================================================
   38. Share Buttons (Blog Posts)
   ========================================================================== */

.share-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    margin: 2rem 0;
}

.share-bar__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-bar__buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
    background: var(--bg-surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    color: #fff;
    border-color: transparent;
}

.share-btn--twitter:hover {
    background: #1da1f2;
}

.share-btn--linkedin:hover {
    background: #0a66c2;
}

.share-btn--copy:hover {
    background: var(--accent);
}

.share-btn--copy.is-copied {
    background: #22c55e;
    border-color: transparent;
    color: #fff;
}

/* ==========================================================================
   39. Animated Stat Counters
   ========================================================================== */

.stat-number[data-count].is-counted {
    transition: none;
}

/* ==========================================================================
   40. Copy Code Button
   ========================================================================== */

.post-content pre {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-content pre:hover .copy-code-btn {
    opacity: 1;
}

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

.copy-code-btn.is-copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    opacity: 1;
}

/* ==========================================================================
   41. Focus-Visible Styles (Accessibility)
   ========================================================================== */

.btn:focus-visible,
.nav-link:focus-visible,
.mobile-nav-link:focus-visible,
.share-btn:focus-visible,
.back-to-top:focus-visible,
.tag-filter__item:focus-visible,
.download-btn:focus-visible,
.download-card:focus-visible,
.card:focus-visible,
.feature-card:focus-visible,
.pricing-card:focus-visible,
.post-card:focus-within,
.post-card__title a:focus-visible,
.post-card__tag:focus-visible,
.faq-question:focus-visible,
.copy-code-btn:focus-visible,
.announcement-bar__close:focus-visible,
.footer-links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.notify-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

/* ==========================================================================
   42. Breadcrumb Navigation
   ========================================================================== */

.breadcrumb {
    padding: 0.75rem 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    background: var(--bg-primary);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

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

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

.breadcrumb__sep {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumb [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   43. Author Page
   ========================================================================== */

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--border-default);
}

.author-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   44. Blog Empty State
   ========================================================================== */

.blog-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.blog-empty p {
    font-size: 1.1rem;
}

/* ==========================================================================
   48. Footer Copyright Link
   ========================================================================== */

.footer-copyright-link {
    color: var(--text-secondary);
    text-decoration: underline;
    text-decoration-color: var(--border-default);
    text-underline-offset: 2px;
}

.footer-copyright-link:hover {
    color: var(--accent);
}

/* ==========================================================================
   49. In-Post CTA Banner
   ========================================================================== */

.post-cta {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 60%),
        var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 720px;
}

.post-cta h3 {
    margin-bottom: 0.5rem;
}

.post-cta p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

/* Responsive download cards */
@media (max-width: 768px) {
    .download-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

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

    .screenshot-body {
        grid-template-columns: 1fr;
    }

    .screenshot-sidebar {
        display: none;
    }

    .comparison-table {
        font-size: 0.8rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.6rem 0.75rem;
    }

    .changelog-entry {
        padding: 1.5rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }

    .share-bar {
        flex-direction: column;
        gap: 0.75rem;
    }

    .announcement-bar {
        font-size: 0.8rem;
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    }
}

/* Small mobile - 480px and below */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .pricing-card {
        padding: 1.75rem;
    }

    .pricing-price {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .post-card__title {
        font-size: 1.1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Smaller section padding on very small screens */
    .section {
        padding: 2.5rem 0;
    }
}

/* ==========================================================================
   47. Selection & Scrollbar Styling
   ========================================================================== */

::selection {
    background: var(--accent);
    color: #ffffff;
}

/* Dark scrollbar */
* {
    scrollbar-color: var(--border-default) var(--bg-primary);
    scrollbar-width: thin;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
