@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #7c4dff;
    --secondary-text: #a0a0a0;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --lh-body: 1.6;
    --lh-heading: 1.2;
    --lh-subheading: 1.4;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

.stars::before, .stars::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Base Stars Layer */
.stars::before {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PGNpcmNsZSBjeD0iMTAiIGN5PSIxMCIgcj0iMC41IiBmaWxsPSIjZmZmIi8+PGNpcmNsZSBjeD0iODAiIGN5PSIxNzAiIHI9IjAuNSIgZmlsbD0iI2ZmZiIvPjxjaXJjbGUgY3g9IjE0MCIgY3k9IjkwIiByPSIwLjUiIGZpbGw9IiNmZmYiLz48Y2lyY2xlIGN4PSIxODAiIGN5PSI0MCIgcj0iMC41IiBmaWxsPSIjZmZmIi8+PGNpcmNsZSBjeD0iMzAiIGN5PSIxMTAiIHI9IjAuNSIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==') repeat;
    animation: spaceMoveSmall 100s linear infinite;
    opacity: 0.8;
}

/* Medium Stars Layer */
.stars::after {
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIiB2aWV3Qm94PSIwIDAgMzAwIDMwMCI+PGNpcmNsZSBjeD0iNDAiIGN5PSI0MCIgcj0iMSIgZmlsbD0iI2ZmZiIgb3BhY2l0eT0iMC41Ii8+PGNpcmNsZSBjeD0iMTgwIiBjeT0iMjQwIiByPSIxIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjUiLz48Y2lyY2xlIGN4PSIyNzAiIGN5PSIxMjAiIHI9IjEiIGZpbGw9IiNmZmYiIG9wYWNpdHk9IjAuNSIvPjxjaXJjbGUgY3g9IjkwIiBjeT0iMTYwIiByPSIxIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIwLjUiLz48L3N2Zz4=') repeat;
    animation: spaceMoveMedium 70s linear infinite;
    opacity: 0.4;
}

@keyframes spaceMoveSmall {
    from { background-position: 0 0; }
    to { background-position: -1200px -1200px; }
}

@keyframes spaceMoveMedium {
    from { background-position: 0 0; }
    to { background-position: -1200px -1200px; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
}

.container > * {
    width: 100%;
}

celestine-header {
    display: block;
    width: 100%;
}

celestine-footer {
    margin-top: auto;
    display: block;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #fff, #a0a0a0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.social-links a, .nav-links a {
    color: var(--secondary-text);
    margin-left: 20px;
    font-size: 1.4rem;
    transition: color 0.3s;
    text-decoration: none;
}

.social-links a:hover, .nav-links a:hover {
    color: #fff;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 20px;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    z-index: 10;
}

.social-footer-link {
    color: #aaa;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-footer-link:hover {
    color: #fff;
    transform: translateY(-3px);
}

.copyright-text {
    color: #999;
    font-size: 0.95rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.legal-link {
    color: #888;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.legal-link:hover {
    color: #fff;
}

.legal-sep {
    color: #444;
    margin: 0 5px;
}

/* Common Components */
h1 {
    font-size: 3.5rem;
    line-height: var(--lh-heading); 
    margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
    line-height: var(--lh-heading);
    margin-bottom: 20px;
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    line-height: var(--lh-subheading);
    margin-bottom: 15px;
}

h4 {
    line-height: var(--lh-subheading);
}

p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

.btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.95rem;
    line-height: var(--lh-subheading);
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding-bottom: 20px;
        text-align: center;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        width: 100%;
    }
    nav a {
        margin: 0;
        font-size: 0.9rem;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1.25;
    }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-white { color: #fff !important; }
.text-secondary { color: var(--secondary-text) !important; }

.m-0 { margin: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-80 { margin-bottom: 80px !important; }
.mt-60 { margin-top: 60px !important; }
.mv-80 { margin-top: 80px !important; margin-bottom: 80px !important; }
.mv-100 { margin-top: 100px !important; margin-bottom: 100px !important; }

.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }
.max-w-900 { max-width: 900px; margin-left: auto; margin-right: auto; }

.flex { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-gap-10 { gap: 10px; }
.flex-gap-20 { gap: 20px; }
.flex-gap-25 { gap: 25px; }

.w-full { width: 100%; }
.no-underline { text-decoration: none !important; }
.cursor-pointer { cursor: pointer; }
.nowrap { white-space: nowrap; }
.pb-10 { padding-bottom: 10px !important; }

/* Glass Panels */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .glass-panel {
        padding: 30px 20px;
        border-radius: 16px;
    }
}

/* Forms & Inputs */
.lead-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 0;
}

.input-glass {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    outline: none;
}

.input-glass:focus {
    border-color: var(--accent-color);
    background: rgba(124, 77, 255, 0.05);
    box-shadow: 0 0 15px rgba(124, 77, 255, 0.2);
}

.input-glass::placeholder {
    color: #666;
}

.btn-launch {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-launch:hover {
    transform: translateY(-2px);
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

@media (max-width: 600px) {
    .lead-form {
        flex-direction: column;
        gap: 12px;
    }

    .btn-launch {
        justify-content: center;
        padding: 15px;
        width: 100%;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: white;
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(124, 77, 255, 0.4);
}

a i.fab, 
a:visited i.fab {
    color: #ffffff !important;
    transition: color 0.3s ease;
}

a:hover i.fa-youtube { color: #ff0000 !important; }
a:hover i.fa-twitter { color: #1da1f2 !important; }
a:hover i.fa-github { color: #6e5494 !important; }

@media (max-width: 600px) {
    .legal-links-container {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .legal-sep {
        display: none;
    }

    .legal-links-container .legal-link {
        margin: 0 5px;
    }
}
