/* Apple-inspired CSS for Jack Pro Max page */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sf-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Helvetica, Arial, sans-serif;
    --primary-text: #1d1d1f;
    --secondary-text: #86868b;
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --background: #fbfbfd;
    --white: #ffffff;
    --border-light: rgba(0,0,0,0.1);
}

body {
    font-family: var(--sf-font);
    background: var(--background);
    color: var(--primary-text);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Navigation */
.nav {
    position: sticky;
    top: 0;
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
}

.nav-content {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
}

.nav-logo {
    font-size: 21px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--primary-text);
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 22px 80px;
    max-width: 1024px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.0625;
    letter-spacing: -0.009em;
    margin-bottom: 6px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 400;
    color: var(--secondary-text);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 21px;
    color: var(--primary-text);
    max-width: 600px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    padding: 12px 24px;
    border: 1px solid var(--accent-blue);
    border-radius: 20px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-1px);
}

/* Product Image */
.product-image {
    margin: 8px 0 0 0;
    animation: fadeInUp 1.5s ease-out 1s both;
}

.product-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 22px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* Features Section */
.features {
    padding: 80px 22px;
    max-width: 1024px;
    margin: 0 auto;
}

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

.feature {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.4s; }
.feature:nth-child(3) { animation-delay: 0.6s; }

.feature-icon {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-blue);
    background: transparent;
    border-radius: 19px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature p {
    font-size: 17px;
    color: var(--secondary-text);
    line-height: 1.47;
}

/* Tech Specs */
.tech-specs {
    background: var(--white);
    padding: 80px 22px;
    margin: 80px 0;
}

.tech-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
}

.tech-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 48px;
}

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

.spec-item {
    padding: 32px;
    background: var(--background);
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.spec-item:hover {
    transform: translateY(-4px);
}

.spec-label {
    font-size: 14px;
    color: var(--secondary-text);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-text);
}

/* Contact Section */
.contact {
    padding: 80px 22px;
    text-align: center;
    max-width: 1024px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.contact p {
    font-size: 21px;
    color: var(--secondary-text);
    margin-bottom: 48px;
}

/* Footer */
.footer {
    background: var(--primary-text);
    color: var(--secondary-text);
    text-align: center;
    padding: 40px 22px;
}

.footer p {
    font-size: 14px;
}

/* Chatbot Styles */
.chat-float-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: var(--accent-blue);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.chat-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 113, 227, 0.4);
}

.chat-float-btn.active {
    background: var(--secondary-text);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 32px rgba(0, 113, 227, 0.3), 0 0 0 0 rgba(0, 113, 227, 0.7);
    }
    70% {
        box-shadow: 0 8px 32px rgba(0, 113, 227, 0.3), 0 0 0 10px rgba(0, 113, 227, 0);
    }
    100% {
        box-shadow: 0 8px 32px rgba(0, 113, 227, 0.3), 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 380px;
    height: 500px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

.chat-popup.active {
    display: flex;
}

.chat-header {
    background: var(--background);
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.chat-header-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-header-info p {
    font-size: 14px;
    color: var(--secondary-text);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.bot {
    align-self: flex-start;
    background: var(--background);
    color: var(--primary-text);
    border-bottom-left-radius: 4px;
}

.chat-message.user {
    align-self: flex-end;
    background: var(--accent-blue);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-container {
    padding: 16px 20px 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    font-size: 15px;
    font-family: var(--sf-font);
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: var(--accent-blue);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background: var(--accent-blue-hover);
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: var(--secondary-text);
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    padding: 12px 16px;
    background: var(--background);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--secondary-text);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 40px 16px 60px;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

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

    .hero-description {
        font-size: 19px;
        padding: 0 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 16px;
    }

    .btn-primary, .btn-secondary {
        width: 200px;
    }

    .features {
        padding: 60px 16px;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 40px;
    }

    .tech-specs {
        padding: 60px 16px;
    }

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

    .tech-title {
        font-size: 36px;
    }

    .specs-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 32px;
    }

    .contact {
        padding: 60px 16px;
        text-align: center;
    }

    .contact h2 {
        font-size: 36px;
    }

    .contact p {
        padding: 0 16px;
    }

    .footer {
        padding: 32px 16px;
        text-align: center;
    }

    .product-image {
        padding: 0 16px;
    }

    .product-image img {
        max-width: 100%;
        width: 100%;
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
    .hero {
        padding: 32px 12px 48px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 1.1;
    }

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

    .hero-description {
        font-size: 17px;
        padding: 0 12px;
    }

    .features {
        padding: 48px 12px;
    }

    .tech-specs {
        padding: 48px 12px;
    }

    .contact {
        padding: 48px 12px;
    }

    .contact p {
        padding: 0 12px;
    }

    .product-image {
        padding: 0 12px;
    }

    /* Mobile responsiveness for chat */
    .chat-popup {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 90px;
    }

    .chat-float-btn {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
        font-size: 24px;
    }
} 