/* ===== Local Fonts ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== Variables & Reset ===== */
:root {
    --navy: #1d2d44;
    --navy-deep: #141f30;
    --navy-light: #2a4060;
    --orange: #f08c00;
    --orange-light: #f5a623;
    --orange-glow: rgba(240, 140, 0, 0.15);
    --white: #ffffff;
    --gray-50: #f7f8fa;
    --gray-100: #eef0f4;
    --gray-200: #d8dce4;
    --gray-400: #9aa3b0;
    --gray-600: #5a6575;
    --text: #1d2d44;
    --text-light: #5a6575;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

/* ===== Container ===== */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: var(--gray-100);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

/* Nav on dark hero: light text */
.nav:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.7);
}

.nav:not(.scrolled) .nav-links a:hover {
    color: var(--white);
}

.nav:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
}

.nav:not(.scrolled) .nav-toggle span {
    background: var(--white);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--navy);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 72px;
    background: var(--navy-deep);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background:
        radial-gradient(ellipse at 70% 40%, rgba(240, 140, 0, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 80%, rgba(29, 45, 68, 0.5) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
    padding: 80px 0;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.accent {
    color: var(--orange);
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero .btn-outline:hover {
    border-color: var(--white);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 140, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--navy);
    transform: translateY(-2px);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--orange);
    margin-bottom: 12px;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 48px;
}

/* ===== Dark Section (UNNOISY) ===== */
.section-dark {
    background: var(--navy-deep);
    color: var(--white);
}

.section-dark .section-label {
    color: var(--orange);
}

.section-dark h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.section-dark .section-intro {
    color: var(--gray-400);
}

.product-link {
    color: var(--white);
    transition: color var(--transition);
}

.product-link:hover {
    color: var(--orange);
}

.product-tagline {
    font-size: 1.15rem;
    color: var(--orange);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* ===== Grid ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== Cards (About) ===== */
.card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(29, 45, 68, 0.08);
    border-color: var(--gray-200);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--orange-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 22px;
    height: 22px;
    color: var(--orange);
}

.card h3 {
    color: var(--navy);
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Features (UNNOISY) ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}

.feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all var(--transition);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(240, 140, 0, 0.3);
    transform: translateY(-4px);
}

.feature-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--orange);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.feature-icon-wrap {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
}

.feature-icon-wrap svg {
    width: 100%;
    height: 100%;
    color: var(--orange);
}

.feature h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===== Use Cases ===== */
.use-cases h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.use-case {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all var(--transition);
}

.use-case:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
}

.use-case h4 {
    color: var(--orange-light);
}

.use-case p {
    color: var(--gray-400);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== Contact ===== */
.contact-box {
    max-width: 480px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.contact-item:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px var(--orange-glow);
}

.contact-item svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--orange);
}

.contact-item a {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--navy);
}

.contact-item a:hover {
    color: var(--orange);
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-deep);
    color: var(--gray-400);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-legal h4,
.footer-links h4 {
    color: var(--white);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-legal p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

/* ===== Legal Pages (Impressum, Datenschutz) ===== */
.legal-page {
    padding-top: 140px;
}

.legal-page h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy);
    margin-bottom: 2.5rem;
}

.legal-content {
    max-width: 720px;
}

.legal-content h2 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.legal-content p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: var(--orange);
    font-weight: 500;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content ul {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0.5rem 0 1rem 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.25rem;
}

.legal-date {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    font-size: 0.85rem !important;
    color: var(--gray-400) !important;
    font-style: italic;
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.grid-3 .fade-in:nth-child(2),
.feature-grid .fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.grid-3 .fade-in:nth-child(3),
.feature-grid .fade-in:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-grid .fade-in:nth-child(4) {
    transition-delay: 0.3s;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--gray-100);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 48px 0;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .section {
        padding: 64px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
