/* ===== BRAND VARIABLES (martec UG) ===== */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #172554;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fb923c;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --gray-lighter: #e2e8f0;
    --text: #1e293b;
    --text-light: #475569;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-lighter);
    padding: 10px 0;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 38px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Navbar links white in hero section (before scroll) */
.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .nav-links a:hover {
    color: var(--white);
}

.navbar:not(.scrolled) .nav-links a::after {
    background: var(--white);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar:not(.scrolled) .nav-toggle span {
    background: var(--white);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e3a5f 40%, var(--primary-dark) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 30%, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--accent-light);
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 500px;
    margin-bottom: 36px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), 0 0 0 20px rgba(37, 99, 235, 0.1);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-primary-solid {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-solid:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

/* ===== SECTIONS ===== */
.section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--secondary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 48px;
}

/* ===== ABOUT ===== */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    background: var(--gray-light);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
}

/* ===== EXPERTISE ===== */
.expertise {
    padding: 100px 0;
    background: var(--gray-light);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.expertise-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.expertise-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
}

.expertise-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== SERVICES ===== */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card-highlight {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--white) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.service-card-highlight:hover {
    border-color: var(--accent-dark);
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: var(--radius);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary);
    letter-spacing: -0.01em;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    color: var(--text-light);
    font-size: 0.88rem;
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.service-card-highlight .service-features li::before {
    color: var(--accent);
}

/* ===== PARTNERSHIP ===== */
.partnership {
    padding: 100px 0;
    background: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.partnership::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.partnership .container {
    position: relative;
    z-index: 1;
}

.partnership-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.partnership-content .section-label {
    color: var(--accent-light);
}

.partnership-content h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--white);
}

.partnership-content p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.partnership-content a:not(.btn) {
    color: var(--accent-light);
    text-decoration: none;
    border-bottom: 1px solid rgba(249, 115, 22, 0.3);
    transition: var(--transition);
}

.partnership-content a:not(.btn):hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

.partnership-content .btn {
    margin-top: 12px;
}

.partnership-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 380px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.partnership-names {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-badge img {
    height: 28px;
    width: auto;
}

.partner-badge span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
}

.partner-x {
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 300;
}

/* ===== CONTACT ===== */
.contact {
    padding: 100px 0;
    background: var(--gray-light);
}

.contact .section-title,
.contact .section-subtitle {
    text-align: center;
}

.contact .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-decoration: none;
    transition: var(--transition);
    display: block;
    text-align: center;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
    border-radius: 50%;
    margin: 0 auto 16px;
}

.contact-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 48px 0 24px;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo {
    height: 32px;
    width: auto;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== LEGAL PAGES ===== */
.legal-page {
    padding: 140px 0 80px;
    min-height: 100vh;
    background: var(--white);
}

.legal-nav {
    margin-bottom: 32px;
}

.legal-nav a {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
}

.legal-nav a:hover {
    color: var(--primary-dark);
}

.legal-page h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 8px;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 36px;
    margin-bottom: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-lighter);
}

.legal-page h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-page p, .legal-page ul, .legal-page ol {
    color: var(--text-light);
    font-size: 0.98rem;
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-page ul, .legal-page ol {
    padding-left: 24px;
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--primary);
}

.legal-page a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal-page strong {
    color: var(--text);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        width: 280px;
        height: 280px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .partnership-card {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
        color: var(--text);
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-image {
        width: 220px;
        height: 220px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .partnership-names {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ===== PARTNER AREAS (Partnership Section) ===== */
.partner-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}

.partner-area {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
}

.partner-area-ai {
    border-color: rgba(249, 115, 22, 0.3);
    background: rgba(249, 115, 22, 0.06);
}

.partner-area-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.partner-area h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.partner-area p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 12px;
    line-height: 1.6;
}

.partner-area ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.partner-area ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding-left: 18px;
    position: relative;
}

.partner-area ul li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-size: 0.8rem;
}

.partner-area-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.partner-area-ai .partner-area-tag {
    background: rgba(249, 115, 22, 0.15);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--accent-light);
}

@media (max-width: 640px) {
    .partner-areas {
        grid-template-columns: 1fr;
    }
}