/* ===================================
   SUSTYY - Modern Website Stylesheet
   Font: Bricolage Grotesque
   Primary Color: #1D592A
   =================================== */

:root {
    --primary-green: #1D592A;
    --dark-green: #154021;
    --light-green: #2d7a3f;
    --accent-green: #3a9b52;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E8E9EB;
    --gray: #6B7280;
    --dark-gray: #374151;
    --black: #111827;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    color: var(--black);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* ===================================
   HEADER / LOGO
   =================================== */

/* Animated Logo - Fixed position that appears on scroll */
.animated-logo {
    position: fixed;
    top: 30px;
    left: 40px;
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.animated-logo.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 15px rgba(29, 89, 42, 0.2));
}

/* Hero Logo - Fades out on scroll */
.hero-logo {
    margin-bottom: 0px;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-logo.hidden {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
}

.hero-logo img {
    height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

/* Responsive Animated Logo */
@media (max-width: 1024px) {
    .animated-logo {
        top: 25px;
        left: 30px;
    }
    
    .logo-img {
        height: 45px;
    }
}

@media (max-width: 968px) {
    .animated-logo {
        top: 20px;
        left: 25px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .hero-logo {
        margin: 0 0 0px;
    }
    
    .hero-logo img {
        height: 70px;
    }
}

@media (max-width: 640px) {
    .animated-logo {
        top: 15px;
        left: 20px;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .hero-logo {
        margin: 0 0 0px;
    }
    
    .hero-logo img {
        height: 60px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* ===================================
   WAITLIST POPUP MODAL
   =================================== */

.waitlist-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.waitlist-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.waitlist-popup {
    background: var(--white);
    border-radius: 32px;
    max-width: 550px;
    width: 100%;
    position: relative;
    padding: 50px 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.waitlist-popup-overlay.active .waitlist-popup {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--light-gray);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.popup-close:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: rotate(90deg);
}

.popup-content {
    text-align: center;
}

.popup-logo {
    margin-bottom: 24px;
}

.popup-logo img {
    height: 60px;
    width: auto;
    display: inline-block;
}

.popup-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.popup-subtitle {
    font-size: 16px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.popup-waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.popup-waitlist-form input[type="email"] {
    width: 100%;
    padding: 18px 24px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.popup-waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(29, 89, 42, 0.1);
}

.popup-cta-button {
    width: 100%;
    padding: 18px 36px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.popup-cta-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 89, 42, 0.3);
}

/* Responsive Popup */
@media (max-width: 640px) {
    .waitlist-popup {
        padding: 40px 30px;
        border-radius: 24px;
    }
    
    .popup-title {
        font-size: 28px;
    }
    
    .popup-subtitle {
        font-size: 15px;
    }
    
    .popup-logo img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .waitlist-popup {
        padding: 35px 25px;
    }
    
    .popup-title {
        font-size: 24px;
    }
    
    .popup-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }
}

/* ===================================
   LANGUAGE SWITCHER
   =================================== */

.language-switcher {
    position: fixed;
    top: 30px;
    right: 40px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--gray);
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
}

.lang-btn.active {
    background: var(--primary-green);
    color: var(--white);
}

.lang-btn:hover {
    color: var(--primary-green);
}

.lang-btn.active:hover {
    color: var(--white);
}

/* ===================================
   HERO SECTION
   =================================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.video-container {
    display: none;
}

.hero-video {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 33px;
    object-fit: cover;
}

.video-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    max-width: 650px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin-bottom: 16px;
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid var(--light-gray);
    border-radius: 50px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(29, 89, 42, 0.1);
}

.cta-button {
    padding: 18px 36px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.cta-button:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(29, 89, 42, 0.3);
}

.form-message {
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

.form-message.success {
    color: var(--primary-green);
}

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

.hero-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    position: relative;
    width: 300px;
    height: 650px;
    background: #000;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}


.phone-screen {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 33px;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.phone-screen.video {
    object-fit: cover;
}

.phone-screen.active {
    opacity: 1;
}

/* ===================================
   BENEFITS SECTION
   =================================== */

.benefits-section {
    padding: 120px 0;
    background: var(--off-white);
}

.section-title {
    font-size: 56px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 80px;
    color: var(--black);
    letter-spacing: -1.5px;
}

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

.benefit-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.benefit-card:hover .benefit-image img {
    transform: scale(1.05);
}

.benefit-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    border-radius: 24px;
}

.benefit-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: var(--transition);
}

.benefit-text {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark-gray);
    line-height: 1.5;
}

/* ===================================
   HOW IT WORKS SECTION
   =================================== */

.how-it-works-section {
    padding: 120px 0;
    background: var(--white);
}

.how-it-works-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
    margin-top: 80px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.step {
    position: relative;
    padding-left: 80px;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 50px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--gray);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.step.active {
    opacity: 1;
}

.step.active::before,
.step:hover::before {
    background: var(--primary-green);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(29, 89, 42, 0.3);
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    transition: var(--transition);
}

.step.active .step-title,
.step:hover .step-title {
    color: var(--primary-green);
}

.step-description {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.6;
}

.phone-showcase {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-showcase .iphone-frame {
    position: relative;
}

/* ===================================
   TEAM SECTION
   =================================== */

.team-section {
    padding: 120px 0;
    background: var(--off-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 40px;
}

.team-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.linkedin-inline,
.email-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary-green);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
    text-decoration: none;
    flex-shrink: 0;
}

.linkedin-inline:hover,
.email-inline:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
}

