
/* ========================================
   IMPERIAL CODECENTER — PAGE STYLES
   ======================================== */

.icc-page {
    --icc-accent: #58a6ff;
    --icc-accent-bright: #8bc4ff;
    --icc-accent-bg: #162b42;
    --icc-green: #7bc96f;

    min-height: 100vh;
}

/* Header */

.icc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.icc-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.icc-brand img {
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

.icc-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.icc-navigation a {
    color: var(--muted);
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 180ms ease;
}

.icc-navigation a:hover,
.icc-navigation a:focus-visible {
    color: var(--icc-accent-bright);
}

/* Main layout */

.icc-main {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
}

.icc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
    gap: clamp(32px, 6vw, 70px);
    padding: clamp(48px, 8vw, 90px) 0 68px;
    border-bottom: 1px solid var(--border);
}

.icc-hero-content {
    min-width: 0;
}

.icc-eyebrow {
    margin: 0 0 14px;
    color: var(--icc-accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.icc-title-row {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.icc-title-row h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -2px;
    overflow-wrap: anywhere;
}

.icc-title-row h1 span {
    color: var(--icc-accent);
}

.icc-subtitle {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: clamp(0.98rem, 2vw, 1.16rem);
    line-height: 1.6;
}

.icc-version {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    padding: 7px 10px;
    color: var(--icc-accent-bright);
    background: var(--icc-accent-bg);
    border: 1px solid rgb(88 166 255 / 30%);
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.icc-intro {
    max-width: 620px;
    margin: 25px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.icc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
}

.icc-badges span {
    padding: 7px 10px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.78rem;
}

.icc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 28px;
}

.icc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    transition:
        transform 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease;
}

.icc-button:hover {
    transform: translateY(-2px);
}

.icc-button-primary {
    color: #091522;
    background: var(--icc-accent);
}

.icc-button-primary:hover {
    background: var(--icc-accent-bright);
}

.icc-button-secondary {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

.icc-button-secondary:hover {
    border-color: var(--icc-accent);
}

.icc-hero-note {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 0.83rem;
    line-height: 1.7;
}

/* Hero terminal illustration */

.icc-hero-visual {
    min-width: 0;
}

.icc-terminal {
    overflow: hidden;
    background: #0c131d;
    border: 1px solid #2b4056;
    border-radius: 14px;
    box-shadow:
        0 25px 60px rgb(0 0 0 / 22%),
        0 0 40px rgb(88 166 255 / 5%);
}

.icc-terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    background: #131e2b;
    border-bottom: 1px solid #263649;
}

.icc-terminal-bar > span {
    width: 9px;
    height: 9px;
    background: #536477;
    border-radius: 50%;
}

.icc-terminal-bar > span:first-child {
    background: #e68a82;
}

.icc-terminal-bar > span:nth-child(2) {
    background: #eac45e;
}

.icc-terminal-bar > span:nth-child(3) {
    background: #7bc96f;
}

.icc-terminal-bar p {
    margin: 0 0 0 8px;
    color: #91a4b9;
    font-size: 0.76rem;
}

.icc-terminal-body {
    padding: 22px 18px;
}

.icc-terminal-muted {
    margin: 0 0 9px;
    color: #8294a8;
    font-size: 0.76rem;
}

.icc-terminal-query {
    margin: 0;
    color: #e6edf3;
    font-size: 0.87rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.icc-terminal-query span {
    color: var(--icc-accent);
    font-weight: 800;
}

.icc-terminal-divider {
    height: 1px;
    margin: 19px 0;
    background: #263649;
}

.icc-terminal-success {
    margin: 0 0 13px;
    color: #8cda91;
    font-size: 0.79rem;
}

.icc-terminal-file {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 10px;
    background: #121d29;
    border: 1px solid #243548;
    border-radius: 8px;
}

.icc-file-icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #8bc4ff;
    background: #1a3149;
    border-radius: 7px;
    font-size: 0.68rem;
    font-weight: 800;
}

.icc-file-python {
    color: #eac45e;
    background: #342e1c;
}

.icc-file-doc {
    color: #7bc96f;
    background: #193426;
}

.icc-terminal-file > span:nth-child(2) {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.icc-terminal-file strong {
    color: #e6edf3;
    font-size: 0.79rem;
    overflow-wrap: anywhere;
}

.icc-terminal-file small {
    color: #8294a8;
    font-size: 0.7rem;
}

.icc-file-score {
    color: #8cda91;
    font-size: 0.65rem;
    white-space: nowrap;
}

.icc-terminal-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #8294a8;
    font-size: 0.72rem;
}

.icc-terminal-footer span,
.icc-pulse {
    width: 7px;
    height: 7px;
    background: var(--icc-green);
    border-radius: 50%;
}

.icc-visual-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
    color: var(--muted);
    font-size: 0.8rem;
}

