/* ========================================
   CSS VARIABLES (Modified by JavaScript)
   ======================================== */

:root {
    /* Dynamic variables controlled by sliders */
    --size-scale: 1.2;
    --spacing-ratio: 1.0;
    --dampening: 0.6;
    --header-height: 90px;
    
    /* Calculated values */
    --size-dampened: 1.109;
    --spacing-dampened: 1.0;
    
    /* Color system */
    --bg-hue: 220;
    --bg-saturation: 15%;
    --bg-lightness: 8%;
    
    /* Animation timing (dynamically influenced by size slider) */
    --transition-speed: calc(1.2s / var(--size-scale));
    --hover-transition: calc(1s / var(--size-scale));
    
    /* Base sizing */
    --font-size-base: calc(1rem * var(--size-dampened));
    --space-base: calc(1rem * var(--spacing-dampened));
}

/* ========================================
   DIVIDER (Reusable across page)
   ======================================== */

.divider {
    width: 60%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    margin: 0 auto;
    transition: margin 0.3s ease;
}

/* ========================================
   PAGE SECTIONS
   ======================================== */

.page-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-base) * 4) 0;
    margin: 0;
    text-align: center;
    position: relative;
    transition: all 0.6s ease;
}

/* Full-width background wrapper for alternating sections */
.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    height: 100%;
    z-index: -1;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.6s ease;
}

/* Alternating dark backgrounds - target specific sections */
#demo::before,
#opensource::before {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    animation: sectionReveal 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) both;
}

/* Inner content container to constrain section content */
.page-section > * {
    max-width: 800px;
    width: 100%;
    padding: 0 calc(var(--space-base) * 2);
}

/* Staggered animation delays for orchestrated reveal */
#demo::before { animation-delay: 6s; }
#opensource::before { animation-delay: 8s; }

/* Section reveal animation */
@keyframes sectionReveal {
    from {
        opacity: 0;
        border-color: transparent;
        background: rgba(0, 0, 0, 0);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        border-color: rgba(255, 255, 255, 0.08);
        background: rgba(0, 0, 0, 0.25);
        transform: translateY(0);
    }
}

/* Section dividers (closing ornaments inside page sections) */
.section-divider {
    max-width: none !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: calc(var(--space-base) * 1.5) calc(var(--space-base) * 3) calc(var(--space-base) * 3) calc(var(--space-base) * 3);
    padding: calc(var(--space-base) *1);
    opacity: 0;
    animation: dividerReveal 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) both;
}

/* Stagger divider reveals to match parent section timing + 0.3s */
#demo .section-divider { animation-delay: 6.3s; }
#roadmap .section-divider { animation-delay: 7.3s; }
#opensource .section-divider { animation-delay: 8.3s; }
#footer .section-divider { animation-delay: 9.3s; }

@keyframes dividerReveal {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    to {
        opacity: 0.6;
        transform: translateY(0) scale(1);
    }
}

/* Legacy standalone divider sections (if any remain) */
.divider-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: calc(var(--space-base) * 1.5) 0 calc(var(--space-base) * 4) 0;
    transition: margin 0.3s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter Tight', 'Inter', sans-serif;
    background-color: hsl(var(--bg-hue), var(--bg-saturation), var(--bg-lightness));
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Material Symbols base styling */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';
}

/* Core hero layout with padding for sticky header & footer */
.hero-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* anchor to top so scaling expands downward */
    padding: calc(var(--header-height) + var(--space-base) * 1.5) calc(var(--space-base) * 1.5) calc(var(--header-height) + var(--space-base) * 1.5) calc(var(--space-base) * 1.5);
    position: relative;
}

/* Background overlay element (replaces pseudo-element) */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/DT_fibonacci.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
    animation: overlayReveal 5s cubic-bezier(0.4, 0.0, 0.2, 1) forwards 0.2s;
    will-change: opacity;
}

@keyframes overlayReveal {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0.10; }
}

/* Content fades in slightly after overlay */
.content-wrapper {
    animation: contentWrapperFade 0.9s ease 1.4s both;
    transform-origin: top center;
}

@keyframes contentWrapperFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   STICKY HEADER WITH LOGO & NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.header-inner {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition-speed) ease-in-out;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-logo-img {
    height: calc(40px * var(--size-dampened));
    width: auto;
    transition: height 0.3s ease;
}

.header-nav {
    display: flex;
    gap: calc(var(--space-base) * 2);
    align-items: center;
}

