/* rollup.quest - Warmly Minimal Design */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Fonts: Arvo (slab-serif headings), Inter (humanist sans body), Space Mono (code/accent) */

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

:root {
    --deep-base: #1a1a2e;
    --primary-blue: #4a90d9;
    --warm-white: #f5f0e8;
    --accent-gold: #e8b84b;
    --muted-gray: #6c757d;
    --frost-bg: rgba(245, 240, 232, 0.72);
    --frost-border: rgba(245, 240, 232, 0.35);
    --elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --elastic-gentle: cubic-bezier(0.34, 1.56, 0.64, 1);
    --smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--deep-base);
    color: var(--warm-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Candle Glow Backgrounds */
.candle-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.candle-glow--bottom-left {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.15) 0%, rgba(232, 184, 75, 0.05) 40%, transparent 70%);
    animation: candleFlicker1 8s ease-in-out infinite;
}

.candle-glow--bottom-right {
    width: 500px;
    height: 500px;
    bottom: -150px;
    right: -100px;
    background: radial-gradient(circle, rgba(232, 184, 75, 0.12) 0%, rgba(232, 184, 75, 0.04) 40%, transparent 70%);
    animation: candleFlicker2 10s ease-in-out infinite;
}

.candle-glow--top-center {
    width: 800px;
    height: 400px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(74, 144, 217, 0.08) 0%, transparent 60%);
    animation: candleFlicker3 12s ease-in-out infinite;
}

@keyframes candleFlicker1 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes candleFlicker2 {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    33% { opacity: 1; transform: scale(1.03); }
    66% { opacity: 0.6; transform: scale(0.97); }
}

@keyframes candleFlicker3 {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.6; transform: translateX(-50%) scale(1.02); }
}

/* Frost Panel Base */
.frost-panel {
    background: var(--frost-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--frost-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--deep-base);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background 0.4s var(--smooth), box-shadow 0.4s var(--smooth);
}

.site-header.scrolled {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Arvo', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--warm-white);
    letter-spacing: -0.02em;
}

.logo-text--footer {
    font-size: 1.1rem;
}

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(245, 240, 232, 0.75);
    text-decoration: none;
    transition: color 0.3s var(--smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s var(--elastic);
}

.nav-link:hover {
    color: var(--warm-white);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--accent-gold);
    color: var(--deep-base);
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s var(--elastic), box-shadow 0.3s var(--smooth);
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    color: var(--deep-base);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(232, 184, 75, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--warm-white);
    border-radius: 2px;
    transition: transform 0.3s var(--elastic), opacity 0.3s var(--smooth);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 24px 32px;
    z-index: 99;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.4s var(--elastic), opacity 0.3s var(--smooth);
}

.mobile-nav.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--warm-white);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 32px 80px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.frost-panel--hero {
    padding: 48px;
    max-width: 600px;
}

.hero-title {
    font-family: 'Arvo', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--deep-base);
}

.hero-title-accent {
    color: var(--primary-blue);
    position: relative;
}

.hero-title-accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted-gray);
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.4s var(--elastic), box-shadow 0.3s var(--smooth), background 0.3s var(--smooth);
}

.btn--primary {
    background: var(--accent-gold);
    color: var(--deep-base);
}

.btn--primary:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(232, 184, 75, 0.35);
}

.btn--secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid rgba(74, 144, 217, 0.4);
}

.btn--secondary:hover {
    transform: scale(1.06);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 16px rgba(74, 144, 217, 0.2);
}

/* Floating Cards */
.hero-decoration {
    flex: 0.7;
    position: relative;
    height: 400px;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: var(--frost-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--frost-border);
    border-radius: 12px;
    padding: 20px;
    width: 160px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: floatCard 6s ease-in-out infinite;
}

.floating-card--1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card--2 {
    top: 5%;
    right: 15%;
    animation-delay: -2s;
}

