:root {
    --intel-ink: #07111f;
    --intel-amber: #f59e0b;
    --intel-gold: #facc15;
    --intel-cyan: #8be3ff;
    --intel-blue: #52b8e0;
    --intel-muted: #64748b;
    --intel-line: #dce6ef;
}

@property --tab-progress {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.intelligence-page {
    background: #f4f8fc;
}

.intel-hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    padding: calc(var(--nav-height) + 4rem) 0 5rem;
    background:
        radial-gradient(ellipse at 78% 24%, rgba(245,158,11,0.2), transparent 28rem),
        radial-gradient(ellipse at 20% 70%, rgba(82,184,224,0.2), transparent 34rem),
        linear-gradient(135deg, #06101d 0%, #0b2036 48%, #090b13 100%);
    color: #f8fbff;
}

.intel-hero__field {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(139,227,255,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,227,255,0.07) 1px, transparent 1px),
        radial-gradient(circle at 70% 34%, rgba(245,158,11,0.22) 0 1px, transparent 1.8px);
    background-size: 76px 76px, 76px 76px, 29px 29px;
    mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 0%, transparent 82%);
}

.intel-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.72fr);
    gap: clamp(3rem, 5.6vw, 6rem);
    align-items: center;
}

.intel-hero h1 {
    max-width: 980px;
    margin: 1.25rem 0 1.5rem;
    color: #f8fbff;
    font-family: var(--font-display);
    font-size: clamp(3.8rem, 5.45vw, 7.1rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.05em;
}

.intel-hero p {
    max-width: 760px;
    color: rgba(226,239,255,0.78);
    font-size: clamp(1.08rem, 1.35vw, 1.35rem);
    line-height: 1.7;
}

.intel-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-accent {
    background: linear-gradient(135deg, var(--intel-amber), #ffd166);
    color: #07111f;
    border: 0;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(245,158,11,0.28);
}

.intel-hero__visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(250,204,21,0.22);
    border-radius: 42px;
    background: #07111f;
    box-shadow: 0 34px 100px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.04);
}

.intel-hero__visual img {
    width: 100%;
    height: 100%;
    min-height: 620px;
    object-fit: cover;
    opacity: 0.86;
    transform: scale(1.04);
}

.intel-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 54% 44%, transparent 0 32%, rgba(6,16,29,0.56) 78%);
}

.intel-orbit,
.intel-pulse-card {
    position: absolute;
    z-index: 2;
    border: 1px solid rgba(250,204,21,0.2);
    background: rgba(7,17,31,0.7);
    color: rgba(248,251,255,0.88);
    backdrop-filter: blur(16px);
}

.intel-orbit {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    animation: intel-float 7s ease-in-out infinite;
}

.intel-orbit--one { left: 1.2rem; bottom: 8rem; }
.intel-orbit--two { right: 1.4rem; top: 6rem; animation-delay: -2s; }
.intel-orbit--three { left: 2rem; top: 2rem; animation-delay: -4s; }

.intel-pulse-card {
    right: 1.4rem;
    bottom: 1.4rem;
    width: min(58%, 360px);
    display: grid;
    gap: 0.3rem;
    padding: 1.2rem;
    border-radius: 24px;
}

.intel-pulse-card span,
.intel-pulse-card small {
    color: rgba(226,239,255,0.64);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intel-pulse-card strong {
    color: #fff8e6;
    font-size: 1.25rem;
}

.architecture-section,
.engine-section,
.capital-section,
.status-section {
    padding: clamp(6rem, 10vw, 9rem) 0;
}

.architecture-layout,
.capital-layout,
.status-layout {
    display: grid;
    grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
}

.architecture-copy h2,
.capital-copy h2,
.status-copy h2,
.engine-head h2 {
    color: var(--intel-ink);
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 5vw, 5.6rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.055em;
    margin: 1rem 0 1.35rem;
}

.architecture-copy p,
.capital-copy p,
.status-copy p {
    max-width: 720px;
    color: #526176;
    font-size: 1.08rem;
    line-height: 1.8;
}

.architecture-stack {
    position: relative;
    display: grid;
    gap: 1rem;
}

.arch-layer {
    width: 100%;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #dce6ef;
    border-radius: 22px;
    background: #fff;
    color: var(--intel-ink);
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.arch-layer:hover,
.arch-layer.is-active {
    transform: translateX(-8px);
    border-color: rgba(245,158,11,0.55);
    box-shadow: 0 24px 60px rgba(10,25,45,0.09);
}

.arch-layer span {
    display: grid;
    width: 48px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 16px;
    background: rgba(245,158,11,0.12);
    color: #a16207;
    font-family: var(--font-mono);
    font-weight: 900;
}

.arch-layer strong {
    font-size: 1.12rem;
}

.arch-layer small {
    grid-column: 2;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.55;
}

.arch-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    max-height: 0;
    margin-top: 0;
    padding: 0 0.95rem;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #07111f, #0d2d4c);
    color: rgba(248,251,255,0.86);
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, margin-top 0.28s ease, padding 0.28s ease, opacity 0.2s ease, transform 0.28s ease;
}

.arch-layer.is-active .arch-note {
    max-height: 110px;
    margin-top: 0.15rem;
    padding: 0.82rem 0.95rem;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.arch-note i {
    flex: 0 0 auto;
    width: 23px;
    color: var(--intel-amber);
}

.engine-section {
    background:
        radial-gradient(ellipse at 82% 24%, rgba(245,158,11,0.16), transparent 28rem),
        linear-gradient(145deg, #07111f, #0b2036 58%, #06101d);
    color: #f8fbff;
}

.engine-board {
    display: grid;
    gap: 3rem;
}

.engine-head {
    display: grid;
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
}

.engine-head h2 {
    color: #f8fbff;
}

.engine-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(139,227,255,0.16);
    border-radius: 30px;
    background: rgba(8,24,42,0.75);
}

.engine-step {
    position: relative;
    min-height: 190px;
    display: grid;
    place-items: end start;
    padding: 1.35rem;
    border-left: 1px solid rgba(139,227,255,0.12);
    color: rgba(226,239,255,0.78);
}

.engine-step:first-child {
    border-left: 0;
}

.engine-step::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 1.35rem;
    width: 18px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(139,227,255,0.28);
    box-shadow: 0 0 0 0 rgba(245,158,11,0.34);
    animation: step-pulse 2.5s ease-in-out infinite;
}

.engine-step.is-lit::before {
    background: var(--intel-amber);
}

.engine-step span {
    max-width: 150px;
    font-weight: 900;
}

.capital-section {
    background: #eef5fb;
}

.capital-visual {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    border-radius: 36px;
    background: #07111f;
    box-shadow: 0 30px 90px rgba(10,25,45,0.13);
}

.capital-visual img {
    width: 100%;
    height: 100%;
    min-height: 580px;
    object-fit: cover;
    opacity: 0.82;
}

.decision-card {
    position: absolute;
    display: grid;
    gap: 0.25rem;
    min-width: 148px;
    padding: 1rem;
    border: 1px solid rgba(250,204,21,0.22);
    border-radius: 20px;
    background: rgba(7,17,31,0.72);
    color: #fff8e6;
    backdrop-filter: blur(14px);
}

.decision-card span {
    color: var(--intel-amber);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
}

.decision-card--act { left: 1.4rem; top: 1.4rem; }
.decision-card--prep { right: 1.4rem; top: 42%; }
.decision-card--watch { left: 2rem; bottom: 1.6rem; }

.feed-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 1.8rem 0 1rem;
}

