@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@400;600&display=swap');

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

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

body {
    background: #0b0d10;
    color: #fff;
    font-family: Inter, sans-serif;
}
html, body {
    height: 100%;
}

body {
    overflow: hidden;
}

/* =========================
   NOISE
   ========================= */

#noise {
    position: fixed;
    inset: 0;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.05;
    pointer-events: none;
    z-index: 100;
}

/* =========================
   PANELS (ОБЩЕЕ)
   ========================= */

.panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;

    padding: 120px 80px;
    min-height: 100vh;
}

/* мягкий верхний свет */
.panel::before {
    content: "";
    position: absolute;
    top: -120px;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        rgba(127,0,255,0.12),
        transparent 70%
    );
}

/* общий мягкий переход вниз */
.panel::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 180px;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(11,13,16,0.4) 40%,
        rgba(11,13,16,0.8) 70%,
        #0b0d10 100%
    );
    filter: blur(12px);
}

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

.hero {
    height: 100vh;
    padding: 0 80px;
    align-items: center;

}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 25%,
            rgba(127,0,255,0.28),
            transparent 45%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(0,140,255,0.22),
            transparent 50%
        ),
        linear-gradient(
            120deg,
            rgba(255,255,255,0.04),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            #0b0d10 0%,
            #05070a 100%
        );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-title span {
    display: block;
    font-family: Orbitron, sans-serif;
    font-size: 48px;
    line-height: 1.2;
    text-transform: uppercase;
}

.hero-subtitle {
    margin-top: 24px;
    font-size: 18px;
    opacity: 0.8;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

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

.btn {
    padding: 14px 28px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn.primary {
    background: linear-gradient(90deg, #00c6ff, #7f00ff);
    color: #000;
}

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

.btn:hover {
    filter: brightness(1.2);
}

/* =========================
   SECTION COMMON
   ========================= */

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.section-title {
    font-family: Orbitron, sans-serif;
    font-size: 42px;
    margin-bottom: 40px;
}

.section-index {
    font-family: Orbitron, sans-serif;
    font-size: 140px;
    position: absolute;
    top: -60px;
    right: 0;
    opacity: 0.035;
    pointer-events: none;
}

/* =========================
   SERVICES
   ========================= */

.services {
    background:
        radial-gradient(circle at 20% 30%, rgba(0,140,255,0.14), transparent 45%),
        linear-gradient(180deg, #0b0d10 0%, #07090d 100%);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    background: rgba(255,255,255,0.02);
}

.service-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(127,0,255,0.18),
        transparent
    );
    opacity: 0;
    transition: 0.4s;
}

/* =========================
   SERVICE CARD — CODE STYLE
   ========================= */

.service-card p {
    margin-top: 16px;

    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.6;

    color: rgba(255,255,255,0.85);

    padding: 18px 20px;
    background: rgba(0,0,0,0.35);

    border-radius: 6px;
    border: 1px solid rgba(127,0,255,0.25);

    position: relative;
    overflow: hidden;
}

/* тонкая "IDE-линия" слева */
.service-card p::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(127,0,255,0.9),
        rgba(0,140,255,0.7)
    );
    opacity: 0.8;
}

.service-card .kw {
    color: #7f00ff;
}

/* =========================
   CODE BLOCK WITH LINE NUMBERS
   ========================= */

.code-block {
    counter-reset: line;
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    line-height: 1.7;

    padding: 18px 20px 18px 56px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(127,0,255,0.25);
    border-radius: 6px;

    position: relative;
}

/* вертикальная IDE-линия */
.code-block::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255,255,255,0.08);
}

/* строка */
.code-block .line {
    display: block;
    position: relative;
    padding-left: 8px;
}

/* номер строки */
.code-block .line::before {
    counter-increment: line;
    content: counter(line);

    position: absolute;
    left: -36px;
    width: 28px;

    text-align: right;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}

.service-card:hover::after {
    opacity: 1;
}

.service-metrics {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

/* карточка метрики */
.metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 16px;
    border-left: 3px solid rgba(127,0,255,0.5);
}

/* большое значение */
.metric-value {
    font-family: Orbitron, sans-serif;
    font-size: 28px;
    letter-spacing: 0.5px;
    color: #fff;
}

/* подпись */
.metric-label {
    font-size: 13px;
    opacity: 0.65;
    letter-spacing: 0.4px;
}

