/* ====== InsightFlow AI — Landing Page Styles ====== */

/* ====== Hero ====== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-3);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(0, 206, 201, 0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero Visual */
.hero-visual {
    margin-top: 4rem;
    width: 100%;
    max-width: 800px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.browser-window {
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px var(--glow-purple);
}

.browser-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-subtle);
}

.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #ff5f56; }
.browser-dot:nth-child(2) { background: #ffbd2e; }
.browser-dot:nth-child(3) { background: #27c93f; }

.browser-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-chat-preview { display: flex; flex-direction: column; gap: 0.75rem; }

.demo-msg {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    max-width: 80%;
    line-height: 1.5;
}

.demo-msg.user {
    align-self: flex-end;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.demo-msg.ai {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.demo-msg .label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.demo-msg.user .label { color: var(--accent-2); }
.demo-msg.ai .label { color: var(--accent-3); }

/* ====== Sections ====== */
section {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3.5rem;
}

/* ====== Features ====== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: rgba(108, 92, 231, 0.1);
}

.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

/* ====== How It Works ====== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.step-number {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    margin: 0 auto 1.25rem;
    transition: all 0.3s ease;
}

.step:hover .step-number {
    border-color: var(--accent-1);
    box-shadow: 0 0 25px var(--glow-purple);
    background: var(--accent-gradient);
    color: white;
}

.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--text-secondary); }

/* ====== CTA ====== */
.cta-section { text-align: center; }

.cta-box {
    padding: 3.5rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(0, 206, 201, 0.08) 100%);
    border: 1px solid rgba(108, 92, 231, 0.12);
}

.cta-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-box p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.75rem; }

/* ====== Footer ====== */
footer {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.8rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ====== Scroll Reveal ====== */
.reveal { opacity: 0; transform: translateY(25px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero-cta { flex-direction: column; }
    .steps { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 1rem; }
    .cta-box { padding: 2rem 1.5rem; }
}
