:root {
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --weight-thin: 200;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-bold: 700;
    --weight-black: 900;

    --iv-blue: #2196F3;
    --iv-cyan: #00D4FF;
    --iv-red: #ED1C49;
    --iv-green: #3CB14A;
    --iv-yellow: #FFC525;
    --bg-dark: #0A0E1A;
    --bg-darker: #060810;
    --bg-section: #0F1218;
    --bg-card: #111827;
    --bg-card-hover: #1a2535;
    --text-light: #E8EAED;
    --text-muted: #9CA3AF;
    --text-dim: #5a6880;
    --border-glass: rgba(255, 255, 255, 0.07);
    --gradient-tech: linear-gradient(135deg, #2196F3 0%, #1565C0 100%);
    --gradient-aurora: linear-gradient(135deg, #00D4FF 0%, #090979 50%, #020024 100%);
    --gradient-cta: linear-gradient(135deg, #00D4FF 0%, #2196F3 50%, #667EEA 100%);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-weight: var(--weight-light);
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* NOISE */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.025;
    pointer-events: none;
    z-index: 0;
}

/* COSMIC GLOW */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0,212,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(102,126,234,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(33,150,243,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

section, nav, main, footer { position: relative; z-index: 1; }

/* ANIMATIONS */
.fade-in { opacity: 0; animation: fadeInUp 0.9s var(--ease) forwards; }
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.25s; }
.stagger-3 { animation-delay: 0.4s; }
.stagger-4 { animation-delay: 0.55s; }
.stagger-5 { animation-delay: 0.7s; }
.stagger-6 { animation-delay: 0.85s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none; opacity: 1; }
}

/* NAV */
.nav {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(6,8,16,0.8);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: -0.02em;
}
.nav-brand img { height: 40px; }
.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--iv-cyan); }
.nav-cta {
    padding: 8px 18px;
    background: var(--gradient-tech);
    color: var(--text-light) !important;
    border-radius: 6px;
    font-weight: var(--weight-medium);
    transition: transform 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta-outline {
    padding: 7px 16px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    color: var(--text-muted) !important;
    transition: border-color 0.2s;
}
.nav-cta-outline:hover { border-color: rgba(0,212,255,0.3); }

/* SECTION */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 24px;
}
.section-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: var(--weight-bold);
    color: var(--iv-cyan);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}
.section h2 {
    font-family: var(--font-display);
    font-weight: var(--weight-black);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
    margin-bottom: 32px;
}

/* CARDS */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,212,255,0.06);
}

/* INSIGHT FEED — Instagram-style cards */
.insights-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}
.insight-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.insight-card:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,212,255,0.06);
}
.insight-card .insight-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.insight-card .insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
    transition: filter 0.3s;
}
.insight-card:hover .insight-img img { filter: brightness(1); }
.insight-card .insight-body { padding: 16px 18px 18px; }
.insight-card .insight-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.insight-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
}
.insight-agent {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    font-size: 0.78rem;
    display: block;
}
.insight-room { font-size: 0.68rem; color: var(--iv-cyan); display: block; }
.insight-scores {
    margin-left: auto;
    display: flex;
    gap: 6px;
    font-size: 0.62rem;
    color: var(--text-dim);
    font-family: var(--font-display);
    flex-shrink: 0;
}
.insight-card h3 {
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    font-size: 0.92rem;
    margin: 0 0 6px;
    line-height: 1.3;
    color: var(--text-light);
}
.insight-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.insight-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.68rem;
    color: var(--text-dim);
}
.insight-source { color: var(--iv-cyan); text-decoration: none; font-size: 0.68rem; }
.insight-source:hover { text-decoration: underline; }

/* CTA BUTTON */
.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient-tech);
    color: var(--text-light);
    font-family: var(--font-display);
    font-weight: var(--weight-bold);
    font-size: 0.95rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(33,150,243,0.25);
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(33,150,243,0.35);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-glass);
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-logo { height: 36px; margin-bottom: 12px; opacity: 0.7; }
.footer p { font-size: 0.78rem; color: var(--text-dim); }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--iv-cyan); }
.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 0.75rem;
}

/* RESPONSIVE */
@media (max-width: 700px) {
    .nav { padding: 12px 16px; }
    .nav-brand img { height: 28px; }
    .nav-brand span { font-size: 0.9rem; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 0.78rem; }
    .nav-cta { padding: 6px 14px; font-size: 0.78rem; }
    .section { padding: 48px 16px; }
    .section h2 { font-size: 1.3rem; }
    .insights-feed { grid-template-columns: 1fr; }
    .insight-card .insight-img { aspect-ratio: 16 / 9; }
    .footer-links { flex-wrap: wrap; gap: 12px; }
    .footer-logo { height: 28px; }
}
