/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

:root {
    --black: #000000;
    --black-soft: #0a0a0a;
    --black-lighter: #141414;
    --gray-900: #1a1a1a;
    --gray-800: #2a2a2a;
    --gray-700: #3a3a3a;
    --gray-600: #4a4a4a;
    --gray-500: #6a6a6a;
    --gray-400: #8a8a8a;
    --gray-300: #aaaaaa;
    --gray-200: #cacaca;
    --gray-100: #eaeaea;
    --white: #ffffff;
    
    --glow: rgba(255, 255, 255, 0.05);
    --glow-strong: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: #111;
    color: var(--gray-100);
    line-height: 1.6;
    overflow: hidden;
    position: relative;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 12px;
    box-sizing: border-box;
}

/* Ambient Background */
.ambient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 9px;
}

.canvas-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    min-width: 500px;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    transform: translateX(10%);
}

#particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to right, 
        rgba(0,0,0,1) 0%, 
        rgba(0,0,0,0.95) 20%, 
        rgba(0,0,0,0.7) 40%, 
        rgba(0,0,0,0.3) 60%, 
        rgba(0,0,0,0) 80%);
    z-index: 2;
    pointer-events: none;
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    bottom: -300px;
    right: -300px;
    animation-delay: -7s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(100px, -100px) scale(1.1);
    }
    66% {
        transform: translate(-100px, 100px) scale(0.9);
    }
}

/* Camera Controls */
.camera-controls {
    position: fixed;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    z-index: 1000;
    min-width: 250px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.camera-controls h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.control-group {
    margin-bottom: 12px;
}

.control-group label {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 5px;
}

.control-group label span {
    color: var(--white);
    font-weight: 500;
    float: right;
}

.control-group input[type="range"] {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#reset-camera {
    width: 100%;
    padding: 8px;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

#reset-camera:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Triglavis Branding */
.triglavis-brand {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    color: var(--gray-500);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.triglavis-brand:hover {
    color: var(--gray-400);
    opacity: 0.8;
}

.triglavis-brand svg {
    opacity: 0.6;
    width: 12px;
    height: 12px;
}

/* Hero Section */
.hero {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    min-height: 500px;
    display: flex;
    align-items: flex-start; /* Start at top like mobile */
    justify-content: center; /* Center horizontally */
    padding: 60px 3rem 3rem; /* Extra padding at top to prevent cutoff */
    overflow-y: auto; /* Scrollable like mobile */
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border: 1px solid transparent;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(204, 204, 204, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 0 120px rgba(0, 0, 0, 0.02);
    position: relative;
}

.hero::before {
    content: '';
    position: fixed;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border-radius: 16px;
    padding: 2px; /* Thicker border */
    background: linear-gradient(135deg, 
        #666666 0%,  /* Brighter starting gray */
        #4a4a4a 25%, 
        #333333 50%, 
        #1a1a1a 75%, 
        #0a0a0a 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

/* Gradient overlay from bottom of canvas in hero */
.hero::after {
    content: '';
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 50%;
    background: linear-gradient(to top,
        #000000 0%,
        rgba(0, 0, 0, 0.95) 10%,
        rgba(0, 0, 0, 0.8) 25%,
        rgba(0, 0, 0, 0.5) 45%,
        rgba(0, 0, 0, 0.2) 70%,
        rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 3;
    border-radius: 0 0 16px 16px;
}

.hero-container {
    max-width: 900px;
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start; /* Start from top */
    justify-content: space-between;
    position: relative;
    z-index: 100;
    margin: 0 auto;
    padding: 0; /* Remove vertical padding */
}

.hero-content {
    flex: 1;
    max-width: 550px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    flex-shrink: 0;
}

.workspaceos-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInDelayed 1s ease-out 1.9s forwards;
}

.workspaceos-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    filter: brightness(1.1);
}

.workspaceos-name {
    font-size: 1.75rem;
    font-weight: 200;
    letter-spacing: -0.01em;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    overflow: visible;
}

.word-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: reveal 0.8s forwards;
}

.word-reveal:nth-child(1) { animation-delay: 2.0s; }
.word-reveal:nth-child(2) { animation-delay: 2.1s; }
.word-reveal:nth-child(3) { animation-delay: 2.2s; }
.word-reveal:nth-child(5) { animation-delay: 2.3s; }
.word-reveal:nth-child(6) { animation-delay: 2.4s; }
.word-reveal:nth-child(7) { animation-delay: 2.5s; }

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gradient-text {
    color: var(--white);
}

.hero-description {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.6;
    color: var(--gray-300);
    flex: 1;
    min-height: 0;
}

.highlight-brand {
    color: var(--white);
    font-weight: 500;
}

/* Tooltip styles */
.tooltip-trigger {
    position: relative;
    color: var(--white);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--gray-600);
    text-underline-offset: 2px;
    cursor: help;
    transition: all 0.3s ease;
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% {
        text-shadow: 0 0 0px rgba(255, 255, 255, 0);
    }
    50% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
    }
}

.tooltip-trigger:hover {
    text-decoration-color: var(--white);
    animation-play-state: paused;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    padding: 12px 16px;
    width: 280px;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--gray-200);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gray-800);
}

