/* ============================================
   M365 Tips Platform - Glassmorphism Styles
   Based on Instructions/Style-Guide.md
   ============================================ */

/* ============================================
   1. Global Resets & Base Styles
   ============================================ */

/* Typography: Bricolage Grotesque (display) + DM Sans (body) */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(180deg, #f8fafc 0%, #e0e7ff 50%, #f8fafc 100%);
    min-height: 100vh;
    font-size: 1.05rem;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Subtle noise texture for depth */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 0;
}

/* Background Shapes for Glassmorphism Effect */
.bg-shape {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.bg-shape-1 {
    width: 600px;
    height: 600px;
    top: -150px;
    right: -200px;
    border-radius: 150px;
    background: linear-gradient(135deg, rgba(219,220,249,0.6), rgba(224,231,255,0.4));
    transform: rotate(15deg);
    animation: floatShape1 30s ease-in-out infinite;
}

.bg-shape-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    left: -180px;
    border-radius: 120px;
    background: linear-gradient(135deg, rgba(219,234,254,0.5), rgba(224,231,255,0.35));
    transform: rotate(-20deg);
    animation: floatShape2 25s ease-in-out infinite;
}

.bg-shape-3 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: 10%;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(167,243,208,0.45), rgba(224,231,255,0.3));
    transform: rotate(25deg);
    animation: floatShape3 35s ease-in-out infinite;
}

@keyframes floatShape1 {
    0%, 100% { transform: rotate(15deg) translate(0, 0); }
    33% { transform: rotate(18deg) translate(20px, -30px); }
    66% { transform: rotate(12deg) translate(-20px, 20px); }
}

@keyframes floatShape2 {
    0%, 100% { transform: rotate(-20deg) translate(0, 0); }
    50% { transform: rotate(-15deg) translate(30px, 30px); }
}

@keyframes floatShape3 {
    0%, 100% { transform: rotate(25deg) translate(0, 0); }
    50% { transform: rotate(30deg) translate(-25px, -25px); }
}

/* ============================================
   2. CSS Custom Properties (Color System)
   ============================================ */

:root {
    /* Primary Colors */
    --color-indigo: #2563eb;
    --color-blue-deep: #1e40af;
    --color-blue: #3b82f6;
    --color-dark: #111827;
    --color-medium-gray: #475569;
    --color-text-gray: #1f2937;
    --color-code-dark: #0f172a;

    /* Accent Colors */
    --color-green: #16a34a;
    --color-orange: #ea580c;
    --color-red: #dc2626;
    --color-blue-accent: #2563eb;
    --color-red-accent: #ef4444;

    /* Gradients */
    --gradient-hero-title: linear-gradient(120deg, #3b82f6 0%, #2563eb 46%, #3b82f6 100%);
    --gradient-nav-underline: linear-gradient(90deg, #3b82f6, #2563eb);

    /* Shadows */
    --shadow-card: 0 25px 60px -20px rgba(0,0,0,0.18);
    --shadow-card-hover: 0 35px 80px -25px rgba(0,0,0,0.2);
    --shadow-hero: 0 25px 60px -20px rgba(0,0,0,0.15);
    --shadow-header: 0 8px 32px -8px rgba(0,0,0,0.08);
    --shadow-button: 0 4px 12px -2px rgba(37,99,235,0.15);
    --shadow-button-hover: 0 8px 20px -4px rgba(37,99,235,0.25);
    --shadow-image: 0 4px 12px rgba(0,0,0,0.1);

    /* Border Radius */
    --radius-hero: 32px;
    --radius-card: 24px;
    --radius-section: 12px;
    --radius-button: 12px;
    --radius-badge: 10px;
    --radius-tag: 8px;

    /* Spacing */
    --spacing-card: 2rem;
    --spacing-section: 1rem 1.25rem;
    --spacing-badge: 0.5rem 1rem;
    --spacing-tag: 0.4rem 0.9rem;

    /* Font Families */
    --font-display: 'Bricolage Grotesque', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    /* Animation Timing */
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
}

/* ============================================
   3. Typography System
   ============================================ */

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        #1e3a8a 0%,
        #3b82f6 25%,
        #2563eb 50%,
        #0ea5e9 75%,
        #3b82f6 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

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

.page-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    color: var(--color-text-gray);
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-text-gray);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-indigo), transparent);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.section-title-small {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--color-text-gray);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-gray);
}

.subtitle {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-medium-gray);
    margin-bottom: 2rem;
}

.body-text {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-gray);
}

.body-text-large {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text-gray);
}

/* ============================================
   4. Glassmorphism Components
   ============================================ */

