﻿:root {
    --ink: #0b1220;
    --brand: #6b4de6;
    --brand2: #23b0a5;
    --bg: #0f172a;
    --card: #0b1220;
    --ai-accent: #4ade80;
}

/* Reset / base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0b1220;
    color: #ffffff;
}

h1,
h2,
h3 {
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 0.75rem;
}

/* Layout helpers */

.section {
    padding: 56px 20px;
}

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

.grid {
    display: grid;
    gap: 20px;
}

/* HERO */

.hero {
    background: radial-gradient(80% 120% at 80% -10%, rgba(107, 77, 230, 0.35), transparent 60%), radial-gradient(80% 120% at 10% -20%, rgba(35, 176, 165, 0.25), transparent 60%), linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    padding: 96px 20px 72px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.05;
}

.lead {
    font-size: clamp(16px, 1.6vw, 20px);
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.sublead {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

/* Typography bits */

.kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    color: #96a0c3;
    margin-bottom: 0.5rem;
}

    .kicker.ai {
        color: #a5b4fc;
    }

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    opacity: 0.95;
}

.section-intro {
    max-width: 720px;
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

/* Buttons */

.btn {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 0;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    color: #fff;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(107, 77, 230, 0.3);
    }

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
}

    .btn-ghost:hover {
        background: rgba(255, 255, 255, 0.05);
    }

/* Badges */

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    opacity: 0.9;
}

.badge {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-size: 12px;
}

/* Hero side card */

.hero-card {
    background: #020617;
    border-radius: 16px;
    border: 1px solid #1f2937;
    padding: 18px 18px 16px;
    color: #dbe2ff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

/* Generic cards */

.cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: #0b1220;
    border: 1px solid #1f2a44;
    border-radius: 16px;
    padding: 18px;
    color: #dbe2ff;
}

.card-title {
    margin-top: 0;
}

/* Divider line */

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1f2a44, transparent);
    margin: 18px 0;
}

/* Steps (APCD Advisor) */

.apcd-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.step-num {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--brand), var(--brand2));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.step-body {
    font-size: 14px;
}

/* Form */

.form {
    display: grid;
    gap: 12px;
    max-width: 560px;
    margin-top: 24px;
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #dfe3f1;
    background: #fff;
    color: #0b1220;
    font: inherit;
}

    .input:focus {
        outline: 2px solid rgba(107, 77, 230, 0.7);
        outline-offset: 2px;
    }

.note {
    font-size: 13px;
    opacity: 0.8;
}

.message {
    font-size: 14px;
    margin-top: 8px;
}

    .message.ok {
        color: #bbf7d0;
    }

    .message.error {
        color: #fecaca;
    }

/* Footer */

.footer {
    font-size: 13px;
    opacity: 0.75;
    padding: 24px 20px 32px;
    text-align: center;
}

/* Brand lockup */

.brand-lockup {
    height: 85px;
    margin-bottom: 34px;
    opacity: 0.95;
    display: block;
}

/* Section backgrounds */

.section-ecosystem {
    background: #0b1220;
}

.section-apcd {
    background: #0f172a;
}

.section-demo {
    background: #0b1220;
}

/* AI SECTION (Option A + C) */

.section-ai {
    background: #0f172a;
    padding: 56px 20px;
}

.ai-showcase {
    margin-top: 24px;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 820px) {
    .ai-showcase {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.ai-card {
    background: #020617;
    border-radius: 18px;
    border: 1px solid #1f2937;
    padding: 16px 18px 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.55);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.3s ease, background 0.3s ease;
}

    .ai-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
        border-color: rgba(129, 140, 248, 0.7);
    }

.ai-card-question {
    background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.16), transparent 55%), #020617;
}

.ai-card-answer {
    background: radial-gradient(circle at top right, rgba(45, 212, 191, 0.14), transparent 55%), #020617;
}

.ai-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.75;
    margin-bottom: 6px;
}

.ai-box {
    background: #020617;
    border-radius: 12px;
    border: 1px solid #1f2937;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.45;
    color: #e5e7eb;
    min-height: 70px;
}

.ai-box-answer {
    border-color: rgba(45, 212, 191, 0.4);
    color: #a5f3fc;
}

    /* Pulse animation for the answer when it updates */
    .ai-box-answer.ai-pulse {
        animation: aiPulse 0.8s ease-out;
    }

@keyframes aiPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.35);
        border-color: rgba(45, 212, 191, 0.9);
    }

    60% {
        box-shadow: 0 0 18px 4px rgba(45, 212, 191, 0.1);
        border-color: rgba(45, 212, 191, 0.6);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(45, 212, 191, 0);
        border-color: rgba(45, 212, 191, 0.4);
    }
}

/* Platform section */

.section-platform {
    background: #020617;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.platform-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    font-size: 14px;
}

    .platform-list li {
        margin-bottom: 6px;
    }

/* Responsive tweaks */

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-card-wrapper {
        order: -1;
    }

    .hero {
        padding-top: 72px;
    }
}
