/* ═══════════════════════════════════════════════════════
   Jinni AI — Cognitive Noir Design System
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
    --bg-deep: #0A0A14;
    --bg-card: rgba(30, 30, 46, 0.6);
    --bg-card-solid: #1E1E2E;
    --border: rgba(45, 45, 68, 0.6);
    --violet: #7B2FBE;
    --violet-deep: #4A0E8F;
    --coral: #E94560;
    --green: #10B981;
    --amber: #F59E0B;
    --text: #E2E8F0;
    --text-dim: #94A3B8;
    --text-muted: #64748B;
    --white: #F8FAFC;
    --glow-violet: rgba(123, 47, 190, 0.3);
    --glow-coral: rgba(233, 69, 96, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --blur: 24px;
    --max-width: 1200px;
}

/* ── Reset ──────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ── Ambient Background ─────────────────────────────── */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--glow-violet), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--glow-coral), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: ambientDrift 25s ease-in-out infinite alternate-reverse;
}

@keyframes ambientDrift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* ── Typography ─────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

a {
    color: var(--violet);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--coral);
}

/* ── Layout ─────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

section {
    padding: 80px 0;
}

/* ── Nav ────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--violet), var(--coral));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--violet), var(--coral));
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-violet);
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 60px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 40px;
    background: rgba(123, 47, 190, 0.15);
    border: 1px solid rgba(123, 47, 190, 0.3);
    color: var(--violet);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--violet), var(--coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--violet), var(--coral));
    border: none;
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero-cta:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--glow-violet);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 64px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Badges ─────────────────────────────────────────── */
.badge-violet {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(123, 47, 190, 0.2);
    border: 1px solid rgba(123, 47, 190, 0.4);
    color: var(--violet);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

.badge-coral {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(233, 69, 96, 0.2);
    border: 1px solid rgba(233, 69, 96, 0.4);
    color: var(--coral);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 12px;
}

/* ── Hero Core SVG Animation ────────────────────────── */
.hero-core-animation {
    margin-top: 20px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.core-pulse {
    animation: coreBreathing 4s ease-in-out infinite;
}

.orbit-rings {
    animation: slowRotate 20s linear infinite;
    transform-origin: 200px 150px;
}

.inner-core {
    animation: pulseBorder 3s infinite alternate;
}

.eye-of-jinni {
    animation: pulseEye 2s infinite alternate;
}

@keyframes coreBreathing {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
        transform-origin: 200px 150px;
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        transform-origin: 200px 150px;
    }
}

@keyframes slowRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseBorder {
    0% {
        stroke-width: 1;
        stroke: var(--violet);
    }

    100% {
        stroke-width: 4;
        stroke: var(--coral);
    }
}

@keyframes pulseEye {
    0% {
        r: 12;
        fill: var(--coral);
        filter: drop-shadow(0 0 10px var(--coral));
    }

    100% {
        r: 16;
        fill: var(--white);
        filter: drop-shadow(0 0 20px var(--coral));
    }
}

/* ── Section Headers ────────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.section-header h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* ── C-Suite Grid ───────────────────────────────────── */
.c-suite-section {
    padding: 80px 0;
}

.c-suite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.persona-card {
    background: linear-gradient(180deg, rgba(30, 30, 46, 0.6) 0%, rgba(10, 10, 20, 0.4) 100%);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    border-top: 2px solid;
    transition: transform 0.3s, box-shadow 0.3s;
}

.persona-card:nth-child(1) {
    border-top-color: var(--violet);
}

.persona-card:nth-child(2) {
    border-top-color: var(--green);
}

.persona-card:nth-child(3) {
    border-top-color: var(--amber);
}

.persona-card:nth-child(4) {
    border-top-color: var(--coral);
}

.persona-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.persona-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.persona-card h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

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

/* ── Bento Box Grid ─────────────────────────────────── */
.bento-section {
    padding: 80px 0 120px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-top: 48px;
}

.bento-box {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s;
}

.bento-box:hover {
    border-color: rgba(123, 47, 190, 0.5);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.bento-medium {
    grid-column: span 1;
}

.bento-glow {
    background: linear-gradient(135deg, rgba(30, 30, 46, 0.8), rgba(123, 47, 190, 0.15));
}

.bento-wide {
    grid-column: span 3;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    background: linear-gradient(90deg, rgba(30, 30, 46, 0.8), rgba(10, 10, 20, 0.6));
}

.bento-content {
    flex: 1;
    z-index: 2;
}

.bento-content h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 12px;
}

.bento-content p {
    color: var(--text-dim);
    font-size: 1rem;
}

.bento-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 200px;
    position: relative;
}

/* Audio Wave Animation */
.audio-wave {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 80px;
}

.audio-wave span {
    display: block;
    width: 8px;
    height: 100%;
    background: var(--coral);
    border-radius: 4px;
    animation: wave 1.2s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes wave {

    0%,
    100% {
        height: 20%;
        background: var(--violet);
    }

    50% {
        height: 100%;
        background: var(--coral);
        box-shadow: 0 0 15px var(--coral);
    }
}

/* Memory Nodes Animation */
.memory-nodes {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mnode {
    padding: 12px 24px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.mnode.mactive {
    border-color: var(--violet);
    color: var(--white);
    background: rgba(123, 47, 190, 0.2);
    box-shadow: 0 0 20px var(--glow-violet);
}

.mline {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--border), var(--violet));
    position: relative;
    overflow: hidden;
}

.mline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--coral), transparent);
    animation: dataFlow 2s infinite;
}

@keyframes dataFlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ── Deployment Steps ───────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.deployment-steps .step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s;
}

.deployment-steps .step:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 69, 96, 0.4);
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.step h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

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

/* ── CTA Section ────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 80px 0;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

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

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

/* ── Legal Pages ────────────────────────────────────── */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--white);
}

.legal-content .legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2 {
    font-size: 1.3rem;
    color: var(--white);
    margin-top: 36px;
    margin-bottom: 12px;
}

.legal-content h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p,
.legal-content li {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
}

.legal-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content a {
    color: var(--violet);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-medium,
    .bento-wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 6vw, 2.5rem);
    }

    .bento-visual {
        min-height: 150px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
        margin-top: 40px;
        padding-top: 32px;
    }

    .c-suite-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .legal-content {
        padding: 32px 20px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }
}