.nav-link {
    font-family: 'Cormorant SC', serif;
    font-size: calc(0.95rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all var(--transition-speed) ease-in-out;
    padding: calc(var(--space-base) * 0.5) calc(var(--space-base) * 1);
    transform: translateY(0) scale(1) rotate(0deg);

    /* Custom hover properties */
    --hover-y: -3px;
    --hover-scale: 1.05;
    --hover-rotate: -1deg;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(var(--hover-y)) scale(var(--hover-scale)) rotate(var(--hover-rotate));
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
                 0 0 24px rgba(255, 255, 255, 0.3);
}

.nav-link-cta {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    padding: calc(var(--space-base) * 0.5) calc(var(--space-base) * 1.5);
    backdrop-filter: blur(10px);

    /* Override hover properties for CTA variant */
    --hover-y: -3px;
    --hover-scale: 1.04;
    --hover-rotate: 1.5deg;
}

.nav-link-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
                 0 0 24px rgba(255, 255, 255, 0.3);
}

/* ========================================
   STICKY FOOTER WITH SLIDERS
   ======================================== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    z-index: 1000;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-top: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.footer-inner {
    width: 100%;
    max-width: 960px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.sliders-container {
    display: contents; /* Use grid parent columns */
}


.footer-meta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-meta-brand {
    font-family: 'Cormorant Unicase', serif;
    font-variant: small-caps;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    opacity: 0.75;
    margin: 0;
}

.footer-meta-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin: 0;
    text-align: center;
}

.footer-meta-privacy {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    opacity: 0.75;
    margin: 0;
    text-align: right;
}

.footer-meta-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
}

.footer-meta-link:hover {
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

.slider-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    width: 100%;
}

.slider-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
}

/* Override old absolute positioning styles (if cascade retained) */
.sliders-container { position: static; transform: none; }

/* ========================================
   SLIDERS AT TOP
   ======================================== */

/* Removed obsolete absolute-positioned sliders block */

