section[id],
#lead-form {
    scroll-margin-top: 96px;
}

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

.hero {
    min-height: 850px;

    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;

    padding-top: 100px;
}

.hero::before {
    content: "";

    position: absolute;

    width: 700px;
    height: 700px;

    top: -250px;
    right: -100px;

    background: var(--accent);
    opacity: .18;

    filter: blur(140px);
    border-radius: 50%;
}

.hero-grid {
    position: absolute;
    inset: 0;

    opacity: .035;

    background-image:
        linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);

    background-size: 70px 70px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 80%
    );
}

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

    max-width: 900px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 30px;

    color: var(--accent);

    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);
    box-shadow: 0 0 18px var(--accent);
}

h1 {
    max-width: 1000px;

    font-size: clamp(52px, 7vw, 92px);
    line-height: .98;

    letter-spacing: -.065em;
    font-weight: 800;
}

h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 680px;

    margin-top: 32px;

    color: var(--muted);

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

.hero-actions {
    display: flex;
    gap: 14px;

    margin-top: 42px;
}

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

    min-height: 52px;
    padding: 0 24px;

    border-radius: 10px;

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

    transition: .2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 35px rgba(14,124,102,.35);
}

.btn-secondary {
    border: 1px solid var(--border);
    color: white;
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,.25);
    background: rgba(255,255,255,.03);
}

.hero-bottom {
    position: absolute;
    bottom: 40px;
    left: 50%;

    width: 100%;
    max-width: var(--container);
    padding: 0 30px;

    transform: translateX(-50%);

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

    color: #686e77;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.scroll {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 45px;
    height: 1px;
    background: #444950;
}

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

section {
    padding: 130px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 40px;

    margin-bottom: 60px;
}

.section-number {
    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;

    margin-bottom: 15px;
}

h2 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -.055em;
}

.section-description {
    max-width: 430px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.7;
}

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

.services {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.service {
    min-height: 260px;

    padding: 30px;

    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);

    transition: .25s;
}

.service:hover {
    background: var(--card);
}

.service-number {
    color: #5d636d;

    font-size: 12px;
    font-weight: 600;

    margin-bottom: 55px;
}

.service h3 {
    margin-bottom: 13px;

    font-size: 21px;
    letter-spacing: -.03em;
}

.service p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.65;
}

/* =========================
   PRODUCTS
========================= */

.products {
    background: var(--bg);
}

.products-list {
    display: grid;
    gap: 2px;
}

.product {
    position: relative;

    display: grid;
    grid-template-columns: 80px 1fr 380px 50px;
    align-items: center;

    min-height: 125px;

    padding: 25px 30px;

    border: 1px solid var(--border);
    background: #0b0d10;

    transition: .25s;
}

.product:hover {
    background: var(--card);
    border-color: rgba(14,124,102,.55);
}

.product-num {
    color: #555b64;
    font-size: 13px;
}

.product h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    font-size: 24px;
    letter-spacing: -.035em;
}

.product-badge {
    padding: 4px 10px;

    border: 1px solid var(--accent);
    border-radius: 20px;

    color: var(--accent);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}

.product p {
    color: var(--muted);

    font-size: 13px;
    line-height: 1.6;
}

.product-arrow {
    width: 38px;
    height: 38px;

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

    border: 1px solid var(--border);
    border-radius: 50%;

    color: var(--muted);

    transition: .25s;
}

.product:hover .product-arrow {
    color: white;
    background: var(--accent);
    border-color: var(--accent);

    transform: rotate(45deg);
}

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

.cases {
    position: relative;
    overflow: hidden;

    border-top: 1px solid var(--border);
    background: var(--bg-soft);
}

.cases::before {
    content: "";

    position: absolute;
    top: -320px;
    left: 50%;
    transform: translateX(-50%);

    width: 640px;
    height: 640px;

    background: var(--accent);
    opacity: .12;

    filter: blur(150px);
    border-radius: 50%;

    pointer-events: none;
}

.cases-grid {
    position: relative;
    z-index: 1;

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

.case-card {
    position: relative;
    overflow: hidden;

    padding: 32px 28px 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--card);

    transition: .25s;
}

.case-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    right: 0;

    height: 3px;

    background: var(--accent);
}

.case-card:hover {
    transform: translateY(-6px);

    border-color: rgba(14,124,102,.5);
    background: var(--card-hover);
    box-shadow: 0 24px 50px rgba(0,0,0,.4);
}

.case-industry {
    color: var(--accent);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;

    margin-bottom: 14px;
}

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

    font-size: 21px;
    letter-spacing: -.03em;
}

.case-result {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.6;

    margin-bottom: 20px;
}

.case-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 22px;
}

.case-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    padding-top: 18px;

    border-top: 1px solid var(--border);

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

