:root {
    /* Hardened Cosmic Palette matched directly to the App Splash Screen */
    --bg-space: #060814;
    --bg-space-light: #0b0d19;
    --bg-card: #12162b;
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff007f;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-glow: rgba(0, 240, 255, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Rich linear gradient simulating deep cosmic space depth */
    background: linear-gradient(135deg, var(--bg-space) 0%, var(--bg-space-light) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Ambient Glows */
.glow-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}
.glow-cyan { top: 5%; left: -15%; background: var(--neon-cyan); }
.glow-magenta { top: 55%; right: -15%; background: var(--neon-magenta); }

/* Navigation Bar & Logo Splash Flare */
header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
}

/* Splash Flare behind the logo */
.logo-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 40px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, transparent 70%);
    filter: blur(5px);
    z-index: -1;
    pointer-events: none;
}

.logo {
    font-size: 1.9rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 10%, var(--neon-cyan) 60%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 240, 255, 0.3));
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--neon-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.nav-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 5rem auto 7rem;
    padding: 0 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: var(--neon-magenta);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Feature Grid */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.icon-cyan { background: rgba(0, 240, 255, 0.1); color: var(--neon-cyan); }
.icon-magenta { background: rgba(255, 0, 127, 0.1); color: var(--neon-magenta); }

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact Guild Section */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 8rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.03), transparent), var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 4rem 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email {
    font-size: 1.3rem;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 2px dashed rgba(0, 240, 255, 0.4);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--neon-magenta);
    border-color: var(--neon-magenta);
    text-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

/* Footer Section */
footer {
    background-color: #060810;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 2rem 2rem;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.link-group h5 {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-group ul { list-style: none; }
.link-group li { margin-bottom: 0.8rem; }
.link-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}
.link-group a:hover { color: var(--neon-cyan); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal Popup Engine */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 13, 25, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 8% auto;
    padding: 3rem;
    border: 1px solid var(--border-glow);
    width: 85%;
    max-width: 650px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}
.close-modal:hover { color: var(--neon-magenta); }

.modal-content h3 {
    color: var(--neon-cyan);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.modal-content h4 {
    margin: 1.5rem 0 0.5rem;
    color: var(--text-main);
}
.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    header { flex-direction: column; gap: 1.5rem; text-align: center; }
    nav { flex-direction: column; gap: 1rem; }
    .cta-group { flex-direction: column; max-width: 300px; margin: 0 auto; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .footer-links { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
    .modal-content { padding: 2rem; margin: 15% auto; }
}
