/* sora.markets - Frutiger Aero / Split-Screen */

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

:root {
    --sky-start: #A8D8F0;
    --sky-end: #D4C8F0;
    --shell-start: #F8D8C0;
    --shell-end: #F0B0A8;
    --text-sky: #2A4060;
    --text-sky-body: #3A5070;
    --text-shell: #6A3030;
    --text-shell-body: #5A3A38;
    --circuit: #70B8C8;
    --candy-pink: #F0A0C0;
    --candy-green: #90D8B0;
    --highlight: #F8E080;
    --label-sky: #6088B0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--sky-start) 0%, var(--sky-end) 50%, var(--shell-start) 50%, var(--shell-end) 100%);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Circuit Substrate */
.circuit-substrate {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.data-dot {
    filter: blur(2px);
}

/* Split Screen */
.split-screen {
    display: grid;
    grid-template-columns: 55fr 2px 45fr;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

/* Center Seam */
.center-seam {
    background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 100%);
    box-shadow: 0 0 16px rgba(255,255,255,0.15);
    z-index: 3;
}

/* Panels */
.panel {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.panel--sky {
    background: linear-gradient(180deg, var(--sky-start) 0%, var(--sky-end) 100%);
}

.panel--shell {
    background: linear-gradient(180deg, var(--shell-start) 0%, var(--shell-end) 100%);
}

/* Widget Section */
.widget-section {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    position: relative;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(20px);
    transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.widget-section.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.widget-section--hero {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Aero Shine */
.widget-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.3s ease;
}

.widget-section:hover::before {
    transform: translate(-5%, -5%);
}

/* Widget Header */
.widget-header {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.1) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    border-radius: 12px 12px 0 0;
}

.widget-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}

/* Widget Body */
.widget-body {
    padding: 24px;
    position: relative;
}

.widget-body--final {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Split Title */
.split-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.split-title--sky {
    color: var(--text-sky);
}

.split-title--shell {
    color: var(--text-shell);
}

.widget-sublabel {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--label-sky);
}

/* Widget Headings */
.widget-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.widget-heading--sky { color: var(--text-sky); }
.widget-heading--shell { color: var(--text-shell); }

.widget-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.widget-text--sky { color: var(--text-sky-body); }
.widget-text--shell { color: var(--text-shell-body); }

/* Kanji Display */
.kanji-display {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    color: var(--text-sky);
}

.kanji-display--shell {
    color: var(--text-shell);
}

/* Water Droplets */
.droplet {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.1) 60%, transparent 100%);
    box-shadow: inset 0 -1px 2px rgba(0,0,0,0.04);
    pointer-events: none;
    z-index: 2;
}

.droplet--1 { width: 12px; height: 12px; top: 60px; right: 30px; }
.droplet--2 { width: 8px; height: 8px; top: 80px; right: 60px; }
.droplet--3 { width: 10px; height: 10px; bottom: 40px; left: 40px; }
.droplet--4 { width: 14px; height: 14px; top: 50px; left: 25px; }
.droplet--5 { width: 9px; height: 9px; bottom: 30px; right: 50px; }

/* Mixed Media */
.mixed-media {
    margin-bottom: 1rem;
}

.media-shape {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Convergence Panel */
.convergence-panel {
    max-width: 700px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.widget-header--convergence {
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 100%);
}

.widget-body--convergence {
    padding: 32px;
    text-align: center;
    position: relative;
}

.convergence-media {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
}

.convergence-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-sky);
    letter-spacing: 0.02em;
    margin-bottom: 0.75rem;
}

.convergence-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-sky-body);
    max-width: 500px;
    margin: 0 auto;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 24px 60px;
    position: relative;
    z-index: 2;
}

.footer-domain {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .split-screen {
        grid-template-columns: 1fr;
    }

    .center-seam {
        display: none;
    }

    .panel {
        padding: 24px 16px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.3s !important;
    }

    .widget-section,
    .convergence-panel {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .data-dot {
        display: none;
    }
}