.linkedin-inline svg,
.email-inline svg {
    width: 16px;
    height: 16px;
}

.team-role {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 12px;
}


/* ===================================
   IMPRINT PAGE
   =================================== */

.imprint-section {
    min-height: 100vh;
    padding: 150px 0 80px;
    background: var(--white);
}

.imprint-title {
    font-size: 56px;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 60px;
    letter-spacing: -1.5px;
}

.imprint-content {
    max-width: 900px;
    margin: 0 auto;
}

.imprint-block {
    margin-bottom: 40px;
}

.imprint-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 16px;
}

.imprint-block p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.imprint-block a {
    color: var(--primary-green);
    text-decoration: none;
    transition: var(--transition);
}

.imprint-block a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

.back-to-home {
    text-align: center;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .imprint-section {
        padding: 120px 0 60px;
    }
    
    .imprint-title {
        font-size: 42px;
        margin-bottom: 40px;
    }
    
    .imprint-block h2 {
        font-size: 20px;
    }
    
    .imprint-block p {
        font-size: 15px;
    }
}

/* ===================================
   FOOTER SECTION
   =================================== */

.footer-section {
    padding: 80px 0 40px;
    background: var(--white);
    color: var(--dark-gray);
    border-top: 1px solid var(--light-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-main {
    max-width: 600px;
}

.footer-logo-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-bottom: 24px;
    display: block;
}

.footer-tagline {
    display: none;
}

.footer-links-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-link-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.social-link-text:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.social-link-text svg {
    color: var(--primary-green);
}

.social-link-text svg {
    flex-shrink: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-green);
    transform: translateX(4px);
}

.contact-link svg {
    color: var(--primary-green);
}

.contact-link svg {
    flex-shrink: 0;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--gray);
}

.footer-separator {
    margin: 0 10px;
    color: var(--gray);
}

.footer-link {
    color: var(--gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-links-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-logo-img {
        max-width: 350px;
    }
    
    .footer-tagline {
        font-size: 18px;
    }
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1440px) {
    .hero-title {
        font-size: 44px;
    }
}

@media (max-width: 1200px) {
    .hero-content {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .iphone-frame {
        width: 280px;
        height: 607px;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .waitlist-form {
        margin: 0 0 16px;
        max-width: 100%;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .how-it-works-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .phone-showcase {
        order: -1;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 42px;
    }
}

@media (max-width: 640px) {
    .language-switcher {
        top: 15px;
        right: 15px;
        scale: 0.9;
    }
    
    .hero-title {
        font-size: 32px !important;
        letter-spacing: -1px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .waitlist-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .waitlist-form input[type="email"] {
        width: 100%;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .iphone-frame {
        width: 240px;
        height: 520px;
    }
    
    .hero-section {
        padding: 90px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px !important;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .iphone-frame {
        width: 220px;
        height: 450px;
        border-radius: 40px;
        padding: 10px;
    }

    
    .section-title {
        font-size: 36px;
        margin-bottom: 50px;
    }
    
    .benefit-card {
        padding: 40px 30px;
    }
    
    .step {
        padding-left: 60px;
    }
    
    .step::before {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .step-title {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 16px;
    }
    
    .footer-tagline {
        font-size: 24px;
    }
}

/* ===================================
   SCROLL ANIMATIONS (Intersection Observer)
   =================================== */

/* Elements with animate class start hidden and transform down */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When animate-in class is added (by Intersection Observer), animate in */
.animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for multiple elements */
.animate:nth-child(1) { transition-delay: 0s; }
.animate:nth-child(2) { transition-delay: 0.1s; }
.animate:nth-child(3) { transition-delay: 0.2s; }
.animate:nth-child(4) { transition-delay: 0.3s; }
.animate:nth-child(5) { transition-delay: 0.4s; }

/* ===================================
   ANIMATIONS & UTILITIES
   =================================== */

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth Transitions */
button, a, input {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--primary-green);
    color: var(--white);
}
