:root {
    /* ━━━ LEXICAT — DESIGN SYSTEM ━━━ */

    /* === Brand Colors — only two === */
    --red: #DA121A;
    --yellow: #F0A000;
    /* Use orange instead of original yellow #FCDD09 for better contrast      */

    /* === Base === */
    --black: #000000;
    --white: #ffffff;

    /* === Neutrals === */
    --gray-900: #1A1A1A;
    --gray-800: #333333;
    --gray-700: #4A4A4A;
    --gray-600: #5C5C5C;
    --gray-500: #7A7A7A;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50:  #f8fafc;

    /* === Surfaces (Light Mode) === */
    --bg-primary:   var(--white);
    --bg-secondary: var(--gray-50);
    --bg-surface:   var(--white);
    --bg-tertiary:  var(--gray-100);
    --bg-elevated:  var(--gray-100);
    --bg-bright:    var(--gray-200);
    --bg-nav:       rgba(255, 255, 255, 0.95);

    /* === Text === */
    --text-primary:   var(--gray-700);
    --text-secondary: var(--gray-600);
    --text-muted:     var(--gray-500);

    /* === Borders === */
    --border-color:       color-mix(in srgb, var(--red) 15%, transparent);
    --border-color-light: color-mix(in srgb, var(--red) 8%, transparent);

    /* === Shadows === */
    --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md:  0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.04);
    --shadow-lg:  0 8px 16px rgba(0, 0, 0, 0.06), 0 20px 40px rgba(0, 0, 0, 0.05);
    --shadow-xl:  0 12px 24px rgba(0, 0, 0, 0.07), 0 24px 60px rgba(0, 0, 0, 0.06);

    /* === Card Shadows === */
    --card-shadow:       rgba(0, 0, 0, 0.08);
    --card-hover-shadow: rgba(0, 0, 0, 0.15);

    /* === Brand Shadows & Glows === */
    --red-glow-sm: 0 4px 15px color-mix(in srgb, var(--red) 30%, transparent);
    --red-glow-md: 0 8px 25px color-mix(in srgb, var(--red) 40%, transparent);
    --red-glow-lg: 0 10px 25px color-mix(in srgb, var(--red) 40%, transparent);
    --red-focus-ring: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent);

    /* === Hero & CTA gradient backgrounds === */
    --gradient-hero:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--red) 12%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--yellow) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--red) 8%, transparent) 0%, transparent 50%);
    --gradient-cta:
        radial-gradient(circle at 20% 40%, color-mix(in srgb, var(--red) 15%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 80% 60%, color-mix(in srgb, var(--yellow) 18%, transparent) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, color-mix(in srgb, var(--red) 10%, transparent) 0%, transparent 50%);

    /* === Border Radius === */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  16px;
    --radius-xl:  24px;

    /* === Typography === */
    --font-sans: Calibri, 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* === Animation === */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast:   0.2s;
    --duration-normal: 0.35s;
    --duration-slow:   0.6s;

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

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

/* Ensure the HTML `hidden` attribute is never overridden by author CSS */
[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Hide theme toggle (rendered by web-core template) */
.theme-toggle {
    display: none;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: all var(--duration-normal) ease;
}

.nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--yellow), transparent);
    opacity: 0.7;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Ensure the picture wrapper and image are aligned when using <picture> */
.logo picture {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.logo-text {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

.layer {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--duration-normal) ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-links a:hover {
    color: var(--red);
}

/* Dropdown Menu */
.nav-links li {
    position: relative;
}

.nav-links .dropdown {
    position: relative;
}

.nav-links .dropdown > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links .dropdown > a::after {
    content: '▼';
    font-size: 0.7rem;
}

.nav-links .dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    padding: var(--space-xs) 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s var(--ease-out-expo);
    box-shadow: var(--shadow-xl);
    z-index: 200;
}

.nav-links .dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-links .dropdown-menu li {
    list-style: none;
}

.nav-links .dropdown-menu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-links .dropdown-menu a:hover {
    background: var(--bg-tertiary);
    color: var(--red);
}

.nav-links a.nav-cta {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 50%, color-mix(in srgb, var(--red), black 15%) 100%);
    background-size: 200% auto;
    color: var(--white) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.nav-links a.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--red-glow-md);
    background-position: right center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--red);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px color-mix(in srgb, var(--red) 50%, transparent);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero.hero-small {
    min-height: 60vh;
    padding-top: 100px;
    padding-bottom: var(--space-xl);
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 0;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--red) 50%, transparent);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.hero-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--yellow));
    margin: 0.75rem auto 0;
    opacity: 0.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 50%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease infinite;
    background-size: 200% auto;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.hero-note {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: calc(var(--space-sm) - var(--space-xl));
    margin-bottom: calc(var(--space-xl) - var(--space-xs));
    line-height: 1.6;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.hero-note::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DA121A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    vertical-align: -0.15em;
    margin-right: 0.4rem;
}

