/* main*/
.light {
    padding: 50px 10%;
    background-color: white;
}

.light h1, .light p {
    color: black;
}

.base {
    padding: 50px 5%;
}
.inner {
    max-width: 1000px;
    margin: 0 auto;
    font-weight: 400;
}

/* Catalog dmo*/
.catalog {
    background: #e0e0e0;
    padding: 60px 5% 0;
}

.cat-wrapper {
    display: flex;
    gap: 5%;
    margin: 0 auto;
    
}

.cat-controls {
    width: 25%;
    flex-shrink: 0;
    padding: 32px 24px;
    box-sizing: border-box;
    background: #f8f8f8;
    border-radius: 25px 25px 0 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 20px rgb(53, 53, 53);
}

.cat-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #6b7280;
    margin-bottom: 6px;
}

.cat-field input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 9px 12px;
    font-size: 14px;
    color: #111827;
    outline: none;
}

.cat-field input[type="text"]:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.cat-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-color-input {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 2px;
    cursor: pointer;
    background: none;
    flex-shrink: 0;
}

.cat-color-bar {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    position: relative;
    background: #e5e7eb;
    overflow: visible;
}

.cat-color-thumb {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.15), 0 2px 5px rgba(0,0,0,.3);
    pointer-events: none;
}

.cat-field select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    padding: 9px 12px;
    font-size: 14px;
    color: #111827;
    outline: none;
    cursor: pointer;
}

.cat-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: 25px 25px 0 0;
    overflow: hidden;
    background: transparent;
    transition: background-color 0.5s ease;
    box-shadow: 0 10px 20px rgb(53, 53, 53);
}

.cat-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    transition: background-color 0.5s ease;
}

.cat-brand {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .02em;
    transition: color 0.3s ease;
}

.cat-nav-links {
    display: flex;
    gap: 20px;
}

.cat-nav-links span {
    font-size: 12px;
    font-weight: 500;
    cursor: default;
    transition: color 0.3s ease;
}

.cat-nav-links span.cat-nav-active {
    font-weight: 700;
    padding-bottom: 2px;
    border-bottom-width: 2px;
    border-bottom-style: solid;
    transition: color 0.3s ease, border-color 0.5s ease;
}

.cat-body {
    padding: 50px 30px;
}

.cat-hero {
    margin-bottom: 60px;
    text-align: center;
}

.cat-divider {
    margin-bottom: 40px;
    border-bottom: 2px solid;
    border-color: black;
    transition: border-color 0.5s ease;
}

.cat-hero h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
    transition: color 0.5s ease;
}

.cat-hero p {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
    transition: color 0.5s ease;
}

.cat-hero-btn {
    display: inline-block;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    transition: background-color 0.5s ease, color 0.3s ease;
}

.cat-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    transition: opacity 0.25s ease;
}

.cat-tile {
    border-radius: 10px;
    padding: 14px;
    background: #fff;
    border-width: 1.5px;
    border-style: solid;
    transition: border-color 0.5s ease;
}

.cat-tile-accent {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: background-color 0.5s ease;
}