.feed-tab {
    position: relative;
    isolation: isolate;
    min-height: 42px;
    padding: 0 0.9rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #0f2742;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px #dce6ef;
    overflow: hidden;
}

.feed-tab::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from -90deg, var(--intel-amber) var(--tab-progress, 0%), transparent 0);
    opacity: 0;
}

.feed-tab::after {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: inherit;
    background: #fff;
}

.feed-tab.is-active {
    background: rgba(245,158,11,0.12);
    box-shadow: none;
}

.feed-tab.is-active::before {
    opacity: 1;
    animation: tab-progress 12s linear forwards;
}

.feed-tab.is-active::after {
    background: #fff8e6;
}

.feed-panel {
    min-height: 190px;
    padding: 1.35rem;
    border: 1px solid rgba(245,158,11,0.22);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(10,25,45,0.08);
}

.feed-panel i {
    width: 30px;
    color: var(--intel-amber);
}

.feed-panel h3 {
    margin: 0.75rem 0 0.35rem;
    color: var(--intel-ink);
    font-size: 1.45rem;
}

.feed-panel p {
    margin: 0;
}

.status-section {
    background: #fff;
}

.early-form {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #dce6ef;
    border-radius: 28px;
    background: #f8fbff;
    box-shadow: 0 26px 80px rgba(10,25,45,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.early-form label {
    display: grid;
    gap: 0.45rem;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 900;
}

.early-form input,
.early-form textarea {
    width: 100%;
    border: 1px solid #d7e4ef;
    border-radius: 14px;
    background: #fff;
    color: #07111f;
    font: inherit;
    padding: 0.85rem 0.95rem;
    outline: 0;
}

.early-form input:focus,
.early-form textarea:focus {
    border-color: var(--intel-amber);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}

.form-note {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

@keyframes intel-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.34); }
    50% { box-shadow: 0 0 0 12px rgba(245,158,11,0); }
}

@keyframes tab-progress {
    from { --tab-progress: 0%; }
    to { --tab-progress: 100%; }
}

@media (max-width: 1120px) {
    .intel-hero__inner,
    .architecture-layout,
    .capital-layout,
    .status-layout,
    .engine-head {
        grid-template-columns: 1fr;
    }

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

    .engine-step {
        min-height: 110px;
        border-left: 0;
        border-top: 1px solid rgba(139,227,255,0.12);
    }

    .engine-step:first-child {
        border-top: 0;
    }
}

@media (max-width: 760px) {
    .intel-hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 3.5rem);
    }

    .intel-hero h1 {
        font-size: clamp(3.1rem, 12vw, 4.7rem);
    }

    .intel-hero__visual,
    .intel-hero__visual img,
    .capital-visual,
    .capital-visual img {
        min-height: 440px;
    }

    .intel-pulse-card,
    .decision-card {
        width: auto;
        min-width: 0;
    }

    .intel-orbit {
        display: none;
    }

    .arch-layer,
    .arch-layer:hover,
    .arch-layer.is-active {
        transform: none;
    }

    .arch-layer {
        border-color: rgba(245,158,11,0.34);
    }

    .arch-note {
        max-height: 120px;
        margin-top: 0.15rem;
        padding: 0.82rem 0.95rem;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