/* Only show tooltips on hover for desktop */
@media (min-width: 769px) {
    .tooltip-trigger:hover .tooltip-content {
        opacity: 1;
        transform: translateX(-50%) scale(1);
        pointer-events: auto;
    }
}

/* Disable all tooltip hover effects on mobile */
@media (max-width: 768px) {
    .tooltip-trigger:hover .tooltip-content {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .tooltip-content {
        display: none !important;
    }
}

.hero-stats {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 45px 0;
    padding: 1rem 0;
    position: relative;
}

/* Progress bar dividers */
.stat-progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-900);
    overflow: hidden;
}

.stat-progress-bar.top {
    top: 0;
}

.stat-progress-bar.bottom {
    bottom: 0;
}

.stat-progress-bar::after {
    content: '';
    position: absolute;
    left: -200px;
    top: 0;
    height: 100%;
    width: 200px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.2) 30%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0.2) 70%,
        transparent 100%
    );
    animation: none;
    transition: all 0.3s ease;
}

.fade-in-stats .stat-progress-bar::after {
    animation: progressSweep 7s linear 5.2s infinite;
}

.stat-progress-bar.paused::after {
    animation-play-state: paused !important;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.1) 20%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0.1) 80%,
        transparent 100%
    ) !important;
    width: 100% !important;
    left: 0 !important;
}

@keyframes progressSweep {
    0% {
        left: -200px;
    }
    100% {
        left: 100%;
    }
}

.stat {
    animation: slideInFromRight 0.6s forwards;
    opacity: 0;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    text-align: left; /* Left align all stat text */
    max-width: 32%;
}

.stat:nth-child(2) {
    animation-delay: 0s;
}

.stat:nth-child(3) {
    animation-delay: 0.2s;
}

.stat:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInDelayed {
    to {
        opacity: 1;
    }
}

.stat-value {
    font-size: clamp(0.875rem, 1.2vw, 1rem);
    font-weight: 500;
    color: var(--white);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.stat-label {
    font-size: clamp(0.7rem, 0.9vw, 0.75rem);
    color: var(--gray-400);
    line-height: 1.3;
    max-width: 180px;
}

/* Description fade-in animation */
.fade-in-description {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 2.8s forwards;
}

/* Stats fade-in animation */
.fade-in-stats {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 3.8s forwards;
    backdrop-filter: blur(3px);
}

.fade-in-stats .stat:nth-child(2) { animation-delay: 4.2s; }
.fade-in-stats .stat:nth-child(3) { animation-delay: 4.4s; }
.fade-in-stats .stat:nth-child(4) { animation-delay: 4.6s; }

/* Form fade-in animation */
.fade-in-form {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 4.3s forwards;
}

/* Force animation completion for early scrollers */
body.animations-complete .word-reveal,
body.animations-complete .fade-in-description,
body.animations-complete .fade-in-stats,
body.animations-complete .fade-in-form,
body.animations-complete .stat {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat cycling animations */
.stat-cycle {
    display: inline-block;
    will-change: opacity, transform;
}

.stat-cycle.cycling-out {
    animation: slideOutRight 0.8s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.stat-cycle.cycling-in {
    animation: slideInLeft 0.8s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(40px);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.stat-value .stat-cycle {
    display: block;
    min-height: 2.4em;
    height: 2.4em;
    line-height: 1.2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 140px;
    word-break: break-word;
}

.stat-label .stat-cycle {
    display: block;
    min-height: 2.5em;
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-bottom: 45px;
}

.early-access-form {
    display: flex;
    gap: 1rem;
    margin: 0;
    position: relative;
}

.email-input {
    flex-grow: 1;
    padding: 0.875rem 1.25rem;
    background: var(--black);
    border: 1px solid var(--gray-800);
    border-radius: 8px;
    color: var(--white);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    position: relative;
    height: 50px;
    box-sizing: border-box;
}

.email-input::placeholder {
    color: var(--gray-600);
}

.email-input:hover:not(:focus) {
    border-color: var(--gray-600);
    background: #0a0a0a; /* Solid dark background on hover */
}

.email-input:focus {
    outline: none;
    border-color: #ffffff;
    background: #0d0d0d;
    box-shadow: 0 0 20px rgba(100, 100, 100, 0.1);
}

.email-input:not(:placeholder-shown):not(:focus) {
    border-color: #999999;
    background: #050505;
}

.form-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-align: left;
    margin: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.875rem 9px 0.875rem 15px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-primary:disabled {
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    transition: opacity 0.3s ease;
}

/* 3D Gravitational Canvas */
#gravitational-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none !important;
}


/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

/* Orbit System */
.orbit-system {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-hub {
    position: absolute;
    z-index: 10;
    animation: black-hole-pulse 6s infinite ease-in-out;
}

@keyframes black-hole-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.8)) 
                drop-shadow(0 0 120px rgba(255, 255, 255, 0.4))
                drop-shadow(0 0 200px rgba(255, 255, 255, 0.2));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 100px rgba(255, 255, 255, 1)) 
                drop-shadow(0 0 200px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 300px rgba(255, 255, 255, 0.4));
        transform: scale(1.1);
    }
}

