/* Fonts handled in App.razor for better performance */

:root {
    /* Color Palette - Corporate & Minimalist */
    --bg-deep: #0f1419;
    --bg-dark: #1a1f2e;
    --bg-glass: rgba(26, 31, 46, 0.9);
    --accent-blue: #416991;
    --accent-blue-dim: rgba(65, 105, 145, 0.08);
    --accent-blue-glow: rgba(65, 105, 145, 0.15);

    --text-vibrant: #ffffff;
    --text-standard: #cccccc;
    --text-muted: #999999;
    --text-blue: #416991;

    --border-dim: 1px solid rgba(255, 255, 255, 0.1);
    --border-accent: 1px solid rgba(65, 105, 145, 0.5);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-smooth: all 0.2s cubic-bezier(0, 0, 0.2, 1);
    --glass-blur: blur(8px);
    --border-radius: 0px;
    --border-radius-lg: 0px;
}

/* Base Reset & Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--bg-deep);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-standard);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(65, 105, 145, 0.02) 0%, transparent 50%);
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.main-content {
    flex-grow: 1;
    font-size: 1.05rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-vibrant);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem) !important;
    margin-bottom: 2rem;
    line-height: 1.2;
}

h3 {
    font-size: 1.15rem !important;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    font-size: 1.15rem !important;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Heading responsive sizes handled in comprehensive responsive section below */