/* Header (Sticky Navigation) */
.glass-header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    padding: 1.3rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-header), inset 0 1px 0 0 rgba(255,255,255,0.4);
}

/* Hero Section */
.glass-hero {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-hero);
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-hero),
                0 0 0 1px rgba(255,255,255,0.35),
                inset 0 1px 2px 0 rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

.glass-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.08) 40%, transparent 70%);
    pointer-events: none;
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    padding: var(--spacing-card);
    border-radius: var(--radius-card);
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-card),
                0 0 0 1px rgba(255,255,255,0.4),
                inset 0 1px 1px 0 rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
    transition:
        transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.08) 40%, transparent 70%);
    pointer-events: none;
}

/* Subtle glow layer for hover */
.glass-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0) 0%,
        rgba(59, 130, 246, 0.08) 50%,
        rgba(59, 130, 246, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: -1;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.6);
}

.glass-card:hover::after {
    opacity: 1;
}

/* Clickable Card Link - for cards that are actually interactive */
a.glass-card,
.glass-card-link {
    cursor: pointer;
}

a.glass-card:hover,
.glass-card-link:hover {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 40px 80px -30px rgba(37, 99, 235, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-8px) scale(1.01);
}

/* Footer */
.glass-footer {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.4);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
}

/* Legal pages (Impressum, Datenschutz) */
.legal-card {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15, 23, 42, 0.08) 50%, transparent 100%);
    margin: 2.5rem 0;
}

.legal-card .section-title-small {
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .legal-card {
        padding: 2rem 1.5rem;
    }

    .legal-divider {
        margin: 2rem 0;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.75rem;
}

.footer-links a {
    color: var(--color-medium-gray);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* ============================================
   5. Buttons & Interactive Elements
   ============================================ */

/* Primary Button (Solid) */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-indigo);
    color: white;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-button);
    position: relative;
    overflow: hidden;
}

/* Ripple effect on click */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-primary:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--color-blue-deep);
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-2px);
}

/* Icon animation on hover */
.btn-primary svg,
.btn-secondary svg {
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary:hover svg {
    transform: scale(1.1);
}

/* Secondary Button (Ghost) */
.btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(37,99,235,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-indigo);
    text-decoration: none;
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: var(--radius-button);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    box-shadow: var(--shadow-button);
}

.btn-secondary:hover {
    background: rgba(37,99,235,0.15);
    border-color: rgba(37,99,235,0.3);
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-2px);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Larger buttons in hero section (+30%) */
.glass-hero .btn-primary,
.glass-hero .btn-secondary {
    padding: 1rem 2.6rem;
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.glass-hero .btn-primary svg,
.glass-hero .btn-secondary svg {
    flex-shrink: 0;
}

/* Hero subtitle sizing */
.hero-subtitle {
    font-size: 1.65rem;
}

/* Smaller hero buttons and subtitle on mobile */
@media (max-width: 768px) {
    .glass-hero .btn-primary,
    .glass-hero .btn-secondary {
        padding: 0.85rem 1.75rem;
        font-size: 1.1rem;
    }

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

@media (max-width: 480px) {
    .glass-hero .btn-primary,
    .glass-hero .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

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

/* Badges */
.badge {
    padding: var(--spacing-badge);
    border-radius: var(--radius-badge);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid;
    display: inline-block;
}

.badge-green,
.tag.badge-green {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
    color: var(--color-green);
}

.badge-orange,
.tag.badge-orange {
    background: rgba(249,115,22,0.1);
    border-color: rgba(249,115,22,0.3);
    color: var(--color-orange);
}

.badge-red {
    background: rgba(220,38,38,0.1);
    border-color: rgba(220,38,38,0.3);
    color: var(--color-red);
}

.badge-blue {
    background: rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.2);
    color: var(--color-blue-accent);
}

.badge-indigo {
    background: rgba(37,99,235,0.1);
    border-color: rgba(37,99,235,0.2);
    color: var(--color-indigo);
}

/* Tags */
.tag {
    background: rgba(37,99,235,0.1);
    border: 1px solid rgba(37,99,235,0.2);
    border-radius: var(--radius-tag);
    padding: var(--spacing-tag);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-indigo);
    display: inline-block;
}

/* ============================================
   6. Layout Utilities
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

main {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    flex-grow: 1;
    width: 100%;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Two Column Grid (max 2 columns) */
.grid-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Spacing */
section {
    margin: 6rem 0;
}

/* ============================================
   7. Navigation
   ============================================ */

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

.logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.logo a {
    color: var(--color-text-gray);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 55px;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    margin: -10px 0;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-gray);
    text-decoration: none;
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--color-blue-deep);
    background: rgba(59, 130, 246, 0.06);
}