.orbit-track {
    position: absolute;
    width: 400px;
    height: 400px;
    animation: black-hole-spin 25s linear infinite;
    transform-origin: center center;
}

@keyframes black-hole-spin {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(0.95);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

.app-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid #262626;
    border-radius: 18px;
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: counter-rotate 25s linear infinite;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 #1a1a1a,
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

@keyframes counter-rotate {
    from {
        transform: rotate(360deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.05);
    }
    to {
        transform: rotate(0deg) scale(1);
    }
}

.app-icon:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    border-color: #404040;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 16px 64px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(50, 50, 50, 0.2),
        inset 0 1px 0 #333333;
}

/* Position each app icon on the orbit */
.app-icon[data-app="figma"] {
    top: -32px;
    left: calc(50% - 32px);
}

.app-icon[data-app="vscode"] {
    top: calc(25% - 32px);
    right: -32px;
}

.app-icon[data-app="slack"] {
    bottom: calc(25% - 32px);
    right: -32px;
}

.app-icon[data-app="notion"] {
    bottom: -32px;
    left: calc(50% - 32px);
}

.app-icon[data-app="github"] {
    bottom: calc(25% - 32px);
    left: -32px;
}

.app-icon[data-app="linear"] {
    top: calc(25% - 32px);
    left: -32px;
}

.orbit-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 1200px) {
    .canvas-wrapper {
        width: 70%;
        transform: translateX(5%);
    }
}

/* Mobile Modal (formerly Bottom Sheet) */
.bottom-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 20px)); /* Account for Safari controls */
}

.bottom-sheet.active {
    pointer-events: auto;
    visibility: visible;
}

.bottom-sheet-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

.bottom-sheet.active .bottom-sheet-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-sheet-content {
    position: relative;
    background: var(--gray-900);
    border-radius: 9px;
    padding: 1.5rem;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(100vw - 40px);
    max-height: calc(70vh - env(safe-area-inset-bottom, 0px)); /* Reduce height to account for Safari controls */
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    margin-bottom: env(safe-area-inset-bottom, 0px); /* Additional margin for safety */
}

.bottom-sheet.active .bottom-sheet-content {
    opacity: 1;
    transform: scale(1);
}

/* Close button */
.bottom-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    padding: 0;
}

.bottom-sheet-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bottom-sheet-close svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
    stroke-width: 2;
    transition: opacity 0.2s ease;
    opacity: 0.7;
}

.bottom-sheet-close:hover svg {
    opacity: 1;
}

.bottom-sheet-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    padding-right: 2rem; /* Space for close button */
    line-height: 123%;
}

.bottom-sheet-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-300);
}

