:root {
    --grannus-blue: #1a2b6d;
    --grannus-blue-light: #2a3f8f;
    --grannus-blue-dark: #0f1a42;
    --accent-orange: #e65100;
    --accent-amber: #ff8f00;
    --text-light: #f5f5f5;
    --text-dark: #1a1a2e;
    --bg-light: #fafbfc;
    --bg-section: #f0f2f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-light);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 43, 109, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-cta {
    background: var(--accent-orange);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--accent-amber);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--grannus-blue) 0%, var(--grannus-blue-dark) 100%);
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text h1 span {
    color: var(--accent-amber);
}

.hero-tagline {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--accent-amber);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 81, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero-image {
    position: relative;
}

.hero-screenshot {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.hero-screenshot:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.hero-video {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    cursor: pointer;
}

.video-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.video-container video {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    width: 80px;
    height: 80px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 2;
}

.video-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container.playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

.hero-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-amber);
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transform: rotate(5deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Problem Section */
.problem {
    padding: 6rem 2rem;
    background: var(--bg-section);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--grannus-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.pain-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pain-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 4px solid transparent;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-orange);
}

.pain-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.pain-card h3 {
    font-size: 1.25rem;
    color: var(--grannus-blue);
    margin-bottom: 0.75rem;
}

.pain-card p {
    color: #666;
    font-size: 0.95rem;
}

.pain-filename {
    font-family: monospace;
    background: #f3f4f6;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #dc2626;
    display: inline-block;
    margin-top: 1rem;
    word-break: break-all;
}

/* Solution Section */
.solution {
    padding: 6rem 2rem;
    background: white;
}

.solution .section-header h2 span {
    color: var(--accent-orange);
}

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

.feature-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--bg-section);
}

.feature-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--grannus-blue) 0%, var(--grannus-blue-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.feature-content h3 {
    font-size: 1.25rem;
    color: var(--grannus-blue);
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: #666;
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--grannus-blue);
    color: white;
}

.how-it-works .section-header h2 {
    color: white;
}

.how-it-works .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
}

.step {
    text-align: center;
    flex: 1;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--accent-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Screenshots Gallery */
.screenshots-section {
    padding: 6rem 2rem;
    background: var(--bg-section);
}

.screenshots-section .section-header h2 span {
    color: var(--accent-orange);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-amber);
}

body.lightbox-open {
    overflow: hidden;
}

body.lightbox-open nav {
    display: none;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h3 {
    font-size: 1.1rem;
    color: var(--grannus-blue);
    margin-bottom: 0.5rem;
}

.screenshot-caption p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Social Proof */
.social-proof {
    padding: 4rem 2rem;
    background: var(--bg-section);
}

.proof-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.proof-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--grannus-blue);
}

.proof-badge span {
    font-size: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-container h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--grannus-blue);
    margin-bottom: 1rem;
}

.cta-container p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    background: var(--bg-section);
    padding: 3rem;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--grannus-blue);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--grannus-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    background: var(--grannus-blue);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background: var(--grannus-blue-light);
    transform: translateY(-2px);
}

.form-submit .submit-loading {
    display: none;
}

.form-submit[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-submit[disabled] .submit-text {
    display: none;
}

.form-submit[disabled] .submit-loading {
    display: inline;
}

/* Footer */
footer {
    background: var(--grannus-blue-dark);
    color: white;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-screenshot {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-video {
        order: -1;
    }

    .video-container {
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .pain-points {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

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

    .screenshots-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 3rem auto 0;
    }

    .steps {
        flex-direction: column;
        gap: 3rem;
    }

    .steps::before {
        display: none;
    }

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

    .proof-badge {
        flex-direction: column;
        padding: 1.5rem;
        border-radius: 16px;
        gap: 0.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text, .hero-image, .hero-video {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-image, .hero-video {
    animation-delay: 0.2s;
}

/* Form input styles for Django form fields */
.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--grannus-blue);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* CAP widget styling */
.cap-widget {
    margin-bottom: 1.5rem;
}

/* Form message styling */
.form-message {
    text-align: center;
    padding: 2rem;
}

.form-message.success {
    color: #059669;
}

.form-message.error {
    color: #dc2626;
}

.form-message p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Impressum page */
.impressum-section {
    padding: 6rem 2rem;
    min-height: 60vh;
}

.impressum-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.impressum-section h1 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--grannus-blue);
    margin-bottom: 2rem;
}

.impressum-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.impressum-section a {
    color: var(--grannus-blue);
    text-decoration: none;
    font-weight: 500;
}

.impressum-section a:hover {
    text-decoration: underline;
}

.impressum-section h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--grannus-blue);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.impressum-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.impressum-section ul li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    padding: 0.3rem 0;
}
