/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0A146D;
    --primary-yellow: #E9ED26;
    --text-dark: #000000;
    --text-light: #FFFFFF;
    --text-gray: #5F5F5F;
    --text-muted: #D5D5D5;
    --bg-white: #FFFFFF;
    --bg-light-blue: rgba(10, 20, 109, 0.1);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-lg: 22px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Base container styles */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

section {
    width: 100%;
    padding: 64px 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--primary-blue);
    padding-top: 40px;
    min-height: 520px;
    height: 100vh;
    max-height: 800px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    background-image: url('images/loop-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: brightness(0.8) contrast(1.2);
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Hero Header */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0 20px 0;
}

@media (max-width: 768px) {
    .hero-header {
        padding: 8px 0;
    }
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 120px;
    height: auto;
    transition: var(--transition);
}

.subscribe-btn {
    background: var(--bg-white);
    color: var(--text-dark);
    border: none;
    padding: 20px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none; /* Ensure link styled as a button doesn't have an underline */
}

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Content */
.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex: 1;
    padding-bottom: 0;
    gap: 60px;
    padding-top: 20px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-bottom: 40px;
    padding-top: 0;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.15;
}

.star-icon {
    color: var(--primary-yellow);
    font-size: 56px;
    vertical-align: middle;
    margin-left: 8px;
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-yellow);
    margin-bottom: 48px;
    line-height: 1.2;
}

.hero-description-section {
    margin-bottom: 32px;
}

.hero-description-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.4;
}

.hero-description {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 420px;
    opacity: 0.95;
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: 0;
    align-items: center;
}

.shopify-btn {
    background: var(--text-light);
    border: none;
    border-radius: var(--border-radius);
    padding: 0;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    margin: 0;
}