/* Nav Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-nav-underline);
    transition: width 0.3s var(--ease-out-expo);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

.nav-links a.active {
    color: var(--color-blue-deep);
}

/* Back Link */
.back-link {
    position: absolute;
    top: 0;
    left: 2rem;
    color: var(--color-indigo);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .back-link {
        left: 1rem;
    }
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    margin-left: 0.5rem;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(37, 99, 235, 0.1);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-indigo);
    transition: all 0.2s ease;
}

.user-menu-toggle:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1001;
}

.user-menu-dropdown.open {
    display: block;
}

.user-menu-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.user-menu-dropdown a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-indigo);
}

/* ============================================
   7b. Mobile Menu
   ============================================ */

/* Hamburger button - hidden on desktop */
.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(37, 99, 235, 0.1);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.2s ease;
    z-index: 1002;
}

.mobile-menu-toggle:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-indigo);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.mobile-menu-toggle.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

/* Mobile nav overlay - only visible on mobile when open */
@media (max-width: 768px) {
    /* Fixed header on mobile */
    .glass-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 1rem 1rem;
    }

    /* Body padding to offset fixed header */
    body {
        padding-top: 70px;
    }

    /* Prevent scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Library page - main needs margin since body already has padding */
    .library-page main {
        margin-top: 1rem;
    }

    /* Library page menu-open handling */
    .library-page.menu-open {
        overflow: hidden;
        height: 100vh;
    }

    /* Show hamburger button */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Nav stays horizontal on mobile */
    nav {
        flex-direction: row;
        gap: 0;
    }

    /* Hide nav links on mobile - only show when open */
    .nav-links {
        display: none !important;
    }

    /* Full-screen overlay when menu is open */
    .nav-links.open {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        z-index: 1001;
        padding: 2rem;
    }

    /* Mobile nav link styles - exclude dropdown links */
    .nav-links > a {
        font-size: 1.25rem;
        padding: 1rem 2rem;
        margin: 0;
        width: 100%;
        max-width: 280px;
        text-align: center;
        border-radius: 12px;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .nav-links > a:hover {
        background: rgba(37, 99, 235, 0.1);
    }

    /* User menu in mobile nav */
    .user-menu {
        margin-left: 0;
        margin-top: 1rem;
    }

    .user-menu-toggle {
        width: 44px;
        height: 44px;
    }

    /* User dropdown on mobile - position below toggle */
    .user-menu-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        z-index: 1002;
    }

    /* Remove underline effect on mobile */
    .nav-links > a::after {
        display: none;
    }

    /* Reset dropdown link styles for mobile */
    .user-menu-dropdown a {
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
        width: auto;
        max-width: none;
        text-align: left;
        border-radius: 0;
        opacity: 1;
        transform: none;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

/* Make images in image-grid clickable */
.image-grid img {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.image-grid img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ============================================
   8. Content Boxes (Problem & Instructions)
   ============================================ */

.content-box-problem {
    background: rgba(239,68,68,0.08);
    border-left: 3px solid var(--color-red-accent);
    border-radius: var(--radius-section);
    padding: var(--spacing-section);
    margin-bottom: 1.5rem;
}

.content-box-problem h4 {
    color: var(--color-red);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
}

.content-box-instructions {
    background: rgba(59,130,246,0.08);
    border-left: 3px solid var(--color-blue);
    border-radius: var(--radius-section);
    padding: var(--spacing-section);
    margin-bottom: 1.5rem;
}

.content-box-instructions h4 {
    color: var(--color-blue-accent);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.3px;
    margin-bottom: 0.5rem;
}

/* ============================================
   9. Images
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-section);
    box-shadow: var(--shadow-image);
}

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

.image-grid img {
    transition: transform 0.3s ease;
    max-width: min(350px, 100%);
}

.image-grid img:hover {
    transform: scale(1.02);
}

/* ============================================
   10. Forms & Inputs
   ============================================ */

.form-container {
    max-width: 500px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-gray);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius-section);
    font-family: inherit;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-indigo);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.error-message {
    color: var(--color-red);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.success-message {
    color: var(--color-green);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* ============================================
   11. Lists
   ============================================ */

ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* ============================================
   12. Utility Classes
   ============================================ */

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

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

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.relative {
    position: relative;
}

/* ============================================
   13. Responsive Design
   ============================================ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .bg-shape {
        opacity: 0.6;
    }

    .grid-two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .feature-grid {
        gap: 2rem;
    }

    .glass-hero {
        padding: 3rem 1.5rem;
    }

    main {
        padding: 0 1.5rem;
    }
}

/* Tablet (≤768px) */
@media (max-width: 768px) {
    section {
        margin: 3rem 0;
    }

    .page-title {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .glass-hero {
        padding: 2.5rem 1.5rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .glass-hero .btn-group {
        flex-direction: row;
        align-items: center;
    }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
    section {
        margin: 2rem 0;
    }

    #hero {
        margin-top: 1rem;
    }

    .bg-shape {
        opacity: 0.3;
    }

    .page-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

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

    .glass-card {
        padding: 1.5rem;
    }

    .glass-hero {
        padding: 2rem 1rem;
    }

    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .glass-header {
        padding: 1rem 1rem;
    }

    .logo-img {
        height: 42px;
        margin: -6px 0;
    }

    .footer-logo {
        height: 36px;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ============================================
   14. Special Effects
   ============================================ */

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(15,23,42,0.08) 50%, transparent 100%);
    margin: 7rem 0 5rem 0;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Disabled State */
.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   15. Tipp-Bibliothek Split View Layout
   ============================================ */

/* Full-width override for library page */
.library-page {
    overflow: hidden;
    height: 100vh;
}

.library-page main {
    max-width: 100%;
    padding: 1rem 1rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    overflow: hidden;
    gap: 1rem;
}

.library-page .glass-footer {
    display: none;
}

/* Header with filters - compact single row */
.library-header {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem 1rem;
    overflow: visible;
}

.library-header::before {
    display: none;
}

.library-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.library-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text-gray);
    margin: 0;
}

.library-count-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    color: var(--color-indigo);
    font-size: 0.9rem;
    font-weight: 500;
}

.library-count-badge svg {
    opacity: 0.7;
}

.count-filtered {
    font-weight: 700;
    color: var(--color-indigo);
}

.count-separator {
    color: var(--color-medium-gray);
    font-weight: 400;
}

.count-total {
    font-weight: 600;
}

.count-label {
    color: var(--color-medium-gray);
    font-weight: 400;
}

.library-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 40px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-indigo);
    text-decoration: none;
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.library-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.library-btn-search {
    padding: 0 0.85rem;
    cursor: pointer;
    background: var(--color-indigo);
    color: white;
    border-color: var(--color-indigo);
}