a.hero-note:hover {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-gradient {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 50%, color-mix(in srgb, var(--red), black 15%) 100%);
    background-size: 200% auto;
    color: var(--white);
    box-shadow: var(--red-glow-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--red-glow-md);
    background-position: right center;
}

.btn-outline {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 50%, color-mix(in srgb, var(--red), black 15%) 100%);
    background-size: 200% auto;
    color: var(--white);
    box-shadow: var(--red-glow-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: var(--red-glow-md);
    background-position: right center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color-light);
    transition: all var(--duration-normal) ease;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--red) 50%, transparent) 50%, transparent 100%);
}

/* Services Section */
.services {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    transition: background 0.3s ease;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: var(--bg-secondary);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    position: relative;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    border: 1px solid var(--border-color-light);
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    padding: 3px;
    background: linear-gradient(135deg, transparent 0%, transparent 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.gradient-border-purple::before {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
}

.gradient-border-blue::before {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
}

.gradient-border-pink::before {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--red-glow-sm);
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    color: var(--white);
}

/* Large variant (used on leistungen page) */
.service-icon.large {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    margin-top: var(--space-md);
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--yellow);
    transform: translateX(4px);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.checkmark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* About Section */
.about {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.value-cards {
    display: grid;
    gap: var(--space-md);
}

.value-card {
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    border: 1px solid;
    transition: background-color 0.3s ease;
}

.gradient-bg-purple {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red) 15%, transparent) 0%, color-mix(in srgb, var(--yellow) 15%, transparent) 100%);
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
    backdrop-filter: blur(10px);
}

.gradient-bg-blue {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red) 15%, transparent) 0%, color-mix(in srgb, var(--yellow) 15%, transparent) 100%);
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
    backdrop-filter: blur(10px);
}

.gradient-bg-pink {
    background: linear-gradient(135deg, color-mix(in srgb, var(--yellow) 15%, transparent) 0%, color-mix(in srgb, var(--yellow) 15%, transparent) 100%);
    border-color: color-mix(in srgb, var(--yellow) 30%, transparent);
    backdrop-filter: blur(10px);
}

.value-emoji {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-xs);
}

.value-card p {
    opacity: 0.95;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-cta), var(--bg-primary);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--yellow), transparent);
    opacity: 0.7;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-primary);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

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

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.cta-content ul,
.cta-content ol {
    text-align: left;
    max-width: 600px;
    margin: var(--space-lg) auto;
    padding-left: var(--space-xl);
    color: var(--text-secondary);
}

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

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

.cta-buttons .btn-gradient {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 50%, color-mix(in srgb, var(--red), black 15%) 100%);
    background-size: 200% auto;
    color: var(--white);
}

.cta-buttons .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--red-glow-lg);
    background-position: right center;
}

.cta-buttons .btn-outline {
    background: color-mix(in srgb, var(--red) 10%, transparent);
    color: var(--red);
    border: 1px solid var(--red);
}

.cta-buttons .btn-outline:hover {
    background: color-mix(in srgb, var(--red), black 15%);
    color: var(--white);
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--red), black 15%);
    box-shadow: var(--red-glow-sm);
}

/* Footer */
.footer {
    background: var(--gray-700);
    padding: var(--space-3xl) 0 var(--space-lg);
    position: relative;
    transition: background 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--yellow), transparent);
    opacity: 0.7;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section .logo-img {
    height: 50px;
    width: auto;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-section .logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-section ul li {
    margin-bottom: var(--space-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--yellow);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.social-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--duration-fast) ease;
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: background var(--duration-fast) ease;
    flex-shrink: 0;
}

.social-icon--linkedin {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
}

.social-icon--instagram {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 1 0 0 12.324 6.162 6.162 0 0 0 0-12.324zM12 16a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm6.406-11.845a1.44 1.44 0 1 0 0 2.881 1.44 1.44 0 0 0 0-2.881z'/%3E%3C/svg%3E");
}