/* акцентная метрика */
.metric.accent .metric-value {
    background: linear-gradient(90deg, #00c6ff, #7f00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* hover — очень аккуратно */
.metric:hover {
    border-left-color: rgba(127,0,255,0.9);
}
/* =========================
   STACK
   ========================= */
/* =========================
   STACK — FINAL CLEAN VERSION
   ========================= */

.stack {
    background:
        radial-gradient(circle at 25% 30%, rgba(127,0,255,0.18), transparent 45%),
        linear-gradient(180deg, #07090d 0%, #0b0d10 100%);
}

/* layout: заголовок слева, технологии справа */
.stack-layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

/* контент всегда поверх эффектов */
.stack .section-content {
    position: relative;
    z-index: 2;
}

/* фоновый номер — строго декоративный */
.stack .section-index {
    font-size: 110px;
    top: -70px;
    right: 0;
    opacity: 0.02;
    pointer-events: none;
}

/* список технологий — один столбец (важно!) */
.stack-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin: 0;
    padding: 0;
}

/* элемент списка */
.stack-list li {
    padding: 22px 26px;
    border-left: 3px solid rgba(127,0,255,0.7);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    line-height: 1.6;
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, transform 0.25s ease;
}

/* hover — минимальный, дорогой */
.stack-list li:hover {
    background: rgba(127,0,255,0.14);
    transform: translateX(6px);
}

/* =========================
   CASES
   ========================= */

/* =========================
   CASES — FINAL CLEAN VERSION
   ========================= */

.cases {
    background:
        radial-gradient(circle at 65% 45%, rgba(127,0,255,0.22), transparent 55%),
        radial-gradient(circle at 25% 65%, rgba(0,140,255,0.14), transparent 45%),
        linear-gradient(180deg, #05070a 0%, #0b0d10 100%);
    overflow: hidden;

}

/* контент всегда поверх эффектов */
.cases-content {
    position: relative;
    z-index: 2;
}

/* заголовок + описание */
.cases-header {
    max-width: 520px;
    margin-bottom: 50px;
}

.cases-subtitle {
    margin-top: 12px;
    font-size: 16px;
    opacity: 0.7;
}

/* горизонтальный трек */
.cases-track {
    display: flex;
    gap: 10px;
    /*align-items: stretch;*/
    justify-content: flex-start;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    /*padding-right: 16px; !* чтобы не резало скролл *!*/
}

.cases-track::-webkit-scrollbar {
    width: 2px;
}

.cases-track::-webkit-scrollbar-thumb {
    background: rgba(127,0,255,0.4);
    border-radius: 2px;
}

.cases-track::-webkit-scrollbar-track {
    background: transparent;
}
/* карточка кейса */
.case {
    display: flex;
    flex-direction: column;
    gap: 12px;
    /*min-width: 400px;*/
    padding: 36px 40px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

/* hover — без прыжков */
.case:hover {
    border-color: rgba(127,0,255,0.5);
    background: rgba(127,0,255,0.1);
}

/* текст внутри */
.case h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.case p {
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.9;
}

.case small {
    display: block;
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.6;
}

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

/* =========================
   PROCESS — ENGINEER FLOW
   ========================= */

.process {
    background:
        radial-gradient(circle at 30% 40%, rgba(127,0,255,0.18), transparent 45%),
        linear-gradient(180deg, #05070a 0%, #0b0d10 100%);
}

/* контент поверх фона */
.process-content {
    position: relative;
    z-index: 2;
}

/* layout */
.process-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 100px;
    align-items: start;
}

/* header */
.process-subtitle {
    margin-top: 16px;
    font-size: 16px;
    opacity: 0.7;
    max-width: 360px;
}

/* steps container */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* single step */
.process-step {
    display: flex;
    gap: 28px;
    padding: 28px 32px;
    background: rgba(255,255,255,0.03);
    border-left: 3px solid rgba(127,0,255,0.6);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, background 0.25s ease;
}

/* hover */
.process-step:hover {
    background: rgba(127,0,255,0.12);
    transform: translateX(6px);
}

/* step number */
.step-num {
    font-family: Orbitron, sans-serif;
    font-size: 22px;
    color: rgba(127,0,255,0.9);
    min-width: 42px;
}

/* step text */
.step-body h3 {
    font-size: 20px;
    margin-bottom: 6px;
}

.step-body p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.5;
}

/* =========================
   FINAL
   ========================= */

/* =========================
   FINAL CTA — CLEAN VERSION
   ========================= */

.final {
    background:
        radial-gradient(circle at 35% 40%, rgba(127,0,255,0.28), transparent 50%),
        linear-gradient(180deg, #020305 0%, #07090d 100%);
}

.final-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 120px;
    align-items: center;
}

/* TEXT */
.final-title {
    font-size: 46px;
    line-height: 1.15;
    font-family: Orbitron, sans-serif;
    margin-bottom: 28px;
}

.final-subtitle {
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.8;
    max-width: 560px;
    margin-bottom: 32px;
}

/* POINTS */
.final-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.final-points li {
    position: relative;
    padding-left: 22px;
    font-size: 15px;
    opacity: 0.75;
}

.final-points li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: rgba(127,0,255,0.9);
}

/* ACTION */
.action-box {
    padding: 56px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(8px);
}

.action-label {
    font-size: 13px;
    opacity: 0.6;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.final-btn {
    width: 100%;
    padding: 20px 0;
    font-size: 15px;
}

.action-hint {
    display: block;
    margin-top: 18px;
    font-size: 12px;
    opacity: 0.45;
}

@media (max-width: 768px) {

    .final-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .final-title {
        font-size: 30px;
    }

    .action-box {
        padding: 36px;
    }
}
/* =========================
   LINK AS BUTTON FIX
   ========================= */

a.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    line-height: 1;
}

/* чтобы кнопка не "схлопывалась" */
.final-btn {
    min-height: 56px;
}
/* =========================
   TECH OVERLAY
   ========================= */

.tech-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 70%);
}