@media (max-width: 768px) {
    body {
        padding: 9px; /* Multiple of 3 for border spacing */
        background: #000; /* Pure black to extend behind controls */
        height: 100dvh; /* Use dynamic viewport height on mobile */
    }
    
    /* Adjust Triglavis brand position on mobile */
    .triglavis-brand {
        bottom: 15px;
        right: 18px;
    }
    
    /* Keep gradient border, only remove bottom overlay on mobile */
    .hero::after {
        display: none !important;
    }
    
    /* Adjust the gradient border for mobile to be less bright */
    .hero::before {
        top: 9px;
        left: 9px;
        right: 9px;
        bottom: 9px;
        background: linear-gradient(135deg, 
            #333333 0%,   /* Much darker gray start */
            #2a2a2a 25%, 
            #1a1a1a 50%, 
            #0a0a0a 75%, 
            #000000 100%);
        opacity: 0.7; /* Reduce overall border opacity */
    }
    
    .hero {
        /* Keep the same border as desktop, just adjust sizing */
        position: relative;
        top: 0; /* Remove top offset */
        width: calc(100vw - 18px); /* Account for body padding of 9px on each side */
        height: calc(100dvh - 18px); /* Use dvh for mobile viewport, account for padding */
        margin: 0 auto;
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 21px 18px; /* 21px top, 18px sides for more horizontal space */
        padding-bottom: env(safe-area-inset-bottom, 18px);
        -webkit-overflow-scrolling: touch;
        /* Ensure content scrolls within the bordered area */
        border-radius: 12px; /* Slightly smaller radius on mobile */
    }
    
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 0;
        padding-top: env(safe-area-inset-top, 20px);
        margin: 0;
        min-height: 100vh;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        border: none; /* No border on container either */
    }
    
    .hero-content {
        padding-top: 0; /* Remove padding-top */
        margin-top: 0;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    
    .workspaceos-brand {
        margin-top: 33px; /* Move down from top */
        margin-bottom: 12px; /* 12px gap before title */
        display: flex;
        justify-content: center; /* Center the brand horizontally */
        width: 100%;
        font-size: 0.9rem; /* Smaller font */
        gap: 0.5rem; /* Smaller gap between icon and text */
    }
    
    .workspaceos-icon {
        width: 30px; /* Smaller icon */
        height: 30px;
    }
    
    /* Give title 75dvh space on mobile */
    .hero-title {
        min-height: 75dvh; /* Take up 75% of viewport */
        max-width: 75dvw; /* Maximum width of 75% viewport width */
        display: flex;
        flex-direction: row; /* Keep words in a row */
        flex-wrap: wrap; /* Allow wrapping to next line */
        justify-content: center;
        align-content: center; /* Use align-content instead of align-items for wrapped flex */
        margin: 0 auto; /* Remove bottom margin */
        font-size: 3.5rem; /* Much larger font on mobile */
        line-height: 1.2; /* Tighter line height */
        padding: 0 1rem;
        text-align: center;
        gap: 0; /* No gap between wrapped lines */
    }
    
    .hero-title br {
        display: none; /* Remove line break on mobile */
    }
    
    .hero-title .word-reveal {
        display: inline-block;
        margin: 0 0.3rem; /* Space between words */
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column; /* Stack vertically */
        gap: 24px; /* Space between stats */
        overflow-x: visible;
        width: 100%;
        justify-content: flex-start;
        padding: 1.5rem 0;
        margin: 0 0 33px 0;
    }
    
    /* Add padding for fade-in-stats on mobile */
    .hero-stats.fade-in-stats {
        padding: 33px 0; /* 33px padding top and bottom */
        margin: 45px 0; /* 45px margin top and bottom */
    }
    
    /* Ensure progress bars don't touch bullets */
    .hero-stats .stat-progress-bar {
        margin: 0.75rem 0; /* More space from bullets */
    }
    
    .hero-stats .stat {
        width: 100%;
        min-width: 100%;
        padding: 0;
        text-align: left;
        min-height: auto;
        flex: none;
    }
    
    .hero-stats .stat-value {
        font-size: 1.5rem; /* Much larger font on mobile */
        font-weight: 600;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        text-align: left;
        color: var(--white);
    }
    
    .hero-stats .stat-value .stat-cycle {
        font-size: 1.5rem;
        min-height: auto;
        height: auto; /* Remove fixed height on mobile */
        -webkit-line-clamp: unset; /* Remove line clamp on mobile */
        max-width: 100%; /* Full width on mobile */
    }
    
    .hero-stats .stat-label {
        font-size: 0.875rem; /* Larger subtitle font */
        line-height: 1.4;
        text-align: left;
        color: var(--gray-400);
        max-width: 100%;
    }
    
    .hero-stats .stat-label .stat-cycle {
        font-size: 0.875rem;
        min-height: auto;
        height: auto; /* Remove fixed height on mobile */
    }
    
    .hero-description {
        max-width: 100%;
        font-size: 1.1rem; /* Larger body text */
        line-height: 1.8; /* More generous line height */
        padding: 0 0; /* No horizontal padding to match full width */
        margin-bottom: 0; /* Remove margin bottom on mobile */
        text-align: left; /* Left align text */
    }
    
    
    .hero-description .highlight-brand {
        display: inline; /* Keep inline on mobile */
    }
    
    .hero-actions {
        align-items: center;
        width: 100%;
        padding: 0 0; /* Full width */
        margin: 0 0 45px 0; /* Only margin bottom on mobile */
    }
    
    .early-access-form {
        flex-direction: row; /* Keep input and button in a row */
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
        padding: 0; /* Full width */
    }
    
    .early-access-form .email-input {
        flex: 1; /* Take remaining space */
        min-width: 0; /* Allow shrinking */
    }
    
    .early-access-form .btn {
        flex-shrink: 0; /* Don't shrink button */
    }
    
    .form-note {
        text-align: left; /* Left align on mobile */
        margin-bottom: 33px; /* 33px margin below */
    }
}

@media (max-width: 480px) {
    .canvas-wrapper {
        right: -40%;
        min-width: 300px;
    }
}