:root {
    /* Colors */
    --bg-color: #000000;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #2997ff;
    --accent-hover: #147ce5;
    --card-bg: #1d1d1f;

    /* Glassmorphism */
    --glass-bg: rgba(29, 29, 31, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Variables */
    --nav-height: 52px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
}

.btn-primary-small {
    background-color: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 4px 12px;
    border-radius: 980px;
    font-weight: 500;
    opacity: 1 !important;
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    text-align: center;
    overflow: hidden;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    letter-spacing: -0.015em;
    font-weight: 400;
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: background-color 0.2s;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 1.1rem;
    font-weight: 500;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* Mockup */
.hero-image {
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    perspective: 1000px;
}

/* Laptop Mockup */
.laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.laptop-lid {
    background: #111;
    border-radius: 20px 20px 0 0;
    padding: 2% 2% 3% 2%;
    position: relative;
    box-shadow: inset 0 0 0 1px #333;
}

.laptop-camera {
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.laptop-display {
    background: #000;
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.laptop-base {
    position: relative;
    width: 110%;
    left: -5%;
    height: 16px;
    background: linear-gradient(to bottom, #e4e4e4 0%, #a3a3a3 100%);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.laptop-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #e2e2e2, #f5f5f5, #e2e2e2);
    border-radius: 2px 2px 0 0;
}

.laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    height: 6px;
    background: #b5b5b5;
    border-radius: 0 0 8px 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Design Carousel Section */
.design-section {
    padding: 100px 0 20px;
    overflow: hidden;
}

.design-section .section-title {
    max-width: 1000px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 20px max(20px, calc((100vw - 1000px) / 2));
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: stretch; /* Force all slides to be same height */
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 auto; /* Slide adapts to image width */
    max-width: 90vw;
    min-width: 300px; /* Prevents text from being squeezed on narrow images */
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 24px;
}

.carousel-image {
    height: 650px; /* Forces all images to be exactly the same height */
    max-height: 75vh; /* Adapts for mobile screens */
    width: auto; /* Width scales proportionally based on original aspect ratio */
    max-width: 100%; /* Prevents overflowing the slide on small screens */
    object-fit: contain; /* Prevents aspect ratio squashing if width is constrained */
    border-radius: 24px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slide-caption {
    text-align: center;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 120px; /* Fixed caption height guarantees identical bottom zones */
}

.slide-caption h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.slide-caption p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-capsule {
    display: flex;
    gap: 12px;
    padding: 10px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 980px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    opacity: 0.4;
    transition: background 0.3s, opacity 0.3s, transform 0.2s;
    cursor: pointer;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: var(--text-primary);
    opacity: 1;
}

/* Features */
.features-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-title p {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon-svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Turns any color SVG into pure white */
}

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

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Footer */
footer {
    background: var(--card-bg);
    padding: 24px 20px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-col h4 {
    font-weight: 600;
    margin-bottom: 8px;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Responsive Scaling */
@media (max-width: 1024px) {
    .carousel-image {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .carousel-image {
        height: 300px;
    }
    
    .carousel-slide {
        min-width: 250px; /* Reduces minimum width for narrow images on mobile */
    }
}

@media (max-width: 480px) {
    .carousel-image {
        height: 220px;
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}