/* Forling Engineering System - Design System CSS */
/* Based on DESIGN.md specification */

/* ===== CSS Variables ===== */
:root {
    /* Surface Colors - light blue tint to complement logo */
    --surface: #f8faff;
    --surface-dim: #d0daf4;
    --surface-bright: #f8faff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f0f4ff;
    --surface-container: #e8eeff;
    --surface-container-high: #dfe7ff;
    --surface-container-highest: #d7e1fd;
    --surface-background: #ffffff;
    --surface-subtle: #f6f9ff;
    --surface-variant: #d7e1fd;

    /* On Surface Colors */
    --on-surface: #131b2e;
    --on-surface-variant: #424655;
    --inverse-surface: #283044;
    --inverse-on-surface: #eef0ff;

    /* Primary Colors - derived from logo blue #004EAB */
    --primary: #004eab;
    --on-primary: #ffffff;
    --primary-container: #1565d8;
    --on-primary-container: #f8faff;
    --primary-fixed: #d4e2ff;
    --primary-fixed-dim: #a8c6ff;
    --on-primary-fixed: #001a42;
    --on-primary-fixed-variant: #003a8a;
    --inverse-primary: #a8c6ff;
    --surface-tint: #0051ad;

    /* Secondary Colors - derived from logo cyan #00D4DF */
    --secondary: #007a80;
    --on-secondary: #ffffff;
    --secondary-container: #b2ebf0;
    --on-secondary-container: #004f55;
    --secondary-fixed: #b2ebf0;
    --secondary-fixed-dim: #8dd9e0;
    --on-secondary-fixed: #002023;
    --on-secondary-fixed-variant: #005559;

    /* Tertiary/Accent Colors - derived from logo green #7CD409 */
    --tertiary: #4d9a00;
    --on-tertiary: #ffffff;
    --tertiary-container: #95d44a;
    --on-tertiary-container: #f5ffe6;
    --tertiary-fixed: #d4f5a8;
    --tertiary-fixed-dim: #b8e27a;
    --on-tertiary-fixed: #162600;
    --on-tertiary-fixed-variant: #3a7500;

    /* Error Colors */
    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;

    /* Outline Colors */
    --outline: #727786;
    --outline-variant: #c2c6d7;

    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    /* Border Colors */
    --border-low: #e2e8f0;
    --border-high: #cbd5e1;

    /* Background */
    --background: #faf8ff;
    --on-background: #131b2e;

    /* Typography */
    --font-display: 'Inter', sans-serif;
    --font-headline-lg: 'Inter', sans-serif;
    --font-headline-md: 'Inter', sans-serif;
    --font-body-lg: 'Inter', sans-serif;
    --font-body-sm: 'Inter', sans-serif;
    --font-button: 'Inter', sans-serif;
    --font-label-mono: 'JetBrains Mono', monospace;

    /* Font Sizes */
    --font-size-display: 48px;
    --font-size-headline-lg: 30px;
    --font-size-headline-md: 20px;
    --font-size-body-lg: 16px;
    --font-size-body-sm: 14px;
    --font-size-button: 14px;
    --font-size-label-mono: 12px;

    /* Line Heights */
    --line-height-display: 1.1;
    --line-height-headline-lg: 36px;
    --line-height-headline-md: 28px;
    --line-height-body-lg: 24px;
    --line-height-body-sm: 20px;
    --line-height-button: 20px;
    --line-height-label-mono: 16px;

    /* Letter Spacing */
    --letter-spacing-display: -0.02em;
    --letter-spacing-headline-lg: -0.01em;
    --letter-spacing-label-mono: 0.05em;

    /* Font Weights */
    --font-weight-semibold: 600;
    --font-weight-medium: 500;
    --font-weight-regular: 400;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-default: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Spacing */
    --spacing-unit: 4px;
    --spacing-gutter: 24px;
    --spacing-margin-mobile: 16px;
    --spacing-margin-desktop: 40px;
    --spacing-container-max: 1200px;

    /* Shadows */
    --shadow-ambient: 0 20px 40px -10px rgb(0 78 171 / 0.05);
    --shadow-card: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --shadow-hover: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body-lg);
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-body-lg);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Typography ===== */
.font-display {
    font-family: var(--font-display);
    font-size: var(--font-size-display);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-display);
    letter-spacing: var(--letter-spacing-display);
}

