* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
    width: 100%;
    scrollbar-gutter: stable;
}

body {
    position: relative;
    width: 100vw;
    margin: 0;
    font-family: 'SF Pro Display', sans-serif;
    font-weight: 400;
    background-color: white;
    color: black;
    text-rendering: optimizeLegibility;
}

svg {
    pointer-events: none;
}

svg path {
    pointer-events: all;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SF-Pro-Display-Black.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SF-Pro-Display-Heavy.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SF-Pro-Display-Bold.otf') format('opentype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SF-Pro-Display-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('../assets/fonts/SF-Pro-Display-Thin.otf') format('opentype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('../assets/fonts/SF-Pro-Rounded-Black.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('../assets/fonts/SF-Pro-Rounded-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Rounded';
    src: url('../assets/fonts/SF-Pro-Rounded-Thin.otf') format('opentype');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Text';
    src: url('../assets/fonts/SF-Pro-Text-Thin.otf') format('opentype');
    font-weight: 100;
    font-display: swap;
}

@keyframes logoFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

#loadingScreen {
    transition: opacity 0.8s ease;
}

#loadingScreen.loaded {
    opacity: 0;
    pointer-events: none;
}

nav {
    background-color: rgba(245, 245, 247, .8);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: .6rem;
    font-family: 'SF Pro Text', sans-serif;
    font-size: 12px;
    display: flex;
    gap: 0.5rem;
    padding: 1.1rem;
    justify-content: center;
    align-items: center;
    z-index: 50;
}

nav a {
    text-decoration: none;
    color: black;
    padding: 0.5rem;
    border-radius: 2rem;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10px;
}

nav a i {
    font-size: 14px;
}

nav a:hover {
    color: white;
    background-color: #1d1d1f;
}

.appleIcon {
    width: 16px;
    height: 16px;
}

.iconLink svg {
    display: block;
    flex-shrink: 0;
}

.mobile-nav {
    opacity: 0;
    z-index: -10;
}

.switch-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    margin: 8px 0;
}

.switch {
    width: 48px;
    height: 27.2px;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.switch input {
    display: none;
}

.switch .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 34px;
    transition: all 400ms ease;
}

.switch .slider::before {
    content: "";
    position: absolute;
    height: 19.2px;
    width: 19.2px;
    border-radius: 50%;
    left: 3.2px;
    bottom: 4px;
    background: #fff;
    transition: all 400ms ease;
}

.switch .slider .sun-icon-toggle,
.switch .slider .moon-icon-toggle {
    position: absolute;
    pointer-events: none;
    transition: opacity 400ms ease, transform 400ms ease;
    color: #333;
}