.slider {
    width: 100%;
    height: calc(6px * var(--size-dampened));
    background: rgba(255, 255, 255, 0.15);
    border-radius: calc(3px * var(--size-dampened));
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

/* ========================================
   COOKIE / GDPR CONSENT BANNER
   ======================================== */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: calc(var(--header-height) + 0.75rem);
    transform: translateX(-50%);
    z-index: 1100;
    max-width: 960px;
    width: calc(100% - 2rem);
    background: rgba(0, 0, 0, 0.9);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    padding: 0.85rem 1.5rem;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    color: #fff;
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.cookie-banner-link {
    color: #f5f0d0;
    text-decoration: underline;
}

.cookie-banner-link:hover {
    text-decoration: none;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cookie-button {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cookie-button-primary {
    background: linear-gradient(120deg, #f5f0d0, #f1c27d);
    color: #111;
    border-color: transparent;
}

.cookie-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.cookie-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Webkit (Chrome, Safari, Edge) */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: calc(12px * var(--size-dampened));
    height: calc(12px * var(--size-dampened));
    background: rgba(255, 255, 255, 0.9);
    border: calc(3px * var(--size-dampened)) solid rgba(255, 255, 255, 0.3);
    border-radius: 25%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
}

.slider::-webkit-slider-thumb::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(10px * var(--size-dampened));
    height: calc(10px * var(--size-dampened));
    background: hsl(var(--bg-hue), calc(var(--bg-saturation) * 2), calc(var(--bg-lightness) * 3));
    border-radius: 50%;
}

/* Firefox */
.slider::-moz-range-thumb {
    width: calc(12px * var(--size-dampened));
    height: calc(12px * var(--size-dampened));
    background: rgba(255, 255, 255, 0.9);
    border: calc(3px * var(--size-dampened)) solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.slider:hover::-webkit-slider-thumb {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.slider:hover::-moz-range-thumb {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* ========================================
   CONTENT WRAPPER
   ======================================== */

.content-wrapper {
    max-width: 800px;
    width: 100%;
    text-align: center;
    z-index: 1;
    margin-top: 80px;
    /* remove large top margin so hero flex centering works */
    display: flex;
    flex-direction: column;
    align-items: center; /* center inner blocks but keep full-width elements controlling their own size */
    gap: calc(var(--space-base) * 1.2);
}

/* ========================================
   LOGO
   ======================================== */

.logo-container {
    margin-bottom: calc(var(--space-base) * -0.5);
    animation: fadeInDown 1.5s ease-out 2.5s both;
    transition: margin 0.3s ease;
    /* Negative margin brings headline closer to logo */
}

.logo {
    width: calc(200px + var(--size-dampened) * 20px);
    height: auto;
    /* filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.1)); */
    transition: width 0.3s ease;
}

/* ========================================
   MAIN HEADLINE
   ======================================== */

.main-headline {
    font-family: 'Cormorant Unicase', serif;
    font-size: calc(4rem * var(--size-dampened));
    font-weight: 800;
    font-variant: small-caps;
    letter-spacing: 0.06em;
    margin-bottom: calc(var(--space-base) * 0.3);
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    transition: font-size 0.8s ease, margin 0.8s ease;
}

.headline-word {
    display: block;
    white-space: nowrap;
}

/* Individual letter styling */
.headline-word .letter {
    display: inline-block;
    opacity: 0;
    color: #ffffff;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    animation: letterFadeIn 5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    cursor: pointer;
    transform-origin: center;
    transition: transform var(--transition-speed) ease-in-out, text-shadow var(--hover-transition) ease-in-out;
}

/* After animation is removed by JS, this keeps the final state */
.headline-word .letter.animation-complete {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
}

@keyframes letterFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px) rotate(var(--letter-rotation, 0deg)) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

.headline-word .letter:hover {
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.6);
}

/* Simulated hover effect (programmatically triggered) */
.headline-word .letter.simulated-hover {
    text-shadow: 0 2px 16px rgba(255, 255, 255, 0.6);
}

/* Random starting rotations and delays for Decision */
.decision-word .letter:nth-child(1) { --letter-rotation: -25deg; animation-delay: 3.2s; }
.decision-word .letter:nth-child(2) { --letter-rotation: 18deg; animation-delay: 2.7s; }
.decision-word .letter:nth-child(3) { --letter-rotation: -32deg; animation-delay: 3.6s; }
.decision-word .letter:nth-child(4) { --letter-rotation: 15deg; animation-delay: 2.5s; }
.decision-word .letter:nth-child(5) { --letter-rotation: -20deg; animation-delay: 3.0s; }
.decision-word .letter:nth-child(6) { --letter-rotation: 28deg; animation-delay: 3.8s; }
.decision-word .letter:nth-child(7) { --letter-rotation: -15deg; animation-delay: 2.8s; }
.decision-word .letter:nth-child(8) { --letter-rotation: 22deg; animation-delay: 3.4s; }

/* Random starting rotations and delays for Themes */
.themes-word .letter:nth-child(1) { --letter-rotation: 30deg; animation-delay: 2.9s; }
.themes-word .letter:nth-child(2) { --letter-rotation: -18deg; animation-delay: 3.7s; }
.themes-word .letter:nth-child(3) { --letter-rotation: 25deg; animation-delay: 2.6s; }
.themes-word .letter:nth-child(4) { --letter-rotation: -28deg; animation-delay: 3.3s; }
.themes-word .letter:nth-child(5) { --letter-rotation: 16deg; animation-delay: 3.1s; }
.themes-word .letter:nth-child(6) { --letter-rotation: -22deg; animation-delay: 3.5s; }

/* Random rotation directions on hover */
.decision-word .letter:nth-child(1):hover,
.decision-word .letter:nth-child(1).simulated-hover { transform: translateY(-5px) scale(1.15) rotate(8deg); }
.decision-word .letter:nth-child(2):hover,
.decision-word .letter:nth-child(2).simulated-hover { transform: translateY(7px) scale(1.15) rotate(-12deg); }
.decision-word .letter:nth-child(3):hover,
.decision-word .letter:nth-child(3).simulated-hover { transform: translateY(-8px) scale(1.15) rotate(15deg); }
.decision-word .letter:nth-child(4):hover,
.decision-word .letter:nth-child(4).simulated-hover { transform: translateY(4px) scale(1.15) rotate(-8deg); }
.decision-word .letter:nth-child(5):hover,
.decision-word .letter:nth-child(5).simulated-hover { transform: translateY(-6px) scale(1.15) rotate(10deg); }
.decision-word .letter:nth-child(6):hover,
.decision-word .letter:nth-child(6).simulated-hover { transform: translateY(8px) scale(1.15) rotate(-15deg); }
.decision-word .letter:nth-child(7):hover,
.decision-word .letter:nth-child(7).simulated-hover { transform: translateY(-3px) scale(1.15) rotate(12deg); }
.decision-word .letter:nth-child(8):hover,
.decision-word .letter:nth-child(8).simulated-hover { transform: translateY(6px) scale(1.15) rotate(-10deg); }

.themes-word .letter:nth-child(1):hover,
.themes-word .letter:nth-child(1).simulated-hover { transform: translateY(5px) scale(1.15) rotate(-14deg); }
.themes-word .letter:nth-child(2):hover,
.themes-word .letter:nth-child(2).simulated-hover { transform: translateY(-7px) scale(1.15) rotate(9deg); }
.themes-word .letter:nth-child(3):hover,
.themes-word .letter:nth-child(3).simulated-hover { transform: translateY(8px) scale(1.15) rotate(-11deg); }
.themes-word .letter:nth-child(4):hover,
.themes-word .letter:nth-child(4).simulated-hover { transform: translateY(-4px) scale(1.15) rotate(13deg); }
.themes-word .letter:nth-child(5):hover,
.themes-word .letter:nth-child(5).simulated-hover { transform: translateY(6px) scale(1.15) rotate(-9deg); }
.themes-word .letter:nth-child(6):hover,
.themes-word .letter:nth-child(6).simulated-hover { transform: translateY(-8px) scale(1.15) rotate(11deg); }

/* ========================================
   TAGLINE
   ======================================== */

.tagline {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.5rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: calc(var(--space-base) * 1.5);
    opacity: 0.9;
    text-transform: uppercase;
    animation: fadeInUp 1.5s ease-out 4.5s both;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

/* ========================================
   DECORATIVE ORNAMENT
   ======================================== */

.ornament {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(0.95rem * var(--size-dampened));
    color: #ffffff;
    margin: calc(var(--space-base) * 1.5) auto calc(var(--space-base) * 4);
    width: 100%;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 5s both;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

/* Divider ornaments (episode closers) */
.divider-ornament {
    font-size: calc(1.1rem * var(--size-dampened));
    margin: 0;
}

/* Only standalone divider ornaments get fade animation */
.divider-section .divider-ornament {
    opacity: 0.6;
    animation: fadeIn 1.5s ease-out 1s both;
}

/* Section divider ornaments inherit parent animation */
.section-divider .divider-ornament {
    opacity: inherit;
}

/* ========================================
   DESCRIPTION
   ======================================== */

.description {
    max-width: 600px;
    margin: 0;
    animation: fadeInUp 1.5s ease-out 5.5s both;
}

.description p {
    font-family: 'Inter Tight', sans-serif;
    font-size: calc(0.95rem * var(--size-dampened));
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.85;
    letter-spacing: 0.02em;
    margin-bottom: calc(var(--space-base) * 3);
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.description p.description-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: calc(1.1rem * var(--size-dampened));
    font-weight: 400;
    opacity: 0.92;
    letter-spacing: 0.03em;
    margin-bottom: calc(var(--space-base) * 3);
    line-height: 1.55;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    transition: font-size 0.3s ease, line-height 0.3s ease, margin 0.3s ease;
}

.demo-notice {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.125rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 0;
    margin-bottom: calc(var(--space-base) * 2);
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.demo-copy {
      font-family: 'Inter Tight', sans-serif;
      font-size: calc(0.95rem * var(--size-dampened));
      font-weight: 400;
      line-height: 1.8;
      opacity: 0.85;
      letter-spacing: 0.02em;
      margin-bottom: calc(var(--space-base) * 2);
      transition: font-size 0.3s ease, margin 0.3s ease;
  }

.core-concepts {
    font-family: 'Inter Tight', sans-serif;
    font-size: calc(0.9rem * var(--size-dampened));
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.85;
    letter-spacing: 0.02em;
    list-style-position: outside;
    padding-left: calc(var(--space-base) * 2.5);
    margin: 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    transition: font-size 0.3s ease;
}

.core-concepts li {
    margin-bottom: calc(var(--space-base) * 0.3);
    transition: margin 0.3s ease;
}

.core-concepts li:last-child {
    margin-bottom: 0;
}

/* ========================================
   EMAIL SIGNUP FORM
   ======================================== */

.signup-form {
    margin: 0;
    animation: fadeInUp 1.5s ease-out 6.5s both;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-base) * 2);
    align-items: center;
    transition: gap 0.3s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-base) * 1);
    max-width: 500px;
    margin: 0 auto;
    transition: gap 0.3s ease;
}

.visually-hidden,
.hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.email-input {
    padding: calc(var(--space-base) * 1) calc(var(--space-base) * 1.5);
    font-size: calc(1rem * var(--size-dampened));
    font-family: 'Inter Tight', sans-serif;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #ffffff;
    border-radius: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.email-input::placeholder {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    font-size: calc(0.95rem * var(--size-dampened));
}

.email-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.privacy-notice {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(0.8rem * var(--size-dampened));
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    margin: calc(var(--space-base) * -0.5) 0 0 0;
    letter-spacing: 0.02em;
    transition: font-size 0.3s ease;
}

.privacy-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.privacy-link:hover {
    color: rgba(255, 255, 255, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   UNIFIED BUTTON SYSTEM
   ======================================== */

/*
   USAGE GUIDE:

   Basic usage:
   <button class="btn-base btn-primary">Click Me</button>
   <a href="#" class="btn-base btn-secondary">Learn More</a>

   With rotation modifier:
   <button class="btn-base btn-primary btn-rotate-2">Click Me</button>

   With custom lift:
   <button class="btn-base btn-tertiary btn-lift-lg btn-rotate-3">Support</button>

   Button Types:
   - btn-primary: Main call-to-action buttons (solid border, prominent)
   - btn-secondary: Secondary actions (subtle border, less prominent)
   - btn-tertiary: Tertiary actions (often used with icons)

   Modifiers:
   - btn-rotate-1 to btn-rotate-8: Add random rotation on hover (-4.5deg to 5deg range)
   - btn-lift-sm/md/lg: Control hover lift distance and scale

   Custom Properties (can be set inline or in custom classes):
   - --hover-y: Vertical movement on hover (default: -4px)
   - --hover-scale: Scale factor on hover (default: 1.03)
   - --hover-rotate: Rotation angle on hover (default: 0deg)

   Performance Note:
   - Animation speeds are dynamically linked to the size slider (--size-scale)
   - Larger sizes = slower animations for better visual clarity
   - Default: 1.2s base speed, adjusted by slider value
*/

/* Base button styles shared by all buttons */
.btn-base {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant SC', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease-in-out;

    /* Default transform origin for animations */
    transform: translateY(0) scale(1) rotate(0deg);

    /* Custom properties for hover animation (can be overridden) */
    --hover-y: -4px;
    --hover-scale: 1.03;
    --hover-rotate: 0deg;
}

/* Button hover state - uses custom properties */
.btn-base:hover {
    transform: translateY(var(--hover-y))
               scale(var(--hover-scale))
               rotate(var(--hover-rotate));
}

/* Button active state */
.btn-base:active {
    transform: translateY(calc(var(--hover-y) * 0.25));
}

/* Primary button - prominent actions */
.btn-primary {
    padding: calc(var(--space-base) * 1) calc(var(--space-base) * 2.5);
    font-size: calc(1.125rem * var(--size-dampened));
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

/* Secondary button - less prominent actions */
.btn-secondary {
    padding: calc(var(--space-base) * 0.9) calc(var(--space-base) * 2);
    font-size: calc(0.95rem * var(--size-dampened));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.18);
}

/* Tertiary button - subtle actions with icons */
.btn-tertiary {
    gap: calc(var(--space-base) * 0.6);
    padding: calc(var(--space-base) * 1) calc(var(--space-base) * 2.5);
    font-size: calc(1rem * var(--size-dampened));
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.22);
}

/* Random rotation modifiers - add personality to buttons */
.btn-rotate-1 { --hover-rotate: -3deg; }
.btn-rotate-2 { --hover-rotate: 4deg; }
.btn-rotate-3 { --hover-rotate: -2.5deg; }
.btn-rotate-4 { --hover-rotate: 2deg; }
.btn-rotate-5 { --hover-rotate: -4.5deg; }
.btn-rotate-6 { --hover-rotate: 5deg; }
.btn-rotate-7 { --hover-rotate: -1.5deg; }
.btn-rotate-8 { --hover-rotate: 3.5deg; }

/* Movement intensity modifiers */
.btn-lift-sm { --hover-y: -3px; --hover-scale: 1.02; }
.btn-lift-md { --hover-y: -4px; --hover-scale: 1.03; }
.btn-lift-lg { --hover-y: -5px; --hover-scale: 1.04; }

/* Legacy button classes for backwards compatibility */
.submit-button {
    padding: calc(var(--space-base) * 1) calc(var(--space-base) * 2);
    font-size: calc(1.125rem * var(--size-dampened));
    font-family: 'Cormorant SC', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    color: #ffffff;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    backdrop-filter: blur(10px);
}

.submit-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-4px) scale(1.03) rotate(-1deg);
    box-shadow: 0 3px 14px rgba(255, 255, 255, 0.25);
}

.submit-button:active {
    transform: translateY(0);
}

/* ========================================
   DEMO FEATURES SECTION
   ======================================== */

.demo-features {
    width: 100%;
    max-width: 600px;
    padding: 0;
    margin: 0;
    animation: fadeInUp 1.5s ease-out 5.5s both;
}

/* CTA in demo section */
.demo-features .cta-container {
    margin-top: calc(var(--space-base) * 2.5);
}

/* ========================================
   BLOG SECTION
   ======================================== */

.blog-title,
.demo-title {
      font-family: 'Cormorant SC', serif;
      font-size: calc(1.8rem * var(--size-dampened));
      font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: calc(var(--space-base) * 1);
    opacity: 0.95;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.blog-description {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(1.1rem * var(--size-dampened));
    font-style: italic;
    opacity: 0.75;
    margin-bottom: calc(var(--space-base) * 3);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: calc(var(--space-base) * 2);
    width: 100%;
    max-width: 1000px;
}

.blog-post {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: calc(var(--space-base) * 1.5);
    text-align: left;
    transition: all var(--transition-speed) ease;
    opacity: 0;
    animation: fadeReveal 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) both;

    --hover-y: -6px;
    --hover-scale: 1.02;
}

.blog-post:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(var(--hover-y)) scale(var(--hover-scale));
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.blog-post-date {
    font-family: 'Inter', sans-serif;
    font-size: calc(0.75rem * var(--size-dampened));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: calc(var(--space-base) * 0.5);
}

.blog-post-title {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.2rem * var(--size-dampened));
    font-weight: 500;
    margin-bottom: calc(var(--space-base) * 0.75);
    line-height: 1.3;
}

.blog-post-excerpt {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(0.95rem * var(--size-dampened));
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: calc(var(--space-base) * 1);
}

.blog-post-tags {
    display: flex;
    gap: calc(var(--space-base) * 0.5);
    flex-wrap: wrap;
    margin-top: calc(var(--space-base) * 1);
}

.blog-tag {
    font-family: 'Inter', sans-serif;
    font-size: calc(0.7rem * var(--size-dampened));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    opacity: 0.6;
}

.blog-post-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    margin-bottom: calc(var(--space-base) * 1);
    background: rgba(0, 0, 0, 0.3);
}

