/* main.css */

/* Variables */
:root {
    --primary: #83a0c1;
    --primary-hover: #4f5a6c;
    --secondary: #e9ecef;
    --text: #2d1a15;
    --text-light: #5d4037;
    --bg: #fafafa;
    --accent: #bf360c;
    --container-max: 1500px;
    --transition: all 0.3s ease;
}

/* Base styles */
body {
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 1.1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.container {
    max-width: var(--container-max);
    padding: 0 2rem;
    margin: 0 auto;
}

/* Hero */
.hero-wrapper {
    position: relative;
    padding: 2rem 0 8rem;
    background: linear-gradient(135deg, #6a91c1 0%, #a1c4fd 100%);
    color: white;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
}

.logo-top {
    margin-bottom: 4rem;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
}

.logo-bg {
    background: rgb(255, 255, 255);
    padding: 0.6rem 0.8rem;
    border-radius: 15px;
    /*border: 1px solid #3a4fa0;*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 4px 16px rgba(0, 0, 0, 0.1);
}

.hero-logo {
    height: 50px; /* Increased by 10% from 40px */
}

.logo-text-img {
    height: 25px; /* 50% smaller than hero-logo (50px) */
    opacity: 0.9;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-left {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-title {
    font-size: 4rem;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-left .tagline-secondary {
    margin: 0 0 2.5rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.5rem !important;
}

.ipad-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    box-shadow: -20px 20px 50px rgba(0,0,0,0.2);
    border-radius: 30px;
    border: 12px solid #1a1a1a;
    background: #1a1a1a;
    overflow: hidden;
}

.ipad-mockup img {
    width: 100%;
    height: auto;
    display: block;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-bg {
    position: absolute;
    top: 50%;
    right: -10%;
    transform: translateY(-50%);
    width: 60%;
    height: 120%;
    background-image: url('../resources/images/TopHandleOutline.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1;
    pointer-events: none;
    filter: brightness(0) invert(1);
}

.cta {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: #000;
    color: white;
    text-decoration: none;
    border-radius: 8px; /* More rectangular like store badges */
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.cta:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.cta-secondary {
    background: #000;
}

.cta-secondary:hover {
    background: #222;
}

.cta-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    box-shadow: none;
}

.cta-outline:hover {
    background: white;
    color: #6a91c1;
}

/* Features */
.features {
    padding: 6rem 0;
    /*background: linear-gradient(to bottom, #dbefff, #efebe9);*/
}

.features h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 4rem;
    font-weight: 700;
}

.feature-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6rem; /* Increased gap for better scroll separation */
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    width: 100%;
    text-align: center;
    padding: 3rem;
    background: var(--secondary);
    border-radius: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(30px);
}

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

.feature:hover {
    transform: translateY(-5px);
}

.feature img {
    max-width: 100%;
    height: auto;
    max-height: 500px; /* Slightly larger since we have more vertical space now */
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
    object-fit: contain;
}

.feature p {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--text);
    max-width: 1000px;
}

.feature .feature-description {
    font-size: 1.0rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Removed Scroll Snap in favor of Scroll Animations */

/* Highlights */
.highlights {
    padding: 6rem 0 2rem;
    background: #efebe9;
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.highlight-item {
    padding: 1.5rem;
}

.highlight-item .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.highlight-item p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.section-note {
    font-size: 0.8rem;
    text-align: left;
    opacity: 0.7;
    margin-top: 4rem;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

/* Final CTA */
.final-cta {
    padding: 8rem 0;
    background: var(--bg);
}

.cta-card {
    background: linear-gradient(135deg, #6a91c1 0%, #a1c4fd 100%);
    padding: 4rem 2rem;
    border-radius: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(106, 145, 193, 0.2);
}

.cta-card h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.cta-card .cta-group {
    justify-content: center;
}

/* Footer */
footer {
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid var(--secondary);
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-left .tagline-secondary {
        text-align: center;
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

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

    .ipad-mockup {
        transform: none; /* Remove 3D effect on smaller screens for better fit */
    }

    .feature {
        width: 100%;
        max-width: 1000px;
        padding: 2rem;
    }

    .cta-card h2 {
        font-size: 2.2rem;
    }
}

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

    .logo-top {
        margin-bottom: 2rem;
        text-align: center;
    }
}