p {
    margin-bottom: 1.25rem;
    color: var(--text-standard);
    font-size: 1.05rem !important;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Layout Containers */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: clamp(40px, 6vw, 80px) 0;
    position: relative;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.hover-blue:hover {
    color: var(--accent-blue) !important;
}

.bg-dark-grad {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
}

/* Header & Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: var(--border-dim);
    transition: var(--transition-smooth);
}

.nav-container {
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-end;
    gap: 3rem;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0.05em;
    color: #ffffff !important;
}

.logo img {
    filter: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 1rem 0;
}

.nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    color: #ffffff;
    opacity: 1;
    transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    margin-left: 0;
}

/* Buttons */
.btn-primary {
    padding: 0.875rem 2rem;
    background: var(--accent-blue);
    color: white;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(65, 105, 145, 0.25);
    background: #325273;
}

.btn-secondary {
    padding: 0.875rem 2rem;
    background: transparent;
    color: var(--text-vibrant);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: none;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(65, 105, 145, 0.05);
}

/* Glass Cards */
.card {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: var(--border-dim);
    border-radius: var(--border-radius-lg);
    padding: clamp(2rem, 5vw, 3rem);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.card:hover {
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.card:hover h3,
.card:hover h2,
.card:hover h1 {
    color: #ffffff !important;
}

.card:hover .card-icon-wrap {
    background: rgba(255, 255, 255, 0.08);
    border-color: #ffffff;
}

.stat-digit {
    font-size: 3rem !important;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.card:hover .stat-digit {
    color: #ffffff;
}

.stat-desc {
    font-size: 0.95rem !important;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 0 !important;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

.card-icon-wrap {
    width: 64px;
    height: 64px;
    background: rgba(65, 105, 145, 0.06);
    border: 1px solid rgba(65, 105, 145, 0.18);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.card-icon-glow {
    position: absolute;
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    filter: blur(20px);
    opacity: 0.12;
    pointer-events: none;
}

/* Image Placeholders */
.placeholder-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.placeholder-box::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(65, 105, 145, 0.015) 40px, rgba(65, 105, 145, 0.015) 80px);
}

/* Hero Section */
.hero {
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 100% 50%, rgba(65, 105, 145, 0.03) 0%, transparent 40%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: 400px;
    justify-content: center;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.hero-img-wrap {
    width: 100%;
    max-width: 550px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 50px rgba(65, 105, 145, 0.25));
}

.hero-slide-wrapper {
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.hero-slide-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide-out {
    opacity: 0;
    transform: translateY(6px);
}

@media (max-width: 992px) {
    .hero-grid {
        display: flex;
        /* Use flex to control order */
        flex-direction: column;
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
        /* Move image to top */
        width: 100%;
        height: auto;
        min-height: 300px;
        margin-bottom: 1rem;
    }

    .hero-content {
        align-items: center;
        /* Center align items */
        text-align: center;
        /* Center text */
        min-height: auto;
        /* Reset min-height */
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Feature Table Hover Overrides */
.feature-table-wrap:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: var(--bg-glass) !important;
}

.feature-table-wrap tr {
    transition: background 0.2s ease;
}

.feature-table-wrap tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Grids */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

/* FAQ Layout */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.faq-card {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 1.3rem 1.5rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.faq-card[open] {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.16), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.3);
}

.faq-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card summary::after {
    content: "›";
    font-size: 1.1rem;
    transform: rotate(90deg);
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.faq-card[open] summary::after {
    transform: rotate(-90deg);
    opacity: 1;
}

.faq-answer {
    margin-top: 0.75rem;
    font-size: 1.15rem !important;
    opacity: 0.8;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .faq-card {
        padding: 1.1rem 1.25rem;
    }
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .grid-3-col {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.site-footer {
    padding: 64px 0 32px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 2px 0;
}

.footer-col a:hover {
    color: var(--accent-blue) !important;
    transform: translateX(5px);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.footer-col ul li:hover {
    padding-left: 5px;
}

.footer-contact-item {
    transition: var(--transition-smooth);
    cursor: default;
    user-select: none;
}

.footer-contact-item:hover {
    transform: translateX(5px);
}

.footer-contact-item:hover a,
.footer-contact-item:hover span {
    color: var(--accent-blue) !important;
}

.branding-col p {
    transition: var(--transition-smooth);
    cursor: default;
}

.branding-col p:hover {
    color: var(--accent-blue) !important;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Forms */
input,
textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--border-radius);
    color: white;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(65, 105, 145, 0.08);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    /* GPU acceleration hint */
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    transform: translateY(12px);
    min-width: 240px;
    background: var(--bg-dark);
    border: 1px solid rgba(65, 105, 145, 0.22);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 1001;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    opacity: 0.7;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    opacity: 1;
    background: rgba(65, 105, 145, 0.08);
    color: var(--accent-blue);
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    padding: 0.5rem;
}

.hamburger {
    width: 30px;
    height: 2px;
    background: white;
    position: relative;
    display: block;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: white;
    left: 0;
    transition: var(--transition-smooth);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        z-index: 1002;
        position: relative;
    }

    /* Hamburger Animation for Open State */
    .nav-menu.open~.mobile-menu-toggle .hamburger {
        background: transparent;
    }

    .nav-menu.open~.mobile-menu-toggle .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-menu.open~.mobile-menu-toggle .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }

    /* Hide the menu container by default on mobile */
    .nav-menu:not(.open) {
        display: none;
    }

    /* Mobile Menu Drawer Styling */
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 90px;
        /* Below the 90px header height */
        left: 0;
        width: 100%;
        height: auto;
        /* Allow content to dictate height */
        max-height: calc(100vh - 90px);
        /* Prevent overflow */
        background: rgba(10, 14, 20, 0.98);
        padding: 2rem;
        /* Reduced padding since header is excluded */
        z-index: 1001;
        align-items: center;
        /* Align items to center */
        gap: 2rem;
        backdrop-filter: blur(20px);
        overflow-y: auto;
        opacity: 0;
        animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        /* Optional separation */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        /* Drop shadow for floating effect */
    }

    /* Reset nav-links display for mobile */
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 2rem;
        text-align: center;
        /* Text alignment center */
        align-items: center;
        /* Flex item alignment center */
    }

    .nav-item {
        width: 100%;
        padding: 0;
    }

    .nav-link {
        font-size: 1.8rem;
        /* Slightly larger for impact */
        font-weight: 700;
        display: block;
        padding: 0.5rem 0;
    }

    /* Dropdown inside mobile menu - always visible */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        margin-top: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        display: block;
        text-align: center;
        min-width: unset;
        width: 100%;
    }

    .dropdown-menu a {
        justify-content: center;
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    /* Position language switcher in mobile drawer */
    .nav-actions {
        margin-left: 0;
        margin-top: 2rem;
        transform: scale(1.2);
        align-self: center;
        /* Ensure it stays center */
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Language Switcher - Premium Design */
.language-switcher {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    padding: 3px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.language-switcher:hover {
    border-color: rgba(65, 105, 145, 0.25);
    background: rgba(255, 255, 255, 0.05);
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.lang-btn:hover {
    opacity: 1;
    color: white;
}

.lang-btn.active {
    background: var(--accent-blue);
    color: #080b12;
    opacity: 1;
    box-shadow: 0 0 15px rgba(65, 105, 145, 0.4);
}

.lang-btn:disabled {
    cursor: not-allowed;
    opacity: 0.3;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-fade-in {
    /* Görselde yeniden yüklenme hissini azaltmak için animasyon yok */
    animation: none;
}

.slide-text-in {
    animation: fadeInUp 0.35s ease-out forwards;
}

/* Modern Form Inputs */
.modern-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 1rem 1.25rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.modern-input:focus {
    border-color: var(--accent-blue);
    background: rgba(65, 105, 145, 0.05);
    box-shadow: 0 0 15px rgba(65, 105, 145, 0.1);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES
   ======================================== */

/* --- Tablet (max-width: 992px) --- */
@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .hero-visual {
        height: auto;
        min-height: 250px;
    }

    .hero-img-wrap {
        max-width: 350px;
        height: auto;
    }

    .stat-digit {
        font-size: 2.2rem !important;
    }

    .grid-3-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-grid {
        gap: 2.5rem;
    }

    /* 4-column grids → 2 columns */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    /* Asymmetric splits → single column */
    [style*="grid-template-columns: 1.25fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .split-grid[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* 2-column page layouts (tabs, features) */
    [style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* Feature comparison grids */
    [style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 4rem"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Section padding overrides */
    section[style*="padding: 80px 4rem"],
    section[style*="padding: 60px 4rem"],
    .section[style*="padding: 6rem 4rem"],
    .section[style*="padding: 4rem"],
    section[style*="padding: 4rem"] {
        padding: 2.5rem 1.5rem !important;
    }

    /* Products page split-grid with reversed columns */
    .split-grid[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Contact page: undo the negative margin overlap on smaller screens */
    .container[style*="margin-top: -120px"] {
        margin-top: -60px !important;
    }

    /* Contact split-grid side by side → stacked */
    .split-grid[style*="gap: 0"] {
        grid-template-columns: 1fr !important;
    }
}

/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: clamp(24px, 5vw, 48px) 0;
    }

    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: 24px;
    }

    .hero-content {
        min-height: auto;
    }

    .hero-visual {
        min-height: 180px;
    }

    .hero-img-wrap {
        max-width: 220px;
        height: auto;
    }

    .hero-img-wrap img {
        max-width: 100%;
    }

    h1 {
        font-size: clamp(1.3rem, 5vw, 1.6rem) !important;
        margin-bottom: 0.75rem;
    }

    h2 {
        font-size: clamp(1.15rem, 4vw, 1.4rem) !important;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1rem !important;
    }

    h4 {
        font-size: 0.95rem !important;
    }

    p {
        font-size: 0.9rem !important;
        line-height: 1.6;
    }

    .stat-digit {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem;
    }

    .stat-desc {
        font-size: 0.85rem !important;
    }

    .card {
        padding: clamp(1rem, 4vw, 1.75rem);
    }

    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .faq-card summary {
        font-size: 0.95rem;
    }

    .faq-answer {
        font-size: 0.9rem !important;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        min-width: unset !important;
    }

    .nav-container {
        height: 64px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo img {
        height: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .footer-col a {
        font-size: 0.95rem;
    }

    .site-footer {
        padding: 32px 0 20px;
    }

    /* 4-column grids → single column */
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* All inline 2-column grids → keep 2 col for hero badges, single col for content */
    [style*="grid-template-columns: 1fr 1fr"][style*="margin-top: 3rem"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    [style*="grid-template-columns: repeat(2, 1fr)"][style*="margin-top: 3rem"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }

    /* Asymmetric grids → single column */
    [style*="grid-template-columns: 1.25fr 1fr"],
    [style*="grid-template-columns: 1fr 2fr"],
    [style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    /* Feature comparison 2-col grids */
    [style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 4rem"],
    [style*="grid-template-columns: repeat(2, 1fr)"][style*="gap: 3rem"]:not([style*="margin-top"]) {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Contact form grid */
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 2.2rem"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Contact form span-2 → span-1 */
    [style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Contact page: remove negative margin on mobile */
    .container[style*="margin-top: -120px"] {
        margin-top: 0 !important;
    }

    /* Contact hero padding override */
    .hero[style*="padding-top: 130px"] {
        padding-top: 80px !important;
        padding-bottom: 40px !important;
    }

    /* Section padding overrides */
    section[style*="padding: 80px 4rem"],
    section[style*="padding: 60px 4rem"],
    .section[style*="padding: 6rem 4rem"],
    .section[style*="padding: 4rem"],
    section[style*="padding: 4rem"] {
        padding: 1.5rem 1rem !important;
    }

    /* Section margins */
    section[style*="margin-bottom: 8rem"],
    .section[style*="margin-bottom: 8rem"] {
        margin-bottom: 2.5rem !important;
    }

    section[style*="margin-bottom: 6rem"],
    .section[style*="margin-bottom: 6rem"] {
        margin-bottom: 2rem !important;
    }

    section[style*="margin-top: 5rem"] {
        margin-top: 2rem !important;
    }

    section[style*="margin-top: 4rem"],
    .section[style*="margin-top: 4rem"],
    div[style*="margin-top: 4rem"] {
        margin-top: 2rem !important;
    }

    /* Card padding overrides for inline styles */
    .card[style*="padding: 4rem 3rem"],
    .card[style*="padding: 6rem"] {
        padding: 1.5rem 1rem !important;
    }

    .card[style*="padding: 3rem"] {
        padding: 1.25rem !important;
    }

    .card[style*="padding: 2.5rem"] {
        padding: 1.25rem !important;
    }

    /* Tables responsive */
    .feature-table-wrap {
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 0.6rem 0.75rem !important;
    }

    /* Footer bottom */
    .footer-bottom {
        flex-direction: column !important;
        gap: 0.5rem;
        text-align: center !important;
    }

    /* Products page Other Solutions box */
    .section[style*="border-radius: 2rem"] {
        border-radius: 0 !important;
        margin-left: -16px !important;
        margin-right: -16px !important;
        padding: 2rem 1rem !important;
    }

    /* Split grid inside contact card */
    .split-grid[style*="gap: 0"] {
        grid-template-columns: 1fr !important;
    }

    /* Language switcher */
    .language-switcher {
        transform: scale(1) !important;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* Card icon wrap */
    .card-icon-wrap {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }

    .card-icon-wrap svg {
        width: 20px;
        height: 20px;
    }

    /* About certifications card image */
    .card[style*="aspect-ratio: 3/4"] div,
    [style*="aspect-ratio: 3/4"] {
        aspect-ratio: auto !important;
        max-height: 250px;
    }

    /* Certificate modal */
    [style*="max-width: 90vw; max-height: 90vh"] {
        max-width: 95vw !important;
    }

    [style*="top: -40px; right: -40px"] {
        top: -30px !important;
        right: 0 !important;
    }

    /* Margin bottom overrides for inner sections */
    div[style*="margin-bottom: 4rem"],
    div[style*="margin-bottom: 5rem"] {
        margin-bottom: 2rem !important;
    }

    /* Hero paragraph max-width */
    [style*="max-width: 600px"],
    [style*="max-width: 800px"],
    [style*="max-width: 900px"],
    [style*="max-width: 1200px"] {
        max-width: 100% !important;
    }

    /* List items inside cards */
    ul[style*="padding-left: 1.2rem"] {
        padding-left: 1rem !important;
        font-size: 0.85rem !important;
    }

    li {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Enterprise feature lists */
    li[style*="padding: 1.25rem 0"] {
        padding: 0.75rem 0 !important;
        font-size: 0.85rem;
    }

    /* Standard/Certified tab buttons */
    button[style*="padding: 1.25rem"] {
        padding: 0.85rem !important;
        font-size: 0.85rem !important;
    }

    /* Logo in footer */
    .footer-logo-wrap img {
        width: 40px !important;
        height: 40px !important;
    }

    /* Fors logo in footer */
    a[style*="margin-top: 4rem"] {
        margin-top: 2rem !important;
    }

    /* Products page section cards with 3rem padding */
    .card[style*="padding: 3rem; background: rgba(255,255,255"] {
        padding: 1.25rem !important;
    }

    /* Image max-width in hero sections */
    img[style*="max-width: 450px"] {
        max-width: 100% !important;
    }

    img[style*="max-width: 350px"] {
        max-width: 100% !important;
    }

    /* Ensure all images respect viewport */
    img {
        max-width: 100%;
        height: auto;
    }

    /* SVG icons keep original size */
    svg {
        flex-shrink: 0;
    }
}

/* --- Small Mobile (max-width: 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding-top: 72px;
        padding-bottom: 16px;
    }

    h1 {
        font-size: 1.2rem !important;
    }

    h2 {
        font-size: 1.05rem !important;
    }

    .stat-digit {
        font-size: 1.3rem !important;
    }

    .hero-img-wrap {
        max-width: 180px;
    }

    /* Hero badge grids - stack on very small */
    [style*="grid-template-columns: 1fr 1fr"][style*="margin-top: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }

    [style*="grid-template-columns: repeat(2, 1fr)"][style*="margin-top: 3rem"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-top: 1.5rem !important;
    }

    .card {
        padding: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }

    table {
        font-size: 0.7rem;
    }

    table th,
    table td {
        padding: 0.4rem 0.5rem !important;
    }

    /* Border-left stat badges */
    [style*="border-left: 2px solid"][style*="padding-left: 2rem"] {
        padding-left: 1rem !important;
    }

    /* About certifications grid → single column */
    .grid-3-col[style*="gap: 2.5rem"] {
        gap: 1rem !important;
    }
}

/* Mobile nav adjustment for shorter header */
@media (max-width: 768px) {
    .nav-menu.open {
        top: 64px;
        max-height: calc(100vh - 64px);
    }

    .nav-link {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        height: 56px;
    }

    .nav-menu.open {
        top: 56px;
        max-height: calc(100vh - 56px);
    }

    .nav-link {
        font-size: 1.1rem;
    }
}