/* sim-ai.net - Corporate Executive Prospectus */

:root {
    --burgundy-core: #6B2737;
    --warm-cream: #F5F0E8;
    --marble-grey: #D8CFC5;
    --deep-charcoal: #2A1520;
    --aged-rose: #8E4A5A;
    --burgundy-night: #1A0F14;
    --vein-pink: #C4A8A0;
    --panel-bg-alt: #E8DFD5;
    --dark-ground: #3A2530;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--warm-cream);
    font-family: 'Barlow', sans-serif;
    color: var(--deep-charcoal);
}

/* Hide scrollbars */
.prospectus {
    scrollbar-width: none;
}
.prospectus::-webkit-scrollbar {
    display: none;
}

/* Top persistent rule */
.top-rule {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--burgundy-core);
    opacity: 0.4;
    z-index: 100;
}

/* Domain label */
.domain-label {
    position: fixed;
    top: 16px;
    left: 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-charcoal);
    z-index: 100;
}

/* Main horizontal scroll container */
.prospectus {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100vh;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
}

/* Panels */
.panel {
    flex-shrink: 0;
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 90%;
    padding: 0 40px;
}

/* Marble surface */
.marble-surface {
    background-color: var(--warm-cream);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(196, 168, 160, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(196, 168, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(196, 168, 160, 0.06) 0%, transparent 55%);
}

.panel-2.marble-surface {
    background-image:
        radial-gradient(ellipse at 70% 30%, rgba(196, 168, 160, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 70%, rgba(196, 168, 160, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 10% 10%, rgba(196, 168, 160, 0.06) 0%, transparent 50%);
}

.panel-3.marble-surface {
    background-image:
        radial-gradient(ellipse at 40% 60%, rgba(196, 168, 160, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 40%, rgba(196, 168, 160, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 20%, rgba(196, 168, 160, 0.09) 0%, transparent 60%);
}

.panel-4.marble-surface {
    background-image:
        radial-gradient(ellipse at 60% 40%, rgba(196, 168, 160, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(196, 168, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(196, 168, 160, 0.06) 0%, transparent 60%);
}

/* Panel 1: The Threshold */
.panel-1 .panel-content {
    text-align: center;
}

.hero-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 14rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--deep-charcoal);
    line-height: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-subtitle {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--aged-rose);
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.15s, transform 0.8s ease 0.15s;
}

.contour-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.contour-line {
    stroke-width: 1;
}

/* Panel 2: The Premise */
.premise-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
}

.premise-text {
    flex: 0 0 35%;
}

.premise-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contour-map {
    width: 100%;
    max-width: 500px;
}

.contour-anim {
    stroke-width: 1.5;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 3s ease;
}

.panel-2.visible .contour-anim {
    stroke-dashoffset: 0;
}

.panel-headline {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--deep-charcoal);
    margin-bottom: 1rem;
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(107, 39, 55, 0.2);
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.diamond {
    width: 6px;
    height: 6px;
    background: var(--burgundy-core);
    transform: rotate(45deg);
    position: absolute;
}

.premise-text p {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.15rem);
    line-height: 1.7;
    color: var(--deep-charcoal);
    margin-bottom: 1.2rem;
}

/* Entrance animations for panel content */
.panel .panel-headline,
.panel .premise-text p,
.panel .arch-grid,
.panel .chart-container {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.panel.visible .panel-headline {
    opacity: 1;
    transform: translateX(0);
}

.panel.visible .premise-text p {
    opacity: 1;
    transform: translateX(0);
}

.panel.visible .premise-text p:nth-child(3) { transition-delay: 0.08s; }
.panel.visible .premise-text p:nth-child(4) { transition-delay: 0.16s; }
.panel.visible .premise-text p:nth-child(5) { transition-delay: 0.24s; }

.panel.visible .arch-grid {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

.panel.visible .chart-container {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.15s;
}

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

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

/* Panel 3: The Architecture */
.panel-3 .panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin-top: 1rem;
}

.arch-block {
    border: 1px solid var(--burgundy-core);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(42, 21, 32, 0.05);
    cursor: default;
    background: rgba(245, 240, 232, 0.6);
}

.arch-block:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(42, 21, 32, 0.12);
}

.arch-keyword {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--burgundy-core);
}

.arch-desc {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--deep-charcoal);
    margin-top: 12px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.arch-block:hover .arch-desc {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px;
}

/* Panel 4: The Evidence */
.panel-4 .panel-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chart-container {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.chart-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep-charcoal);
    width: 160px;
    flex-shrink: 0;
}

.chart-bar-track {
    flex: 1;
    height: 24px;
    background: rgba(107, 39, 55, 0.08);
    position: relative;
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    background: var(--burgundy-core);
    width: 0%;
    transition: width 0.8s ease;
}

.chart-row:nth-child(2) .chart-bar { transition-delay: 0.1s; }
.chart-row:nth-child(3) .chart-bar { transition-delay: 0.2s; }
.chart-row:nth-child(4) .chart-bar { transition-delay: 0.3s; }
.chart-row:nth-child(5) .chart-bar { transition-delay: 0.4s; }

.panel-4.visible .chart-bar {
    width: var(--bar-width);
}

.chart-value {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: var(--burgundy-core);
    width: 50px;
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}

/* Panel 5: The Horizon */
.panel-5 {
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--burgundy-night) 100%);
    flex-direction: column;
    justify-content: center;
}

.panel-5 .panel-content {
    text-align: center;
}

.horizon-statement {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-cream);
    line-height: 1.4;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.panel-5.visible .horizon-statement {
    opacity: 1;
    transform: translateX(0);
}

.mountain-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    z-index: 1;
}

/* Navigation rail */
.panel-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 100;
}

.nav-indicator {
    width: 40px;
    height: 3px;
    background: var(--burgundy-core);
    opacity: 0.25;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-indicator.active {
    opacity: 1;
}

.panel-5 ~ .panel-nav .nav-indicator {
    background: var(--warm-cream);
}

/* Divider override in dark panel */
.panel-5 .divider {
    background: rgba(245, 240, 232, 0.2);
}
