:root {
    --bg: #ffffff;
    --text: #000000;
    --text-soft: #666666;
    --accent: #000000;
    --border: rgba(0,0,0,0.08);
    --shadow-deep: 0 30px 60px -12px rgba(0,0,0,0.12), 0 18px 36px -18px rgba(0,0,0,0.15);
    --radius: 32px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* --- Nav --- */
.top-nav {
    height: 100px;
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    flex-shrink: 0;
}

.cta-nav {
    flex-shrink: 0;
}

.nav-btn {
    background: var(--text);
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

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

/* --- Hero --- */
.hero-split {
    padding: 200px 0 100px;
}

.hero-header {
    text-align: center;
    margin-bottom: 80px;
}

.reveal-text {
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 32px;
    animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-sub {
    font-size: 1.5rem;
    color: var(--text-soft);
    max-width: 500px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.hero-actions-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-primary-large {
    background: var(--text);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-video {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px 14px 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.btn-video:hover {
    transform: translateY(-2px);
    border-color: rgba(0,0,0,0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.play-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn-video:hover .play-icon {
    background: #ff0000;
    color: white;
}

.product-stage {
    position: relative;
    padding: 40px 0;
}

.frame-3d {
    position: relative;
    background: #ffffff;
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--border);
    transform: perspective(2000px) rotateX(5deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    inset: 16px; /* Inside the padding */
    background: rgba(0,0,0,0.3);
    border-radius: calc(var(--radius) - 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text);
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding-left: 6px; /* visual center for play triangle */
}

.frame-3d:hover {
    transform: perspective(2000px) rotateX(0deg) scale(1.02);
}

.frame-3d:hover .video-overlay {
    opacity: 1;
}

.frame-3d:hover .play-button-large {
    transform: scale(1);
}

/* Video Modal Specific */
.video-modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.video-modal-card {
    background: black;
    width: 95%;
    max-width: 1200px;
    padding: 0;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-modal-overlay.active .video-modal-card {
    transform: scale(1);
}

.video-close {
    color: white;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 20px;
    right: 20px;
    z-index: 50;
    transition: background 0.2s ease;
}

.video-close:hover {
    background: rgba(255,255,255,0.2);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.demo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    outline: none;
}

.video-placeholder-anim {
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #000000, #1a1a1a, #2a2a2a, #000000);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 40px;
}

.video-placeholder-anim h3 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: 0.1em;
}

.video-placeholder-anim p {
    opacity: 0.6;
    font-family: monospace;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-image {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius) - 12px);
    border: 1px solid var(--border);
}

/* --- Manifesto / Stats --- */
.manifesto {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.stat-box {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-box.active {
    opacity: 1;
    transform: translateY(0);
}

.label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
    margin-bottom: 16px;
}

.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.stat-box p {
    color: var(--text-soft);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* --- Download Tray --- */
.download-tray {
    padding: 100px 0 160px;
    background: #f9f9f9;
}

.tray-card {
    background: white;
    padding: 80px 60px;
    border-radius: 48px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    text-align: center;
    opacity: 0;
    transform: scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tray-card.active {
    opacity: 1;
    transform: scale(1);
}

.tray-header h2 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.tray-header p {
    color: var(--text-soft);
    margin-bottom: 60px;
    font-size: 1.2rem;
}

.platform-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-link {
    background: white;
    border: 1px solid var(--border);
    padding: 24px 40px;
    border-radius: 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    opacity: 0;
}

.platform-link.active { opacity: 1; }

.platform-link i.si-apple, .platform-link .si-apple { color: #000000; }
.platform-link i.si-microsoftwindows, .platform-link .si-microsoftwindows, .platform-link i.si-windows, .platform-link .si-windows { color: #0078D4; }
.platform-link i.si-linux, .platform-link .si-linux { color: #FCC624; }
.platform-link i.si-android, .platform-link .si-android { color: #3DDC84; }

.platform-link:hover {
    background: var(--text);
    color: white !important;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.platform-link:hover i {
    color: white !important;
}

.platform-link i { font-size: 2rem; }

.p-text { text-align: left; }
.p-text strong { display: block; font-size: 1.1rem; }
.p-text span { font-size: 0.85rem; opacity: 0.6; }

/* --- Footer --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

.footer-wrap {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.f-links { display: flex; gap: 32px; }
.f-links a { text-decoration: none; color: var(--text); }

/* --- Modal & Form --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-deep);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none;
    font-size: 2rem; cursor: pointer;
    color: var(--text-soft);
}

.modal-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.modal-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.modal-content p {
    color: var(--text-soft);
    margin-bottom: 40px;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group input {
    background: #f9f9f9;
    border: 1px solid var(--border);
    padding: 18px 24px;
    border-radius: 18px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-group input:focus {
    border-color: var(--text);
}

.btn-submit {
    background: var(--text);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.btn-submit:hover {
    transform: scale(1.02);
}

.form-status {
    display: none;
    padding: 20px;
    border-radius: 18px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.form-status.success { background: #f0fdf4; color: #166534; }
.form-status.error { background: #fef2f2; color: #991b1b; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .grid-layout { grid-template-columns: 1fr; gap: 40px; }
    .hero-split { padding-top: 140px; }
}
