:root {
    /* Color Palette - Apple Glassmorphism */
    --bg-color: #548EF3;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #ffffff;
    --card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --card-border: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Geist', 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Geist', 'SF Pro Text', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --slide-transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
    --hover-transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #000;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow: hidden;
    line-height: 1.5;
    letter-spacing: -0.012em;
    position: relative;
    z-index: 0;
}

h1,
h2,
h3,
h4,
.hero-title,
.section-title {
    font-family: var(--font-heading);
    font-weight: 500;
    letter-spacing: -0.035em;
}

/* Base Utility Classes for pure Symmetry */
.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-accent {
    color: var(--accent-color);
}

.text-black {
    color: #000000 !important;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2.5rem;
}

.w-full {
    width: 100%;
}

.max-w-800 {
    max-width: 800px;
    display: block;
}

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

.bg-accent {
    background-color: var(--text-primary);
}

.bg-subtle {
    background-color: #333336;
}

/* Typography Enhancements */
.hero-title {
    font-size: clamp(4rem, 8vw, 6.5rem);
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.015em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.15em;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 500;
}

.text-large {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Master Grid Alignments */
.symmetrical-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    max-width: 950px;
}

.symmetrical-grid .clean-card {
    flex: 1;
    /* Pure equal widths */
}

/* Cards (Strictly Centered) */
.clean-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2rem 1.25rem;
    transition: transform var(--hover-transition), border-color var(--hover-transition), box-shadow var(--hover-transition);
    will-change: transform;
    transform: translateZ(0);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Enforces absolute center in card */
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.clean-card:hover {
    transform: translateY(-4px) scale(1.01) translateZ(0);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

/* Glass Icon Wrapper */
.card-icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.1), 0 10px 20px rgba(0, 0, 0, 0.05);
}

.card-icon-wrapper i {
    width: 36px;
    height: 36px;
    color: var(--text-primary);
}

/* Slide Overlays */
.slide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 50;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.logo {
    font-weight: 500;
    font-size: 1.1rem;
    color: #fff;
}

.overlay-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Slide Logic */
#deck-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 5%;
    opacity: 0;
    visibility: hidden;
    transition: transform var(--slide-transition), opacity var(--slide-transition), visibility var(--slide-transition);
    transform: translate3d(0, 40px, 0) scale(0.95);
    z-index: 10;
    will-change: transform, opacity, visibility;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1);
    z-index: 20;
}

.slide.prev {
    transform: translate3d(0, -60px, 0) scale(0.95);
    opacity: 0;
}

.slide.next {
    transform: translate3d(0, 60px, 0) scale(0.95);
    opacity: 0;
}

.slide-content {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}

/* Symmetrical Title Page */
.slide.slide-hero {
    padding: 0;
}

.symmetrical-hero-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100vw;
    height: 100vh;
}

.sym-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title.sym-aligned {
    font-size: 10rem;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.05em;
    padding-right: 0.05em;
    /* Optical centering */
}

/* Custom Slide Details */
.card-icon {
    width: 40px;
    height: 40px;
}

.bento-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.bento-desc {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Stats Row Symmetrical */
.symmetrical-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.stat-divider {
    width: 2px;
    height: 80px;
    background: var(--card-border);
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat-label {
    font-size: 1.05rem;
}

/* Roadmap Winding Layout */
.roadmap-winding-container {
    position: relative;
    width: 100%;
    max-width: 1050px;
    height: 400px;
    margin: 0 auto 0;
}

.roadmap-node {
    position: absolute;
    transform: translate(-50%, -15px);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 215px;
}

.node-marker {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: relative;
    z-index: 2;
    transition: background 0.3s ease;
}

.roadmap-node:hover .node-marker {
    background: rgba(255, 255, 255, 0.15);
}

.node-marker i {
    width: 11px;
    height: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.node-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}

.node-title {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.15rem;
    text-align: center;
    letter-spacing: 0.01em;
}

.node-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    transition: transform 0.2s ease, background 0.2s ease;
    text-align: left;
}

.node-card:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.04);
}