.floating-card--3 {
    bottom: 15%;
    left: 30%;
    animation-delay: -4s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-line {
    height: 6px;
    background: rgba(26, 26, 46, 0.12);
    border-radius: 3px;
    margin-bottom: 8px;
}

.card-line--short {
    width: 60%;
}

/* Section Common Styles */
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.frost-panel--section {
    padding: 40px;
    margin-bottom: 48px;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-blue);
    background: rgba(74, 144, 217, 0.1);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Arvo', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted-gray);
}

/* Discover Section */
.discover {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.discover-card {
    transition: transform 0.4s var(--elastic);
}

.discover-card:hover {
    transform: translateY(-6px);
}

.discover-card-inner {
    padding: 36px 28px;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.3s var(--smooth);
}

.discover-card:hover .discover-card-inner {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.discover-icon {
    margin-bottom: 20px;
}

.discover-card-title {
    font-family: 'Arvo', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 12px;
}

.discover-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-gray);
}

/* Features Section */
.features {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: stretch;
    gap: 24px;
    transition: transform 0.4s var(--elastic);
}

.feature-item:hover {
    transform: translateX(8px);
}

.feature-number {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(232, 184, 75, 0.25);
    line-height: 1;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s var(--smooth);
}

.feature-item:hover .feature-number {
    color: var(--accent-gold);
}

.feature-content {
    flex: 1;
    padding: 28px 32px;
}

.feature-title {
    font-family: 'Arvo', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 8px;
}

.feature-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-gray);
}

/* Process Section */
.process {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.process-step {
    transition: transform 0.4s var(--elastic);
}

.process-step:hover {
    transform: translateY(-8px);
}

.process-step-inner {
    padding: 36px 28px;
    height: 100%;
    text-align: center;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Arvo', serif;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(74, 144, 217, 0.3);
}

.step-line {
    width: 2px;
    height: 24px;
    background: linear-gradient(to bottom, var(--primary-blue), transparent);
    margin-top: 8px;
}

.step-title {
    font-family: 'Arvo', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 12px;
}

.step-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted-gray);
}

/* CTA / Join Section */
.join {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.frost-panel--cta {
    padding: 64px 48px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    background: rgba(245, 240, 232, 0.82);
}

.cta-title {
    font-family: 'Arvo', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--deep-base);
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted-gray);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-form {
    max-width: 480px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
}

.form-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(26, 26, 46, 0.12);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    color: var(--deep-base);
    transition: border-color 0.3s var(--smooth), box-shadow 0.3s var(--smooth);
    outline: none;
}

.form-input::placeholder {
    color: var(--muted-gray);
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.15);
}

.btn--form {
    white-space: nowrap;
    flex-shrink: 0;
}

.form-note {
    font-size: 0.8rem;
    color: var(--muted-gray);
    margin-top: 12px;
    font-style: italic;
}

/* Footer */
.site-footer {
    padding: 60px 0 32px;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    position: relative;
    z-index: 2;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    text-align: center;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--muted-gray);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.6);
    text-decoration: none;
    transition: color 0.3s var(--smooth);
}

.footer-link:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    width: 100%;
    text-align: center;
}

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

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--smooth), transform 0.6s var(--elastic-gentle);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Elastic interaction for data-elastic elements */
[data-elastic] {
    cursor: pointer;
}

[data-elastic]:active {
    transform: scale(0.97);
}

/* Responsive */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-nav { display: flex; }

    .hero {
        flex-direction: column;
        padding-top: 100px;
        min-height: auto;
        gap: 40px;
    }

    .hero-decoration {
        height: 200px;
        width: 100%;
    }

    .hero-title { font-size: 2.5rem; }
    .frost-panel--hero { padding: 32px; }

    .discover-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }

    .feature-item {
        flex-direction: column;
        gap: 12px;
    }

    .feature-number {
        min-width: auto;
        font-size: 2rem;
    }

    .form-group {
        flex-direction: column;
    }

    .frost-panel--section { padding: 28px 20px; }
    .frost-panel--cta { padding: 40px 24px; }
    .section-title { font-size: 1.75rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .floating-card--2 { display: none; }
    .hero-decoration { height: 160px; }
}
