:root {
    --bg-primary: #262626;
    --bg-secondary: #1f1f1f;
    --bg-card: #2a2a2a;
    --text-primary: #D1D1D1;
    --text-secondary: #888888;
    --text-muted: #666666;
    --accent: #D1D1D1;
    --border: rgba(255, 255, 255, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 3px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(38, 38, 38, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-img {
    height: 24px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

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

.btn-nav {
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-nav:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(38, 38, 38, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 2rem;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    transition: color 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.4s; }

.mobile-menu a:hover {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .btn-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }
}

/* Hero + Curtain Reveal Wrapper */
.hero-curtain-wrapper {
    position: relative;
}

/* Hero Intro (prima parte con KIRA text) */
.hero-intro {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.08;
}

.circle {
    position: absolute;
    border: 1px solid var(--text-primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-title-img {
    width: clamp(280px, 50vw, 600px);
    height: auto;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

/* iPad Mockup */
.device-showcase {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.ipad-frame {
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 32px;
    padding: 12px;
    box-shadow: 
        0 0 0 1px rgba(255,255,255,0.08),
        0 40px 80px rgba(0,0,0,0.4);
}

.ipad-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ipad-screen video {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 24px;
}

.video-mute-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.video-mute-btn:hover {
    background: rgba(0,0,0,0.6);
    border-color: rgba(255,255,255,0.4);
}

.video-mute-btn svg {
    display: block;
}

.screen-logo-wrapper {
    position: relative;
    width: 80%;
    max-width: 300px;
    transition: transform 0.1s ease-out;
    z-index: 1;
}

.screen-logo {
    width: 100%;
    height: auto;
    opacity: 0.95;
    will-change: transform;
}

.ipad-screen:hover .screen-logo-wrapper {
    transform: scale(1.02);
}

/* Curtain Reveal */
.curtain-section {
    position: relative;
    height: 300vh;
}

.curtain-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curtain-left,
.curtain-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: var(--bg-primary);
    z-index: 2;
    display: flex;
    align-items: center;
    opacity: 1;
}

.curtain-left {
    left: 0;
    justify-content: flex-end;
    padding-right: 20px;
   
   
}

.curtain-right {
    right: 0;
    justify-content: flex-start;
    padding-left: 20px;
   
}

.curtain-left img,
.curtain-right img {
    height: clamp(150px, 8vw, 350px);
    width: auto;
    object-fit: contain;
    margin: 5px;
}

.curtain-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-primary);
    padding: 10px;
}

.curtain-content .device-showcase {
    margin: 0;
}

.screen-circles .circle {
    opacity: 0.15;
}

/* Video Section */
.video-section {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--bg-secondary);
}

.video-section video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Sections */
section {
    padding: 6rem 2rem;
}

.video-section {
    padding: 0;
}

/* ─── 3D Coverflow Carousel ─── */
.carousel-section {
    padding: 6rem 0;
    perspective: 1200px;
    overflow: hidden;
    background: var(--bg-primary);
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 520px;
    position: relative;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 560px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    opacity: 1;
    transform: translateX(0) rotateY(0) scale(1);
}

.carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 1;
}

.carousel-item h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 4px;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.carousel-item p {
    font-size: 0.875rem;
    opacity: 0.7;
    position: relative;
    z-index: 2;
    color: var(--text-secondary);
    font-weight: 300;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.carousel-nav button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav button:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

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

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

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    font-size: 1rem;
    font-weight: 300;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.capabilities-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    transition: background 0.4s ease;
}

.feature-card:hover {
    background: var(--bg-card);
}

.feature-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    font-weight: 300;
}

/* ─── Sticky Card Stack (Capabilities) ─── */
.cards-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 200px;
}

.cards-section .section-header {
    padding: 6rem 1.5rem 4rem;
}

.stack-card {
      position: sticky;
    border-radius: 20px;
    padding: 48px 40px;
    margin-bottom: 32px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform-origin: center top;
}

.stack-card:nth-child(1) { top: 80px; background: #1f1f1f; color: var(--text-primary); z-index: 1; }
.stack-card:nth-child(2) { top: 100px; background: #2a2a2a; color: var(--text-primary); z-index: 2; }
.stack-card:nth-child(3) { top: 120px; background: #333333; color: var(--text-primary); z-index: 3; }
.stack-card:nth-child(4) { top: 140px; background: #414141; color: var(--text-primary); z-index: 4; }
.stack-card:nth-child(5) { top: 160px; background: #474747; color: var(--text-primary); z-index: 5; }
.stack-card:nth-child(6) { top: 180px; background: #434242; color: var(--text-primary); z-index: 6; }
.stack-card:nth-child(7) { top: 200px; background: #3b3b3b; color: var(--text-primary); z-index: 7; }

.stack-card .card-num {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 400;
}

.stack-card h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.stack-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 55ch;
    font-weight: 300;
}

@media (max-width: 768px) {
    .stack-card {
        padding: 32px 24px;
        min-height: 260px;
    }

}

/* Specs */
.specs-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
}

.spec-item {
    background: var(--bg-secondary);
    text-align: center;
    padding: 3rem 2rem;
}

.spec-value {
    font-size: 3.5rem;
    font-weight: 200;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.spec-label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400;
}

/* Workflow */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.step {
    background: var(--bg-primary);
    text-align: center;
    padding: 3rem 2rem;
}

.step-number {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
}

.step h4 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 300;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 2.5rem;
}

.testimonial-content {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 300;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 500;
}

.author-info h5 {
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.125rem;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 300;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 450px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

/* ─── Footer Links (Privacy / Support) ─── */
.footer-links {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
}

.footer-links a,
.footer-links .divider {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 300;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.footer-links .divider {
    pointer-events: none;
    opacity: 0.5;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
}

.footer-brand {
    max-width: 600px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

.footer-links h5 {
    font-weight: 500;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 300;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    max-width: 1100px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-links a:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 900px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .workflow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-content {
        flex-direction: column;
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 1.5rem;
    }

    .hero-intro {
        padding: 6rem 1.5rem 3rem;
    }

    .curtain-left img,
    .curtain-right img {
        height: clamp(28px, 12vw, 50px);
    }

    .curtain-left {
        padding-right: 0px;
        justify-content: flex-end;
    }

    .curtain-right {
        padding-left: 0px;
        justify-content: flex-start;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        justify-content: center;
    }

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

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

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

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .lightbox-nav {
        display: none;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }

    .footer-content {
        flex-direction: column;
        padding: 0 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
    }
}