/* static/css/styles.css */

/* --- CSS Custom Properties (single source of truth for all colors) --- */
:root {
    --bg:          #0c0b1e;
    --surface:     #1a192d;
    --border:      #2a2940;
    --accent:      #4f87f2;
    --accent-dark: #3a70d1;
    --accent-glow: rgba(79, 135, 242, 0.4);
    --text:        #ffffff;
    --text-muted:  #a0a0c0;
    --text-dim:    #cccccc;
    --radius:      12px;
    --radius-sm:   8px;
    --transition:  0.3s ease;
}

/* --- Universal Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
}

*, a, button {
    -webkit-tap-highlight-color: transparent;
}

/* --- Animated Background Blobs --- */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(180px);
    z-index: -1;
    animation: floatBlob 8s infinite ease-in-out alternate;
    pointer-events: none;
}

body::before {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    top: 20%;
    left: 30%;
    animation-delay: -2s;
}

body::after {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(180, 58, 226, 0.3), transparent 70%);
    bottom: 10%;
    right: 25%;
}

/* --- Navbar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

/* --- Logo --- */
.logo {
    display: inline-block;
    color: var(--text) !important;
    text-decoration: none !important;
    border: 2px solid var(--text) !important;
    background: transparent !important;
    padding: 0 10px;
    font-size: 2rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 10px var(--accent-glow);
    transition: all var(--transition);
    outline: none !important;
    user-select: none;
    -webkit-user-select: none;
}

.logo:visited,
.logo:active,
.logo:focus,
.logo:focus-visible {
    color: var(--text) !important;
    border-color: var(--text) !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: 0 0 10px var(--accent-glow);
}

.logo:hover {
    background: rgba(79, 135, 242, 0.1) !important;
    box-shadow: 0 0 20px rgba(79, 135, 242, 0.7);
    border-color: var(--text-muted) !important;
}

/* --- Nav Links --- */
.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color var(--transition);
    position: relative;
}

/* Animated underline on hover/active */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

/* --- Hamburger Menu (hidden on desktop) --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 101;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh - 140px);
    padding: 60px 20px 40px;
    animation: fadeIn 0.8s ease-in-out;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(79, 135, 242, 0.08);
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-title,
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #b43ae2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lede,
.hero p {
    margin: 18px 0 6px;
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 640px;
}

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

/* --- Features Section --- */
.features {
    padding: 80px 5% 40px;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px -10px var(--accent-glow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* --- CTA Band --- */
.cta-band {
    max-width: 800px;
    margin: 40px auto 80px;
    padding: 48px 32px;
    text-align: center;
    background: linear-gradient(135deg, rgba(79,135,242,0.12) 0%, rgba(180,58,226,0.10) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cta-band h2 {
    margin: 0 0 10px;
    font-size: 1.8rem;
    color: var(--text);
}

.cta-band p {
    margin: 0 0 24px;
    color: var(--text-dim);
}

/* --- CTA Buttons --- */
.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* --- Shared Button Styles --- */
.btn {
    padding: 12px 25px;
    border-radius: 50px;
    border: 2px solid var(--accent);
    background-color: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--accent-dark);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn:not(.btn-primary):hover {
    background-color: rgba(79, 135, 242, 0.15);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 30px 5%;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 60px;
}

.site-footer a {
    color: var(--accent);
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--text);
}

/* --- Keyframe Animations (defined once, used everywhere via var()) --- */
@keyframes floatBlob {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-50px, 50px) scale(1.2); }
    100% { transform: translate(50px, -30px) scale(1); }
}

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

/* --- Responsive Design --- */
@media screen and (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background-color: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        margin: 0;
        gap: 40px;
        z-index: 100;
    }

    .nav-links.active { display: flex; }
    .nav-links a { font-size: 1.5rem; }
    /* Hide underline anim on mobile overlay — items are large enough */
    .nav-links a::after { display: none; }

    .hamburger.active .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    .hero h1 { font-size: 2.5rem; }
    .navbar  { padding: 20px; }
}
