/* ============================================
   ROKY INTELLIGENCE — Global Styles
   ============================================ */

:root {
    --bg: #F5F0EB;
    --bg-light: #EDE7E0;
    --surface: #E8E0D8;
    --text: #1A1714;
    --text-dim: #6B6259;
    --text-muted: #A69D93;
    --accent: #F37021;
    --accent-light: #E8591A;
    --accent-glow: rgba(243, 112, 33, 0.15);
    --gradient-1: #F37021;
    --gradient-2: #E8451A;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: auto;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Loading Screen
   ============================================ */

#loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-bar-track {
    width: 200px;
    height: 2px;
    background: var(--surface);
    border-radius: 1px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.loader-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* ============================================
   3D Canvas
   ============================================ */

#scene {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Navigation
   ============================================ */

#nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 3rem;
}

#nav.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 144px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

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

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

.nav-cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    font-size: 0.85rem !important;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease !important;
}

.nav-cta:hover {
    border-color: var(--accent) !important;
    color: var(--text) !important;
    background: var(--accent-glow);
}

/* ============================================
   Scroll Progress Bar
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 200;
    background: transparent;
}

.scroll-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    transition: width 0.1s linear;
}

/* ============================================
   Section Indicators (right side dots)
   ============================================ */

.section-indicators {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--text-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s ease;
}

.indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
   Scroll Container
   ============================================ */

#scroll-container {
    position: relative;
    z-index: 1;
}

/* ============================================
   Section Base
   ============================================ */

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.section-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6rem 3rem;
    width: 100%;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 600px;
}

/* ============================================
   Hero Section
   ============================================ */

.section-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    max-width: 900px;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-title .line:nth-child(1) { animation-delay: 0.4s; }
.hero-title .line:nth-child(2) { animation-delay: 0.6s; }

.hero-title .accent {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1s;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.scroll-hint span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-arrow {
    color: var(--text-muted);
    animation: bounce 2s ease infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ============================================
   Stats Row
   ============================================ */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.stat-source {
    font-size: 0.7rem;
    line-height: 1.4;
    color: var(--text-muted);
    opacity: 0.7;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Flipped stats - label first, number as punchline */
.stats-flipped .stat {
    display: flex;
    flex-direction: column;
}

.stats-flipped .stat-label {
    order: 1;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.stats-flipped .stat-number {
    order: 2;
    margin-bottom: 0.5rem;
}

.stats-flipped .stat-source {
    order: 3;
}

/* ============================================
   What You Get - Value Props
   ============================================ */

.value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.value-prop {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.value-prop:hover {
    border-color: rgba(243, 112, 33, 0.3);
    background: rgba(243, 112, 33, 0.05);
}

.value-prop-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.value-prop-icon svg {
    width: 100%;
    height: 100%;
}

.value-prop-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-prop-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* ============================================
   Approach Pillars
   ============================================ */

.approach-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.pillar {
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    transition: border-color 0.4s ease, background 0.4s ease;
}

.pillar:hover {
    border-color: rgba(243, 112, 33, 0.3);
    background: rgba(243, 112, 33, 0.05);
}

.pillar-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pillar-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* ============================================
   Capabilities Grid
   ============================================ */

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.capability {
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.capability:hover {
    border-color: rgba(243, 112, 33, 0.3);
    transform: translateY(-4px);
}

.capability-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.capability-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.capability-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
}

/* ============================================
   Use Cases Section
   ============================================ */

.section-usecases .section-content {
    max-width: 1100px;
}

.usecase-subtitle {
    max-width: 700px;
    margin-bottom: 1rem;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.usecase-card {
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    transition: border-color 0.4s ease, transform 0.4s ease;
    text-align: left;
}

.usecase-card:hover {
    border-color: rgba(243, 112, 33, 0.3);
    transform: translateY(-4px);
}

.usecase-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.usecase-icon svg {
    width: 100%;
    height: 100%;
}

.usecase-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.usecase-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.usecase-text {
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.usecase-pattern {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ============================================
   Vision Section
   ============================================ */

.section-vision .section-content {
    text-align: center;
    max-width: 900px;
}

.large-quote {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-vision .section-text {
    margin: 0 auto;
    text-align: center;
    max-width: 550px;
}

.section-vision .vision-closing {
    font-weight: 500;
    color: var(--text);
    font-size: 1.1rem;
    margin-top: 2rem;
}

/* ============================================
   Founders Section
   ============================================ */

.section-founders .section-content {
    text-align: center;
    max-width: 1000px;
}

.founders-subtitle {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.founder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.02);
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.founder-card:hover {
    border-color: rgba(243, 112, 33, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.founder-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(243, 112, 33, 0.2);
    transition: border-color 0.4s ease;
}

.founder-card:hover .founder-photo {
    border-color: var(--accent);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-photo-romy img {
    object-position: center 15%;
}

.founder-photo-kyr img {
    object-position: center top;
}

.founder-info {
    text-align: center;
}

.founder-name {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.founder-title {
    color: var(--accent);
}

.founder-bio {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 1.5rem 0;
}

.founder-bio .highlight {
    font-weight: 600;
    color: var(--accent);
}

.founder-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.founder-linkedin:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.founder-linkedin svg {
    transition: transform 0.3s ease;
}

.founder-linkedin:hover svg {
    transform: scale(1.1);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-content {
    text-align: center;
    max-width: 700px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    margin-top: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(243, 112, 33, 0.35);
}

.contact-footer {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.footer-value {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.copyright {
    margin-top: 3rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.company-reg {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    #nav {
        padding: 1rem 1.5rem;
        justify-content: flex-end;
    }

    .nav-links {
        display: none;
    }

    .section-content {
        padding: 4rem 1.5rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .approach-pillars {
        grid-template-columns: 1fr;
    }

    .value-props {
        grid-template-columns: 1fr;
    }

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

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

    .contact-footer {
        flex-direction: column;
        gap: 2rem;
    }

    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .founder-photo {
        width: 140px;
        height: 140px;
    }

    .section-indicators {
        right: 1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
