/* ==========================================================================
   Template: Newsletter - Premium Substack-style Landing Page
   Version: 2.0.0
   Author: Outline Templates

   A warm, inviting newsletter template designed for writers and creators.
   Features elegant typography, smooth animations, and full dark mode support.
   ========================================================================== */

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Primary Colors - Warm Orange */
    --color-primary: #F97316;
    --color-primary-hover: #EA580C;
    --color-primary-light: #FFEDD5;
    --color-primary-dark: #C2410C;
    --color-primary-glow: rgba(249, 115, 22, 0.3);

    /* Secondary Colors */
    --color-secondary: #0F172A;
    --color-secondary-light: #1E293B;

    /* Accent Colors */
    --color-accent: #8B5CF6;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;

    /* Neutral Colors - Light Mode */
    --color-text: #1E293B;
    --color-text-secondary: #475569;
    --color-text-muted: #64748B;
    --color-text-subtle: #94A3B8;

    /* Backgrounds - Light Mode */
    --color-background: #FFFBF5;
    --color-surface: #FFFFFF;
    --color-surface-elevated: #FFFFFF;
    --color-surface-muted: #FFF7ED;

    /* Borders */
    --color-border: #FED7AA;
    --color-border-subtle: #FFEDD5;
    --color-border-strong: #FDBA74;

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

    /* Typography Scale */
    --text-hero: clamp(2.5rem, 6vw, 4rem);
    --text-display: clamp(2rem, 4vw, 3rem);
    --text-h1: clamp(1.75rem, 3vw, 2.5rem);
    --text-h2: clamp(1.5rem, 2.5vw, 2rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: clamp(1.125rem, 1.5vw, 1.25rem);
    --text-body: 1rem;
    --text-body-lg: 1.125rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 1.75;

    /* Spacing Scale (8px base) */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 40px var(--color-primary-glow);
    --shadow-glow-lg: 0 0 60px var(--color-primary-glow);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-overlay: 40;
    --z-modal: 50;
    --z-toast: 60;
    --z-max: 100;
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

[data-theme="dark"],
.dark {
    /* Primary Colors - Adjusted for dark mode */
    --color-primary: #FB923C;
    --color-primary-hover: #F97316;
    --color-primary-light: rgba(251, 146, 60, 0.15);
    --color-primary-dark: #FDBA74;
    --color-primary-glow: rgba(251, 146, 60, 0.25);

    /* Neutral Colors - Dark Mode */
    --color-text: #F8FAFC;
    --color-text-secondary: #E2E8F0;
    --color-text-muted: #94A3B8;
    --color-text-subtle: #64748B;

    /* Backgrounds - Dark Mode */
    --color-background: #0C0A09;
    --color-surface: #1C1917;
    --color-surface-elevated: #292524;
    --color-surface-muted: #1C1917;

    /* Borders - Dark Mode */
    --color-border: #44403C;
    --color-border-subtle: #292524;
    --color-border-strong: #57534E;

    /* Shadows - Dark Mode */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

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

/* Typography */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--color-text);
}

p {
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
}

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

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

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

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

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

