/* ronri.net - Y2K Crystalline Dreamscape */
/* Colors: #1a1a2e #4a90d9 #f5f0e8 #e8b84b #6c757d */
/* Font: Inter */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    overflow-x: hidden;
    position: relative;
}

/* ========== Generative Background Canvas ========== */
#generative-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== Fade Reveal Animation ========== */
.fade-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1), transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Crystal Shape Decorations ========== */
.crystal-shape {
    position: absolute;
    border: 1px solid rgba(74, 144, 217, 0.15);
    pointer-events: none;
    transition: transform 0.1s linear;
}

.crystal-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 8%;
    transform: rotate(45deg);
    border-color: rgba(74, 144, 217, 0.12);
    background: linear-gradient(135deg, rgba(74, 144, 217, 0.03), rgba(232, 184, 75, 0.02));
}

.crystal-2 {
    width: 80px;
    height: 80px;
    top: 25%;
    right: 12%;
    transform: rotate(30deg);
    border-color: rgba(232, 184, 75, 0.1);
    background: linear-gradient(45deg, rgba(232, 184, 75, 0.03), rgba(74, 144, 217, 0.02));
}

.crystal-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    transform: rotate(60deg);
    border-color: rgba(74, 144, 217, 0.08);
}

.crystal-4 {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 10%;
    transform: rotate(25deg);
    border-color: rgba(232, 184, 75, 0.1);
}

.crystal-5 {
    width: 70px;
    height: 70px;
    bottom: 25%;
    left: 8%;
    transform: rotate(50deg);
    border-color: rgba(74, 144, 217, 0.1);
}

/* ========== Hero Section ========== */
#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: clamp(3.5rem, 10vw, 8rem);
    letter-spacing: -0.03em;
    line-height: 1;
    color: #f5f0e8;
    text-shadow: 0 0 15px rgba(74, 144, 217, 0.5), 0 0 30px rgba(74, 144, 217, 0.2);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f5f0e8 0%, #4a90d9 50%, #e8b84b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #6c757d;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a90d9, #e8b84b, transparent);
    margin: 0 auto;
}

/* ========== Scroll Indicator ========== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.4s ease;
}

.scroll-arrow {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 1px solid #4a90d9;
    border-bottom: 1px solid #4a90d9;
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ========== Z-Pattern Sections ========== */
.z-section {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 6rem;
    min-height: 80vh;
}

.z-right {
    direction: rtl;
}

.z-right > * {
    direction: ltr;
}

.z-content {
    padding: 2rem 0;
}

.section-heading {
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #f5f0e8;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(74, 144, 217, 0.2);
}

.section-text {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #6c757d;
    max-width: 480px;
}

.crystal-accent {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #4a90d9, #e8b84b);
    margin-top: 2rem;
    border-radius: 1px;
}

/* ========== Crystal SVG Visuals ========== */
.z-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.crystal-cluster {
    width: 100%;
    max-width: 350px;
    position: relative;
}

.crystal-svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(74, 144, 217, 0.15));
    transition: transform 0.3s ease;
}

/* ========== Features Section ========== */
.features-section {
    position: relative;
    z-index: 1;
    padding: 8rem 4rem;
    text-align: center;
}

.features-section > .section-heading {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(74, 144, 217, 0.04);
    border: 1px solid rgba(74, 144, 217, 0.1);
    border-radius: 4px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 217, 0.05), transparent);
    transition: left 0.6s ease;
}

.feature-card.shimmer-active::before {
    left: 100%;
}

.feature-card:hover {
    border-color: rgba(74, 144, 217, 0.25);
    background: rgba(74, 144, 217, 0.06);
}

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

.feature-svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #f5f0e8;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #6c757d;
}

/* ========== CTA Section ========== */
.cta-section {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-heading {
    font-weight: 900;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #f5f0e8;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(74, 144, 217, 0.3);
}

.cta-text {
    font-weight: 300;
    font-size: 1.15rem;
    line-height: 1.7;
    color: #6c757d;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a2e;
    background: linear-gradient(135deg, #4a90d9, #e8b84b);
    border: none;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.3), 0 4px 15px rgba(232, 184, 75, 0.2);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::after {
    left: 100%;
}

/* ========== Footer ========== */
#footer {
    position: relative;
    z-index: 1;
    padding: 2rem 4rem;
    border-top: 1px solid rgba(74, 144, 217, 0.08);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #4a90d9;
}

.footer-copy {
    font-weight: 300;
    font-size: 0.8rem;
    color: #6c757d;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .z-section {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
        gap: 2rem;
    }

    .z-right {
        direction: ltr;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }

    .crystal-cluster {
        max-width: 250px;
    }
}

@media (max-width: 600px) {
    .z-section {
        padding: 3rem 1.5rem;
    }

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

    #footer {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}
