/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #c0a8e0;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    background-color: #c0a8e0;
}

/* Aurora / liquid gradient background */
.aurora-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, #e48bd8 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, #8cd4e8 0%, transparent 50%),
        radial-gradient(circle at 50% 70%, #c78de6 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, #82b8f0 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, #90e0db 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, #d8a0e0 0%, transparent 50%);
    background-color: #c0a8e0;
    animation: auroraMove 10s ease-in-out infinite alternate;
}

@keyframes auroraMove {
    0% {
        transform: translate(0%, 0%) rotate(0deg) scale(1);
    }
    20% {
        transform: translate(12%, -8%) rotate(4deg) scale(1.02);
    }
    40% {
        transform: translate(-8%, 12%) rotate(-3deg) scale(0.98);
    }
    60% {
        transform: translate(10%, 10%) rotate(5deg) scale(1.03);
    }
    80% {
        transform: translate(-12%, -5%) rotate(-4deg) scale(0.97);
    }
    100% {
        transform: translate(6%, -10%) rotate(3deg) scale(1.01);
    }
}

/* Make all page content sit above the background */
.hero, .showcases, .contact {
    position: relative;
    z-index: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

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



/* ===== TYPOGRAPHY ===== */
.hero-title,
.section-title {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 40px;
    z-index: 10;
}

.logo {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 40px;
}

.hero-content {
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    line-height: 1.1;
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    font-weight: 400;
    opacity: 0.85;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline {
    padding: 14px 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 400;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
    color: #ffffff;
    background: transparent;
}

.btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    background: #7c4dff;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-submit:hover {
    background: #651fff;
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== STATS SECTION ===== */
.stats {
    position: relative;
    z-index: 1;
    padding: 0px 24px 40px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 32px 28px;
    text-align: center;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 3.2rem;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.1;
}

.stat-box p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: #ffffff;
}

/* ===== STEPS SECTION ===== */
.steps {
    position: relative;
    z-index: 1;
    padding: 60px 24px 40px;
}

.steps .section-title {
    text-align: center;
    margin-bottom: 50px;
}

.steps-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex-shrink: 0;
    width: 400px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.step-number {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 2.4rem;
    color: #ffffff;
    opacity: 0;
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
    transform: scale(0) rotate(-20deg);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-number.visible {
    opacity: 0.9;
    transform: scale(1) rotate(0deg);
}

.step-text h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.step-text p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.8;
}

.step-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.step-link:hover {
    opacity: 0.8;
}

.steps-tagline {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1.3rem;
    opacity: 0.9;
    margin-top: 12px;
    padding-left: 60px;
}

.steps-screenshot {
    flex: 1;
    max-width: 620px;
}

.app-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.app-screenshot:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.visible {
    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: 32px;
    font-size: 2.5rem;
    color: #ffffff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ===== SHOWCASES SECTION ===== */
.showcases {
    padding: 80px 24px 80px;
    text-align: center;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 60px;
    font-style: italic;
}

.showcases-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: nowrap;
    max-width: 1500px;
    margin: 0 auto;
}

.showcase-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease;
    width: 180px;
    position: relative;
}

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

.showcase-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* ===== SHOWCASE IMAGE ===== */
.showcase-img {
    width: 180px;
    height: auto;
    border-radius: 4px;
}

.showcase-label {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
    font-size: 1rem;
    font-weight: 400;
    opacity: 1;
    text-align: center;
}

/* ===== SHOWCASE DESCRIPTION ===== */
.showcase-desc {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    z-index: 10;
}

.showcase-desc p {
    font-size: 0.82rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: center;
    padding-top: 4px;
    opacity: 0.85;
}

.showcase-item:hover .showcase-desc {
    max-height: 200px;
    opacity: 1;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 24px 100px;
}

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

.contact-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    flex-wrap: wrap;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    min-width: 300px;
}

.contact-logo {
    overflow: hidden;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-logo .logo {
    height: 150px;
    width: auto;
    filter: brightness(0) invert(1);
}

.contact-email {
    font-size: 1.4rem;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 4px;
    opacity: 0.9;
}

.contact-email:hover {
    opacity: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.social-link {
    color: #ffffff;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== BLOG CTA ===== */
.blog-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.blog-cta-text {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.blog-cta-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0.9;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.blog-cta-link:hover {
    opacity: 1;
}

/* ===== CONTACT FORM ===== */
.contact-form-wrapper {
    max-width: 520px;
    min-width: 300px;
}

.contact-form-card {
    background: #ffffff;
    color: #333333;
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.form-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #7c4dff;
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 20px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.form-success.visible {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a0dc, #9ec5e0);
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}

.success-text {
    font-size: 1.05rem;
    color: #777;
}

.form-error {
    display: none;
    font-size: 0.9rem;
    color: #d32f2f;
}

.form-error.visible {
    display: block;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    z-index: 1;
    padding: 20px 40px 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    padding-right: 64px; /* leave room for the back-to-top arrow */
}

.footer-legal-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.7;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}

.footer-legal-link:hover {
    opacity: 1;
}

.footer-company {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    opacity: 0.9;
    margin-bottom: 4px;
}

.footer-address {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    opacity: 0.8;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* ===== RESPONSIVE (mobile only — does NOT affect desktop) ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 85svh; /* accounts for mobile address bar */
        padding-bottom: 0px;
    }

    .stats {
        padding-top: 0px;
    }

    .nav {
        padding: 20px 24px;
    }

    /* Stats: stack vertically */
    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .stat-box {
        width: 90%;
        max-width: 360px;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .stat-box p {
        font-size: 0.95rem;
    }

    /* Steps: stack vertically, screenshot below */
    .steps-content {
        flex-direction: column;
        gap: 40px;
    }

    .steps-list {
        width: 100%;
    }

    .steps-screenshot {
        max-width: 100%;
    }

    .steps-tagline {
        padding-left: 60px;
    }

    .showcases {
        padding-bottom: 10px;
    }

    .contact {
        padding-top: 40px;
    }

    /* Showcases: wrap into grid */
    .showcases-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .showcase-item {
        width: 140px;
    }

    .showcase-img {
        width: 140px;
    }

    .showcase-desc {
        display: none;
    }

    .showcase-item:hover {
        transform: none;
    }

    /* Contact: stack vertically */
    .contact-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 48px;
        padding: 0 24px;
    }

    .contact-info {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .blog-cta-text {
        display: none;
    }

    .blog-cta-link {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        width: 100%;
        min-width: unset;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Footer */
    .site-footer {
        padding: 20px 24px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-legal {
        align-items: flex-start;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-text h3 {
        font-size: 1rem;
    }

    .showcases-grid {
        gap: 20px;
    }

    .showcase-item {
        width: 120px;
    }

    .showcase-img {
        width: 120px;
    }

    .contact-form-card {
        padding: 24px 20px;
    }
}