.cat-tile-name {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.cat-tile-sku {
    font-size: 10px;
    color: #9ca3af;
}

@media (max-width: 760px) {
    .catalog {
        padding-bottom: 60px;
    }

    .cat-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .cat-controls {
        width: 100%;
        border-radius: 0 0 16px 16px;
        border-top: none;
        order: 2;
    }

    .cat-preview {
        border-radius: 16px 16px 0 0;
        order: 1;
    }

    .cat-nav-links {
        display: none;
    }

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

@keyframes catTileIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.cat-tile {
    animation: catTileIn 0.35s ease forwards;
}

@keyframes catEnrollJump {
    0% {
        transform: translateY(0) scaleY(1);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    28% {
        transform: translateY(-18px) scaleY(1.05);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    54% {
        transform: translateY(0) scaleY(0.78);
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    68% {
        transform: translateY(-6px) scaleY(1.03);
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
    }
    82% {
        transform: translateY(0) scaleY(0.95);
        animation-timing-function: linear;
    }
    100% {
        transform: translateY(0) scaleY(1);
    }
}

.cat-enroll {
    text-align: center;
    padding: 20px 16px 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .03em;
    transition: color 0.5s ease;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-enroll span {
    display: inline-block;
    animation: catEnrollJump 1.3s linear infinite;
    white-space: pre;
}


/* DOCKER animation section */
.transition {
    background: #ececec;
    display: flex;
    justify-content: center;
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 3.4s cubic-bezier(0.16, 1, 0.3, 1),
                padding   3.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.transition.is-open {
    max-height: 200px;
    padding: 20px 0;
}

.transition h1 {
    color: black;
    padding: 0;
}

@media(max-width: 768px) {
    .transition h1 {
        padding: 0 40px;
    }
}

.deploy {
    display: flex;
    flex-direction: row;
    background: white;
    color: black;
}

.deploy .inner {
    flex: 0 0 auto;
    padding: 60px 8%;
    max-width: 480px;
}

.deploy .inner h1, .deploy .inner p {
    color: black;
}

.docker {
    flex: 1;
    min-width: 0;
    background: #f5f5f5;
    padding: 60px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.docker-waves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.docker-waves path {
    fill: none;
    stroke-linecap: round;
}

.docker-waves path:nth-child(1) { stroke: rgba(255,255,255); stroke-width: 3;   stroke-dasharray:  900 1500; animation: waveFlow 10s linear infinite; animation-delay:  -1s; }
.docker-waves path:nth-child(2) { stroke: rgba(255,255,255); stroke-width: 2.5; stroke-dasharray:  750 1650; animation: waveFlow 13s linear infinite; animation-delay:  -5s; }
.docker-waves path:nth-child(3) { stroke: rgba(255,255,255); stroke-width: 4;   stroke-dasharray: 1000 1400; animation: waveFlow  8s linear infinite; animation-delay:  -3s; }
.docker-waves path:nth-child(4) { stroke: rgba(255,255,255); stroke-width: 2.5; stroke-dasharray:  700 1700; animation: waveFlow 15s linear infinite; animation-delay:  -9s; }
.docker-waves path:nth-child(5) { stroke: rgba(255,255,255); stroke-width: 3;   stroke-dasharray:  850 1550; animation: waveFlow 11s linear infinite; animation-delay:  -6s; }
.docker-waves path:nth-child(6) { stroke: rgba(255,255,255); stroke-width: 2;   stroke-dasharray:  650 1750; animation: waveFlow  9s linear infinite; animation-delay: -11s; }

@keyframes waveFlow {
    from { stroke-dashoffset:    0; }
    to   { stroke-dashoffset: -2400; }
}

.console {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: rgba(10, 10, 16, 0.80);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    width: 100%;
    max-width: 640px;
    height: 380px;
    overflow: hidden;
    color: #ebebeb;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 10px 20px rgba(0,0,0,0.5);
}

.console-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    border-radius: 14px 14px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.console-title {
    flex: 1;
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    color: #8e8e93;
    letter-spacing: 0.04em;
    user-select: none;
}

.console-bottom {
    padding: 18px 22px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.console-bottom::-webkit-scrollbar { width: 4px; }
.console-bottom::-webkit-scrollbar-track { background: transparent; }
.console-bottom::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 2px; }

.console-dot-group {
    gap: 8px;
    display: flex;
    flex-direction: row;
    flex-shrink: 0;
}

.dot {
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: blue;
}

.term-line {
    display: block;
    white-space: pre-wrap;
    word-break: break-all;
}

.term-ok   { color: #34c759; }
.term-warn { color: #ff9f0a; }
.term-err  { color: #ff453a; }
.term-cmd  { color: #b4b4bc; }
.term-out  { color: #b4b4bc; }
.term-info  { color: #888890; }
.term-input { color: #e8e8ef; }

.term-cursor {
    display: inline-block;
    width: 7px;
    height: 1.1em;
    background: #e8e8e8;
    vertical-align: text-bottom;
    animation: termBlink 1s step-end infinite;
}
.term-cursor.typing { animation: none; opacity: 1; }

@keyframes termBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

@media (max-width: 1000px) {
    .deploy {
        flex-direction: column;
    }

    .deploy .inner {
        max-width: 800px;
    }

    .docker {
        padding: 40px;
    }

    .console {
        width: 100%;
        height: 280px;
    }
}

/* scroll-reveal bands (open/close on scroll) */
.scroll-reveal {
    max-height: 0;
    overflow: hidden;
    transition: max-height 1.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-open {
    max-height: var(--reveal-h, 300px);
}

/* pixels */
.falling-pixels-container {
    --reveal-h: 160px;
    position: relative;
    height: 160px;
    overflow: hidden;
    background: #121212;
}

.falling-pixels-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* dark form */
#pre-form, #offer-form {
    background-color: #ffffff;
    transition: background-color 0.9s ease;
}

#pre-form h1, #pre-form p {
    transition: color 0.9s ease;
}

#pre-form.is-dark, #offer-form.is-dark {
    background-color: #121212 !important;
}

#pre-form.is-dark h1, #pre-form.is-dark p {
    color: #ffffff !important;
}

/* transition */
#offer-form .offer-form-header h2,
#offer-form .offer-form-header p,
#offer-form .offer-field input,
#offer-form .offer-field select,
#offer-form .offer-terms span,
#offer-form .offer-terms span a,
#offer-form #offerSubmitBtn {
    transition: color 0.9s ease, background-color 0.9s ease, border-color 0.9s ease;
}

/* Default*/
#offer-form .offer-form-header h2       { color: #111111; }
#offer-form .offer-form-header p        { color: #555555; }
#offer-form .offer-field input,
#offer-form .offer-field select         { background-color: #ffffff; border-color: #d1d5db; color: #111111; }
#offer-form .offer-field input::placeholder { color: #9ca3af; }
#offer-form .offer-field select         { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E"); }
#offer-form .offer-terms span           { color: #555555; }
#offer-form .offer-terms span a         { color: #374151; }
#offer-form #offerSubmitBtn             { background-color: #111111; color: #ffffff; }
#offer-form #offerSubmitBtn:hover       { background-color: #333333; }

/* darK */
#offer-form.is-dark .offer-form-header h2       { color: #ffffff; }
#offer-form.is-dark .offer-form-header p        { color: rgb(150,150,150); }
#offer-form.is-dark .offer-field input,
#offer-form.is-dark .offer-field select         { background-color: #1a1a1a; border-color: #2e2e2e; color: #e0e0e0; }
#offer-form.is-dark .offer-field input::placeholder { color: rgb(100,100,100); }
#offer-form.is-dark .offer-field select         { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E"); }
#offer-form.is-dark .offer-terms span           { color: rgb(130,130,130); }
#offer-form.is-dark .offer-terms span a         { color: rgb(180,180,180); }
#offer-form.is-dark #offerSubmitBtn             { background-color: #ffffff; color: #000000; }
#offer-form.is-dark #offerSubmitBtn:hover       { background-color: #d4d4d4; }

/*captcha*/
.grecaptcha-badge                      { visibility: hidden !important;  z-index: 9999 !important; }
body.captcha-visible .grecaptcha-badge { visibility: visible !important; z-index: 9999 !important; }