.library-btn-search:hover {
    background: var(--color-blue-deep);
    border-color: var(--color-blue-deep);
}

.library-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group-icon {
    flex-shrink: 0;
    color: var(--color-medium-gray);
    opacity: 0.6;
}

.filter-separator {
    width: 1px;
    height: 24px;
    background: rgba(37, 99, 235, 0.2);
    flex-shrink: 0;
}

.filter-search-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.library-filter-form select,
.library-filter-form input {
    padding: 0.5rem 1rem;
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    height: 40px;
    color: var(--color-text-gray);
    transition: all 0.2s ease;
}

.library-filter-form select {
    min-width: 130px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.library-filter-form select:hover,
.library-filter-form input:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.library-filter-form input {
    flex: 1;
    min-width: 150px;
}

.library-filter-form input::placeholder {
    color: var(--color-medium-gray);
    opacity: 0.7;
}

.library-filter-form select:focus,
.library-filter-form input:focus {
    outline: none;
    border-color: var(--color-indigo);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.library-filter-form select option {
    padding: 0.5rem;
    background: white;
    color: var(--color-text-gray);
}

/* Split view layout (desktop) */
.library-split-view {
    display: none;
}

/* List panel */
.library-list {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(32px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.library-list-inner {
    height: 100%;
    overflow-y: auto;
}

/* Custom scrollbar for library panels */
.library-list-inner::-webkit-scrollbar,
.library-detail-inner::-webkit-scrollbar {
    width: 8px;
}

.library-list-inner::-webkit-scrollbar-track,
.library-detail-inner::-webkit-scrollbar-track {
    background: transparent;
}

.library-list-inner::-webkit-scrollbar-thumb,
.library-detail-inner::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 4px;
}

.library-list-inner::-webkit-scrollbar-thumb:hover,
.library-detail-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.4);
}

.library-list-item {
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.library-list-item:last-child {
    border-bottom: none;
}

.library-list-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.library-list-item.selected {
    background: rgba(37, 99, 235, 0.1);
    border-left: 3px solid var(--color-indigo);
}

.list-item-content {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-weight: 600;
    color: var(--color-text-gray);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.list-item-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.list-item-icon-wrapper {
    position: relative;
    flex-shrink: 0;
}

.list-item-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    box-shadow: none;
}

.starter-ribbon {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 22px;
    height: 22px;
    background: #0d9488;
    border-radius: 6px 0 6px 0;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(13, 148, 136, 0.3);
}

.starter-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(13, 148, 136, 0.1);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* New tip highlight */
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

.library-list-item--new {
    border-left: 3px solid #f97316;
}

.library-list-item--new.selected {
    border-left: 3px solid #f97316;
}

.new-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f97316;
    border-radius: 50%;
    margin-right: 7px;
    margin-bottom: 4px;
    vertical-align: middle;
    flex-shrink: 0;
    animation: pulse-dot 1.8s ease-in-out infinite;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

.glass-card--new {
    border: 1.5px solid rgba(249, 115, 22, 0.4);
}

.badge-new-label {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.35);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Detail panel */
.library-detail {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(32px);
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.library-detail-inner {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
}

.library-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.library-detail-content {
    display: none;
}

/* Mobile card grid */
.library-mobile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

/* Move header title/count above filters when they would overlap */
@media (max-width: 1120px) {
    .library-header-right {
        order: -1;
        width: 100%;
    }
}

/* Desktop breakpoint: show split view, hide mobile grid */
@media (min-width: 1025px) {
    .library-page main {
        padding: 1rem 2rem;
    }

    .library-split-view {
        display: grid;
        grid-template-columns: 45% 1fr;
        gap: 1.5rem;
        flex: 1;
        min-height: 0;
    }

    .library-mobile-grid {
        display: none;
    }
}

/* Tablet/Mobile: hide split view, show mobile grid */
@media (max-width: 1024px) {
    .library-page {
        overflow: auto;
        height: auto;
    }

    .library-page main {
        height: auto;
        overflow: visible;
    }

    .library-page .glass-footer {
        display: block;
    }

    .library-split-view {
        display: none;
    }

    .library-mobile-grid {
        display: grid;
    }

    .library-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .library-header-right {
        width: 100%;
        justify-content: space-between;
    }

    .library-title {
        font-size: 1.25rem;
    }

    .library-count-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.8rem;
        gap: 0.35rem;
    }

    .library-count-badge svg {
        width: 14px;
        height: 14px;
    }

    .library-filter-form {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .filter-group {
        display: contents;
    }

    .filter-group-icon {
        display: none;
    }

    .filter-separator {
        display: none;
    }

    .library-filter-form select {
        min-width: 0;
        width: 100%;
        font-size: 0.82rem;
        padding: 0.4rem 2rem 0.4rem 0.7rem;
    }

    .filter-search-row {
        grid-column: 1 / -1;
        display: flex;
        gap: 0.5rem;
    }

    .filter-search-row input {
        flex: 1;
        min-width: 0;
        width: auto;
        font-size: 0.82rem;
        padding: 0.4rem 0.7rem;
    }

    .library-filter-form select,
    .library-filter-form input,
    .library-btn {
        height: 38px;
    }

    .library-btn-search {
        height: 38px;
        padding: 0 0.75rem;
    }

    .library-btn {
        font-size: 0.82rem;
        padding: 0 0.75rem;
    }
}

/* ============================================
   16. Tool Settings Modal
   ============================================ */

.library-btn-settings {
    padding: 0 0.75rem;
}

.tool-settings-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.tool-settings-modal.open {
    display: flex;
}

.tool-settings-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.tool-settings-modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    z-index: 1;
}

.tool-settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.tool-settings-modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-gray);
    margin: 0;
    padding-right: 1rem;
}