.social-icon--email {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
}

.social-link:hover .social-icon--linkedin {
    background: #0A66C2;
}

.social-link:hover .social-icon--instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link:hover .social-icon--email {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--yellow);
}

/* Legacy footer classes for compatibility */
.footer-brand p {
    margin-top: var(--space-sm);
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: var(--space-xs);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--yellow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .nav-container {
        padding: var(--space-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: var(--space-md);
        transition: right 0.3s ease, background-color 0.3s ease;
        border-left: 2px solid var(--red);
        box-shadow: -5px 0 30px var(--card-shadow);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
    
    /* Mobile Dropdown Menu */
    .nav-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 var(--space-md);
        min-width: auto;
        background: transparent;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-links .dropdown.active .dropdown-menu {
        max-height: 300px;
    }
    
    .nav-links .dropdown > a::after {
        float: right;
    }
    
    .nav-links .dropdown-menu a {
        padding: 0.5rem 0;
        font-size: 1rem;
    }
    
    .nav-links a.nav-cta {
        text-align: center;
        padding: 1rem var(--space-md) !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .presentation-layout {
        justify-content: center;
        text-align: center;
    }

    .presentation-photo {
        flex: 0 0 min(220px, 60vw);
    }

    .hero.hero-small .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .stat-divider {
        width: 100px;
        height: 2px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Content Pages (Legal, Services, etc.) */
.content-page {
    padding-top: 100px;
    padding-bottom: var(--space-3xl);
    min-height: 100vh;
}

.content-page .container {
    max-width: 900px;
}

.content-page h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.content-page h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

/* Section-style headings in content pages (e.g. exercises & resources) */
.content-page .section-header {
    scroll-margin-top: 100px;
    margin-top: var(--space-2xl);
}

.content-page .section-header:first-child {
    margin-top: 0;
}

.content-page .section-header h2 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.content-page h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.content-page p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    max-width: none;
}

.content-page ul, 
.content-page ol {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
    padding-left: var(--space-lg);
}

.content-page li {
    margin-bottom: var(--space-xs);
}

.content-page a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.3s;
}

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

.content-page a.btn-gradient {
    color: var(--white);
}

.content-page .last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--space-xl);
}

/* Services Page Specific */
.services-page .service-detail {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-color-light);
    transition: background-color 0.3s ease;
}

.services-page .service-detail:hover {
    border-color: var(--border-color);
}

.services-page .service-detail h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.services-page .service-detail .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.services-page .service-detail .icon.purple {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    color: var(--white);
}

.services-page .service-detail .icon.blue {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    color: var(--white);
}

.services-page .service-detail .icon.pink {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow) 100%);
    color: var(--white);
}

/* New Page Styles */
.page-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-color-light);
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.breadcrumb a {
    color: var(--red);
    text-decoration: none;
}

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

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

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

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

.content-block {
    max-width: 900px;
    margin: 0 auto;
}

.content-block + .content-block {
    margin-top: var(--space-3xl);
}

.content-block .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.content-block ul,
.content-block ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-xl);
    color: var(--text-secondary);
}

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

.content-block h3 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.content-block h4 {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.content-block a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.3s;
}

.content-block a:hover {
    color: var(--yellow);
}

.content-block a.btn-gradient {
    color: var(--white);
}

.content-card ul {
    list-style: none;
    padding-left: 0;
    margin: var(--space-md) 0;
}

.content-card li {
    margin: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
}

.content-card li::before {
    content: "●";
    position: absolute;
    left: 0;
    background: linear-gradient(135deg, var(--yellow) 20%, var(--red) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 8s ease infinite;
}

.content-card h4 {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.feature-card ul {
    list-style: none;
    padding-left: 0;
    margin: var(--space-md) 0;
}

.feature-card li {
    margin: var(--space-xs) 0;
    padding-left: var(--space-md);
    position: relative;
    font-size: 0.95rem;
}

.feature-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.content-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.content-card:hover {
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--red-glow-sm);
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.level-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-md);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.2;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.02em;
}

.level-a { color: var(--yellow); }
.level-b { color: color-mix(in srgb, var(--red) 50%, var(--yellow)); }
.level-c { color: var(--red); }

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

.content-card .btn {
    margin-top: var(--space-md);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.features-grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.feature-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.5s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--red-glow-sm);
}