@media (max-width: 768px) {
    .hero-cta {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .shopify-btn {
        display: flex;
        justify-content: center;
    }
    
    .shopify-btn img {
        margin: 0 auto;
    }
}

.shopify-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.shopify-btn img {
    height: 44px;
    width: auto;
    display: block;
}

.hero-image {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}

.phone-mockup {
    max-width: 645px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
    transform: rotate(-5deg);
    position: relative;
    z-index: 2;
    margin-bottom: -15px;
}

.phone-mockup:hover {
    transform: translateY(-10px) rotate(-3deg);
}

.hero-image .phone-mockup {
    max-width: 480px;
    width: 100%;
    height: auto;
    margin-bottom: 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border-radius: 24px;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--bg-white);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.features-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.person-laptop {
    max-width: 540px;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.person-laptop:hover {
    transform: scale(1.02);
}

.section-badge {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 60px;
    line-height: 1.2;
}

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

.step {
    display: flex;
    gap: 27px;
    align-items: flex-start;
}

.step-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.step-circle {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    color: var(--text-light);
    border: 8px solid var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    box-shadow: none;
    margin: 0;
    padding: 0;
    transition: none;
}

.step-circle:hover {
    background: var(--primary-blue);
    border: 8px solid var(--text-light);
    box-shadow: none;
    transform: none;
}

.step-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-content {
    background: var(--bg-light-blue);
    padding: 20px 40px;
    border-radius: var(--border-radius-lg);
    flex: 1;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.875;
}

/* How to Use Section */
.how-to-use {
    padding: 120px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header .section-title {
    margin-bottom: 0;
}

.app-showcase {
    display: flex;
    justify-content: center;
    max-width: 1240px;
    margin: 0 auto;
}

.app-screenshot {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.app-screenshot:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.play-btn {
    background: rgba(10, 20, 109, 0.1);
    border: none;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    background: rgba(10, 20, 109, 0.15);
    transform: scale(1.1);
}

.play-btn img {
    width: 50px;
    height: 50px;
}

/* Benefits Section */
.benefits {
    padding: 120px 0;
    background: var(--bg-white);
}

.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.benefit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.benefit-card:nth-child(even) {
    direction: rtl;
}

.benefit-card:nth-child(even) .benefit-content {
    direction: ltr;
}

.benefit-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.benefit-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

.chart-container {
    background: var(--bg-white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.chart-metrics {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
}

.metric-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
}

.metric-growth {
    font-size: 18px;
    font-weight: 600;
    color: #10b981;
}

.chart-placeholder {
    height: 200px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 20px 0;
}

.chart-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 2px;
    position: relative;
    animation: chartGrow 2s ease-out;
}

.chart-line-dashed {
    background: repeating-linear-gradient(90deg, #e5e7eb 0px, #e5e7eb 4px, transparent 4px, transparent 8px);
    height: 2px;
    margin-bottom: 20px;
}

@keyframes chartGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.ui-snippet {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.ui-snippet:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 80px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.footer-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-title {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 32px;
    line-height: 1.2;
    text-transform: capitalize;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 720px;
}

.copyright {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    text-align: right;
    gap: 16px;
}

.footer-right .social-icons {
    justify-content: flex-end;
}

.footer-right .privacy-link {
    align-self: flex-end;
}

@media (max-width: 768px) {
    .footer-right {
        align-items: flex-start;
        text-align: left;
    }
    .footer-right .social-icons {
        justify-content: flex-start;
    }
    .footer-right .privacy-link {
        align-self: flex-start;
    }
}

.social-section h4 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
    opacity: 0.75;
}

.social-icons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary-yellow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.privacy-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--text-light);
}

/* Responsive Benefits Section */
.benefits-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
}
.benefits-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}
.benefits-text {
    flex: 1;
    min-width: 340px;
}
.benefits-image {
    flex: 1;
    min-width: 340px;
    display: flex;
    justify-content: flex-end;
}
.benefits-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
@media (max-width: 900px) {
    .benefits-row {
        flex-direction: column;
        gap: 24px;
    }
    .benefits-text, .benefits-image {
        min-width: 0;
        justify-content: flex-start;
    }
    .benefits-image {
        margin-bottom: 0;
    }
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }
    
    .hero-content,
    .features-content,
    .benefit-card {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .benefit-card:nth-child(even) {
        direction: ltr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .star-icon {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .footer-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    .hero {
        padding-top: 16px;
        min-height: 420px;
    }
    
    .hero-header {
        padding: 20px 0 10px 0;
    }
    
    .hero-content {
        padding: 20px 0;
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }
    
    .hero-text {
        padding-bottom: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .star-icon {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 24px;
    }
    
    .hero-description-section {
        margin: 0 auto 32px auto;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    .phone-mockup {
        transform: rotate(0deg);
        max-width: 400px;
    }
    
    .phone-mockup:hover {
        transform: translateY(-10px) rotate(0deg);
    }
    
    .features,
    .how-to-use,
    .benefits {
        padding: 80px 0;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    .features-image {
        margin: 0 16px;
        width: calc(100% - 32px);
    }

    .person-laptop {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .step {
        gap: 16px;
    }

    .step-content {
        padding: 20px;
        margin-right: 16px;
        width: 100%;
    }

    .features .container {
        padding: 0 16px;
    }

    .section-badge {
        margin-left: 16px;
    }

    .section-title {
        padding: 0 16px;
        margin-bottom: 40px;
    }

    .steps {
        padding: 0;
        margin: 0;
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .steps {
        gap: 30px;
    }
    
    .step {
        gap: 20px;
    }
    
    .step-content {
        padding: 20px 24px;
    }
    
    .benefits-grid {
        gap: 80px;
    }
    
    .footer {
        padding: 60px 0 30px;
    }
    
    .footer-content {
        gap: 40px;
    }
    
    .footer-title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .star-icon {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description-title {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .phone-mockup {
        max-width: 300px;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 24px;
        border-width: 6px;
    }
    
    .step-content h3 {
        font-size: 18px;
    }
    
    .step-content p {
        font-size: 14px;
    }
    
    .benefit-content h3 {
        font-size: 24px;
    }
    
    .benefit-content p {
        font-size: 14px;
    }
    
    .footer-title {
        font-size: 28px;
    }
    
    .footer-description {
        font-size: 14px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

.hero-text,
.hero-image,
.step,
.benefit-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Hover effects */
.step-content:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* --- CSS Additions to Replace JavaScript --- */
/*
The following rules replace functionality that was previously handled
by the script.js file, making the site more reliable and easier to maintain.
*/

/* Adds hover effects to elements for a subtle lift */
.step:hover,
.benefit-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease-out;
}

/*
Note: The .app-screenshot hover effect is already defined above
with a translateY(-10px) and is intentionally not overridden here.
*/

/* Adds a consistent, accessible focus outline to all interactive elements */
:is(button, a, input, textarea, select):focus-visible {
    outline: 2px solid var(--primary-yellow);
    outline-offset: 2px;
}