.icc-pulse {
    box-shadow: 0 0 0 4px rgb(123 201 111 / 12%);
}

/* Sections */

.icc-section {
    padding: 65px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.icc-section-heading {
    max-width: 750px;
    margin-bottom: 28px;
}

.icc-section-heading h2,
.icc-status-top h2,
.icc-cta h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    letter-spacing: -0.7px;
}

.icc-section-heading > p:last-child,
.icc-cta p:not(.icc-eyebrow) {
    color: var(--muted);
    line-height: 1.8;
}

/* Feature cards */

.icc-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.icc-card {
    --icc-card-accent: var(--icc-accent);

    position: relative;
    min-width: 0;
    padding: 24px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--icc-card-accent);
    border-radius: 13px;
    transition:
        transform 240ms ease,
        border-color 240ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease;
}

.icc-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: var(--icc-card-accent);
    box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
}

.icc-card-search {
    --icc-card-accent: #58a6ff;
}

.icc-card-sources {
    --icc-card-accent: #7bc96f;
}

.icc-card-local {
    --icc-card-accent: #56b6a0;
}

.icc-card-flexible {
    --icc-card-accent: #eac45e;
}

.icc-feature-number {
    position: absolute;
    top: 20px;
    right: 22px;
    color: var(--icc-card-accent);
    opacity: 0.75;
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.icc-feature-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    place-items: center;
    color: var(--icc-card-accent);
    background: color-mix(in srgb, var(--icc-card-accent) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--icc-card-accent) 25%, var(--border));
    border-radius: 11px;
    font-size: 1.5rem;
}

.icc-card h3 {
    margin: 0 0 10px;
    color: var(--icc-card-accent);
    font-size: 1.17rem;
}

.icc-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

/* Workflow */

.icc-workflow {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.icc-workflow-step {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 9px 0;
}

.icc-step-number {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--icc-accent-bright);
    background: var(--icc-accent-bg);
    border: 1px solid rgb(88 166 255 / 25%);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
}

.icc-workflow-step > div {
    min-width: 0;
}

.icc-workflow-step h3 {
    margin: 2px 0 6px;
    color: var(--text);
    font-size: 1.04rem;
}

.icc-workflow-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.icc-workflow-connector {
    width: 2px;
    height: 22px;
    margin: 0 0 0 19px;
    background: #2e4c69;
}

/* AI providers */

.icc-provider-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.icc-provider-panel {
    min-width: 0;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
}

.icc-provider-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.icc-provider-dot {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 50%;
}

.icc-dot-local {
    background: #7bc96f;
    box-shadow: 0 0 0 4px rgb(123 201 111 / 12%);
}

.icc-dot-remote {
    background: #58a6ff;
    box-shadow: 0 0 0 4px rgb(88 166 255 / 12%);
}

.icc-provider-heading h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 1.13rem;
}

.icc-provider-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.icc-provider-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 23px;
}

.icc-provider-list span {
    padding: 8px 10px;
    color: var(--text);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.82rem;
}

.icc-provider-note {
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.75;
}

.icc-provider-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding: 20px;
    background: var(--icc-accent-bg);
    border: 1px solid rgb(88 166 255 / 25%);
    border-radius: 11px;
}

.icc-provider-count strong {
    color: var(--icc-accent-bright);
    font-size: 2rem;
    line-height: 1;
}

.icc-provider-count span {
    color: var(--text);
    font-size: 0.92rem;
}

/* Technology stack */

.icc-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.icc-tech-card {
    min-width: 0;
    padding: 21px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease;
}

.icc-tech-card:hover {
    transform: translateY(-4px);
    background: var(--surface-hover);
    border-color: #42617f;
}

.icc-tech-tag {
    display: inline-block;
    margin-bottom: 17px;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.icc-tag-rust {
    color: #ffb58b;
    background: #38271f;
}

.icc-tag-python {
    color: #eac45e;
    background: #352f1b;
}

.icc-tag-database {
    color: #8bc4ff;
    background: #162b42;
}

.icc-tag-web {
    color: #7bc96f;
    background: #153326;
}

.icc-tag-docker {
    color: #75d0e8;
    background: #16313a;
}

.icc-tech-card h3 {
    margin: 0 0 9px;
    color: var(--text);
    font-size: 1.03rem;
    overflow-wrap: anywhere;
}

.icc-tech-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.8;
}

/* Project status */

.icc-status-panel {
    margin-top: 45px;
    padding: clamp(23px, 4vw, 35px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--icc-green);
    border-radius: 13px;
}

.icc-status-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.icc-stability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    color: #a0e68f;
    background: #153326;
    border: 1px solid rgb(123 201 111 / 25%);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.icc-stability-badge span {
    width: 7px;
    height: 7px;
    background: var(--icc-green);
    border-radius: 50%;
}

