/* ronri.xyz - Zen Candy Logic */
/* Colors: #f5f0e8, #4a90d9, #e8b84b, #6c757d, #1a1a2e */
/* Fonts: Inter, Space Grotesk */

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

:root {
    --color-cream: #f5f0e8;
    --color-blue: #4a90d9;
    --color-gold: #e8b84b;
    --color-gray: #6c757d;
    --color-deep: #1a1a2e;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    color: var(--color-deep);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========== WATERCOLOR LAYER ========== */
#watercolor-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.wash {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: washDrift 20s ease-in-out infinite alternate;
}

.wash-blue {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #4a90d9 0%, transparent 70%);
    top: -10%;
    right: -5%;
    animation-delay: 0s;
}

.wash-gold {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #e8b84b 0%, transparent 70%);
    bottom: 10%;
    left: -5%;
    animation-delay: -5s;
}

.wash-pink {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #d4738a 0%, transparent 70%);
    top: 40%;
    right: 20%;
    animation-delay: -10s;
    opacity: 0.2;
}

.wash-mint {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #6bcf9a 0%, transparent 70%);
    bottom: 30%;
    right: -10%;
    animation-delay: -15s;
    opacity: 0.2;
}

@keyframes washDrift {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 30px) scale(0.95); }
    100% { transform: translate(15px, 15px) scale(1.05); }
}

/* ========== HUD GRID LAYER ========== */
#hud-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.08;
}

.grid-line {
    position: absolute;
    background: var(--color-blue);
}

.grid-h {
    height: 1px;
    width: 100%;
    left: 0;
}

.grid-v {
    width: 1px;
    height: 100%;
    top: 0;
}

.grid-h1 { top: 25%; }
.grid-h2 { top: 50%; }
.grid-h3 { top: 75%; }
.grid-v1 { left: 25%; }
.grid-v2 { left: 50%; }
.grid-v3 { left: 75%; }

.hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--color-blue);
    border-style: solid;
    border-width: 0;
    opacity: 0.5;
}

.hud-tl { top: 20px; left: 20px; border-top-width: 2px; border-left-width: 2px; }
.hud-tr { top: 20px; right: 20px; border-top-width: 2px; border-right-width: 2px; }
.hud-bl { bottom: 20px; left: 20px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-br { bottom: 20px; right: 20px; border-bottom-width: 2px; border-right-width: 2px; }

/* ========== CONTENT LAYER ========== */
#content-layer {
    position: relative;
    z-index: 2;
}

/* ========== HUD PANEL ========== */
.hud-panel {
    position: relative;
    background: rgba(245, 240, 232, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(74, 144, 217, 0.2);
    overflow: hidden;
}

.hud-panel-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hud-panel-border::before,
.hud-panel-border::after {
    content: '';
    position: absolute;
    background: var(--color-blue);
}

.hud-panel-border::before {
    top: 0;
    left: 0;
    width: 40px;
    height: 2px;
}

.hud-panel-border::after {
    top: 0;
    left: 0;
    width: 2px;
    height: 40px;
}

.hud-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-blue);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

/* ========== DISPLAY BOLD ========== */
.display-bold {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
}

.accent-dot {
    color: var(--color-gold);
}

.text-accent {
    color: var(--color-blue);
}

/* ========== HERO ========== */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.hero-panel {
    max-width: 700px;
    padding: 3rem 4rem;
    border-radius: 2px;
}

.hero-panel h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    color: var(--color-deep);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--color-gray);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hud-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--color-gray);
}

.meta-label {
    color: var(--color-blue);
    margin-right: 0.4rem;
}

.meta-divider {
    color: rgba(74, 144, 217, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--color-blue));
}

.scroll-text {
    font-family: var(--font-display);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--color-blue);
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.5; transform: translateY(5px); }
}

/* ========== SECTIONS ========== */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* ========== PRINCIPLES GRID ========== */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.principle-card {
    padding: 2rem;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.principle-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 32px rgba(74, 144, 217, 0.15);
}

.card-index {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(74, 144, 217, 0.15);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.principle-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-deep);
}

.principle-card p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-accent-bar {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
    border-radius: 2px;
}

/* ========== PROCESS TIMELINE ========== */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-blue), var(--color-gold), var(--color-blue));
    opacity: 0.3;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-left: 0;
}

.step-node {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-blue);
    background: var(--color-cream);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-node::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    transition: transform 0.3s ease;
}

.process-step:hover .step-node::after {
    transform: scale(1.5);
}

.step-content {
    flex: 1;
    padding: 1.5rem 2rem;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.process-step:hover .step-content {
    transform: scale(1.02);
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-deep);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ========== FOCUS GRID ========== */
.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.focus-panel {
    padding: 2.5rem;
    border-radius: 2px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}

.focus-panel:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 40px rgba(74, 144, 217, 0.15);
}

.focus-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
}

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

.focus-panel h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--color-deep);
}

.focus-panel p {
    font-size: 0.9rem;
    color: var(--color-gray);
    line-height: 1.7;
}

/* ========== SIGNAL SECTION ========== */
.signal-panel {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 2px;
}

.signal-quote {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-left: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.signal-quote:hover {
    transform: scale(1.05);
}

.signal-quote p {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-deep);
    font-style: italic;
}

.signal-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric {
    text-align: center;
}

.metric-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-blue);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-value::after {
    content: '%';
    font-size: 1.2rem;
    color: var(--color-gold);
    margin-left: 2px;
}

.metric-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-gray);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: rgba(74, 144, 217, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-blue), var(--color-gold));
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== FOOTER ========== */
#footer {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-panel {
    padding: 2rem 3rem;
    border-radius: 2px;
    text-align: center;
}

.footer-brand .display-bold {
    font-size: 1.5rem;
}

.footer-meta {
    margin-top: 0.5rem;
}

.footer-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-blue), transparent);
    margin: 1rem auto;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--color-gray);
    font-weight: 300;
}

/* ========== ZOOM FOCUS ANIMATION ========== */
.zoom-focus {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.zoom-focus.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-panel {
        padding: 2rem;
    }

    .hud-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .meta-divider {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

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

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

    .process-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .timeline-line {
        display: none;
    }

    .signal-panel {
        padding: 2rem 1.5rem;
    }

    .signal-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-panel h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }
}
