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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e8e3f3;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #7c3aed;
}

/* Advertorial Label */
.advertorial-label {
    background-color: #f5f5f5;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #FA5151;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #e0e0e0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f6fc 0%, #e8e3f3 100%);
    padding: 80px 0 120px;
    position: relative;
    overflow: visible;
}

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

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #4a4a4a;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: #2a2a2a;
}

.feature-item .icon {
    width: 24px;
    height: 24px;
    color: #7c3aed;
    flex-shrink: 0;
}

/* Phone Mockup */
.phone-mockup {
    background-image: url('./appui.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 40px;
    padding: 30px 30px 60px;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.app-rating {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(50%);
    width: calc(100% - 80px);
    max-width: 300px;
    z-index: 10;
}

.rating-stars {
    font-size: 32px;
    color: #fbbf24;
    margin-bottom: 10px;
}

.rating-text {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.cta-button.primary {
    background-color: #1a1a1a;
    color: #ffffff;
}

.cta-button.primary:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.cta-button.large {
    padding: 20px 48px;
    font-size: 18px;
}

/* Section Styles */
section {
    padding: 80px 0;
}

section h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.section-intro {
    text-align: center;
    font-size: 18px;
    color: #4a4a4a;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* What Is Section */
.what-is {
    background-color: #ffffff;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.info-card {
    background: #f8f6fc;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
}

.info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 32px;
    height: 32px;
    color: white;
    stroke-width: 2;
}

.info-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.info-card p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    background: linear-gradient(135deg, #f8f6fc 0%, #e8e3f3 100%);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.step-content p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Features Section */
.features {
    background-color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Центруємо останню картку, якщо вона одна в рядку */
.features-grid .feature-card:last-child {
    justify-self: center;
}

/* На середніх екранах, коли є 2 колонки і остання картка одна в рядку */
@media (min-width: 641px) and (max-width: 1200px) {
    .features-grid .feature-card:last-child {
        grid-column: 1 / -1;
        max-width: 280px;
        margin: 0 auto;
    }
}

.feature-card {
    background: white;
    border: 2px solid #e8e3f3;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #7c3aed;
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.feature-image {
    margin-bottom: 25px;
}

.placeholder-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8f6fc 0%, #e8e3f3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-image.history-image {
    background-image: url('./history.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f6fc;
}

.placeholder-image.history-image svg {
    display: none;
}

.placeholder-image.test-image {
    background-image: url('./test.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f6fc;
}

.placeholder-image.test-image svg {
    display: none;
}

.placeholder-image.graph-image {
    background-image: url('./graph.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f6fc;
}

.placeholder-image.graph-image svg {
    display: none;
}

.placeholder-image.hphones-image {
    background-image: url('./hphones.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8f6fc;
}

.placeholder-image.hphones-image svg {
    display: none;
}

.placeholder-image svg {
    width: 60px;
    height: 60px;
    color: #7c3aed;
    stroke-width: 1.5;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Trust Section */
.trust {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    text-align: center;
}

.trust h2 {
    color: white;
}

.trust-subtitle {
    color: #d1d1d1;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 50px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 56px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #d1d1d1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technology Section */
.technology {
    background-color: #ffffff;
}

.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.tech-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.tech-text p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.7;
    margin-bottom: 25px;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    font-size: 16px;
    color: #2a2a2a;
}

.tech-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7c3aed;
    font-weight: 700;
    font-size: 18px;
}

.tech-icon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.tech-icon-item {
    background: #f8f6fc;
    padding: 30px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.tech-icon-item:hover {
    background: #e8e3f3;
    transform: translateX(10px);
}

.tech-icon-item svg {
    width: 40px;
    height: 40px;
    color: #7c3aed;
    stroke-width: 2;
    flex-shrink: 0;
}

.tech-icon-item span {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

/* FAQ Section */
.faq {
    background: linear-gradient(135deg, #f8f6fc 0%, #e8e3f3 100%);
}

.faq-list {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.faq-item p {
    font-size: 16px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}

.final-cta h2 {
    color: white;
    font-size: 44px;
    margin-bottom: 20px;
}

.final-cta > p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
}

.final-cta .cta-button {
    margin: 30px 0;
    display: inline-block;
}

.cta-note {
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #d1d1d1;
    padding: 60px 0 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #a78bfa;
}

.footer-disclosures {
    max-width: 900px;
    margin: 0 auto 40px;
}

.disclosure {
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #7c3aed;
}

.disclosure p {
    font-size: 13px;
    line-height: 1.6;
    color: #d1d1d1;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #3a3a3a;
}

.footer-bottom p {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.footer-note {
    font-size: 12px;
    color: #888;
    max-width: 800px;
    margin: 20px auto 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content,
    .tech-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    section h2 {
        font-size: 32px;
    }

    .final-cta h2 {
        font-size: 36px;
    }

    .phone-mockup {
        min-height: 350px;
        padding: 20px 20px 50px;
    }

    .app-rating {
        width: calc(100% - 40px);
        padding: 20px;
    }

}

@media (max-width: 640px) {
    .site-header {
        padding: 15px 0;
    }

    .logo {
        font-size: 24px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero {
        padding: 50px 0 100px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 28px;
    }

    .info-grid,
    .steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .features-grid .feature-card:last-child {
        justify-self: stretch;
        grid-column: auto;
        max-width: 100%;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 42px;
    }

    .final-cta {
        padding: 60px 0;
    }

    .final-cta h2 {
        font-size: 28px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

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

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-image {
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: visible;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6d28d9;
}