.loading-message {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    opacity: 0.5;
    text-align: center;
    padding: calc(var(--space-base) * 3);
}

/* ========================================
   ROADMAP SECTION - HORIZONTAL WITH HOVER
   ======================================== */

.roadmap-title {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.8rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: calc(var(--space-base) * 4);
    opacity: 0.95;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.timeline-container {
    position: relative;
    width: 100%; /* Full width */
    margin: 0 auto;
    padding: calc(var(--space-base) * 12) 0 calc(var(--space-base) * 2) 0;
    /* Wrapper to hold both line and milestones */
}

.timeline-container > * {
    /* Container for milestones - this is modified in HTML */
}

/* Timeline dots wrapper - we'll need to add this as a div in HTML */
.timeline-dots-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Changed from center */
    margin: 0 auto; /* Center the wrapper */
    padding: 0 calc(var(--space-base) * 6);
    max-width: 900px; /* Constrain line width */
    z-index: 2;
    /* Ensure wrapper height doesn't interfere */
    min-height: 30px;
}

.timeline-line {
    position: absolute;
    left: calc(var(--space-base) * 6);
    right: calc(var(--space-base) * 6);
    top: calc(var(--space-base) * 12 + (7px * var(--size-dampened))); /* Offset by half the dot height */
    height: 2px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(255, 255, 255, 0.4) 80%,
        rgba(255, 255, 255, 0.15) 100%
    );
    z-index: 1;
    max-width: 900px; /* Match wrapper */
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - (var(--space-base) * 12)); /* Account for padding */
}