/* ── Review stars ────────────────────────────────────── */
.review-stars {
    color: #E8B400;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

/* ── Presentation section (photo + text) ────────────── */
.presentation-layout {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    align-items: center;
}

.presentation-photo {
    flex: 0 0 min(320px, 100%);
    display: flex;
    justify-content: center;
}

/* Text column — needs at least 320px to sit beside the photo */
.presentation-layout > .content-block {
    flex: 1 1 320px;
    min-width: 0;
}

.portrait-photo {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    padding: 5px;
    box-shadow: 0 6px 24px color-mix(in srgb, var(--red) 25%, transparent);
}

.portrait-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 50%;
}

/* ── Quote/Barcelona section ─────────────────────────── */
#quote-barcelona {
    position: relative;
    overflow: hidden;
}

#quote-barcelona::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), var(--yellow), transparent);
    opacity: 0.7;
    z-index: 3;
}

/* Let the background latch onto the section, not the inner container */
#quote-barcelona .container,
#quote-barcelona .content-block {
    position: static;
}

.quote-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(1.05) saturate(1.1);
}

.quote-bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 1;
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--white);
}

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

.feature-detail .feature-icon {
    margin-bottom: var(--space-md);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.security-item {
    text-align: center;
    padding: var(--space-lg);
}

.security-item svg {
    color: var(--red);
    margin-bottom: var(--space-md);
}

.security-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.security-highlight {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-2xl);
    text-align: center;
    max-width: 800px;
    margin: var(--space-xl) auto 0;
}

.security-highlight .security-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--white);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.roadmap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
}

.roadmap-card svg {
    color: var(--red);
    flex-shrink: 0;
}

.roadmap-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.note {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-left: 3px solid var(--red);
    border-radius: 0;
    font-style: italic;
    color: var(--text-secondary);
}

.info-box {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.info-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
    position: relative;
}

.styled-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.process-step {
    text-align: center;
    padding: var(--space-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.use-cases {
    display: grid;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.use-case {
    background: var(--bg-primary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
}

.use-case h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.compliance-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm);
    padding: var(--space-xl);
    text-align: center;
}

.compliance-card svg {
    color: var(--red);
    margin-bottom: var(--space-md);
}

.compliance-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

/* Contact Form */
.contact-form-section {
    padding: var(--space-2xl) 0;
}

/* Inside the contact-layout grid the outer section padding is not needed */
.contact-layout .contact-form-section {
    padding: 0;
}

.contact-form-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form-inner .contact-form-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.025em;
}

.form-required {
    color: var(--yellow);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

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

.form-actions {
    margin-top: var(--space-sm);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    padding: 0.875rem var(--space-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 100%);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--red-glow-sm);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--red-glow-md);
}

.form-submit:active {
    transform: translateY(0);
}

.form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.form-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.form-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.grid-full {
    grid-column: 1 / -1;
}

/* Grid Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.grid-full {
    grid-column: 1 / -1;
}

/* Leistungen Page Styles */
.leistung-block {
    scroll-margin-top: 100px;
}

.leistung-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.leistung-header .service-icon.large {
    flex-shrink: 0;
    margin-bottom: 0;
}

.leistung-header h2 {
    margin-top: 0.25rem;
    margin-bottom: var(--space-sm);
}

.leistung-lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.leistung-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    color: var(--text-secondary);
}

.leistung-list li {
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.leistung-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 700;
}

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

.leistung-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: color-mix(in srgb, var(--red) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 20%, transparent);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.02em;
}

.section-divider {
    margin: 4rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 600px) {
    .leistung-header {
        flex-direction: column;
        gap: var(--space-md);
    }
}

/* Zielgruppen Card */
.zielgruppe-card {
    background: var(--bg-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: border-color var(--duration-normal) ease, box-shadow var(--duration-normal) ease;
}

.zielgruppe-card h2 {
    margin-top: 0;
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.zielgruppe-card .zielgruppe-note {
    margin-top: var(--space-lg);
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--red);
    padding-left: var(--space-md);
}

/* Souveraenitaet Card */
.souveraenitaet-card {
    background: var(--bg-surface);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: border-color var(--duration-normal) ease, transform var(--duration-normal) ease;
}

.souveraenitaet-card:hover {
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
    transform: translateY(-2px);
}

.souveraenitaet-card h3,
.souveraenitaet-card h4 {
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

/* How We Work Grid (Über uns) */
.how-we-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    color: var(--text-secondary);
}

.how-we-work-grid strong {
    display: block;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: var(--space-xs);
    font-family: var(--font-sans);
}

/* Partner Section */
.partner-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.partner-group {
    padding: var(--space-xl) 0;
}

.partner-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.partner-group-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-xl);
}

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
}