.tool-settings-modal-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--color-medium-gray);
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tool-settings-modal-close:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-indigo);
}

.tool-settings-info {
    font-size: 0.9rem;
    color: var(--color-medium-gray);
    margin-bottom: 1.5rem;
}

.tool-settings-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.tool-settings-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.tool-settings-item:hover {
    background: rgba(37, 99, 235, 0.05);
}

.tool-settings-item input[type="checkbox"] {
    display: none;
}

.tool-settings-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(37, 99, 235, 0.3);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.tool-settings-item input[type="checkbox"]:checked + .tool-settings-checkbox {
    background: var(--color-indigo);
    border-color: var(--color-indigo);
}

.tool-settings-item input[type="checkbox"]:checked + .tool-settings-checkbox::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.tool-settings-label {
    font-size: 0.95rem;
    color: var(--color-text-gray);
}

.tool-settings-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
}

@media (max-width: 480px) {
    .tool-settings-list {
        grid-template-columns: 1fr;
    }

    .tool-settings-actions {
        flex-direction: column;
    }

    .tool-settings-actions button {
        width: 100%;
    }
}

/* ============================================
   17. Shared Status Feature
   ============================================ */

/* Shared Badge (in tip list) */
.shared-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Tip Actions — sticky bar just below the title */
.tip-actions-sticky {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 -2rem 1.5rem -2rem;
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.tip-published-date {
    text-align: right;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

/* Tip Actions in Detail Panel */
.tip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.shared-action {
    display: flex;
    align-items: center;
}

.shared-status-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shared-status-text {
    font-size: 0.9rem;
    color: var(--color-green);
    font-weight: 500;
}

/* Share Button */
/* ============================================
   Copy Split Button (Teams / SharePoint)
   ============================================ */

.copy-split-btn {
    position: relative;
    display: inline-flex;
    border-radius: var(--radius-button);
    box-shadow: var(--shadow-button);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.copy-split-btn:hover {
    box-shadow: var(--shadow-button-hover);
    transform: translateY(-2px);
}

.copy-split-main {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.64rem 1.4rem;
    background: var(--color-indigo);
    color: white;
    border: none;
    border-radius: var(--radius-button) 0 0 var(--radius-button);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.copy-split-main:hover {
    background: var(--color-blue-deep);
}

.copy-split-separator {
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
    align-self: stretch;
    flex-shrink: 0;
}

.copy-split-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.85rem;
    background: var(--color-indigo);
    border: none;
    border-radius: 0 var(--radius-button) var(--radius-button) 0;
    cursor: pointer;
    transition: background 0.2s ease;
    min-height: 100%;
}

.copy-split-chevron:hover {
    background: var(--color-blue-deep);
}

.copy-split-chevron svg {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copy-split-btn.dropdown-open .copy-split-chevron svg {
    transform: rotate(180deg);
}

/* Small platform icon badge inside button */
.platform-badge {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.copy-split-main:hover .platform-badge {
    background: rgba(255, 255, 255, 0.26);
}

/* Dropdown panel */
.copy-split-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.13),
        0 6px 20px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top left;
}

.copy-split-btn.dropdown-open .copy-split-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.dropdown-header {
    padding: 0.6rem 1.1rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    background: #fafbfc;
    border-bottom: 1px solid #f0f4f8;
}

.copy-option {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: white;
    border: none;
    border-bottom: 1px solid #f0f4f8;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease;
    font-family: 'DM Sans', sans-serif;
}

.copy-option:last-child {
    border-bottom: none;
}

.copy-option:hover {
    background: #f5f8ff;
}

.copy-option.active {
    background: #eef4ff;
}

.option-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-icon {
    background: #f1f5f9;
}

.option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.option-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.option-desc {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.3;
}

.option-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1.5px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-button);
    color: var(--color-green);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-share:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
}

/* Unshare Button */
.btn-unshare {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 8px;
    color: var(--color-medium-gray);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-unshare:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--color-red);
}

