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

:root {
    --color-primary: #0066ff;
    --color-primary-dark: #0052cc;
    --color-accent: #0066ff;
    --color-text: #121217;
    --color-text-light: #6b7280;
    --color-background: #ffffff;
    --color-background-alt: #f7f7f8;
    --color-background-dark: #121217;
    --color-border: #e5e5e9;
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container-max-width: 1200px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

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

.logo img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-light);
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 140px;
    text-align: center;
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top,
        #ffffff 0%,
        rgba(255, 255, 255, 0.95) 20%,
        rgba(255, 255, 255, 0.7) 40%,
        rgba(255, 255, 255, 0.3) 60%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Products Section */
.products {
    padding: 100px 0;
}

.product-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.product-badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.product-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 400;
}

.product-name {
    font-weight: 700;
    color: var(--color-text);
}

.product-tagline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.product-header p {
    font-size: 1.125rem;
}

/* Product Feature Sections */
.product-features-wrapper {
    margin-top: 60px;
}

.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 80px 0;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.product-feature:last-of-type {
    border-bottom: none;
}

.product-feature.reverse {
    direction: rtl;
}

.product-feature.reverse > * {
    direction: ltr;
}

.product-feature-content {
    position: relative;
}

.feature-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 12px rgba(41, 181, 232, 0.3);
}

.product-feature-content h3 {
    font-size: 1.875rem;
    margin-bottom: 1.25rem;
    color: var(--color-text);
    line-height: 1.3;
}

.product-feature-content > p {
    margin-bottom: 1.25rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--color-text-light);
}

.feature-list {
    list-style: none;
    margin: 1.5rem 0;
    padding: 1.25rem;
    background-color: var(--color-background-alt);
    border-radius: 12px;
    border-left: 3px solid var(--color-primary);
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 0.875rem;
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066ff' stroke-width='3'%3E%3Cpolyline points='20,6 9,17 4,12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.product-feature-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 20px 40px -8px rgba(0, 0, 0, 0.15);
    background: #f1f5f9;
}

/* Browser mockup header */
.product-feature-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
    z-index: 2;
}

/* Browser dots */
.product-feature-image::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 16px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow:
        16px 0 0 #eab308,
        32px 0 0 #22c55e;
    z-index: 3;
}

.product-feature-image img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 36px;
    transition: transform 0.4s ease;
}

.product-feature:hover .product-feature-image {
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.08),
        0 8px 12px -2px rgba(0, 0, 0, 0.12),
        0 30px 60px -12px rgba(0, 0, 0, 0.2);
}

.product-feature:hover .product-feature-image img {
    transform: scale(1.02);
}

/* Scroll Animations */
.product-feature {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.product-feature.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.product-feature .product-feature-content {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.product-feature .product-feature-image {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s, box-shadow 0.3s ease;
}

.product-feature.reverse .product-feature-content {
    transform: translateX(40px);
}

.product-feature.reverse .product-feature-image {
    transform: translateX(-40px);
}

.product-feature.animate-in .product-feature-content,
.product-feature.animate-in .product-feature-image {
    opacity: 1;
    transform: translateX(0);
}

/* Features Grid Animation */
.feature-card {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out, box-shadow 0.2s ease;
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }

/* Steps Animation */
.step {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(4) { transition-delay: 0.2s; }
.step:nth-child(5) { transition-delay: 0.25s; }

/* See KeyPilot in Real Action */
.real-action-section {
    padding: 100px 0;
    background-color: var(--color-background);
}

.real-action-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.linkedin-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.linkedin-card-content {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.linkedin-icon {
    flex-shrink: 0;
}

.linkedin-text {
    flex: 1;
}

.linkedin-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0A66C2;
    margin-bottom: 0.5rem;
}

.linkedin-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text);
    line-height: 1.5;
}

@media (max-width: 600px) {
    .linkedin-card {
        padding: 24px;
    }

    .linkedin-card-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .linkedin-quote {
        font-size: 1.125rem;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background-color: var(--color-background);
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.9375rem;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 0;
    background-color: var(--color-background-alt);
}

.how-it-works h2 {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.step {
    text-align: center;
    padding: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.25rem;
}

.step h3 {
    color: var(--color-text);
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.9375rem;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
}

.benefits-content {
    max-width: 700px;
    margin: 0 auto;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefits-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.benefits-list span {
    font-size: 1.0625rem;
    color: var(--color-text);
}

.benefits-list strong {
    color: var(--color-text);
}

/* FAQs Section */
.faqs {
    padding: 100px 0;
    background-color: var(--color-background-alt);
}

.faqs h2 {
    text-align: center;
    margin-bottom: 3rem;
}

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

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.faq-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.faq-item:nth-child(1) { transition-delay: 0s; }
.faq-item:nth-child(2) { transition-delay: 0.05s; }
.faq-item:nth-child(3) { transition-delay: 0.1s; }
.faq-item:nth-child(4) { transition-delay: 0.15s; }
.faq-item:nth-child(5) { transition-delay: 0.2s; }
.faq-item:nth-child(6) { transition-delay: 0.25s; }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: left;
    font-family: inherit;
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--color-text-light);
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 1rem;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--color-background-dark);
    color: white;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

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

.cta .container {
    position: relative;
    z-index: 1;
}

.cta .btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.cta .btn-primary:hover {
    background-color: var(--color-primary-dark);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact .section-subtitle {
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    padding: 48px 0;
    background-color: var(--color-text);
    color: white;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-nav a:hover {
    color: white;
}

.footer-logo {
    height: 32px;
    width: auto;
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 24px;
        gap: 24px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .products,
    .how-it-works,
    .benefits,
    .faqs,
    .cta,
    .contact {
        padding: 60px 0;
    }

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

    .product-feature {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0;
    }

    .product-feature.reverse {
        direction: ltr;
    }

    .product-feature-content h3 {
        font-size: 1.5rem;
    }

    .feature-number {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .feature-list {
        padding: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 16px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 16px 16px;
    }
}