.switch .slider .sun-icon-toggle {
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.switch .slider .moon-icon-toggle {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.switch input:checked + .slider {
    background: #34c759;
}

.switch input:checked + .slider::before {
    transform: translateX(22px);
}

.switch input:checked + .slider .sun-icon-toggle {
    opacity: 0;
    transform: translateY(-50%) translateX(22px);
}

.switch input:checked + .slider .moon-icon-toggle {
    opacity: 1;
    transform: translateY(-50%) translateX(22px);
}

#container3D {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

#container3D canvas {
    position: absolute;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: none;
}

.hero {
    position: absolute;
    width: 100%;
    height: 100vh;
    margin-top: 16rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: all;
}

.hero h1 {
    margin-top: -25rem;
    font-size: 16rem;
    font-weight: 600;
    z-index: -200;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.hero h3 {
    font-weight: 600;
    font-size: 2.25rem;
    margin-top: 8rem;
    z-index: 10;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.hero p {
    max-width: 64%;
    font-weight: 400;
    font-size: 1.5rem;
    z-index: 10;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
}

.buttonContainer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    z-index: 20;
}

.learnButton,
.buyButton,
.inspectButton,
.caseStudyButton {
    padding: 1rem;
    border-radius: 24px;
    border: 2px solid rgb(0, 113, 227);
    min-width: 5rem;
    height: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    transition: all 200ms ease;
    text-decoration: none;
    cursor: pointer;
    font-size: 1rem;
}

.caseStudyButton,
.learnButton {
    background-color: rgb(0, 113, 227);
    color: white;
}

.caseStudyButton:hover,
.learnButton:hover {
    background-color: white;
    color: rgb(0, 113, 227);
}

.caseStudyButton:active,
.learnButton:active {
    background-color: #006EDB;
}

.buyButton,
.inspectButton {
    background-color: white;
    color: rgb(0, 113, 227);
}

.buyButton:hover,
.inspectButton:hover {
    background-color: rgb(0, 113, 227);
    color: white;
}

.scrollContainer,
.scrollContainer2 {
    position: relative;
    width: 100%;
    height: 5000px;
    z-index: 0;
    pointer-events: none;
}

.scrollContainer canvas,
.scrollContainer2 canvas {
    will-change: transform;
    pointer-events: none;
}

.videoContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 15;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.videoContainer.active {
    opacity: 1;
}

.videoContainer.fade-out {
    opacity: 0;
    transition: opacity 0.8s ease;
}

#transitionVideo {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

.scrollText {
    position: fixed;
    width: 100%;
    top: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.scrollText h1 {
    font-weight: 600;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.scrollText p {
    font-weight: 400;
    font-size: 1.5rem;
    margin-top: -1rem;
}

.featureSection,
.featureSection2 {
    position: fixed;
    top: 60%;
    transform: translateY(-50%);
    max-width: 400px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 600ms ease;
}

.featureSection {
    left: 10%;
    z-index: -1;
}

.featureSection2 {
    right: 10%;
    z-index: 20;
}

.featureSection h1,
.featureSection2 h1 {
    font-weight: 600;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.featureSection h2,
.featureSection2 h2 {
    font-weight: 700;
    margin-top: -1rem;
}

.featureSection p,
.featureSection2 p {
    font-weight: 400;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.buySection {
    position: fixed;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 100%;
    z-index: 100;
    opacity: 0;
    transition: opacity 600ms ease;
    pointer-events: all;
}

.buySection h1 {
    margin-top: 2rem;
    font-size: 8rem;
    font-weight: 600;
}

.buySection h3 {
    margin: -0.5rem;
    font-weight: 600;
    font-size: 1.5rem;
}

.buySection p {
    margin-top: 1rem;
    font-weight: 400;
    font-size: 1rem;
}

.hotspot {
    position: fixed;
    left: 0;
    top: 0;
    will-change: transform;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hotspot-dot {
    width: 20px;
    height: 20px;
    background: rgba(0, 122, 255, 0.9);
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
}

.hotspot-label {
    position: absolute;
    left: 30px;
    top: -10px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-radius: 50px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
}

.hotspot-label h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.hotspot-label p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

body.dark-mode {
    background-color: #1d1d1f;
    color: white;
}

body.dark-mode nav {
    background-color: rgba(29, 29, 31, .8);
}

body.dark-mode nav a {
    color: #f5f5f7;
}

body.dark-mode nav a:hover {
    color: black;
    background-color: #f5f5f7;
}

body.dark-mode .hero h1,
body.dark-mode .hero h3,
body.dark-mode .hero p,
body.dark-mode .scrollText h1,
body.dark-mode .scrollText p,
body.dark-mode .featureSection h1,
body.dark-mode .featureSection h2,
body.dark-mode .featureSection p {
    color: white;
}

body.dark-mode .featureSection2 h1,
body.dark-mode .featureSection2 h2,
body.dark-mode .featureSection2 p {
    color: black;
}

body.dark-mode .featureSectionBackground {
    background: linear-gradient(to bottom, rgba(29, 29, 31, 0) 0%, rgba(29, 29, 31, 0.1) 15%, rgba(29, 29, 31, 0.3) 30%, rgba(29, 29, 31, 0.5) 45%, rgba(29, 29, 31, 0.7) 60%, rgba(29, 29, 31, 0.85) 75%, rgba(29, 29, 31, 0.95) 90%, rgba(29, 29, 31, 1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .buyButton,
body.dark-mode .inspectButton {
    background-color: #1d1d1f;
    color: rgb(0, 113, 227);
    border: 2px solid rgb(0, 113, 227);
}

body.dark-mode .buyButton:hover,
body.dark-mode .inspectButton:hover {
    background-color: rgb(0, 113, 227);
    color: white;
}

body.dark-mode .caseStudyButton:hover,
body.dark-mode .learnButton:hover {
    background-color: #1d1d1f;
    color: rgb(0, 113, 227);
}

body.dark-mode .hotspot-dot {
    background: rgba(0, 255, 122, 0.9);
    box-shadow: 0 0 20px rgba(0, 255, 122, 0.5);
}

body.dark-mode .hotspot-label {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .hotspot-label h4 {
    color: #1d1d1f;
}

body.dark-mode .hotspot-label p {
    color: rgba(0, 0, 0, 0.7);
}

@media (max-width: 1200px) {
    nav { opacity: 0; }

    .mobile-nav {
        background-color: rgba(245, 245, 247, .8);
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 1rem;
        font-family: 'SF Pro Text', sans-serif;
        font-size: 12px;
        display: flex;
        padding: 1.1rem;
        gap: 0.8rem;
        justify-content: center;
        align-items: center;
        z-index: 50;
        opacity: 1;
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    body.dark-mode .mobile-nav { background-color: rgba(29, 29, 31, .8); }

    .mobile-nav a {
        text-decoration: none;
        color: black;
    }

    .mobile-nav a i { font-size: 14px; }

    #container3D { margin-top: -5rem; }

    .videoContainer {
        margin-top: 3rem;
        top: -2rem;
        height: 70vh;
    }

    .hero { margin-top: 10rem; }

    .hero h1 {
        margin-top: 2rem;
        font-size: 4rem;
    }

    .hero h3 {
        margin: -0.5rem;
        max-width: 100%;
        font-size: 1.5rem;
    }

    .hero p {
        max-width: 100%;
        margin-top: 1rem;
        font-size: 1rem;
    }

    .buttonContainer {
        margin-top: 3rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .learnButton,
    .buyButton,
    .inspectButton,
    .caseStudyButton {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
        min-width: 4rem;
        height: auto;
        border-radius: 50px;
    }

    .featureSectionBackground {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 50%;
        top: 65%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 300px;
        padding: 2rem;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
        backdrop-filter: blur(0px);
        mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 70%, black 100%);
        pointer-events: none;
        z-index: 9;
        opacity: 0;
        transition: opacity 0.6s ease;
        margin-top: 10rem;
    }

    body.dark-mode .featureSectionBackground {
        background: linear-gradient(to bottom, rgba(29, 29, 31, 0) 0%, rgba(29, 29, 31, 1) 100%);
        backdrop-filter: blur(30px);
        mask-image: linear-gradient(to bottom, transparent 0%, black 50%, black 70%, black 100%);
    }

    .scrollText h1 {
        max-width: 90%;
        font-size: 3rem;
        margin-top: -1rem;
    }

    .scrollText p {
        max-width: 70%;
        font-size: 1rem;
    }

    .featureSection,
    .featureSection2 {
        display: flex;
        flex-direction: column;
        transform: translate(-50%, -50%);
        top: 60%;
        left: 50%;
        width: 350px;
        z-index: 10;
        margin-top: 10rem;
    }

    .featureSection2 { z-index: 20; }

    .featureSection h1,
    .featureSection2 h1 {
        font-size: 3rem;
        font-weight: 300;
        margin-bottom: 1rem;
    }

    .featureSection h2,
    .featureSection2 h2 {
        margin-top: 0;
        margin-bottom: 0;
        font-weight: 600;
    }

    .featureSection p,
    .featureSection2 p {
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 1rem;
    }

    .buySection {
        left: 50%;
        top: 70%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        z-index: 10;
        padding: 2rem;
        gap: 0.5rem;
        width: 89%;
        max-width: 100%;
    }

    .buySection h1 {
        margin-top: 0;
        font-size: 4rem;
    }

    .buySection h2 {
        margin: 0;
        font-size: 1.5rem;
    }

    .buySection p {
        font-size: 1rem;
        margin: -0.5rem;
        max-width: 70%;
    }

    .hotspot-dot {
        width: 12px;
        height: 12px;
        border: 2px solid white;
    }

    .hotspot-label {
        left: 18px;
        top: -6px;
        padding: 6px 12px;
        border-radius: 50px;
        width: 120px;
        white-space: normal;
    }

    .hotspot-label h4 {
        font-size: 10px;
        margin: 0 0 3px 0;
        font-weight: 600;
        line-height: 1.2;
    }

    .hotspot-label p {
        font-size: 8px;
        line-height: 1.3;
    }
}