/* ============================================
   18. Toast Notifications
   ============================================ */

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-gray);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--ease-out-expo);
    z-index: 3000;
    overflow: hidden;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

/* Progress bar on toast */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-indigo);
    animation: toastProgress 2.5s linear forwards;
    animation-play-state: paused;
}

.toast.show::after {
    animation-play-state: running;
}

@keyframes toastProgress {
    from { transform: scaleX(1); transform-origin: left; }
    to { transform: scaleX(0); transform-origin: left; }
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.3);
    border-left: 4px solid var(--color-green);
    color: var(--color-green);
}

.toast-success::after {
    background: var(--color-green);
}

.toast-error {
    border-color: rgba(220, 38, 38, 0.3);
    border-left: 4px solid var(--color-red);
    color: var(--color-red);
}

.toast-error::after {
    background: var(--color-red);
}

/* Mobile responsiveness for shared feature */
@media (max-width: 768px) {
    .tip-actions-sticky {
        margin: 0 -1rem 1.25rem -1rem;
        padding: 0.75rem 1rem;
    }

    .tip-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .shared-action {
        justify-content: center;
    }

    .shared-status-display {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ============================================
   19. Services Page
   ============================================ */

/* Services Journey Layout */
.services-journey {
    position: relative;
    margin: 3rem 0;
}

/* Flow line connector */
.services-flow-line {
    display: none;
    position: absolute;
    top: 80px;
    left: 10%;
    right: 10%;
    height: 60px;
    z-index: 0;
    opacity: 0.5;
}

@media (min-width: 1024px) {
    .services-flow-line {
        display: block;
    }
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

/* Service Card Base */
.service-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    padding: 2rem;
    border-radius: var(--radius-card);
    border: 2.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-card),
                0 0 0 1px rgba(255,255,255,0.4),
                inset 0 1px 1px 0 rgba(255,255,255,0.7);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: height 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover),
                0 0 0 1px rgba(255,255,255,0.4),
                inset 0 1px 1px 0 rgba(255,255,255,0.7);
}