.font-headline-lg {
    font-family: var(--font-headline-lg);
    font-size: var(--font-size-headline-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-headline-lg);
    letter-spacing: var(--letter-spacing-headline-lg);
}

.font-headline-md {
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-headline-md);
}

.font-body-lg {
    font-family: var(--font-body-lg);
    font-size: var(--font-size-body-lg);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body-lg);
}

.font-body-sm {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-body-sm);
}

.font-button {
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-button);
}

.font-label-mono {
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-label-mono);
    letter-spacing: var(--letter-spacing-label-mono);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: var(--font-size-display); }
h2 { font-size: var(--font-size-headline-lg); }
h3 { font-size: var(--font-size-headline-md); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--spacing-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-margin-mobile);
    padding-right: var(--spacing-margin-mobile);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--spacing-margin-desktop);
        padding-right: var(--spacing-margin-desktop);
    }
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 64px;
    background-color: rgba(250, 248, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-low);
    box-shadow: var(--shadow-card);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--spacing-container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-margin-desktop);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-logo-text {
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 32px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    transition: color 0.2s;
    padding: 20px 0;
}

.nav-links a:hover {
    color: var(--primary);
    background-color: var(--surface-subtle);
}

.nav-links a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.nav-cta {
    display: flex;
    align-items: center;
}

/* ===== Language Selector ===== */
.lang-selector-wrapper {
    position: relative;
    display: inline-block;
}

.lang-selector-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-full);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.lang-selector-btn:hover {
    border-color: var(--primary);
}

.lang-selector-btn:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.lang-globe-icon {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.lang-selector-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-selector-name {
    font-size: var(--font-size-button);
    line-height: var(--line-height-button);
}

.lang-selector-chevron {
    width: 12px;
    height: 12px;
    color: var(--text-secondary);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.lang-selector-btn[aria-expanded="true"] .lang-selector-chevron {
    transform: rotate(180deg);
}

.lang-selector-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    padding: 4px 0;
    background-color: var(--surface-background);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.lang-dropdown-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.15s;
    white-space: nowrap;
}

.lang-option:hover {
    background-color: var(--surface-subtle);
}

.lang-option-active {
    color: var(--primary);
    font-weight: var(--font-weight-semibold);
    background-color: var(--surface-container-low);
}

.lang-option-flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.lang-option-name {
    font-size: var(--font-size-button);
    line-height: var(--line-height-button);
}

/* ===== Image Utilities ===== */
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-rounded {
    border-radius: var(--radius-lg);
}

.img-shadow {
    box-shadow: var(--shadow-card);
}

/* ===== Stats Section ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: var(--font-weight-semibold);
    color: var(--primary);
    line-height: 1.1;
    letter-spacing: var(--letter-spacing-display);
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
    line-height: var(--line-height-body-sm);
}

/* ===== Testimonial Cards ===== */
.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.testimonial-card {
    background-color: var(--surface-background);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-hover);
}

.testimonial-quote {
    font-family: var(--font-body-lg);
    font-size: var(--font-size-body-lg);
    color: var(--text-primary);
    line-height: var(--line-height-body-lg);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-button);
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    flex-shrink: 0;
}

.testimonial-name {
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.testimonial-role {
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    color: var(--text-tertiary);
    letter-spacing: var(--letter-spacing-label-mono);
}

/* ===== Tech Stack Grid ===== */
.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.tech-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-full);
    letter-spacing: var(--letter-spacing-label-mono);
    transition: border-color 0.2s, color 0.2s;
}

.tech-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ===== Industry Tags ===== */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.industry-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background-color: var(--surface-container-low);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-full);
    transition: border-color 0.2s, background-color 0.2s;
}

.industry-tag:hover {
    border-color: var(--primary);
    background-color: var(--surface-container);
}