.timeline-milestone {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    cursor: pointer;
    /* Remove flex centering - dots will align naturally */
}

.milestone-dot {
    width: calc(14px * var(--size-dampened));
    height: calc(14px * var(--size-dampened));
    background: rgba(255, 255, 255, 0.3);
    border: calc(2px * var(--size-dampened)) solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
}

.timeline-milestone:hover .milestone-dot {
    width: calc(18px * var(--size-dampened));
    height: calc(18px * var(--size-dampened));
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 0 0 calc(6px * var(--size-dampened)) rgba(255, 255, 255, 0.2),
        0 4px 16px rgba(255, 255, 255, 0.4);
}

.timeline-milestone.active .milestone-dot {
    width: calc(20px * var(--size-dampened));
    height: calc(20px * var(--size-dampened));
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 calc(8px * var(--size-dampened)) rgba(255, 255, 255, 0.15),
        0 4px 20px rgba(255, 255, 255, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 0 0 calc(8px * var(--size-dampened)) rgba(255, 255, 255, 0.15),
            0 4px 20px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 
            0 0 0 calc(12px * var(--size-dampened)) rgba(255, 255, 255, 0.25),
            0 6px 30px rgba(255, 255, 255, 0.7);
    }
}

/* Content box - visible by default for active milestone, appears on hover for others */
.milestone-content {
    position: absolute;
    left: 50%;
    bottom: calc(100% + (var(--space-base) * 1));
    transform: translateX(-50%) rotate(var(--initial-rotation, 0deg)) scale(0.95);
    width: 320px;
    max-width: 90vw;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: calc(var(--space-base) * 1.2) calc(var(--space-base) * 1.5);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed) cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    z-index: 10;
}

