/* ═══════════════════════════════════════════════════════════
   Wertekompass – Marketing Website
   Design System & Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Imports ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Custom Properties ───────────────────────────────────── */
:root {
    --pastel-blue: rgb(173, 217, 230);
    --pastel-green: rgb(196, 237, 209);
    --pastel-pink: rgb(255, 204, 209);
    --pastel-yellow: rgb(252, 237, 179);
    --pastel-purple: rgb(222, 199, 237);
    --background-gray: rgb(242, 242, 245);
    --surface-white: #ffffff;
    --text-dark: rgb(102, 102, 115);
    --text-heading: rgb(50, 50, 60);
    --text-muted: rgb(140, 140, 155);

    --pastel-blue-soft: rgba(173, 217, 230, 0.25);
    --pastel-green-soft: rgba(196, 237, 209, 0.35);
    --pastel-pink-soft: rgba(255, 204, 209, 0.30);
    --pastel-yellow-soft: rgba(252, 237, 179, 0.35);
    --pastel-purple-soft: rgba(222, 199, 237, 0.30);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.06);
    --shadow-elevated: 0 16px 48px rgba(0,0,0,0.08);

    --max-width: 1100px;
    --section-spacing: 100px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--background-gray);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--text-heading);
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

p {
    max-width: 680px;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--section-spacing) 0;
}

/* ── Navigation ──────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(242, 242, 245, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-soft);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-heading);
}

.navbar-brand .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pastel-blue), var(--pastel-purple));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.navbar-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.navbar-links a:hover {
    color: var(--text-heading);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 160px 0 var(--section-spacing);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse at 30% 20%, var(--pastel-blue-soft) 0%, transparent 55%),
                radial-gradient(ellipse at 70% 60%, var(--pastel-purple-soft) 0%, transparent 55%),
                radial-gradient(ellipse at 50% 90%, var(--pastel-yellow-soft) 0%, transparent 45%);
    z-index: -1;
    animation: heroFloat 12s ease-in-out infinite alternate;
}

@keyframes heroFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 3%) scale(1.03); }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0;
    font-weight: 400;
}

.hero-cta {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--pastel-blue), rgb(140, 195, 210));
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(173, 217, 230, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(173, 217, 230, 0.5);
    color: var(--text-heading);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--surface-white);
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

/* ── Hero Phone Mockup ───────────────────────────────────── */
.hero-mockup {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--surface-white);
    border-radius: 40px;
    box-shadow: var(--shadow-elevated), inset 0 0 0 6px rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--background-gray);
    border-radius: 20px;
    z-index: 2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    padding: 50px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(180deg, var(--background-gray), var(--surface-white));
}

.phone-screen .mock-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
}

.phone-screen .mock-btn {
    width: 85%;
    padding: 12px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.phone-screen .mock-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), transparent);
    pointer-events: none;
}

.mock-btn.blue { background: var(--pastel-blue); }
.mock-btn.green { background: var(--pastel-green); }
.mock-btn.purple { background: var(--pastel-purple); }
.mock-btn.yellow { background: var(--pastel-yellow); }
.mock-btn.pink { background: var(--pastel-pink); }

/* ── Features ────────────────────────────────────────────── */
.features {
    background: var(--surface-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    margin: 12px auto 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    background: var(--background-gray);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card:nth-child(1)::before { background: var(--pastel-blue); }
.feature-card:nth-child(2)::before { background: var(--pastel-green); }
.feature-card:nth-child(3)::before { background: var(--pastel-purple); }
.feature-card:nth-child(4)::before { background: var(--pastel-yellow); }
.feature-card:nth-child(5)::before { background: var(--pastel-pink); }
.feature-card:nth-child(6)::before { background: var(--pastel-blue); }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-card:nth-child(1) .feature-icon { background: var(--pastel-blue-soft); }
.feature-card:nth-child(2) .feature-icon { background: var(--pastel-green-soft); }
.feature-card:nth-child(3) .feature-icon { background: var(--pastel-purple-soft); }
.feature-card:nth-child(4) .feature-icon { background: var(--pastel-yellow-soft); }
.feature-card:nth-child(5) .feature-icon { background: var(--pastel-pink-soft); }
.feature-card:nth-child(6) .feature-icon { background: var(--pastel-blue-soft); }

.feature-card h3 {
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Screenshots / Showcase ──────────────────────────────── */
.showcase {
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 60% 40%, var(--pastel-yellow-soft) 0%, transparent 60%),
                radial-gradient(ellipse at 20% 80%, var(--pastel-pink-soft) 0%, transparent 50%);
    z-index: -1;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.showcase-item {
    background: var(--surface-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-6px);
}

.showcase-placeholder {
    aspect-ratio: 9 / 16;
    background: linear-gradient(135deg, var(--background-gray), var(--surface-white));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.showcase-placeholder .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.4;
}

.showcase-image {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--background-gray);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.showcase-caption {
    padding: 16px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
}

/* ── About / Description ─────────────────────────────────── */
.about {
    background: var(--surface-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-highlights {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.about-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.about-highlights .check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pastel-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-card-stack {
    position: relative;
    width: 300px;
    height: 340px;
}

.about-card-stack .card {
    position: absolute;
    width: 240px;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.4s ease;
}

.about-card-stack .card:nth-child(1) {
    background: var(--pastel-blue);
    top: 0;
    left: 0;
    transform: rotate(-4deg);
    z-index: 3;
}

.about-card-stack .card:nth-child(2) {
    background: var(--pastel-green);
    top: 30px;
    left: 40px;
    transform: rotate(2deg);
    z-index: 2;
}

.about-card-stack .card:nth-child(3) {
    background: var(--pastel-purple);
    top: 60px;
    left: 20px;
    transform: rotate(-1deg);
    z-index: 1;
}

.about-card-stack:hover .card:nth-child(1) { transform: rotate(-6deg) translateX(-10px); }
.about-card-stack:hover .card:nth-child(2) { transform: rotate(4deg) translateX(10px); }
.about-card-stack:hover .card:nth-child(3) { transform: rotate(-3deg) translateY(10px); }

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 6px;
}

.card-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-heading);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, var(--pastel-blue-soft) 0%, transparent 65%);
    z-index: -1;
}

.cta-section h2 {
    margin-bottom: 16px;
}

.cta-section p {
    margin: 0 auto 32px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    background: var(--surface-white);
    border-top: 1px solid rgba(0,0,0,0.04);
    padding: 40px 0;
}

.footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--text-heading);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Legal Pages ─────────────────────────────────────────── */
.legal-page {
    padding: 140px 0 80px;
}

.legal-page h1 {
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page p, .legal-page ul {
    margin-bottom: 14px;
    color: var(--text-dark);
    line-height: 1.75;
    max-width: 760px;
}

.legal-page ul {
    list-style: disc;
    padding-left: 24px;
}

.legal-page a {
    color: rgb(100, 160, 180);
    text-decoration: underline;
}

/* ── Animations ──────────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    :root {
        --section-spacing: 64px;
    }

    .hero {
        padding-top: 120px;
    }

    .features-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .navbar-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(242, 242, 245, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .navbar-links.open {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .about-card-stack {
        width: 250px;
        height: 290px;
    }

    .about-card-stack .card {
        width: 200px;
        padding: 18px;
    }
}