.service-card:hover::before {
    height: 6px;
}

/* Service Card Color Variants */
.service-card--teal::before {
    background: linear-gradient(90deg, #0d9488, #14b8a6);
}
.service-card--teal .service-step,
.service-card--teal .service-icon {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.2);
}
.service-card--teal .service-subtitle {
    color: #0d9488;
}
.service-card--teal .service-cta {
    color: #0d9488;
    border-color: rgba(13, 148, 136, 0.3);
}
.service-card--teal:hover .service-cta {
    background: rgba(13, 148, 136, 0.1);
}

.service-card--orange::before {
    background: linear-gradient(90deg, #ea580c, #f97316);
}
.service-card--orange .service-step,
.service-card--orange .service-icon {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.2);
}
.service-card--orange .service-subtitle {
    color: #ea580c;
}
.service-card--orange .service-cta {
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.3);
}
.service-card--orange:hover .service-cta {
    background: rgba(234, 88, 12, 0.1);
}

.service-card--blue::before {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}
.service-card--blue .service-step,
.service-card--blue .service-icon {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}
.service-card--blue .service-subtitle {
    color: #2563eb;
}
.service-card--blue .service-cta {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
}
.service-card--blue:hover .service-cta {
    background: rgba(37, 99, 235, 0.1);
}

/* Service Card Elements */
.service-step {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.service-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.service-icon svg {
    width: 44px;
    height: 44px;
}

.service-content {
    flex: 1;
}

.service-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    display: block;
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-gray);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.service-description {
    font-size: 1rem;
    color: var(--color-medium-gray);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-highlights {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.service-highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--color-text-gray);
    line-height: 1.5;
}

.service-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1.5px solid;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
}

.service-cta svg {
    transition: transform 0.2s ease;
}

.service-card:hover .service-cta svg {
    transform: translateX(4px);
}

/* Services Page Responsive */
@media (max-width: 768px) {
    .services-grid {
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg {
        width: 36px;
        height: 36px;
    }

    .service-step {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .service-title {
        font-size: 1.35rem;
    }
}

/* Service Detail Page Header */
.service-detail-header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.service-detail-header .page-title {
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
}

.service-detail-header .page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 2px;
}

.service-detail-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 2px solid;
}

.service-detail-icon svg {
    width: 32px;
    height: 32px;
}

/* Service Detail Color Variants */
.service-detail-header--teal .service-detail-icon {
    color: #0d9488;
    background: rgba(13, 148, 136, 0.08);
    border-color: rgba(13, 148, 136, 0.2);
}
.service-detail-header--teal .page-title::after {
    background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.service-detail-header--orange .service-detail-icon {
    color: #ea580c;
    background: rgba(234, 88, 12, 0.08);
    border-color: rgba(234, 88, 12, 0.2);
}
.service-detail-header--orange .page-title::after {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.service-detail-header--blue .service-detail-icon {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
}
.service-detail-header--blue .page-title::after {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

@media (max-width: 480px) {
    .service-detail-icon {
        width: 48px;
        height: 48px;
    }

    .service-detail-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   20. About Page
   ============================================ */

/* About Story Section */
.about-highlight {
    background: rgba(37, 99, 235, 0.06);
    border-left: 3px solid var(--color-indigo);
    padding: 1rem 1.25rem;
    border-radius: 0 12px 12px 0;
    font-weight: 500;
}

.about-cta-closing {
    margin-bottom: 0;
    color: var(--color-medium-gray);
}

.about-cta-closing strong {
    color: var(--color-text-gray);
}

/* Founder Profile */
.founder-card {
    display: flex;
    justify-content: center;
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.founder-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.15);
}

.founder-info .card-title {
    margin-bottom: 0.25rem;
}

.founder-info .body-text {
    color: var(--color-medium-gray);
    margin-bottom: 1rem;
}

.founder-certification {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: rgba(37, 99, 235, 0.05);
    border-radius: 8px;
}

.certification-badge {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 0;
    box-shadow: none;
}

.certification-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-gray);
    line-height: 1.3;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.linkedin-link svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 480px) {
    .founder-profile {
        flex-direction: column;
        text-align: center;
    }

    .founder-photo {
        width: 120px;
        height: 120px;
    }

    .founder-certification {
        justify-content: center;
    }
}

/* ============================================
   21. Demo Tip Library
   ============================================ */

/* Demo Notice Banner */
.demo-notice {
    margin-bottom: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
}

.demo-notice::before {
    display: none;
}

.demo-notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-notice-icon {
    display: inline;
    vertical-align: -3px;
    margin-right: 0.5rem;
    color: var(--color-indigo);
}

.demo-notice-text {
    flex: 1;
    min-width: 200px;
    color: var(--color-text-gray);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.demo-notice-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Disabled Share Button for Demo */
.btn-share-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-share-disabled:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Demo CTA in detail view */
.demo-cta-small {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 12px;
    text-align: center;
}

.demo-cta-small p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-medium-gray);
}