.timeline-milestone:hover .milestone-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) rotate(0deg) scale(1);
}

/* Hide active milestone content when hovering another milestone */
.timeline-dots-wrapper:hover .timeline-milestone.active .milestone-content {
    opacity: 0;
    visibility: hidden;
}

/* Show active milestone content when hovering itself */
.timeline-milestone.active:hover .milestone-content {
    opacity: 1;
    visibility: visible;
}

.timeline-milestone.active .milestone-content {
    opacity: 1;
    visibility: visible;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.15);
}

.milestone-name {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.15rem * var(--size-dampened));
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: calc(var(--space-base) * 0.4);
    color: rgba(255, 255, 255, 0.95);
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.timeline-milestone.active .milestone-name {
    color: #ffffff;
    font-weight: 700;
}

.milestone-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: calc(0.85rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: calc(var(--space-base) * 0.6);
    text-transform: uppercase;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.timeline-milestone.active .milestone-date {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.milestone-description {
    font-family: 'Inter Tight', sans-serif;
    font-size: calc(0.92rem * var(--size-dampened));
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    margin: 0;
    transition: font-size 0.3s ease;
}

.timeline-milestone.active .milestone-description {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .timeline-container {
        padding: calc(var(--space-base) * 10) 0 0 0;
    }
    
    .timeline-dots-wrapper {
        padding: 0 calc(var(--space-base) * 4);
    }
    
    .timeline-line {
        width: calc(100% - (var(--space-base) * 8)); /* Account for mobile padding */
        top: calc(var(--space-base) * 10 + (7px * var(--size-dampened)));
    }
    
    .milestone-content {
        width: 280px;
        /* Center above each dot */
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (min-width: 768px) {
    .milestone-content {
        width: 340px; /* Slightly larger on tablet */
    }
}

@media (min-width: 1024px) {
    .roadmap-title {
        margin-bottom: calc(var(--space-base) * 4);
    }
    
    .milestone-content {
        width: 360px;
    }
}

/* ========================================
   CTA BUTTON (Inside signup form)
   ======================================== */

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-base) * 0.8);
}

.cta-button {
    display: inline-block;
    padding: calc(var(--space-base) * 1.25) calc(var(--space-base) * 3);
    font-size: calc(1.125rem * var(--size-dampened));
    font-family: 'Cormorant SC', serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-speed) ease-in-out;
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 1);
    transform: translateY(-5px) scale(1.04) rotate(1.5deg);
    box-shadow: 0 4px 18px rgba(255, 255, 255, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
}

