/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-glow: #6366f1; /* Indigo glow */
    --accent-secondary: #a855f7; /* Purple glow */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.btn-primary:hover {
    background: #e2e2e2;
    transform: translateY(-2px);
}

/* --- HEADER --- */
header {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* --- HERO SECTION (Style) --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Offset for fixed header */
    padding-bottom: 120px; /* Push content higher */
    background-image: url('assets/night-sky.webp');
    background-size: cover;
    background-position: center;
}

/* The glowing background blob */
.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: -1;
    filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
    max-width: 800px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

/* --- NEW CTA FORM (Style Input) --- */
.cta-form {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 50px; /* Pill shape */
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    backdrop-filter: blur(10px);
}

.cta-input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    padding: 12px 24px;
    flex-grow: 1; /* Takes up remaining space */
    outline: none;
    font-family: var(--font-family);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-form .btn {
    border-radius: 40px; /* Pill shape button */
    padding: 12px 32px;
    white-space: nowrap;
}

/* --- SUGGESTION POPUP --- */
.cta-form-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.suggestion-popup {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: rgba(20, 20, 25, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 50;
}

.suggestion-popup.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.suggestion-popup-header {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding-left: 4px;
}

.suggestion-item {
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: rgba(99, 102, 241, 0.15);
}

.suggestion-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.suggestion-item-text {
    flex: 1;
}

.suggestion-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    text-align: left;
}


/* Dynamic Typing Cursor */
.typing-text {
    background: linear-gradient(90deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #fff;
    margin-left: 4px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- SCROLL INDICATOR ARROW --- */
.scroll-indicator {
    position: absolute;
    bottom: 160px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(10px);
    }
    60% {
        transform: translateY(5px);
    }
}

/* --- FRAMEWORK SECTION --- */
.framework {
    padding: 100px 0;
    border-top: 1px solid var(--glass-border);
}

.framework-header {
    text-align: center;
    margin-bottom: 60px;
}

.framework-header h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-5px);
}

.step-number {
    font-size: 0.8rem;
    color: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
    font-weight: 700;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

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

/* --- FOOTER --- */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .grid { grid-template-columns: 1fr; }
    .cta-form { flex-direction: column; border-radius: 16px; padding: 16px; }
    .cta-input { width: 100%; margin-bottom: 16px; text-align: center; }
    .cta-form .btn { width: 100%; }
    .suggestion-popup { border-radius: 12px; }
    .suggestion-item-icon { width: 28px; height: 28px; font-size: 0.8rem; }
}

@media (max-height: 840px) {
    .scroll-indicator { display: none; }
}
