/* ==========================================
   AI AUTOMATION DEMO
   CB WEB & GIS
========================================== */

:root {
    --background: #100b1d;
    --background-dark: #090611;
    --surface: #1c1233;
    --surface-light: #281847;

    --orange: #ff7a1a;
    --orange-light: #ffad66;

    --violet: #a855f7;
    --violet-light: #d8b4fe;

    --lime: #a3e635;

    --white: #f8f5ff;
    --muted: #b8aec9;

    --border: rgba(255, 255, 255, 0.10);
}


/* ==========================================
   RESET
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--white);
    background: var(--background);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
}

[hidden] {
    display: none !important;
}

#automation-demo,
#workflow,
#benefits {
    scroll-margin-top: 100px;
}


/* ==========================================
   DEMO BANNER
========================================== */

.demo-banner {
    min-height: 42px;
    padding: 10px 6%;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    color: #1a0b05;
    background:
        linear-gradient(
            90deg,
            var(--orange),
            #ff9a3d
        );

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.banner-divider {
    color: rgba(26, 11, 5, 0.55);
}


/* ==========================================
   HEADER
========================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(16, 11, 29, 0.92);
    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(18px);
}

.navbar {
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 20px 6%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    color: var(--white);

    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.3px;
}

.brand::before {
    content: "";
    display: inline-block;

    width: 10px;
    height: 10px;
    margin-right: 10px;

    background: var(--orange);
    border-radius: 3px;

    box-shadow:
        6px -6px 0 var(--violet);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    color: var(--muted);

    font-size: 14px;
    font-weight: 700;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.main-nav a:hover {
    color: var(--orange);
    transform: translateY(-2px);
}


/* ==========================================
   BACK BAR
========================================== */

.demo-back-bar {
    padding: 13px 6%;

    background: #160e28;
    border-bottom: 1px solid var(--border);
}

.back-to-portfolio {
    color: var(--orange-light);

    font-size: 14px;
    font-weight: 800;
}

.back-to-portfolio:hover {
    color: var(--white);
}


/* ==========================================
   HERO
========================================== */

.hero {
    position: relative;
    overflow: hidden;

    padding: 90px 6% 110px;

    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(168, 85, 247, 0.22),
            transparent 35%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(255, 122, 26, 0.15),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #100b1d,
            #170d2c 55%,
            #0c0815
        );
}

.hero::before {
    content: "";

    position: absolute;
    top: 40px;
    left: 48%;

    width: 420px;
    height: 420px;

    border: 1px solid rgba(168, 85, 247, 0.12);
    border-radius: 50%;

    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 2;

    width: min(1400px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(500px, 1.1fr);

    align-items: center;
    gap: 70px;
}


/* ==========================================
   HERO TEXT
========================================== */

.hero-label,
.section-label {
    margin-bottom: 18px;

    color: var(--orange);

    font-size: 13px;
    font-weight: 900;
    letter-spacing: 3px;
}

.hero h1 {
    max-width: 680px;
    margin-bottom: 28px;

    font-size: clamp(52px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -4px;
}

.hero h1 span {
    display: block;

    color: transparent;

    background:
        linear-gradient(
            90deg,
            var(--orange),
            var(--violet-light)
        );

    background-clip: text;
    -webkit-background-clip: text;
}

.hero-description {
    max-width: 650px;
    margin-bottom: 34px;

    color: var(--muted);

    font-size: 19px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}


/* ==========================================
   BUTTONS
========================================== */

.primary-btn,
.secondary-btn,
.automation-btn {
    min-height: 52px;
    padding: 14px 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-weight: 900;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}
.automation-btn:disabled {
    opacity: 0.70;
    cursor: wait;
    transform: none;
}
.primary-btn,
.automation-btn {
    color: #180b03;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            #ff9d4d
        );

    box-shadow:
        0 14px 34px rgba(255, 122, 26, 0.24);
}

.primary-btn:hover,
.automation-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 18px 42px rgba(255, 122, 26, 0.35);
}

.secondary-btn {
    color: var(--white);

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(216, 180, 254, 0.35);
}

.secondary-btn:hover {
    transform: translateY(-3px);

    background: rgba(168, 85, 247, 0.12);
    border-color: var(--violet-light);
}


/* ==========================================
   HERO BENEFITS
========================================== */