.desktop-notice {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: calc(0.95rem * var(--size-dampened));
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    letter-spacing: 0.02em;
    transition: font-size 0.3s ease;
}

/* ========================================
   OPEN SOURCE & SUPPORT SECTION
   ======================================== */

.opensource-title {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.6rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: calc(var(--space-base) * 1.2);
    opacity: 0.95;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.opensource-description {
    font-family: 'Inter Tight', sans-serif;
    font-size: calc(1rem * var(--size-dampened));
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.85;
    letter-spacing: 0.02em;
    margin-bottom: calc(var(--space-base) * 2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.opensource-links {
    display: flex;
    gap: calc(var(--space-base) * 1.5);
    justify-content: center;
    margin-bottom: calc(var(--space-base) * 3);
    flex-wrap: wrap;
    transition: gap 0.3s ease, margin 0.3s ease;
}

.opensource-button {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-base) * 0.6);
    padding: calc(var(--space-base) * 0.9) calc(var(--space-base) * 2);
    font-size: calc(0.95rem * var(--size-dampened));
    font-family: 'Cormorant SC', serif;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-speed) ease-in-out;
    backdrop-filter: blur(10px);
}

.opensource-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px) scale(1.02) rotate(-0.8deg);
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.18);
}

.button-icon {
    font-size: calc(1.2em * var(--size-dampened));
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

.support-title {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.3rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: calc(var(--space-base) * 1);
    opacity: 0.9;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.support-description {
    font-family: 'Inter Tight', sans-serif;
    font-size: calc(0.95rem * var(--size-dampened));
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
    letter-spacing: 0.02em;
    margin-bottom: calc(var(--space-base) * 2);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.support-links {
    display: flex;
    gap: calc(var(--space-base) * 1.5);
    justify-content: center;
    flex-wrap: wrap;
    transition: gap 0.3s ease;
}

.support-button {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-base) * 0.6);
    padding: calc(var(--space-base) * 1) calc(var(--space-base) * 2.5);
    font-size: calc(1rem * var(--size-dampened));
    font-family: 'Cormorant SC', serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    text-decoration: none;
    transition: all var(--transition-speed) ease-in-out;
    backdrop-filter: blur(10px);
}

.support-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-4px) scale(1.03) rotate(0.5deg);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.22);
}

.support-button:active {
    transform: translateY(0);
}

/* Responsive adjustments for social links */
@media (max-width: 767px) {
    .social-links {
        gap: calc(var(--space-base) * 1.5);
    }
    
    .social-link {
        width: calc(28px * var(--size-dampened));
        height: calc(28px * var(--size-dampened));
    }
}

/* Responsive adjustments for open source section */
@media (max-width: 767px) {
    .opensource-links,
    .support-links {
        flex-direction: column;
        align-items: center;
    }
    
    .opensource-button,
    .support-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    width: 100%;
    padding: 0;
    margin: 0 0 calc(var(--space-base) * 6);
    animation: fadeIn 1.5s ease-out 8.5s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-base) * 1.5);
    transition: gap 0.3s ease;
}

