/* Homepage Specific Styles */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 80px 0 40px;
    /* further reduced padding */
    background-color: #000;
    overflow: hidden;
    min-height: 90vh;
    /* changed from 100vh to ensure it fits with navbar */
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Left Column: Text */
.hero-text-content {
    text-align: left;
    max-width: 600px;
}

.hero-brand {
    margin-bottom: 16px;
    /* Reduced margin */
}

.brand-k-img {
    width: 90px;
    /* smaller logo */
    height: auto;
    display: block;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.3));
}

.hero-title {
    font-size: 3rem;
    /* reduced from 3.5rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    /* tighter margin */
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    /* tighter margin */
    line-height: 1.5;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
}

/* Right Column: Visual (Mockup) */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 380px;
    /* Phone width */
}

/* Phone Mockup Styling */
.mockup-container {
    perspective: 1000px;
}

.phone-mockup {
    background: #000;
    border: 8px solid #1f1f1f;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 2px #333,
        0 20px 50px -10px rgba(0, 0, 0, 0.5),
        0 0 100px -20px rgba(59, 130, 246, 0.2);
    width: 100%;
    aspect-ratio: 9/19;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 30px;
    background: #1f1f1f;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.screen-content {
    padding: 40px 20px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, #111 0%, #000 100%);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.status-icons {
    display: flex;
    gap: 6px;
}

/* Fake App UI */
.app-item {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.item-icon.blue {
    background: #3b82f6;
}

.item-icon.purple {
    background: #8b5cf6;
}

.item-icon.indigo {
    background: #6366f1;
}

.item-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.line {
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.w-40 {
    width: 40%;
}

.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-36 {
    width: 36%;
}

.w-16 {
    width: 16%;
}

.w-24 {
    width: 24%;
}

.app-save-btn {
    margin-top: auto;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: default;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

/* Buttons */
.store-btn,
.demo-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    height: 52px;
}

.store-btn {
    background-color: transparent;
    border-color: #fff;
    color: white;
}

.store-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.btn-text span:first-child {
    font-size: 0.7rem;
}

.store-name {
    font-size: 1rem;
    font-weight: 600;
}

.store-btn i {
    font-size: 1.5rem;
}

.demo-btn {
    background-color: transparent;
    border-color: #3b82f6;
    color: #3b82f6;
    font-weight: 500;
}

.demo-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* --- Features Section --- */
.features-section {
    padding: 100px 0;
    background-color: #000;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.highlight {
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    /* Left column slightly narrower than combined right */
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Bento Box Layout specific targeting */
/* Assuming order: 1. Large Left, 2. Wide Top-Right, 3. Small Bottom-Right 1, 4. Small Bottom-Right 2 */

.feature-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
    /* Spans full height on left */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.feature-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.feature-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    /* This one needs to share the row with the 4th one, or we need nested grids. 
       Easier approach with CSS Grid: make the right column a subgrid or just manage columns carefully.
       Actually, let's use a 3-column overall grid:
       Col 1: Large Card (spans 1 col, 2 rows)
       Col 2 & 3: Top Card (spans 2 cols, 1 row)
       Col 2: Bot Left Card (1 col, 1 row)
       Col 3: Bot Right Card (1 col, 1 row)
    */
}

/* Redefining grid for the 3-column approach */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card:nth-child(1) {
    grid-column: 1 / span 1;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Text at bottom often looks better for tall cards */
}

.feature-card:nth-child(2) {
    grid-column: 2 / span 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    /* Horizontal layout for wide card */
    gap: 24px;
}

.feature-card:nth-child(2) .feature-icon-wrapper {
    margin-bottom: 0;
    /* Reset for horizontal layout */
    font-size: 2.5rem;
}

.feature-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.feature-card:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}


.glass-panel {
    background: #111;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.glass-panel:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.feature-icon-wrapper {
    font-size: 2.5rem;
    /* Larger icons */
    margin-bottom: 24px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .feature-card:nth-child(1) {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .feature-card:nth-child(2) {
        grid-column: 1 / span 2;
        grid-row: auto;
    }

    .feature-card:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }

    .feature-card:nth-child(4) {
        grid-column: 2;
        grid-row: auto;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card:nth-child(1),
    .feature-card:nth-child(2),
    .feature-card:nth-child(3),
    .feature-card:nth-child(4) {
        grid-column: 1;
        grid-row: auto;
    }

    .feature-card:nth-child(2) {
        flex-direction: column;
        /* Stack vertically on mobile */
        align-items: flex-start;
        gap: 0;
    }

    .feature-card:nth-child(2) .feature-icon-wrapper {
        margin-bottom: 24px;
    }
}

/* --- How It Works Section --- */
.steps-section {
    padding: 100px 0;
    background-color: #000;
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
}

.step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-top: 1px solid #333;
}

.cta-content {
    text-align: center;
    color: white;
}

.cta-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.cta-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.cta-subtitle {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 48px;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.store-btn.white {
    background: white;
    color: #3b82f6;
    border: none;
}

.store-btn.white:hover {
    background: #f0f9ff;
    transform: translateY(-2px);
}

.demo-btn.glass {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.demo-btn.glass:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cta-qr-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 24px;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
}

.qr-box {
    background: white;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: bold;
    margin-bottom: 8px;
}

.qr-label {
    color: #333;
    font-size: 0.75rem;
    display: block;
    margin-top: 4px;
}

.qr-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.qr-text p {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .hero-visual {
        margin-top: 40px;
    }

    .hero-title,
    .cta-title {
        font-size: 2.5rem;
    }

    .steps-grid {
        flex-direction: column;
    }

    .hero-image-wrapper {
        perspective: none;
    }

    .hero-image {
        transform: none;
    }

    .floating-cards {
        display: none;
    }

    /* Hide complex animation on mobile for now */
    .cta-qr-panel {
        flex-direction: column;
        text-align: center;
    }
}