:root {
    --bg: #ffffff;
    --text: #1b1d21;
    --text-muted: #5f6672;
    --primary: #2563eb;
    --secondary: #dc2626;
    --accent: #ca8a04;
    --success: #16a34a;
    --border: rgba(0, 0, 0, 0.08);
    --surface: #f9fafb;
    --glow: rgba(37, 99, 235, 0.1);

    /* RGB values for transparency work */
    --bg-rgb: 255, 255, 255;
    --border-rgb: 0, 0, 0;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(220, 38, 38, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(202, 138, 4, 0.03) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(22, 163, 74, 0.03) 0px, transparent 50%);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    /* Re-enable scrolling */
    min-height: 100vh;
    scroll-behavior: smooth;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    /* Subtle fixed background */
}

/* Pill Navigation */
.pill-nav {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 1.5rem;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(var(--bg-rgb), 0.7);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .pill-nav {
        top: 1rem;
        padding: 0 1rem;
    }

    .nav-content {
        padding: 0.6rem 1.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-right {
        gap: 1rem;
    }
}

.logo {
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: -1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

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

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    display: flex;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: var(--border);
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
}

.bg-alt {
    background: transparent;
    /* Remove the gray */
}

/* Subtle separators if needed */
.content-section:not(#home) {
    border-top: 1px solid rgba(var(--border-rgb), 0.1);
}

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

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

@media (max-width: 768px) {
    .content-section {
        padding: 5rem 0;
    }

    .text-center-mobile {
        text-align: center;
    }
}

/* Hero Section */
.main-viewport {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.hero-centered {
    text-align: center;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
}

.brand-vibe {
    display: flex;
    gap: 4px;
}

.vibe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vibe-dot.blue {
    background: var(--primary);
}

.vibe-dot.red {
    background: var(--secondary);
}

.vibe-dot.yellow {
    background: var(--accent);
}

.vibe-dot.green {
    background: var(--success);
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.massive-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .brand-name {
        font-size: 1.4rem;
    }

    .massive-title {
        margin-bottom: 2rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-pill {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-pill {
    padding: 1.2rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-dark {
    background: var(--text);
    color: var(--bg);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
}

.btn-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Section Elements */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 3rem;
    letter-spacing: -1.5px;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 2rem;
    }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.highlight {
    color: var(--primary);
}

/* Minimal Grid */
.minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.minimal-card {
    padding: 3rem;
    background: var(--surface, var(--bg));
    border: 1px solid var(--border);
    border-radius: 2rem;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.minimal-card:hover {
    transform: translateY(-8px);
}

.card-num {
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.minimal-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-weight: 800;
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .feature-item {
        justify-content: center;
        text-align: left;
    }
}

/* Contact Box Re-design (Light) */
.contact-box {
    background: rgba(255, 255, 255, 0.7);
    /* Pure light glass */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text);
    padding: 6rem;
    border-radius: 4rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

/* Subtle glow effect within the box */
.contact-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.contact-box .section-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
}

.contact-box .section-subtitle {
    color: var(--text-muted);
    opacity: 0.9;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .contact-box {
        padding: 4rem;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-box {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
        gap: 3rem;
        border-radius: 2.5rem;
    }

    .contact-box .section-title {
        font-size: 2.5rem;
    }
}

.minimal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.minimal-form input,
.minimal-form textarea {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    border-radius: 1.2rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.minimal-form input:focus,
.minimal-form textarea:focus {
    background: #fff;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.08);
}

.btn-pill.btn-dark {
    background: var(--text);
    color: var(--bg);
}

.minimal-form .btn-pill {
    padding: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    background: var(--text);
    color: var(--bg);
}

.minimal-form .btn-pill:hover {
    background: var(--text);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.minimal-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

.w-full {
    width: 100%;
}

.m-0 {
    margin: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* Apple Showcase Section */
.apple-showcase {
    padding: 10rem 0;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.showcase-nav {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 5rem;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.nav-item.active,
.nav-item:hover {
    opacity: 1;
}

.nav-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--text);
}

.nav-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.showcase-header {
    margin-bottom: 3.5rem;
}

.showcase-header .section-title {
    margin-bottom: 0.5rem;
}

.showcase-header .muted-text {
    color: var(--text-muted);
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    /* Center breakout */
}

.carousel-track {
    display: flex;
    gap: 2rem;
    padding: 0 calc(50vw - 600px);
    /* Align with container padding */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE */
    padding-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

@media (max-width: 768px) {
    .carousel-track {
        padding: 0 1.5rem;
        gap: 1.5rem;
    }

    .carousel-btn {
        display: none;
        /* Hide buttons on mobile, use swipe */
    }
}

.product-card {
    flex: 0 0 450px;
    height: 600px;
    border-radius: 2.5rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 85vw;
        height: 500px;
        padding: 2rem;
    }

    .card-title {
        font-size: 1.8rem;
    }
}

.product-card:hover {
    transform: scale(1.02);
}

.card-white {
    background: #fff;
    color: #000;
}

.card-gray {
    background: #f5f5f7;
    color: #000;
}

.card-black {
    background: #000;
    color: #fff;
}

.card-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ff6633;
    margin-bottom: 0.8rem;
    display: block;
}

.card-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.card-tagline {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.card-price {
    font-size: 1rem;
    opacity: 0.6;
}

.card-image-wrap {
    margin-top: auto;
    width: 120%;
    margin-left: -10%;
    margin-bottom: -10%;
}

.card-image-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.prev-btn {
    left: 2rem;
}

.next-btn {
    right: 2rem;
}

.carousel-btn svg {
    width: 30px;
    height: 30px;
    fill: #000;
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1200px) {
    .carousel-track {
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .product-card {
        flex: 0 0 320px;
        height: 480px;
        padding: 2rem;
    }

    .card-title {
        font-size: 1.8rem;
    }

    .showcase-nav {
        gap: 2rem;
    }
}