.footer p {
    font-family: 'Cormorant Garamond', serif; /* switched to Garamond variant */
    font-size: calc(0.85rem * var(--size-dampened)); /* slightly smaller */
    font-weight: 400;
    opacity: 0.7;
    letter-spacing: 0.03em;
    margin: 0; /* remove default margins */
    transition: font-size 0.3s ease, opacity 0.3s ease;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer a:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

/* Social Links */
.social-links {
    display: flex;
    gap: calc(var(--space-base) * 2);
    align-items: center;
    justify-content: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc(32px * var(--size-dampened));
    height: calc(32px * var(--size-dampened));
    transform: translateY(0) scale(1) rotate(0deg);
    transition: transform 1.5s ease-in-out !important;
    border: none !important;
    text-decoration: none;
}

.social-link:hover {
    border: none !important;
    text-decoration: none;
}

.social-icon {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 2s ease-in-out, filter 2s ease-in-out;
}

/* LinkedIn hover - brand blue */
.social-link:nth-child(1):hover {
    transform: translateY(-5px) scale(1.15) rotate(8deg);
}

.social-link:nth-child(1):hover .social-icon {
    fill: #0A66C2;
    filter: drop-shadow(0 4px 30px rgba(10, 102, 194, 0.9));
}

/* Facebook hover - brand blue */
.social-link:nth-child(2):hover {
    transform: translateY(7px) scale(1.15) rotate(-12deg);
}

.social-link:nth-child(2):hover .social-icon {
    fill: #1877F2;
    filter: drop-shadow(0 4px 30px rgba(24, 119, 242, 0.9));
}

/* Instagram hover - brand gradient pink */
.social-link:nth-child(3):hover {
    transform: translateY(-8px) scale(1.15) rotate(15deg);
}

.social-link:nth-child(3):hover .social-icon {
    fill: #E1306C;
    filter: drop-shadow(0 4px 30px rgba(225, 48, 108, 0.9));
}

/* X (Twitter) hover - brand blue */
.social-link:nth-child(4):hover {
    transform: translateY(4px) scale(1.15) rotate(-8deg);
}

.social-link:nth-child(4):hover .social-icon {
    fill: #1DA1F2;
    filter: drop-shadow(0 4px 30px rgba(29, 161, 242, 0.9));
}

/* ========================================
   UNIFIED ANIMATION SYSTEM
   ======================================== */

/* Core reveal animation - works for all elements
   Uses CSS custom properties for flexible control:
   --reveal-y: vertical offset (default: 20px)
   --reveal-rotate: rotation angle (default: 0deg)
   --reveal-scale: scale factor (default: 0.95)
*/
@keyframes fadeReveal {
    from {
        opacity: 0;
        transform: translateY(var(--reveal-y, 20px))
                   rotate(var(--reveal-rotate, 0deg))
                   scale(var(--reveal-scale, 0.95));
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Legacy animation aliases for backwards compatibility */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   ======================================== */

@media (max-width: 767px) {
    .header-nav {
        gap: calc(var(--space-base) * 1);
    }

    .nav-link {
        font-size: calc(0.8rem * var(--size-dampened));
        padding: calc(var(--space-base) * 0.4) calc(var(--space-base) * 0.6);
    }

    .nav-link-cta {
        padding: calc(var(--space-base) * 0.4) calc(var(--space-base) * 1);
    }

    .header-logo-img {
        height: calc(32px * var(--size-dampened));
    }

    .site-footer {
        height: auto;
        padding: calc(var(--space-base) * 1) 1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: calc(var(--space-base) * 1);
    }
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   ======================================== */

@media (min-width: 768px) {
    .form-group {
        flex-direction: row;
    }

    .email-input {
        flex: 1;
    }

    .submit-button {
        flex-shrink: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN - DESKTOP
   ======================================== */

@media (min-width: 1024px) {
    .logo-container {
        margin-bottom: calc(var(--space-base) * 2.5);
    }

    .main-headline {
        margin-bottom: calc(var(--space-base) * 1.5);
    }

    .tagline {
        margin-bottom: calc(var(--space-base) * 3);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

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

/* Focus states for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.section-title {
    font-family: 'Cormorant Unicase', serif;
    font-size: calc(2.2rem * var(--size-dampened));
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: calc(var(--space-base) * 1);
    opacity: 0.95;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.demo-title-small {
    font-family: 'Cormorant Unicase', serif;
    font-size: calc(1.4rem * var(--size-dampened));
    font-weight: 800;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: calc(var(--space-base) * 1);
    opacity: 0.95;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.dcv-title {
    font-family: 'Cormorant Unicase', serif;
    font-size: calc(2.5rem * var(--size-dampened));
    font-weight: 800;
    font-variant: small-caps;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: calc(var(--space-base) * 0.3);
    opacity: 0.95;
    transition: font-size 0.3s ease, margin 0.3s ease;
}

.footer-title {
    font-family: 'Cormorant SC', serif;
    font-size: calc(1.3rem * var(--size-dampened));
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: calc(var(--space-base) * 1);
    opacity: 0.9;
    transition: font-size 0.3s ease, margin 0.3s ease;
    text-align: center;
}