.sr-only:focus,
.sr-only:active {
    position: fixed;
    top: var(--space-4);
    left: var(--space-4);
    z-index: var(--z-max);
    width: auto;
    height: auto;
    padding: var(--space-3) var(--space-4);
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    background: var(--color-primary);
    color: white;
    font-weight: var(--font-semibold);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
    width: 100%;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

.container-wide {
    max-width: 64rem;
}

.container-narrow {
    max-width: 42rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.dark .navbar.scrolled {
    background: rgba(12, 10, 9, 0.95);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
}

.navbar-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.navbar-brand:hover {
    color: var(--color-primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.theme-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Light mode - show moon, hide sun */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Dark mode - show sun, hide moon */
.dark .theme-toggle .icon-sun { display: block; }
.dark .theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-family: var(--font-sans);
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    line-height: var(--leading-none);
    text-align: center;
    white-space: nowrap;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

.btn-secondary:hover:not(:disabled) {
    background: var(--color-surface-muted);
    border-color: var(--color-border-strong);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--color-surface-muted);
    color: var(--color-text);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-body);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.email-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 28rem;
    width: 100%;
}

@media (min-width: 480px) {
    .email-form {
        flex-direction: row;
    }
}

.email-input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-sans);
    font-size: var(--text-body);
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

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

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.email-input.error,
.email-input.border-red-500 {
    border-color: var(--color-error);
}

.email-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    position: relative;
    padding: var(--space-32) 0 var(--space-20);
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: radial-gradient(ellipse at top, var(--color-primary-light) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

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

.hero-title {
    font-size: var(--text-hero);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    max-width: 36rem;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero-form {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.hero-disclaimer {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

/* Subscriber Count Badge */
.subscriber-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-primary-light);
    border-radius: var(--radius-full);
    font-size: var(--text-small);
    font-weight: var(--font-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-6);
}

.subscriber-badge svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
   AUTHOR SECTION
   ========================================================================== */

.author-section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
    text-align: center;
}

@media (min-width: 640px) {
    .author-card {
        flex-direction: row;
        text-align: left;
    }
}

.author-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    border: 4px solid var(--color-surface);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: var(--text-h4);
    margin-bottom: var(--space-2);
}

.author-info p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ==========================================================================
   POSTS SECTION
   ========================================================================== */

.posts-section {
    padding: var(--space-20) 0;
}

.posts-header {
    margin-bottom: var(--space-8);
}

.posts-title {
    font-size: var(--text-h2);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Post Card */
.post-card {
    display: block;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

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

.post-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-2);
}

.post-card-title {
    font-size: var(--text-h3);
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.post-card:hover .post-card-title {
    color: var(--color-primary);
}

.post-card-date {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.post-card-excerpt {
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: var(--leading-relaxed);
}

.post-card-tags {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.post-card-tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    background: var(--color-surface-muted);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonials-section {
    padding: var(--space-20) 0;
    background: var(--color-surface);
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.testimonials-title {
    font-size: var(--text-h2);
}

.testimonials-grid {
    display: grid;
    gap: var(--space-6);
}

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

.testimonial-card {
    padding: var(--space-6);
    background: var(--color-background);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border-subtle);
}

.testimonial-content {
    font-size: var(--text-body);
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.testimonial-content::before {
    content: '"';
    font-size: 2rem;
    font-family: var(--font-serif);
    color: var(--color-primary);
    line-height: 1;
    display: block;
    margin-bottom: var(--space-2);
}

.testimonial-author {
    font-weight: var(--font-semibold);
    color: var(--color-text);
}

.testimonial-author span {
    font-weight: var(--font-normal);
    color: var(--color-text-muted);
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--space-20) 0;
    text-align: center;
}

.cta-content {
    max-width: 32rem;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-display);
    margin-bottom: var(--space-4);
}

.cta-description {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.cta-form {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
    padding: var(--space-20) 0;
    background: var(--color-surface-muted);
}

.features-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.features-title {
    font-size: var(--text-h2);
    margin-bottom: var(--space-4);
}

.features-subtitle {
    font-size: var(--text-body-lg);
    color: var(--color-text-secondary);
    max-width: 32rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    gap: var(--space-8);
}

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

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

.feature-card {
    text-align: center;
    padding: var(--space-6);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-glow);
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.feature-title {
    font-size: var(--text-h4);
    font-family: var(--font-sans);
    margin-bottom: var(--space-2);
}

.feature-description {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    margin-bottom: 0;
}

/* ==========================================================================
   ARCHIVE SECTION
   ========================================================================== */

.archive-section {
    padding: var(--space-16) 0;
    border-top: 1px solid var(--color-border);
}

.archive-title {
    font-size: var(--text-h3);
    margin-bottom: var(--space-6);
    text-align: center;
}

.archive-grid {
    display: grid;
    gap: var(--space-4);
}

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

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    transition: all var(--transition-fast);
}

.archive-item:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-muted);
}

.archive-item-title {
    font-size: var(--text-small);
    font-weight: var(--font-medium);
    color: var(--color-text);
}

.archive-item-date {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-copyright {
    font-size: var(--text-small);
    color: var(--color-text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-link {
    font-size: var(--text-small);
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-blur {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-blur.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ==========================================================================
   HOVER EFFECTS
   ========================================================================== */

.hover-lift {
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.hover-glow {
    transition: box-shadow var(--transition-base);
}

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

/* ==========================================================================
   CONTINUOUS ANIMATIONS
   ========================================================================== */

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

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

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

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .reveal-blur {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

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

.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

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

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }

/* ==========================================================================
   SCROLLBAR
   ========================================================================== */

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

::-webkit-scrollbar-track {
    background: var(--color-surface-muted);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
    border: 2px solid var(--color-surface-muted);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-strong);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-surface-muted);
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::selection {
    background: var(--color-primary);
    color: white;
}

::-moz-selection {
    background: var(--color-primary);
    color: white;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .navbar,
    .theme-toggle,
    .btn,
    .email-form {
        display: none !important;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 10pt;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
    }

    p, blockquote {
        orphans: 3;
        widows: 3;
    }
}

/* ==========================================================================
   PERFORMANCE
   ========================================================================== */

.hero,
.posts-section,
.testimonials-section,
.cta-section,
.features-section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}