.partner-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity var(--duration-normal) ease, transform var(--duration-normal) var(--ease-out-expo);
    filter: grayscale(40%);
}

.partner-logo-link:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: grayscale(0%);
}

.partner-logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.partner-logo-link--with-name {
    gap: var(--space-md);
}

.partner-logo-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

.partner-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 0 auto;
}

/* Contact Page Layout (Two-Column) */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-3xl);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-intro .lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.75rem var(--space-sm);
    background: var(--bg-surface);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-info-item strong {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 0.35em;
}

.contact-info-item a {
    color: var(--red);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-item a:hover {
    color: var(--yellow);
}

.contact-info-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, color-mix(in srgb, var(--red) 12%, transparent) 0%, color-mix(in srgb, var(--yellow) 12%, transparent) 100%);
    border: 1px solid var(--border-color-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
}

.contact-form-wrapper {
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

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

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: var(--space-xs);
}

.contact-submit-btn {
    width: 100%;
    padding: 0.875rem var(--space-xl);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    border-radius: var(--radius-sm);
    margin-top: var(--space-sm);
}

.contact-form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-xl);
    gap: var(--space-md);
}

.contact-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.2) 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4ade80;
}

.contact-form-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.contact-form-success p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.contact-form-error {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    color: #dc2626;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-shrink: 0;
}

.contact-form-error svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-form-error p {
    margin: 0;
    color: inherit;
}

.contact-form-error a {
    color: var(--red);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Cookie Consent Banner */
.consent-banner {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: var(--space-lg);
}

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

.consent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.consent-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.consent-content {
    margin-bottom: var(--space-lg);
}

.consent-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.consent-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.consent-categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color-light);
}

.consent-categories[hidden] {
    display: none;
}

.consent-category-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.consent-category-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
    cursor: pointer;
}

.consent-category-label input[type="checkbox"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.consent-category-name {
    font-weight: 500;
}

.consent-category-required {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.consent-actions[hidden] {
    display: none;
}

.consent-customize-link {
    text-align: center;
    margin-top: var(--space-xs);
}

.consent-link {
    background: none;
    border: none;
    color: var(--red);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: var(--yellow);
}

.consent-customize-link[hidden] {
    display: none;
}

.consent-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem var(--space-md);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.consent-btn[hidden] {
    display: none;
}

.consent-btn-accept {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 100%);
    color: var(--white);
    box-shadow: var(--red-glow-sm);
}

.consent-btn-accept:hover {
    transform: translateY(-1px);
    box-shadow: var(--red-glow-md);
}

.consent-btn-reject {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.consent-btn-reject:hover {
    background: var(--bg-primary);
}

.consent-btn-save {
    background: linear-gradient(135deg, color-mix(in srgb, var(--red), black 15%) 0%, color-mix(in srgb, var(--yellow), black 10%) 100%);
    color: var(--white);
    box-shadow: var(--red-glow-sm);
}

.consent-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: var(--red-glow-md);
}

/* Prevent scrolling when consent banner is open */
body.consent-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .consent-banner {
        padding: var(--space-sm);
        align-items: flex-end;
    }

    .consent-dialog {
        padding: var(--space-md);
        border-radius: 0;
    }

    .consent-actions {
        flex-direction: column;
    }

    .consent-btn {
        width: 100%;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-method {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-sm);
    padding: var(--space-xl);
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    color: var(--white);
}

.contact-method h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.contact-method a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}

.contact-method a:hover {
    color: var(--yellow);
}