.meta {
    position: absolute;
    font-family: JetBrains Mono, monospace;
    font-size: 11px;
    opacity: 0.4;
    letter-spacing: 1px;
}

.top-left { top: 20px; left: 20px; }
.top-right { top: 20px; right: 20px; }
.bottom-left { bottom: 20px; left: 20px; }
.bottom-right { bottom: 20px; right: 20px; }


.services,
.stack,
.cases,
.process{
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 160px;
}

.final{
    padding-top: 160px;
}

.section-content {
    display: block;
}

.section-description,
.stack-text p,
.cases-seo,
.process-seo {
    max-width: 720px;
    margin-bottom: 24px;
    line-height: 1.7;
}


.stack-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stack-text {
    max-width: 520px;
}

.stack-text p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.75;
}



@media (max-width: 1200px) {

    .panel {
        padding: 100px 60px;
    }

    .section-title {
        font-size: 36px;
    }

    .hero-title span {
        font-size: 42px;
    }

    .stack-layout,
    .process-layout,
    .final-layout {
        gap: 60px;
    }
}


@media (max-width: 768px) {

    /* общие отступы */
    .panel {
        padding: 100px 32px;
    }

    /* HERO */
    .hero {
        padding: 0 32px;
    }

    .hero-title span {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 16px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* SECTION INDEX */
    .section-index {
        font-size: 96px;
        top: -40px;
    }

    /* SERVICES */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* STACK */
    .stack-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stack-text {
        max-width: 100%;
    }

    /* CASES */
    .cases-header {
        margin-bottom: 40px;
    }

    .cases-track {
        gap: 16px;
    }

    .case {
        min-width: 300px;
        padding: 28px;
    }

    /* PROCESS */
    .process-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .process-steps {
        gap: 12px;
    }

    /* FINAL */
    .final-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .final-title {
        font-size: 34px;
    }
}

@media (max-width: 480px) {

    /* общие */
    .panel {
        padding: 80px 20px;
    }

    /* HERO */
    .hero-title span {
        font-size: 28px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    /* отключаем лишние визуальные шумы */
    .tech-overlay,
    .grid,
    #noise {
        display: none;
    }

    /* SECTION TITLES */
    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .section-index {
        display: none;
    }

    /* METRICS */
    .service-metrics {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .metric-value {
        font-size: 24px;
    }

    /* STACK */
    .stack-list li {
        font-size: 16px;
        padding: 18px 20px;
    }

    /* CASES */
    .case {
        min-width: 260px;
        padding: 24px;
    }

    .case h3 {
        font-size: 18px;
    }

    .case p {
        font-size: 14px;
    }

    /* PROCESS */
    .process-step {
        padding: 20px;
        gap: 16px;
    }

    .step-num {
        font-size: 18px;
        min-width: 32px;
    }

    /* FINAL */
    .action-box {
        padding: 32px 24px;
    }

    .final-btn {
        font-size: 14px;
        padding: 16px 0;
    }
}


@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
}