.hero-benefits {
    margin-top: 46px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.hero-benefits div {
    padding: 16px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.hero-benefits strong,
.hero-benefits span {
    display: block;
}

.hero-benefits strong {
    margin-bottom: 3px;

    color: var(--violet-light);
    font-size: 18px;
}

.hero-benefits span {
    color: var(--muted);
    font-size: 12px;
}


/* ==========================================
   AUTOMATION CONSOLE
========================================== */

.automation-console {
    position: relative;

    padding: 30px;

    background:
        linear-gradient(
            155deg,
            rgba(42, 25, 75, 0.96),
            rgba(20, 12, 38, 0.98)
        );

    border: 1px solid rgba(216, 180, 254, 0.22);
    border-radius: 26px;

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.38),
        0 0 60px rgba(168, 85, 247, 0.08);
}

.automation-console::before {
    content: "";

    position: absolute;
    inset: -1px;
    z-index: -1;

    border-radius: 27px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 122, 26, 0.50),
            transparent 35%,
            rgba(168, 85, 247, 0.45)
        );
}

.console-header {
    margin-bottom: 25px;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.console-label {
    margin-bottom: 3px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.console-header h2 {
    font-size: 28px;
}

.demo-status {
    padding: 7px 11px;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: var(--lime);
    background: rgba(163, 230, 53, 0.09);
    border: 1px solid rgba(163, 230, 53, 0.25);
    border-radius: 999px;

    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;

    background: var(--lime);
    border-radius: 50%;

    box-shadow:
        0 0 12px rgba(163, 230, 53, 0.80);

    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(0.75);
    }
}


/* ==========================================
   FORM
========================================== */

.automation-form {
    display: grid;
    gap: 18px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: var(--violet-light);

    font-size: 13px;
    font-weight: 800;
}

.form-group select,
.form-group textarea {
    width: 100%;

    color: var(--white);
    background: rgba(7, 4, 15, 0.56);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.form-group select {
    min-height: 48px;
    padding: 0 14px;
}

.form-group textarea {
    padding: 14px;
    resize: vertical;
}

.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--violet);

    box-shadow:
        0 0 0 4px rgba(168, 85, 247, 0.12);
}

.form-group select option {
    color: var(--white);
    background: var(--surface);
}

.automation-btn {
    width: 100%;
    margin-top: 3px;
}


/* ==========================================
   PROCESS STATUS
========================================== */

.process-status {
    margin-top: 24px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
}