.icc-status-panel > p {
    max-width: 800px;
    margin: 20px 0;
    color: var(--muted);
    line-height: 1.8;
}

.icc-status-divider {
    height: 1px;
    background: var(--border);
}

.icc-status-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-top: 22px;
}

.icc-status-facts > div {
    display: grid;
    gap: 7px;
}

.icc-status-facts span {
    color: var(--muted);
    font-size: 0.82rem;
}

.icc-status-facts strong {
    color: var(--text);
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

/* License */

.icc-license-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 23px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.icc-license-icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #eac45e;
    background: #352f1b;
    border-radius: 11px;
    font-size: 1.5rem;
    font-weight: 800;
}

.icc-license-panel > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.icc-license-panel h3 {
    margin: 0 0 7px;
    color: var(--text);
    font-size: 1rem;
}

.icc-license-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.75;
}

.icc-text-link {
    flex-shrink: 0;
    color: var(--icc-accent-bright);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}

.icc-text-link:hover {
    text-decoration: underline;
}

/* Resources */

.icc-resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.icc-resource-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 11px;
    text-decoration: none;
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        background-color 220ms ease;
}

.icc-resource-card:hover {
    transform: translateY(-3px);
    background: var(--surface-hover);
    border-color: var(--icc-accent);
}

.icc-resource-icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--icc-accent-bright);
    background: var(--icc-accent-bg);
    border-radius: 9px;
    font-size: 1.25rem;
}

.icc-resource-content {
    display: grid;
    flex: 1;
    min-width: 0;
    gap: 5px;
}

.icc-resource-content strong {
    font-size: 0.91rem;
}

.icc-resource-content small {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.icc-resource-arrow {
    color: var(--icc-accent);
}

/* Final call to action */

.icc-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 24px 0 65px;
    padding: clamp(25px, 4vw, 38px);
    background:
        linear-gradient(
            115deg,
            rgb(88 166 255 / 10%),
            transparent 75%
        ),
        var(--surface);
    border: 1px solid #2c4864;
    border-radius: 14px;
}

.icc-cta > div {
    max-width: 680px;
}

.icc-cta p:not(.icc-eyebrow) {
    margin-bottom: 0;
}

.icc-cta .icc-button {
    flex-shrink: 0;
}

/* Footer */

.icc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    padding: 25px 0 35px;
    border-top: 1px solid var(--border);
}

.icc-footer a {
    color: var(--icc-accent-bright);
    text-decoration: none;
}

.icc-footer a:hover {
    text-decoration: underline;
}

.icc-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* Back-to-top button */

.icc-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #091522;
    background: var(--icc-accent);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 18px rgb(0 0 0 / 25%);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 180ms ease,
        background-color 180ms ease;
}

.icc-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.icc-back-to-top:hover {
    background: var(--icc-accent-bright);
}

/* Scroll reveal */

.icc-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 500ms ease,
        transform 500ms ease;
}

.icc-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive layout */

@media (max-width: 850px) {
    .icc-hero {
        grid-template-columns: 1fr;
    }

    .icc-hero-visual {
        width: min(100%, 540px);
    }

    .icc-tech-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .icc-license-panel {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .icc-text-link {
        margin-left: 64px;
    }
}

@media (max-width: 650px) {
    .icc-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .icc-navigation {
        justify-content: flex-start;
        gap: 12px 17px;
    }

    .icc-feature-grid,
    .icc-provider-layout,
    .icc-resources-grid {
        grid-template-columns: 1fr;
    }

    .icc-status-facts {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .icc-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .icc-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .icc-main,
    .icc-header,
    .icc-footer {
        width: calc(100% - 28px);
    }

    .icc-title-row h1 {
        font-size: clamp(2.1rem, 11vw, 3rem);
        letter-spacing: -1.2px;
    }

    .icc-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .icc-actions .icc-button {
        width: 100%;
    }

    .icc-terminal-body {
        padding: 16px 12px;
    }

    .icc-terminal-file {
        gap: 8px;
        padding: 8px;
    }

    .icc-file-score {
        display: none;
    }

    .icc-workflow {
        padding: 17px;
    }

    .icc-workflow-step {
        gap: 12px;
    }

    .icc-step-number {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .icc-workflow-connector {
        margin-left: 16px;
    }

    .icc-provider-count {
        align-items: flex-start;
    }

    .icc-license-panel {
        padding: 18px;
    }

    .icc-text-link {
        margin-left: 0;
    }

    .icc-cta .icc-button {
        width: 100%;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .icc-page *,
    .icc-page *::before,
    .icc-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .icc-reveal {
        opacity: 1;
        transform: none;
    }

    .icc-card:hover,
    .icc-tech-card:hover,
    .icc-resource-card:hover,
    .icc-button:hover {
        transform: none;
    }
}