/* ===== Section With Image ===== */
.section-with-image {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

@media (min-width: 768px) {
    .section-with-image {
        flex-direction: row;
        gap: 48px;
    }

    .section-with-image-reverse {
        flex-direction: row-reverse;
    }

    .section-with-image .section-image {
        flex: 0 0 45%;
    }

    .section-with-image .section-text {
        flex: 1;
    }
}

.section-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

/* ===== Hero With Background Image ===== */
.hero-with-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-with-bg .hero-content {
    position: relative;
    z-index: 1;
}

.hero-with-bg .hero-dot-grid {
    opacity: 0.12;
}

.hero-with-bg .hero-glow {
    background-color: rgba(0, 78, 171, 0.06);
}

.hero-with-bg .hero-title {
    color: var(--text-primary);
    text-shadow: none;
    white-space: nowrap;
}

.hero-with-bg .hero-subtitle {
    color: var(--text-secondary);
    text-shadow: none;
}

.hero-with-bg .hero-badge {
    background-color: rgba(255, 255, 255, 0.6);
    border-color: var(--border-low);
    color: var(--text-secondary);
}

.hero-with-bg .hero-badge-dot {
    background-color: var(--primary);
}

.hero-with-bg .trust-badge {
    background-color: rgba(255, 255, 255, 0.5);
    border-color: var(--border-low);
}

.hero-with-bg .trust-badge-title {
    color: var(--text-primary);
}

.hero-with-bg .trust-badge-text {
    color: var(--text-secondary);
}

.hero-with-bg .trust-badge-icon {
    color: var(--primary);
}

/* ===== Card With Image ===== */
.card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image img,
img.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Contact Info Cards ===== */
.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 600px;
}

@media (min-width: 768px) {
    .contact-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-md);
    text-align: center;
}

.contact-info-icon {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 4px;
}

.contact-info-card svg.contact-info-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.contact-info-label {
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-label-mono);
}

.contact-info-value {
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    border-radius: var(--radius-default);
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background-color: var(--primary-container);
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border-low);
}

.btn-secondary:hover {
    background-color: var(--surface-subtle);
}

.btn-lg {
    padding: 12px 32px;
    font-size: 1rem;
}

/* ===== Dot Grid Background ===== */
.dot-grid {
    background-image: radial-gradient(var(--border-high) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
    background-color: var(--background);
    overflow: hidden;
}

.hero-dot-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border-high) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    z-index: -1;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background-color: rgba(217, 226, 255, 0.3);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-label-mono);
    text-transform: uppercase;
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, var(--font-size-display));
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-display);
    letter-spacing: var(--letter-spacing-display);
    color: var(--text-primary);
    max-width: 960px;
    margin-bottom: 24px;
    white-space: nowrap;
}

.hero-subtitle {
    font-family: var(--font-body-lg);
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-body-lg);
    color: var(--text-secondary);
    max-width: 672px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-low);
    box-shadow: var(--shadow-card);
}

/* ===== Sections ===== */
.section {
    padding: 96px 0;
}

.section-gray {
    background-color: var(--surface-subtle);
}

.section-header {
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    padding: 4px 8px;
    background-color: var(--surface-container-low);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    letter-spacing: var(--letter-spacing-label-mono);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--font-headline-lg);
    font-size: var(--font-size-headline-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-headline-lg);
    letter-spacing: var(--letter-spacing-headline-lg);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-subtitle {
    font-family: var(--font-body-lg);
    font-size: var(--font-size-body-lg);
    color: var(--text-secondary);
}

/* ===== Cards ===== */
.card {
    background-color: var(--surface-background);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

.card-padding {
    padding: 32px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-container);
    color: var(--on-primary-container);
    border-radius: var(--radius-default);
    margin-bottom: 24px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-title {
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 12px;
}

.card-text {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Trust Badges ===== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-top: 48px;
    border-top: 1px solid var(--border-low);
}

@media (min-width: 768px) {
    .trust-badges {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.trust-badge-icon {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 8px;
}

.trust-badge-title {
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.trust-badge-text {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-tertiary);
}

/* ===== Table ===== */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-low);
    border-radius: var(--radius-lg);
    background-color: var(--surface-background);
}

.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.table th,
.table td {
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-low);
}

.table th {
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    background-color: var(--surface-subtle);
}

.table tbody tr:hover {
    background-color: var(--surface-subtle);
}

.table td {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
}

.table td:first-child {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

/* ===== Process Steps ===== */
.process-steps {
    position: relative;
    border-left: 2px solid var(--border-low);
    margin-left: 16px;
}

.process-step {
    position: relative;
    padding-left: 32px;
    padding-bottom: 48px;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--surface-background);
    border: 2px solid var(--primary);
}