.process-step {
    min-height: 82px;
    padding: 12px 9px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #776d89;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;

    text-align: center;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.process-step span {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;

    font-size: 11px;
    font-weight: 900;
}

.process-step p {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

.process-step.active {
    color: var(--orange-light);

    background: rgba(255, 122, 26, 0.08);
    border-color: rgba(255, 122, 26, 0.35);

    transform: translateY(-2px);
}

.process-step.active span {
    color: #190b03;
    background: var(--orange);
}

.process-step.completed {
    color: var(--lime);

    background: rgba(163, 230, 53, 0.07);
    border-color: rgba(163, 230, 53, 0.25);
}

.process-step.completed span {
    color: #101803;
    background: var(--lime);
}


/* ==========================================
   AUTOMATION RESULT
========================================== */

.automation-result {
    margin-top: 22px;
    padding: 20px;

    background: rgba(8, 5, 16, 0.55);
    border: 1px solid rgba(163, 230, 53, 0.23);
    border-radius: 16px;

    animation: resultReveal 0.5s ease;
}

@keyframes resultReveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-heading {
    margin-bottom: 17px;

    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.result-heading p {
    color: var(--lime);

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.result-heading h3 {
    font-size: 20px;
}

.completed-badge {
    height: fit-content;
    padding: 5px 9px;

    color: var(--lime);
    background: rgba(163, 230, 53, 0.08);
    border-radius: 999px;

    font-size: 11px;
    font-weight: 900;
}

.result-grid {
    margin-bottom: 14px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.result-item,
.generated-reply,
.automatic-action {
    padding: 13px;

    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
}

.result-item span,
.generated-reply > span,
.automatic-action div span {
    display: block;

    color: var(--muted);

    font-size: 11px;
}

.result-item strong {
    color: var(--violet-light);
    font-size: 13px;
}

.generated-reply {
    margin-bottom: 10px;
}

.generated-reply p {
    margin-top: 6px;

    color: #ddd5e8;
    font-size: 13px;
    line-height: 1.6;
}

.automatic-action {
    display: flex;
    align-items: center;
    gap: 11px;
}

.action-icon {
    flex: 0 0 32px;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    color: #111803;
    background: var(--lime);
    border-radius: 50%;

    font-weight: 900;
}

.automatic-action strong {
    display: block;

    color: var(--lime);
    font-size: 13px;
}


/* ==========================================
   SHARED SECTION HEADING
========================================== */

.section-heading {
    max-width: 780px;
    margin-bottom: 48px;
}

.section-heading > p {
    margin-bottom: 10px;

    color: var(--orange);

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.5px;
}

.section-heading h2 {
    margin-bottom: 16px;

    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.section-heading > span {
    color: var(--muted);
    font-size: 17px;
}


/* ==========================================
   WORKFLOW
========================================== */

.workflow-section {
    padding: 100px 6%;

    background: #f7f2ff;
    color: #211533;
}

.workflow-section > * {
    width: min(1400px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.workflow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.workflow-card {
    position: relative;
    min-height: 290px;
    padding: 28px;

    background: #ffffff;
    border: 1px solid rgba(53, 27, 82, 0.10);
    border-radius: 20px;

    box-shadow:
        0 15px 40px rgba(44, 22, 71, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.workflow-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 24px 55px rgba(44, 22, 71, 0.13);
}

.workflow-number {
    position: absolute;
    top: 18px;
    right: 20px;

    color: rgba(98, 50, 139, 0.10);

    font-size: 42px;
    font-weight: 900;
}

.workflow-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 35px;

    display: grid;
    place-items: center;

    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--violet)
        );

    border-radius: 14px;

    font-size: 17px;
    font-weight: 900;

    box-shadow:
        0 10px 24px rgba(168, 85, 247, 0.20);
}

.workflow-card h3 {
    margin-bottom: 12px;

    font-size: 20px;
    line-height: 1.25;
}

.workflow-card p {
    color: #695c78;
    font-size: 15px;
}


/* ==========================================
   BENEFITS
========================================== */

.benefits-section {
    padding: 110px 6%;

    background:
        radial-gradient(
            circle at 80% 50%,
            rgba(255, 122, 26, 0.12),
            transparent 32%
        ),
        var(--background-dark);
}

.benefits-layout {
    width: min(1300px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.benefits-content h2 {
    max-width: 680px;
    margin-bottom: 22px;

    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.06;
    letter-spacing: -2px;
}

.benefits-content > p:last-child {
    max-width: 650px;

    color: var(--muted);
    font-size: 18px;
}

.results-panel {
    padding: 16px;

    display: grid;
    gap: 12px;

    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 22px;
}

.result-stat {
    padding: 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    background:
        linear-gradient(
            120deg,
            rgba(168, 85, 247, 0.13),
            rgba(255, 122, 26, 0.06)
        );

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}

.result-stat strong {
    color: var(--orange-light);
    font-size: 20px;
}

.result-stat span {
    color: var(--muted);
    text-align: right;
}


/* ==========================================
   CTA
========================================== */

.cta-section {
    padding: 100px 6%;

    background:
        linear-gradient(
            135deg,
            #6b21a8,
            #a13b5b 50%,
            #d45c14
        );

    text-align: center;
}

.cta-content {
    width: min(850px, 100%);
    margin: 0 auto;
}

.cta-content > p {
    margin-bottom: 14px;

    color: #ffe4d0;

    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.5px;
}

.cta-content h2 {
    margin-bottom: 30px;

    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.08;
}

.cta-section .primary-btn {
    color: #2a0d02;
    background: #ffffff;

    box-shadow:
        0 15px 35px rgba(40, 10, 2, 0.20);
}


/* ==========================================
   FOOTER
========================================== */

.site-footer {
    padding: 28px 6%;

    color: var(--muted);
    background: #07040d;
    border-top: 1px solid var(--border);

    text-align: center;
    font-size: 14px;
}

.site-footer strong {
    color: var(--white);
}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        max-width: 800px;
    }

    .automation-console {
        width: min(760px, 100%);
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 760px) {

    .demo-banner {
        gap: 7px;

        font-size: 10px;
        letter-spacing: 1px;
    }

    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        width: 100%;

        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .hero {
        padding-top: 65px;
        padding-bottom: 75px;
    }

    .hero-layout {
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(44px, 14vw, 66px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 17px;
    }

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

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
    }

    .automation-console {
        padding: 20px;
        border-radius: 20px;
    }

    .console-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .process-status {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: 58px;

        flex-direction: row;
        justify-content: flex-start;

        text-align: left;
    }

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

    .workflow-section,
    .benefits-section,
    .cta-section {
        padding-top: 75px;
        padding-bottom: 75px;
    }

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

    .workflow-card {
        min-height: auto;
    }

    .result-stat {
        align-items: flex-start;
        flex-direction: column;
    }

    .result-stat span {
        text-align: left;
    }
}


@media (max-width: 430px) {

    .demo-banner {
        align-items: center;
        flex-direction: column;
        gap: 0;
    }

    .banner-divider {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .automation-console {
        padding: 17px;
    }

    .console-header h2 {
        font-size: 24px;
    }

    .section-heading h2,
    .benefits-content h2,
    .cta-content h2 {
        font-size: 35px;
    }
}