.demo-cta-small a {
    color: var(--color-indigo);
    font-weight: 600;
    text-decoration: none;
}

.demo-cta-small a:hover {
    text-decoration: underline;
}

/* Demo responsive */
@media (max-width: 768px) {
    .demo-notice-content {
        flex-direction: column;
        text-align: center;
    }

    .demo-notice-text {
        min-width: auto;
        display: block;
        text-align: center;
    }

    .demo-notice-actions {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   22. Tool Logo Grid (for service pages)
   ============================================ */

.tool-logo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    max-width: 80%;
    margin: auto;
}

.tool-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 70px;
    transition: transform 0.3s var(--ease-out-expo);
}

.tool-logo-item:hover {
    transform: translateY(-4px) scale(1.08);
}

.tool-logo-item:hover img {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.12));
}

.tool-logo-item img {
    width: 48px;
    height: 48px;
    border-radius: 0;
    box-shadow: none;
}

.tool-logo-item span {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    text-align: center;
    color: var(--color-text-gray);
}

/* ============================================
   23. Abo Cards (Tipps & Tricks Service Page)
   ============================================ */

/* Abo Card Variants */
.abo-card {
    position: relative;
    text-align: center;
}

.abo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
}

.abo-card--basic::after {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.abo-card--premium::after {
    background: linear-gradient(90deg, #ea580c, #f97316);
}

.abo-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    background: rgba(234, 88, 12, 0.1);
    border: 1px solid rgba(234, 88, 12, 0.3);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ea580c;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 1;
}

/* Improved tool logo grid for abo cards */
.abo-card .tool-logo-item img {
    width: 52px;
    height: 52px;
}

/* Features horizontal grid */
.abo-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.abo-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
}

.abo-feature-item strong {
    color: var(--color-text-gray);
    font-size: 0.95rem;
}

.abo-feature-item span {
    color: var(--color-medium-gray);
    font-size: 0.85rem;
}

.abo-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    color: var(--color-indigo);
    margin-bottom: 0.5rem;
}

.abo-feature-icon svg {
    width: 22px;
    height: 22px;
}

/* Contact CTA card */
.abo-cta {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 480px) {
    .abo-badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

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

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

/* Fade up animation for page load */
.fade-up {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeUp 0.4s var(--ease-out-expo) forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Hero orchestration */
.glass-hero .hero-eyebrow { animation-delay: 0s; }
.glass-hero .hero-title { animation-delay: 0.08s; }
.glass-hero .subtitle { animation-delay: 0.16s; }
.glass-hero .btn-group { animation-delay: 0.24s; }

/* Hero eyebrow badge */
.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-indigo);
    margin-bottom: 1rem;
    padding: 0.4rem 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 20px;
}

/* ============================================
   25. Scroll-Triggered Reveals
   ============================================ */

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

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

/* Stagger children in grids */
.feature-grid .reveal:nth-child(1) { transition-delay: 0s; }
.feature-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.services-grid .reveal:nth-child(1) { transition-delay: 0s; }
.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================================
   26. Accessibility Enhancements
   ============================================ */

/* Skip Link */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--color-indigo);
    color: white;
    border-radius: 0 0 12px 12px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.3s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Focus-visible styles */
:focus-visible {
    outline: 3px solid var(--color-indigo);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--color-indigo);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.2);
}

a.glass-card:focus-visible {
    outline: none;
    border-color: var(--color-indigo);
    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.3),
        var(--shadow-card-hover);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
    border-color: var(--color-indigo);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============================================
   27. Reduced Motion Support
   ============================================ */

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

    .bg-shape {
        animation: none !important;
    }

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

    .fade-up {
        opacity: 1;
        transform: none;
    }

    .hero-title {
        animation: none !important;
        background-size: 100% 100% !important;
    }
}