.lang-switch {
    padding: 0.5rem 1rem !important;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.lang-dropdown > a {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-dropdown .dropdown-menu {
    min-width: auto;
}

.lang-dropdown .dropdown-menu .lang-switch {
    background: none;
    padding: var(--space-xs) var(--space-md) !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-flag {
    height: 1em;
    width: auto;
    border-radius: 2px;
    vertical-align: middle;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .content-grid,
    .features-grid,
    .features-grid-2col,
    .process-grid,
    .compliance-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-inner {
        padding: var(--space-sm) var(--space-md);
    }

    .contact-form-heading {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   PREMIUM SCROLL REVEAL SYSTEM
   ========================================================================== */

[data-reveal] {
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out-expo),
                transform var(--duration-slow) var(--ease-out-expo);
}

/* Sections with full-bleed background images must not scale — the image would
   appear clipped/small and then jump. Force fade-only for those sections. */
[data-reveal]:has(.quote-bg) {
    transform: none !important;
}

[data-reveal="up"] { transform: translateY(32px); }
[data-reveal="down"] { transform: translateY(-32px); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="fade"] { transform: none; }

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* Stagger animation for grid children */
[data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out-expo),
                transform 0.5s var(--ease-out-expo);
}

[data-reveal-stagger].revealed > * {
    opacity: 1;
    transform: none;
}

[data-reveal-stagger].revealed > *:nth-child(1) { transition-delay: 0.06s; }
[data-reveal-stagger].revealed > *:nth-child(2) { transition-delay: 0.12s; }
[data-reveal-stagger].revealed > *:nth-child(3) { transition-delay: 0.18s; }
[data-reveal-stagger].revealed > *:nth-child(4) { transition-delay: 0.24s; }
[data-reveal-stagger].revealed > *:nth-child(5) { transition-delay: 0.30s; }
[data-reveal-stagger].revealed > *:nth-child(6) { transition-delay: 0.36s; }

/* ==========================================================================
   MICRO-INTERACTIONS
   ========================================================================== */

/* Nav link underline animation (top-level only, excludes CTA & dropdown children) */
.nav-links > li > a:not(.nav-cta) {
    background-image: linear-gradient(90deg, var(--red), var(--yellow));
    background-size: 0% 2px;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: color var(--duration-normal) ease, background-size var(--duration-normal) var(--ease-out-expo);
}

.nav-links > li > a:not(.nav-cta):hover {
    background-size: 100% 2px;
}

/* Button active press feedback */
.btn:active {
    transform: scale(0.97) !important;
    transition-duration: 0.1s !important;
}

/* Service/feature icon hover scale */
.service-icon,
.feature-icon,
.contact-icon {
    transition: transform 0.35s var(--ease-spring);
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon,
.contact-method:hover .contact-icon {
    transform: scale(1.08);
}

/* Stat value hover glow */
.stat-value {
    transition: text-shadow 0.3s ease;
}

.stat:hover .stat-value {
    text-shadow: 0 0 20px color-mix(in srgb, var(--red) 40%, transparent);
}

/* Content card button subtle shift */
.content-card .btn {
    transition: all 0.3s var(--ease-out-expo);
}

.content-card:hover .btn {
    transform: translateX(4px);
}

/* Footer link hover nudge */
.footer-section a,
.footer-column a {
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.footer-section a:hover,
.footer-column a:hover {
    transform: translateX(3px);
}

/* Form input enhanced focus */
.form-input:focus,
.form-textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent), var(--red-glow-sm);
}

/* Value card hover lift */
.value-card {
    transition: all 0.4s var(--ease-out-expo);
}

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

/* Service link arrow bounce */
.service-link {
    transition: all 0.3s var(--ease-out-expo);
}

.service-link:hover {
    color: var(--yellow);
    transform: translateX(6px);
}

/* Badge — static, no float */

/* ==========================================================================
   HERO ENTRANCE ANIMATIONS
   ========================================================================== */

@keyframes heroReveal {
    from {
        clip-path: inset(0 0 100% 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0% 0);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--red) 0%, transparent)); }
    50%       { filter: drop-shadow(0 0 20px color-mix(in srgb, var(--red) 45%, transparent)); }
}

.hero-content > * {
    animation: heroReveal 0.65s var(--ease-out-expo) backwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.18s; }
.hero-content > *:nth-child(3) { animation-delay: 0.32s; }
.hero-content > *:nth-child(4) { animation-delay: 0.44s; }
.hero-content > *:nth-child(5) { animation-delay: 0.54s; }
.hero-content > *:nth-child(6) { animation-delay: 0.64s; }

.hero-title .gradient-text {
    animation: gradientFlow 8s ease infinite, glowPulse 4s ease-in-out 1.2s infinite;
}

/* ==========================================================================
   NAV SCROLL STATE
   ========================================================================== */

/* NAV SCROLL STATE — size and gradient are now always applied; no overrides needed */

/* ==========================================================================
   ENHANCED FOCUS STATES (A11Y)
   ========================================================================== */

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

a:focus-visible {
    border-radius: 4px;
}

.btn:focus-visible {
    outline-offset: 4px;
}

