/* CardPulse 888 - Modern Minimalist Design */
/* Color Palette: Professional Navy/Charcoal with Teal Accent */

:root {
    --primary-navy: #1e3a5f;
    --primary-dark: #0f2644;
    --accent-teal: #14b8a6;
    --accent-teal-light: #5eead4;
    --charcoal: #374151;
    --silver: #9ca3af;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-navy);
    text-decoration: none;
}

.navbar-brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar-menu a {
    color: var(--charcoal);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem 0;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--accent-teal);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-navy);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--accent-teal);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent-teal);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #0d9488;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

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

/* Device Mockup */
.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2d3748, #1a202c);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-xl), inset 0 0 0 2px rgba(255,255,255,0.1);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #1a202c;
    border-radius: 3px;
}

.device-screen {
    border-radius: 28px;
    overflow: hidden;
    background: var(--charcoal);
}

.device-screen img {
    width: 100%;
    height: auto;
    display: block;
}

/* Screenshots Section */
.screenshots-section {
    padding: 4rem 2rem;
    background: var(--white);
    max-height: 500px;
}

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

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Screenshot Carousel */
.screenshot-carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    height: 350px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    align-items: center;
}

.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 2rem;
}

.screenshot-device {
    position: relative;
    max-width: 200px;
    filter: blur(5px);
    transition: filter 0.3s ease;
}

.screenshot-device.loaded {
    filter: blur(0);
}

.screenshot-frame {
    background: linear-gradient(145deg, #374151, #1f2937);
    border-radius: 24px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    display: block;
    cursor: pointer;
    max-height: 280px;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 2px solid var(--primary-navy);
    color: var(--primary-navy);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    z-index: 10;
}

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

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--silver);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--accent-teal);
    width: 24px;
    border-radius: 5px;
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background: var(--light-gray);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

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

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

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

.feature-content {
    text-align: left;
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-navy));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.7;
    text-align: left;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--charcoal);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li::before {
    content: '✓';
    color: var(--accent-teal);
    font-weight: 700;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 250px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* CTA Section */
.cta-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-dark));
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--silver);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--silver);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.footer-links {
    list-style: none;
    text-align: left;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* Privacy & Terms Pages */
.page-header {
    padding: 8rem 2rem 3rem;
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-dark));
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--silver);
    font-size: 1rem;
}

.page-content {
    padding: 4rem 2rem;
    background: var(--white);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.content-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin: 2.5rem 0 1rem;
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container p {
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: left;
}

.content-container ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-dark);
    text-align: left;
}

.content-container ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-container a {
    color: var(--accent-teal);
    text-decoration: none;
}

.content-container a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-section {
    padding: 4rem 2rem;
    background: var(--light-gray);
}

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

.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
}

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

.form-label {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
}

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

.file-input-wrapper {
    position: relative;
}

.file-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px dashed var(--silver);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: var(--light-gray);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.file-input:hover {
    border-color: var(--accent-teal);
}

.btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--accent-teal);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit:hover {
    background: #0d9488;
    transform: translateY(-2px);
}

.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
}

.form-success.show {
    display: block;
}

.form-success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

.form-success h3 {
    color: var(--primary-navy);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

/* Privacy Accept Button */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1rem 2rem;
    z-index: 9999;
    display: none;
}

.privacy-accept-container.show {
    display: block;
}

.privacy-accept-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.privacy-accept-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-accept {
    background: var(--accent-teal);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-accept:hover {
    background: #0d9488;
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

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

    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .feature-content {
        text-align: center;
    }

    .feature-description {
        text-align: center;
    }

    .feature-list {
        text-align: left;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

    .navbar-menu.show {
        display: flex;
    }

    .navbar-menu a {
        padding: 0.75rem 1rem;
        display: block;
    }

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

    .hero {
        padding: 6rem 1rem 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .device-mockup {
        max-width: 240px;
    }

    .screenshots-section {
        padding: 3rem 1rem;
        max-height: 400px;
    }

    .screenshot-carousel {
        height: 300px;
    }

    .screenshot-device {
        max-width: 160px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .features-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-section {
        padding: 3rem 1rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-column h4,
    .footer-links {
        text-align: center;
    }

    .page-header {
        padding: 6rem 1rem 2rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-content {
        padding: 2rem 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