.process-step-title {
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.process-step-text {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
}

/* ===== CTA Section ===== */
.cta-section {
    background-color: var(--background);
}

.cta-box {
    background-color: rgba(217, 226, 255, 0.2);
    text-align: center;
    padding: 48px 24px;
}

@media (min-width: 768px) {
    .cta-box {
        padding: 80px 40px;
    }
}

.cta-title {
    font-family: var(--font-headline-lg);
    font-size: var(--font-size-headline-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 24px;
}

.cta-text {
    font-family: var(--font-body-lg);
    font-size: var(--font-size-body-lg);
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* ===== Footer ===== */
.footer {
    padding: 48px 0;
    background-color: var(--background);
    border-top: 1px solid var(--border-low);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 32px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.footer-text {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-title {
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-copyright {
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-family: var(--font-label-mono);
    font-size: var(--font-size-label-mono);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-label-mono);
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-primary);
    background-color: var(--surface-subtle);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-default);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: auto;
    padding: 12px 32px;
    font-family: var(--font-button);
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-medium);
    color: var(--on-primary);
    background-color: var(--primary);
    border: none;
    border-radius: var(--radius-default);
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-submit:hover {
    background-color: var(--primary-container);
}

/* ===== FAQ Accordion ===== */
.faq-item {
    background-color: var(--surface-background);
    border: 1px solid var(--border-low);
    border-radius: var(--radius-default);
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-family: var(--font-headline-md);
    font-size: var(--font-size-headline-md);
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    cursor: pointer;
    background-color: var(--surface-subtle);
    transition: background-color 0.2s;
}

.faq-question:hover {
    background-color: var(--surface-container-low);
}

.faq-answer {
    padding: 24px;
    padding-top: 0;
    font-family: var(--font-body-sm);
    font-size: var(--font-size-body-sm);
    color: var(--text-secondary);
    border-top: 1px solid var(--border-low);
    margin-top: 16px;
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.bg-primary { background-color: var(--primary); }
.bg-surface { background-color: var(--surface); }
.bg-surface-subtle { background-color: var(--surface-subtle); }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }

.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.p-6 { padding: 24px; }
.p-8 { padding: 32px; }

.rounded { border-radius: var(--radius-default); }
.rounded-lg { border-radius: var(--radius-lg); }

.hidden { display: none; }

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:block { display: block; }
    .md\:flex { display: flex; }
}

/* ===== Animation ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ===== Print Styles ===== */
@media print {
    .nav,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 0;
    }

    .section {
        padding: 32px 0;
    }
}

/* ===== Tailwind-compatible Utility Classes ===== */

/* --- Display --- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }

/* --- Flex --- */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }

