@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;700;800&display=swap');

:root {
    --color-text: #1a1a1a;
    --color-background: #fdfdfd;
    --color-background-offset: #f8f9fa;
    --color-primary: #141414;
    --color-accent: #3880ff;
    --color-accent-dark: #275ebc;
    --color-accent-background: #f2f7ff;
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --container-width: 1120px;
    --border-radius: 16px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.mobile-menu-open {
    overflow: hidden;
}

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

section {
    padding: 120px 0;
    overflow: hidden;
}

.section-headline {
    font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-subheadline {
    font-size: 1.2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 4rem auto;
    color: #555;
}

/* --- ANIMATIONS --- */
.fade-in-group .fade-in {
    transition-delay: calc(var(--i, 0) * 100ms);
}
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

@keyframes float {
    0% { transform: translateY(0px) rotate(-2deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(-2deg); }
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    padding: 20px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.6rem;
    position: relative;
}

.logo span {
    color: white;
    transition: color 0.3s ease;
}
.main-header.scrolled .logo span {
    color: var(--color-primary);
}
.logo svg path, .logo svg circle {
    stroke: white;
    transition: stroke 0.3s ease;
}
.main-header.scrolled .logo svg path,
.main-header.scrolled .logo svg circle {
    stroke: var(--color-primary);
}

.logo svg {
    width: 42px;
    height: 42px;
    transition: transform 0.4s ease;
}
.logo:hover svg {
    transform: rotate(15deg);
}

.main-nav a {
    color: white; 
    text-decoration: none;
    font-weight: 700;
    margin-left: 35px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.main-header.scrolled .main-nav a {
    color: var(--color-primary);
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* --- MOBILE NAVIGATION --- */
.mobile-nav-toggle {
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
}
.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    position: absolute;
    left: 0;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-nav-toggle span:nth-child(1) { transform: translateY(-8px); }
.mobile-nav-toggle span:nth-child(3) { transform: translateY(8px); }
body.mobile-menu-open .mobile-nav-toggle span:nth-child(1) { transform: rotate(45deg); }
body.mobile-menu-open .mobile-nav-toggle span:nth-child(2) { opacity: 0; }
body.mobile-menu-open .mobile-nav-toggle span:nth-child(3) { transform: rotate(-45deg); }
.mobile-nav-toggle span { background-color: white; }
.main-header.scrolled .mobile-nav-toggle span { background-color: var(--color-primary); }
body.mobile-menu-open .mobile-nav-toggle span { background-color: white; }
body.mobile-menu-open .main-header.scrolled .mobile-nav-toggle span { background-color: var(--color-primary); }

#mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(5px);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
body.mobile-menu-open #mobile-nav {
    opacity: 1;
    visibility: visible;
}
#mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
body.mobile-menu-open #mobile-nav a {
    opacity: 1;
    transform: translateY(0);
}
body.mobile-menu-open #mobile-nav a:nth-child(1) { transition-delay: 0.2s; }
body.mobile-menu-open #mobile-nav a:nth-child(2) { transition-delay: 0.3s; }
body.mobile-menu-open #mobile-nav a:nth-child(3) { transition-delay: 0.4s; }
body.mobile-menu-open #mobile-nav a:nth-child(4) { transition-delay: 0.5s; }


/* --- HERO SECTION --- */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100svh; /* Use small viewport height to avoid issues on mobile */
    overflow: hidden;
    color: white;
    text-align: center;
    background: url('/featured-image.jpg') no-repeat center center;
    background-size: cover;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}
.hero-background-video.is-loaded {
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 3px 20px rgba(0,0,0,0.6);
}

.hero p {
    font-size: 1.5rem;
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-cta-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 16px 38px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid transparent;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-primary {
    background-color: var(--color-accent);
    color: white;
}
.cta-primary:hover { background-color: var(--color-accent-dark); }

.cta-secondary {
    background-color: rgba(255,255,255,0.95);
    color: var(--color-primary);
}
.cta-secondary:hover { background-color: white; }

/* --- PROBLEM SECTION --- */
#problem { position: relative; }
.problem-text-container { max-width: 500px; margin: 0 auto; position: relative; z-index: 2; }
.problem-text p {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 15px 30px rgba(0,0,0,0.07);
    margin-bottom: 2rem;
    border: 1px solid #eee;
}
.chaos-icon {
    position: absolute; z-index: 1; opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}
.chaos-icon svg { width: 50px; height: 50px; }
.icon-1 { top: 10%; left: 15%; animation-duration: 7s; }
.icon-2 { top: 20%; right: 10%; animation-duration: 5s; }
.icon-3 { bottom: 30%; left: 20%; animation-duration: 8s; }
.icon-4 { bottom: 10%; right: 25%; animation-duration: 6s; }

/* --- SOLUTION SECTION --- */
#solution { background-color: var(--color-background-offset); }
.solution-visual {
    max-width: 900px; margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.2);
    padding: 12px;
    background: linear-gradient(135deg, #e0e0e0, #ffffff);
}
.solution-visual-inner {
    background: url('https://images.unsplash.com/photo-1555627764-1d889228347b?q=80&w=2833&auto=format&fit=crop') center center/cover;
    height: 550px;
    border-radius: 16px;
}

/* --- FEATURE SECTIONS --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    text-align: left;
}
.feature-item { padding: 2rem; }
.feature-icon {
    color: var(--color-accent); margin-bottom: 1.5rem;
    background-color:var(--color-accent-background);
    width: 64px; height: 64px;
    border-radius: var(--border-radius);
    display: flex; justify-content: center; align-items: center;
}
.feature-icon svg { width: 36px; height: 36px; }
.feature-item h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.feature-item p { color: #555; }

#reiter { background-color: var(--color-background-offset); }
.reiter-visual { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 4rem; max-width: 1000px; margin: 0 auto;}
.phone-mockup {
    width: 300px; height: 600px; background: #111;
    border-radius: 40px; border: 12px solid #111;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
}
.phone-mockup-screen {
    height: 100%;
    background: url('https://images.unsplash.com/photo-1589578236294-6d9a35a6fabc?q=80&w=2787&auto=format&fit=crop') center center/cover;
    border-radius: 28px;
}

/* --- KILLER FEATURE SECTION --- */
#killer-feature { background: var(--color-primary); color: white; }
#killer-feature .section-subheadline { color: #bbb; }
.killer-feature-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.recommendation-quote {
    background: rgba(255,255,255,0.05); padding: 1.5rem;
    border-left: 4px solid var(--color-accent);
    border-radius: 4px; font-style: italic; font-size: 1.1rem; margin-top: 2rem;
}
.ai-animation-placeholder {
    height: 350px; border-radius: var(--border-radius);
    display: flex; justify-content: center; align-items: center; text-align: center;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    position: relative; overflow: hidden;
}
/* -- SVG Animation -- */
.ai-svg { width: 100%; height: 100%; }
.ai-svg .pulse-node { animation: pulse 2s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { r: 3; opacity: 1; } 50% { r: 5; opacity: 0.7; } }
.ai-svg .trace-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: trace 15s linear infinite;
}
@keyframes trace { to { stroke-dashoffset: 0; } }
.ai-svg .fade-line { opacity: 0.3; animation: fade 5s infinite alternate; }
@keyframes fade { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.6; } }

/* --- TESTIMONIALS --- */
#testimonials { background-color: var(--color-background-offset); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.testimonial-card {
    background: white; padding: 2rem; border-radius: var(--border-radius);
    border: 1px solid #eee;
}
.testimonial-text { font-size: 1.1rem; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; }
.author-info strong { display: block; }
.author-info span { color: #777; font-size: 0.9rem; }

/* --- PRICING --- */
.pricing-toggle { display: flex; justify-content: center; align-items: center; margin-bottom: 3rem; gap: 1rem; font-weight: 700; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--color-accent); }
input:checked + .slider:before { transform: translateX(26px); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: flex-start; }
.pricing-card {
    border: 1px solid #e0e0e0; border-radius: var(--border-radius); padding: 2.5rem;
    text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.pricing-card.highlight { border-color: var(--color-accent); border-width: 2px; }
.pricing-card h3 { font-size: 1.5rem; }
.pricing-card .description { color: #777; margin-bottom: 1rem; min-height: 40px; }
.pricing-card .price { font-size: 3.5rem; font-weight: 800; margin: 1rem 0; }
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: #777; }
.pricing-card ul { list-style: none; margin: 2rem 0; text-align: left; }
.pricing-card ul li { margin-bottom: 0.75rem; padding-left: 28px; position: relative; }
.pricing-card ul li::before {
    content: '✓'; position: absolute; left: 0; color: var(--color-accent);
    font-weight: 700; font-size: 1.2rem;
}

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e0e0e0; }
.faq-item summary {
    font-size: 1.25rem; font-weight: 700;
    padding: 1.5rem 0; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 2rem; font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-content { padding: 0 0 1.5rem 0; color: #555; }

/* --- FOOTER --- */
.main-footer { background-color: var(--color-primary); color: white; padding: 60px 0; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-about .logo { margin-bottom: 1rem; color: white; }
.footer-about .logo span { color: white; }
.footer-about .logo svg path,
.footer-about .logo svg circle { stroke: white; }

.footer-about p { color: #bbb; max-width: 300px; }
.footer-col h4 { font-size: 1.1rem; margin-bottom: 1rem; color: white; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: #bbb; text-decoration: none; transition: color 0.3s ease; }
.footer-col a:hover { color: white; }
.footer-bottom {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid #333;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; color: #888;
}
.lang-switcher a { color: #888; text-decoration: none; margin: 0 5px; cursor: pointer; font-weight: normal; }
.lang-switcher a:hover, .lang-switcher a.active { color: white; font-weight: bold; }

@media (max-width: 992px) {
    .section-headline { font-size: 2.8rem; }
    .hero {
        /* Ensure container can grow, content is not clipped, and video is contained. */
        height: auto;
        min-height: 100svh;
        overflow: hidden;
        /* Use padding to create space for the header and visually center the content. */
        padding-top: 120px;
        padding-bottom: 80px;
        /* Align content block to the top now that padding handles positioning. */
        align-items: flex-start;
    }
    .hero h1 { font-size: 3.5rem; }
    .reiter-visual { grid-template-columns: 1fr; }
    .phone-mockup { margin: 0 auto 3rem auto; }
    .killer-feature-content { grid-template-columns: 1fr; }
    .testimonial-grid, .pricing-grid { grid-template-columns: 1fr; }
    .testimonial-card, .pricing-card { max-width: 450px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { display: none; }
    .mobile-nav-toggle { display: block; }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero h1 { font-size: 2.5rem; }
    .chaos-icon { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-about p { margin: 0 auto 1rem auto; }
    .footer-bottom { flex-direction: column-reverse; gap: 1.5rem; }
}