.case-price {
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.02em;
}

/* =========================
   APPROACH
========================= */

#approach {
    background: var(--bg);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid var(--border);
}

.approach {
    padding: 45px 35px 40px;

    border-right: 1px solid var(--border);
}

.approach:last-child {
    border-right: 0;
}

.approach-icon {
    width: 44px;
    height: 44px;

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

    margin-bottom: 35px;

    border-radius: 10px;

    background: var(--accent-soft);
    color: var(--accent);

    font-weight: 800;
}

.approach h3 {
    margin-bottom: 14px;

    font-size: 20px;
}

.approach p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}

/* =========================
   TECHNOLOGIES
========================= */

.tech {
    background: var(--bg-soft);
}

.tech-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--border);
}

.tech-group {
    padding: 35px 0;

    border-bottom: 1px solid var(--border);
}

.tech-group:nth-child(odd) {
    padding-right: 50px;
    border-right: 1px solid var(--border);
}

.tech-group:nth-child(even) {
    padding-left: 50px;
}

.tech-group h3 {
    margin-bottom: 20px;

    color: #777e88;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tech-item {
    padding: 9px 13px;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: #d7d9dc;

    font-size: 13px;
}

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

.cta {
    position: relative;
    overflow: hidden;

    padding: 160px 0;

    background: var(--accent);
    color: white;
}

.cta::before {
    content: "DEVSTYLE";

    position: absolute;
    right: -30px;
    bottom: -130px;

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

    letter-spacing: -.1em;

    opacity: .07;
}

.cta-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 60px;
}

.cta-content {
    max-width: 560px;
}

.cta h2 {
    font-size: clamp(48px, 7vw, 86px);
}

.cta p {
    max-width: 580px;

    margin-top: 25px;

    color: rgba(244,245,247,.72);

    font-size: 18px;
    line-height: 1.6;
}

.cta .btn {
    margin-top: 38px;

    background: #08090b;
    color: white;
}

.cta .btn:hover {
    transform: translateY(-2px);
}

.cta-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;

    margin-top: 30px;

    font-size: 15px;
    font-weight: 600;
}

.cta-contacts a {
    transition: .2s;
}

.cta-contacts a:hover {
    opacity: .75;
}

.lead-form {
    padding: 35px;

    border-radius: var(--radius);

    background: rgba(8,9,11,.15);
    border: 1px solid rgba(255,255,255,.15);
}

.lead-form-note {
    margin-bottom: 22px;

    color: rgba(244,245,247,.72);

    font-size: 13px;
    line-height: 1.6;
}

.form-row {
    margin-bottom: 18px;
}

.form-row label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;

    color: rgba(244,245,247,.85);
}

.form-row input,
.form-row textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid rgba(255,255,255,.2);
    border-radius: 9px;

    background: rgba(8,9,11,.25);
    color: white;

    font-family: inherit;
    font-size: 14px;

    resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(244,245,247,.45);
}

.form-error {
    display: block;

    margin-top: 6px;

    color: #ffd9d9;
    font-size: 12px;
}

.form-consent {
    margin-bottom: 22px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    cursor: pointer;

    font-size: 13px;
    line-height: 1.5;
    color: rgba(244,245,247,.8);
}

.form-checkbox input {
    flex-shrink: 0;

    width: 17px;
    height: 17px;
    margin-top: 2px;

    accent-color: #08090b;
    cursor: pointer;
}

.form-checkbox a {
    text-decoration: underline;
}

.form-checkbox a:hover {
    color: white;
}

.form-submit {
    width: 100%;

    border: none;
    cursor: pointer;
}

.form-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.form-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

.form-success {
    padding: 35px;

    border-radius: var(--radius);

    background: rgba(8,9,11,.15);
    border: 1px solid rgba(255,255,255,.15);

    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

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

    .product {
        grid-template-columns: 50px 1fr 50px;
    }

    .product p {
        display: none;
    }

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

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

    .approach {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

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

    .tech-wrapper {
        grid-template-columns: 1fr;
    }

    .tech-group:nth-child(odd) {
        padding-right: 0;
        border-right: 0;
    }

    .tech-group:nth-child(even) {
        padding-left: 0;
    }
}

@media (max-width: 600px) {

    .hero {
        min-height: 750px;
    }

    h1 {
        font-size: 48px;
    }

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

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

    .hero-bottom {
        display: none;
    }

    section {
        padding: 90px 0;
    }

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

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

    .service {
        min-height: 220px;
    }

    .product {
        grid-template-columns: 35px 1fr 40px;

        min-height: 105px;

        padding: 20px;
    }

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

    .product-arrow {
        width: 34px;
        height: 34px;
    }

    .cta {
        padding: 100px 0;
    }

    .cta h2 {
        font-size: 48px;
    }
}