/* --- Alignment --- */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-start { align-self: flex-start; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\.5 { top: 6px; }
.top-1\/2 { top: 50%; }
.top-4 { top: 16px; }
.top-24 { top: 96px; }
.left-1\/2 { left: 50%; }
.left-4 { left: 16px; }
.-left-1\.5 { left: -6px; }
.-right-8 { right: -32px; }

/* --- Z-index --- */
.-z-10 { z-index: -10; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

/* --- Pointer Events --- */
.pointer-events-none { pointer-events: none; }

/* --- Transform --- */
.-translate-x-1\/2 { transform: translateX(-50%); }

/* --- Gap --- */
.gap-1 { gap: 4px; }
.gap-1\.5 { gap: 6px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* --- Space (between children) --- */
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-y-12 > * + * { margin-top: 48px; }
.space-y-24 > * + * { margin-top: 96px; }
.space-x-8 > * + * { margin-left: 32px; }

/* --- Margin --- */
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-20 { margin-top: 80px; }
.mt-24 { margin-top: 96px; }
.mt-auto { margin-top: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1 { margin-left: 4px; }
.ml-4 { margin-left: 16px; }
.ml-auto { margin-left: auto; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-10 { margin-bottom: 40px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }
.mb-24 { margin-bottom: 96px; }

/* --- Padding --- */
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }
.py-24 { padding-top: 96px; padding-bottom: 96px; }
.pt-0 { padding-top: 0; }
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pt-12 { padding-top: 48px; }
.pt-16 { padding-top: 64px; }
.pt-24 { padding-top: 96px; }
.pt-32 { padding-top: 128px; }
.pb-1 { padding-bottom: 4px; }
.pb-4 { padding-bottom: 16px; }
.pb-6 { padding-bottom: 24px; }
.pb-16 { padding-bottom: 64px; }
.pb-24 { padding-bottom: 96px; }
.pl-1 { padding-left: 4px; }
.pl-8 { padding-left: 32px; }
.pr-1 { padding-right: 4px; }

/* --- Width --- */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-1\/4 { width: 25%; }
.w-1\/8 { width: 12.5%; }
.w-3\/4 { width: 75%; }
.w-5\/6 { width: 83.333%; }
.w-2 { width: 8px; }
.w-3 { width: 12px; }
.w-6 { width: 24px; }
.w-8 { width: 32px; }
.w-12 { width: 48px; }
.w-2\.5 { width: 10px; }

/* --- Height --- */
.h-2 { height: 8px; }
.h-3 { height: 12px; }
.h-4 { height: 16px; }
.h-6 { height: 24px; }
.h-8 { height: 32px; }
.h-12 { height: 48px; }
.h-16 { height: 64px; }
.h-20 { height: 80px; }
.h-48 { height: 192px; }
.h-px { height: 1px; }
.h-1\/2 { height: 50%; }
.h-2\.5 { height: 10px; }

/* --- Min / Max sizing --- */
.min-h-screen { min-height: 100vh; }
.min-h-\[300px\] { min-height: 300px; }
.min-w-\[800px\] { min-width: 800px; }
.max-w-xs { max-width: 320px; }
.max-w-sm { max-width: 384px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.aspect-video { aspect-ratio: 16 / 9; }

/* --- Typography --- */
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: 700; }
.text-sm { font-size: 14px; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.01em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-relaxed { line-height: 1.625; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.list-none { list-style: none; }
.select-none { user-select: none; }

/* --- Border --- */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-2 { border-left-width: 2px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-border-high { border-color: var(--border-high); }
.border-border-low { border-color: var(--border-low); }
.border-primary { border-color: var(--primary); }
.border-transparent { border-color: transparent; }
.border-dashed { border-style: dashed; }
.divide-y > * + * { border-top-width: 1px; border-bottom-width: 0; }
.divide-border-low > * + * { border-color: var(--border-low); }

/* --- Border Radius --- */
.rounded-full { border-radius: var(--radius-full); }
.rounded-sm { border-radius: var(--radius-sm); }

/* --- Shadow --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

/* --- Opacity --- */
.opacity-50 { opacity: 0.5; }

/* --- Filter --- */
.blur-\[100px\] { filter: blur(100px); }

/* --- Background --- */
.bg-background { background-color: var(--background); }
.bg-surface-background { background-color: var(--surface-background); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-dim { background-color: var(--surface-dim); }
.bg-surface-variant { background-color: var(--surface-variant); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-primary-fixed { background-color: var(--primary-fixed); }
.bg-tertiary-fixed { background-color: var(--tertiary-fixed); }
.bg-border-high { background-color: var(--border-high); }
.bg-border-low { background-color: var(--border-low); }
.bg-doc-pattern { background-image: radial-gradient(circle at 2px 2px, var(--border-low) 1px, transparent 0); background-size: 24px 24px; }
.pattern-dots { background-image: radial-gradient(var(--border-low) 1px, transparent 1px); background-size: 20px 20px; }

/* --- Text Color (additional) --- */
.text-on-primary { color: var(--on-primary); }
.text-on-primary-container { color: var(--on-primary-container); }
.text-primary-fixed-dim { color: var(--primary-fixed-dim); }
.text-error { color: var(--error); }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }

/* --- Resize --- */
.resize-none { resize: none; }

/* --- Transition --- */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-150 { transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* ===== Responsive: sm (min-width: 640px) ===== */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:w-auto { width: auto; }
}

/* ===== Responsive: md (min-width: 768px) ===== */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:inline-flex { display: inline-flex; }
    .md\:border-b-0 { border-bottom-width: 0; }
    .md\:border-r { border-right-width: 1px; border-right-style: solid; }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-3 { grid-column: span 3 / span 3; }
    .md\:col-span-6 { grid-column: span 6 / span 6; }
    .md\:col-span-9 { grid-column: span 9 / span 9; }
    .md\:col-span-12 { grid-column: span 12 / span 12; }
    .md\:col-start-3 { grid-column-start: 3; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    .md\:h-64 { height: 256px; }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-auto { width: auto; }
    .md\:p-8 { padding: 32px; }
    .md\:p-12 { padding: 48px; }
    .md\:py-24 { padding-top: 96px; padding-bottom: 96px; }
    .md\:mb-24 { margin-bottom: 96px; }
    .md\:text-left { text-align: left; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:justify-end { justify-content: flex-end; }
}

/* ===== Responsive: lg (min-width: 1024px) ===== */
@media (min-width: 1024px) {
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:gap-8 { gap: 32px; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
    .lg\:space-y-8 > * + * { margin-top: 32px; }
}