/* Numbers */
.massive-number {
    font-size: clamp(6rem, 12vw, 11rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.06em;
}

.big-number {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Team Grid Symmetrical */
.avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
}

.role {
    font-size: 1.05rem;
}

/* Market Circles Symmetrical Row */
.market-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.circle {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    transition: transform var(--hover-transition);
}

.circle:hover {
    transform: scale(1.05) translateZ(0);
}

.circle-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.circle-content .text-black h4 {
    color: #000;
}

.circle-content .value {
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.circle-tam {
    width: 320px;
    height: 320px;
    border: 1px solid var(--card-border);
}

.circle-sam {
    width: 240px;
    height: 240px;
    border: 1px solid var(--card-border);
}

.circle-sam .value {
    font-size: clamp(1.2rem, 2.5vw, 2.2rem);
}

.circle-som {
    width: 170px;
    height: 170px;
}

.circle-som .value {
    font-size: clamp(1rem, 2vw, 1.4rem);
}

/* Nav */
.apple-nav {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 14px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    height: 4px;
}

.nav-dot {
    width: 4px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.5);
}

.nav-dot.active {
    width: 32px;
    height: 4px;
    background: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scale(1);
}

.nav-arrows {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    z-index: 100;
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: scale(1.05);
}

/* Map and Hex Styles */
.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.hex-cluster {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hex-dot {
    width: 12px;
    height: 14px;
    background: rgba(66, 133, 244, 0.6);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    margin: 1px;
    transition: all 0.3s ease;
}

.map-marker:hover .hex-dot,
.map-marker.active .hex-dot {
    background: #4285F4;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.8);
    transform: scale(1.1);
}

.map-tooltip {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translate(-50%, -100%) scale(0.9);
    background: rgba(20, 20, 25, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    z-index: 20;
    pointer-events: none;
}

.map-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(20, 20, 25, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-marker:hover .map-tooltip,
.map-marker.active .map-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -100%) scale(1);
}

.tooltip-header {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.tooltip-body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tooltip-row {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot.domain {
    background: #4285F4;
}

.dot.litigations {
    background: #ff4757;
}


.list-item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 1024px) {
    html {
        font-size: 85%;
    }

    .slide {
        padding: 3rem 4% !important;
    }

    #slide-1 > div {
        padding: 5rem 2rem 4rem 2rem !important;
    }

    .hero-title {
        font-size: clamp(3.5rem, 6vw, 4.5rem) !important;
    }

    #slide-1 > div > div:first-child {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    #slide-1 > div > div:last-child {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        margin-top: 1rem !important;
    }

    /* Swipeable Carousels to preserve legibility without vertical scrolling */
    .symmetrical-grid, 
    .symmetrical-row, 
    .roadmap-winding-container,
    .market-circles,
    #slide-features .slide-content,
    #slide-10 .slide-content > div:nth-child(2) {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding-bottom: 1.5rem !important;
        justify-content: flex-start !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        gap: 1rem !important;
        scrollbar-width: none; /* Firefox */
    }

    .symmetrical-grid::-webkit-scrollbar, 
    .symmetrical-row::-webkit-scrollbar, 
    .roadmap-winding-container::-webkit-scrollbar,
    .market-circles::-webkit-scrollbar,
    #slide-features .slide-content::-webkit-scrollbar,
    #slide-10 .slide-content > div:nth-child(2)::-webkit-scrollbar {
        display: none; /* WebKit */
    }

    /* Default swipe item sizing */
    .symmetrical-grid > div, 
    .symmetrical-row > div, 
    .roadmap-winding-container > div,
    #slide-features .slide-content > div,
    #slide-10 .slide-content > div:nth-child(2) > div {
        flex: 0 0 75% !important;
        scroll-snap-align: center;
        max-width: none !important;
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    /* Keep circles their exact shape */
    .market-circles > div {
        flex: 0 0 auto !important;
        scroll-snap-align: center;
    }

    /* Specific adjust for the roadmap */
    .roadmap-winding-container svg {
        display: none !important;
    }
    
    .roadmap-winding-container {
        align-items: stretch !important;
    }
    
    .roadmap-node .node-content {
        align-items: center;
    }

    .roadmap-node .node-card {
        text-align: center !important;
        width: 100%;
    }

    /* Slide 2b pipeline: scale down proportionally */
    #slide-solution .clean-card {
        width: 800px !important;
        max-width: none !important;
        transform: scale(0.65);
        transform-origin: top center;
        margin-bottom: -90px !important;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%; /* Normal readable font restored */
    }

    .slide {
        padding: 2rem 1.5rem !important;
    }

    #slide-1 > div {
        padding: 4rem 1.5rem 2rem 1.5rem !important;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3rem) !important;
        line-height: 1.05 !important;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
        margin-bottom: 0.5rem !important;
    }

    /* Increase width of swipe cards on smaller screens so text isn't squished */
    .symmetrical-grid > div, 
    .symmetrical-row > div, 
    .roadmap-winding-container > div,
    #slide-features .slide-content > div,
    #slide-10 .slide-content > div:nth-child(2) > div {
        flex: 0 0 85% !important;
    }

    /* Pipeline scaled to fit viewport perfectly */
    #slide-solution .clean-card {
        transform: scale(0.4) !important;
        margin-bottom: -150px !important;
        margin-top: -30px !important;
        margin-left: -50% !important;
        left: 50% !important;
    }

    .clean-card {
        padding: 1.5rem 1.5rem !important;
    }

    .team-member {
        padding: 1.5rem !important;
    }

    .slide-overlay {
        padding: 1.5rem;
    }

    .apple-nav {
        bottom: 1rem;
        padding: 8px 12px;
    }

    .nav-arrows {
        bottom: 1rem;
        right: 1rem;
    }
}