/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #000000;
    --text-primary: rgba(255, 255, 255, 0.9);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.02);
    --input-bg: rgba(255, 255, 255, 0.05);
    --input-border: rgba(255, 255, 255, 0.03);
    --button-bg: rgba(255, 255, 255, 0.13);
    --font-serif: 'Instrument Serif', serif;
    --font-sans: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: scale(1);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px;
    background: transparent;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.06);
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo {
    width: 30px;
    height: 45px;
    position: relative;
}

.logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Main Content */
.main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 64px;
    line-height: 60px;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -1px;
    opacity: 0.001;
    transform: translateY(48px);
    /* Animation handled by JavaScript for spring physics */
}

.hero-title .title-bold {
    font-family: var(--font-sans);
    font-weight: 500;
}

.hero-title .title-serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.001;
    transform: translateY(150px);
    /* Animation handled by JavaScript for spring physics */
}

.hero-subtitle .subtitle-serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cta-button {
    font-size: 18px;
    line-height: 24px;
    padding: 10px 16px;
    background-color: var(--button-bg);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.001;
    transform: translateY(150px);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
    /* Animation handled by JavaScript for spring physics */
}

.cta-button .button-serif {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    font-style: italic;
}

/* Liquid Glass Effect */
.cta-button.liquid-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    isolation: isolate;
}

.cta-button.liquid-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.cta-button.liquid-glass::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.cta-button.liquid-glass.primary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-primary);
}

.cta-button.liquid-glass.secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.cta-button.liquid-glass:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
}

.cta-button.liquid-glass.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.28);
}

.cta-button.liquid-glass:hover::before {
    opacity: 1;
}

.cta-button.liquid-glass:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button.liquid-glass:active::after {
    width: 300px;
    height: 300px;
    opacity: 0.4;
    transition: width 0.1s ease, height 0.1s ease, opacity 0.3s ease;
}

/* Refraction effect on hover */
@supports (backdrop-filter: blur(1px)) {
    .cta-button.liquid-glass:hover {
        backdrop-filter: blur(24px) saturate(200%);
        -webkit-backdrop-filter: blur(24px) saturate(200%);
    }
}

/* Background Decoration */
.background-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    opacity: 0.001;
    /* Animation handled by JavaScript for spring physics */
}

/* Ensure gradient is visible after animation */
.background-decoration.animated,
.background-decoration[data-appear-id] {
    opacity: 1;
}

.background-decoration svg {
    position: absolute;
    top: -200px;
    left: -200px;
    transform: rotate(-150.712deg);
    width: 150%;
    height: auto;
    max-width: none;
    filter: blur(20px);
}

/* Footer */
.footer {
    width: 100%;
    padding: 40px 0 10px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.02);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-bottom: 40px;
}

/* Newsletter Section */
.newsletter-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 320px;
}

.newsletter-text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
    text-align: left;
}

.newsletter-description {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
}

.get-in-touch-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: rgb(39, 39, 39);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    width: fit-content;
    align-self: flex-start;
}

.get-in-touch-button:hover {
    background-color: rgb(50, 50, 50);
    transform: translateY(-1px);
}

.get-in-touch-button:active {
    transform: translateY(0);
}

.newsletter-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.form-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-input {
    width: 100%;
    height: 44px;
    padding: 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.2em;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgb(153, 153, 153);
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.submit-button {
    width: 120px;
    height: 44px;
    padding: 0;
    background-color: rgb(39, 39, 39);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.submit-button:hover {
    background-color: rgb(50, 50, 50);
    transform: translateY(-1px);
}

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

/* Footer Links Section */
.footer-links-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 25px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.8;
}

.footer-logo {
    width: 30px;
    height: 45px;
    position: relative;
}

.footer-logo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-pages {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 25px;
}

.footer-link {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: pre;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

/* Copyright */
.copyright {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

.copyright p {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
    text-align: center;
}

/* 404 Page Styles */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 80px;
    text-align: center;
}

.error-title {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: clamp(64px, 10vw, 160px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -1px;
    margin-bottom: 20px;
    opacity: 0.001;
    transform: translateY(48px);
}

.error-message {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    opacity: 0.001;
    transform: translateY(48px);
}

.error-link {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    padding: 10px 16px;
    background-color: var(--button-bg);
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    opacity: 0.001;
    transform: translateY(48px);
}

.error-link:hover {
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* About Page */
.about-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding: 160px 20px 100px;
    position: relative;
    overflow: hidden;
}

.about-hero {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.about-background {
    z-index: 1;
    opacity: 0.001;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.about-eyebrow {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.about-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(56px, 7vw, 92px);
    font-weight: 400;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: -0.6px;
    max-width: 900px;
}

.about-subtitle {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 720px;
}

.about-intro {
    font-family: var(--font-sans);
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 720px;
    margin-top: 8px;
}

.about-section {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.about-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.4px;
    color: var(--text-primary);
}

.about-section p {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-section.future {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.about-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.about-link:hover {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.founder-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.4);
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.founder-link:hover {
    opacity: 0.8;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.founder-link strong {
    font-weight: 600;
    color: var(--text-primary);
}

.vader-ads-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.vader-ads-link:hover {
    opacity: 0.8;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.vader-ads-link strong {
    font-weight: 600;
    color: var(--text-primary);
}

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

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

/* Responsive Design */
@media (min-width: 810px) and (max-width: 1199.98px) {
    .main {
        padding: 140px 20px 80px;
    }

    .hero-title {
        font-size: 42px;
        line-height: 52px;
    }

    .about-main {
        gap: 64px;
        padding: 140px 20px 80px;
    }

    .about-title {
        font-size: clamp(52px, 8vw, 80px);
    }

    .about-section h2 {
        font-size: 32px;
    }

    .about-section p {
        font-size: 16px;
    }

    .footer-content {
        gap: 32px;
    }

    .newsletter-form {
        width: 350px;
    }
}

@media (max-width: 809.98px) {
    .main {
        padding: 140px 24px 40px;
        gap: 40px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 44px;
        width: 75%;
    }

    .hero-subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .newsletter-section {
        width: 100%;
        gap: 10px;
    }

    .newsletter-title {
        text-align: left;
    }

    .newsletter-description {
        text-align: left;
    }

    .newsletter-form {
        width: 85%;
    }

    .about-main {
        gap: 48px;
        padding: 120px 20px 60px;
    }

    .about-title {
        font-size: 44px;
    }

    .about-section {
        gap: 16px;
    }

    .about-section h2 {
        font-size: 28px;
    }

    .about-section p {
        font-size: 16px;
        line-height: 1.7;
    }

    .footer-links-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .footer-pages {
        gap: 16px;
    }

    .copyright {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px 0 20px;
    }

    .copyright p {
        width: 100%;
        text-align: left;
    }
}

/* Smooth scrolling for reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