/* ==========================================================================
   ACCESSIBILITY - 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;
    }
    
    [data-reveal],
    [data-reveal-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .hero-content > * {
        animation: none !important;
        clip-path: none !important;
        opacity: 1 !important;
    }

    .hero-title .gradient-text {
        animation: gradientFlow 8s ease infinite !important;
        filter: none !important;
    }
}

/* ==========================================================================
   MOBILE MICRO-INTERACTION OVERRIDES
   ========================================================================== */

@media (max-width: 768px) {
    /* Disable underline animation in mobile nav */
    .nav-links > li > a:not(.nav-cta) {
        background-image: none;
    }
    
    /* Reduce card hover transforms on touch */
    .content-card:hover,
    .feature-card:hover {
        transform: translateY(-2px);
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text color utilities */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }

/* Lead / intro paragraph */
.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Highlighted / callout text span */
.text-highlight {
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mb-0  { margin-bottom: 0; }
.mt-sm { margin-top: 0.5rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mb-md { margin-bottom: 1rem; }
.mt-lg { margin-top: 2rem; }
.mb-lg { margin-bottom: 2rem; }
.mt-xl { margin-top: 3rem; }
.mb-xl { margin-bottom: 3rem; }
.mt-2xl { margin-top: 4rem; }
.mb-2xl { margin-bottom: 4rem; }

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

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-sm      { gap: 0.5rem; }
.gap-md      { gap: 1rem; }
.gap-lg      { gap: 2rem; }

/* Full-width block */
.w-full  { width: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Pricing Section ─────────────────────────────────── */
.pricing-section {
    grid-column: 1 / -1;
    scroll-margin-top: 100px;
    margin-top: var(--space-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-align: center;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    width: 100%;
    max-width: 1140px;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    transition: all 0.45s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.pricing-card:hover {
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--red-glow-sm);
}

.pricing-card-featured {
    border-color: color-mix(in srgb, var(--red) 30%, transparent);
    box-shadow: var(--shadow-md), var(--red-glow-sm);
    background: linear-gradient(160deg,
        var(--bg-secondary) 0%,
        color-mix(in srgb, var(--red) 4%, var(--bg-secondary)) 100%);
}

.pricing-card-featured:hover {
    box-shadow: var(--shadow-xl), var(--red-glow-md);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    box-shadow: var(--red-glow-sm);
}

.pricing-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
}

.pricing-per-unit {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.pricing-saving {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
    background: color-mix(in srgb, var(--red) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--red) 18%, transparent);
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-sm);
    margin-top: 0.15rem;
}

@media (max-width: 900px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        max-width: 480px;
    }
}

@media (max-width: 380px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

/* ── FAQ Accordion ────────────────────────────────────── */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-sm);
}

.faq-item:hover,
.faq-item[open] {
    border-color: color-mix(in srgb, var(--red) 25%, transparent);
    box-shadow: var(--shadow-lg), var(--red-glow-sm);
}

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.25rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--red) 0%, var(--yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s var(--ease-out-expo);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid var(--border-color-light);
}

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

/* ==========================================================================
   MOBILE SPACING — reduce whitespace and widen content on small screens
   ========================================================================== */

@media (max-width: 768px) {
    /* Narrower side padding so content fills the screen */
    .container {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    /* Tighter section vertical rhythm */
    .content-section,
    .services,
    .features-section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }

    /* Reduce section header bottom gap */
    .section-header {
        margin-bottom: var(--space-md);
    }

    /* Narrower card padding */
    .service-card {
        padding: var(--space-md);
    }

    .content-card {
        padding: var(--space-md);
    }

    .feature-card {
        padding: var(--space-md);
    }

    /* Tighter grid gaps */
    .services-grid {
        gap: var(--space-md);
    }

    .content-grid {
        gap: var(--space-md);
        margin-top: var(--space-md);
    }

    /* Content block fills full width */
    .content-block {
        max-width: 100%;
    }

    /* First content section on pages without a hero (e.g. /learning) must clear
       the fixed nav bar. On pages that have a hero, the hero is the first <section>
       so :first-of-type won't match .content-section there. */
    section.content-section:first-of-type {
        padding-top: 90px;
    }
}

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

@media print {
    .nav,
    .cookie-banner,
    .btn,
    .hero-spotlight,
    [data-reveal],
    [data-reveal-stagger] {
        display: none !important;
    }

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

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #555;
    }
}

