:root {
    color-scheme: dark;
    --bg: #040910;
    --panel: rgba(8, 17, 29, 0.78);
    --panel-strong: rgba(12, 23, 38, 0.92);
    --panel-soft: rgba(255, 255, 255, 0.045);
    --line: rgba(134, 178, 211, 0.16);
    --line-strong: rgba(31, 242, 224, 0.42);
    --text: #f7fbff;
    --muted: #b4bdca;
    --dim: #778394;
    --orange: #ff6a13;
    --orange-soft: rgba(255, 106, 19, 0.2);
    --cyan: #18d8d1;
    --cyan-soft: rgba(24, 216, 209, 0.18);
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
    --sidebar: 304px;
    --radius: 8px;
}

body.light {
    color-scheme: light;
    --bg: #edf4f8;
    --panel: rgba(255, 255, 255, 0.78);
    --panel-strong: rgba(255, 255, 255, 0.96);
    --panel-soft: rgba(2, 28, 44, 0.055);
    --line: rgba(9, 36, 56, 0.14);
    --text: #06121c;
    --muted: #39495a;
    --dim: #657486;
    --shadow: 0 24px 70px rgba(14, 35, 54, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 67% 17%, rgba(17, 193, 203, 0.14), transparent 30%),
        radial-gradient(circle at 12% 78%, rgba(255, 106, 19, 0.09), transparent 28%),
        linear-gradient(135deg, var(--bg) 0%, #07111d 58%, #02050a 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

body.light {
    background:
        radial-gradient(circle at 67% 17%, rgba(17, 193, 203, 0.16), transparent 30%),
        radial-gradient(circle at 12% 78%, rgba(255, 106, 19, 0.13), transparent 28%),
        linear-gradient(135deg, #edf4f8 0%, #f8fbff 100%);
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

svg {
    display: block;
}

.mobile-menu {
    display: none;
}

.sidebar {
    overflow-y: auto;
    position: fixed;
    inset: 20px auto 20px 20px;
    z-index: 50;
    width: var(--sidebar);
    padding: 10px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(180deg, rgba(11, 22, 36, 0.88), rgba(4, 11, 20, 0.9));
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

body.light .sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 248, 252, 0.88));
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px 0px;
}

.brand-logo {
    width: min(200px, 100%);
    height: auto;
    display: block;
    filter: drop-shadow(0 0 16px rgba(24, 216, 209, 0.18)) drop-shadow(0 0 18px rgba(255, 106, 19, 0.16));
}

.nav-list {
    display: grid;
    gap: 11px;
}

.nav-link {
    min-height: 54px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-link svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: linear-gradient(90deg, rgba(24, 216, 209, 0.22), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.nav-link.active svg {
    color: var(--cyan);
}

.sidebar-card {
    margin-top: auto;
    padding: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(6, 22, 35, 0.7));
    border: 1px solid var(--line);
    border-radius: 12px;
}

.sidebar-card p {
    margin: 0 0 8px;
    color: var(--text);
    line-height: 1.45;
}

.sidebar-card strong {
    display: block;
    margin-bottom: 24px;
    color: var(--cyan);
    font-size: 27px;
    line-height: 1.12;
}

.sidebar-card strong span {
    color: var(--orange);
}

.project-btn,
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 54px;
    padding: 0 23px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.arrow-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-btn,
.btn.primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(100deg, var(--cyan), var(--orange));
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.04);
}

.btn.secondary .play {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.btn.secondary .play::after {
    content: "";
    position: absolute;
    margin: 4px 0 0 6px;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.project-btn:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(255, 106, 19, 0.22);
}

.theme-switch {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.sun-icon,
.moon-icon {
    position: relative;
    width: 22px;
    height: 22px;
}

.sun-icon {
    border-radius: 50%;
    background: #d7dce2;
    box-shadow: 0 0 0 7px rgba(215, 220, 226, 0.12);
}

.moon-icon {
    border-radius: 50%;
    box-shadow: -7px 0 0 #d7dce2 inset;
}

.switch-track {
    position: relative;
    width: 70px;
    height: 30px;
    border-radius: 999px;
    background: rgba(69, 89, 105, 0.42);
}

.switch-track span {
    position: absolute;
    top: 3px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--orange);
    transition: transform 180ms ease;
}

body.light .switch-track span {
    transform: translateX(38px);
}

.page-shell {
    min-height: 100vh;
    margin-left: calc(var(--sidebar) + 40px);
    padding: 20px 20px 20px 14px;
}

.dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas:
        "hero hero"
        "services services"
        "process process"
        "projects contact";
    gap: 28px;
    max-width: 1540px;
    margin: 0 auto;
}

.hero-panel,
.services-band,
.process-band,
.projects-band,
.contact-band {
    background: linear-gradient(145deg, var(--panel), rgba(3, 9, 17, 0.68));
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

body.light .hero-panel,
body.light .services-band,
body.light .process-band,
body.light .projects-band,
body.light .contact-band {
    background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.64));
}

.hero-panel {
    grid-area: hero;
    position: relative;
    min-height: 650px;
    padding: 44px 8px 0 8px;
    overflow: hidden;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.hero-panel .top-cta {
    position: absolute;
    top: 26px;
    right: 8px;
    z-index: 6;
}

.hero-panel::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(420px, 100%);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.eyebrow span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 14px var(--orange);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(430px, 0.95fr) minmax(420px, 1fr);
    gap: 18px;
    align-items: center;
    min-height: 560px;
}

.hero-copy {
    padding-top: 40px;
}

.hero-copy h1 {
    margin: 0;
    max-width: 650px;
    font-size: clamp(44px, 3.4vw, 68px);
    line-height: 1.09;
    letter-spacing: 0;
}

.hero-copy h1 .cyan-word {
    color: var(--cyan);
}

.hero-copy h1 .orange-word {
    color: var(--orange);
}

.hero-copy p {
    margin: 30px 0 0;
    max-width: 570px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.72;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 42px;
}

.hero-art {
    position: relative;
    min-height: 540px;
    perspective: 1100px;
}

.stage {
    position: absolute;
    inset: 12px -10px 58px;
    transform-style: preserve-3d;
    transition: transform 180ms ease;
}

.hero-r-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    mask-image: radial-gradient(ellipse at center, #000 0 58%, rgba(0, 0, 0, 0.86) 70%, transparent 92%);
    filter: saturate(1.1) contrast(1.05) drop-shadow(0 0 22px rgba(255, 106, 19, 0.28)) drop-shadow(0 0 18px rgba(24, 216, 209, 0.16));
}

.skill-wheel {
    position: absolute;
    left: -8px;
    right: -12px;
    bottom: 0;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: clamp(12px, 2vw, 34px);
}

.skill {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 60px;
    background: none;
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.skill svg {
    width: 66px;
    height: 66px;
    padding: 16px;
    border: 1px solid currentColor;
    border-radius: 50%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    background: rgba(24, 216, 209, 0.1);
    color: var(--cyan);
    transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.skill:nth-child(1) svg,
.skill:nth-child(3) svg,
.skill:nth-child(5) svg {
    color: var(--orange);
    background: rgba(255, 106, 19, 0.1);
}

.skill:hover svg {
    transform: translateY(-8px);
    box-shadow: 0 0 28px currentColor;
}

.top-cta {
    min-height: 54px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--orange);
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease;
}

.top-cta .arrow-icon {
    color: var(--cyan);
}

.top-cta:hover {
    transform: translateY(-2px);
    background: rgba(255, 106, 19, 0.08);
}

.section-heading h2,
.contact-band h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 0;
}

.mini-line {
    width: 28px;
    height: 2px;
    margin-top: 12px;
    background: var(--cyan);
}

.services-band {
    grid-area: services;
    padding: 22px 8px 32px;
    background: transparent;
    box-shadow: none;
    border-color: transparent;
}

.services-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 14px;
}

.service-card {
    min-height: 210px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(9, 31, 45, 0.86), rgba(255, 255, 255, 0.045));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

body.light .service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(238, 246, 250, 0.82));
}

.service-card:hover,
.service-card.active {
    transform: translateY(-8px);
    border-color: rgba(24, 216, 209, 0.55);
    background: linear-gradient(145deg, rgba(13, 52, 64, 0.88), rgba(255, 106, 19, 0.1));
}

.service-card svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: var(--cyan);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card:nth-child(even) svg,
.service-card:nth-child(4) svg {
    stroke: var(--orange);
}

.service-card h3 {
    margin: 20px 0 10px;
    font-size: 16px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.service-card button {
    margin-top: auto;
    width: max-content;
    padding: 0;
    border: 0;
    background: none;
    color: var(--cyan);
    cursor: pointer;
}

.service-card:nth-child(even) button {
    color: var(--orange);
}

.process-band {
    grid-area: process;
    padding: 22px 28px;
}

.process-track {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.process-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    align-items: start;
}

.step-icon {
    width: 68px;
    height: 68px;
    display: grid;
    place-items: center;
    grid-column: 1 / -1;
    margin: 0 0 4px 25px;
    border-radius: 50%;
    color: var(--orange);
    background: rgba(255, 106, 19, 0.12);
}

.step-icon.cyan {
    color: var(--cyan);
    background: rgba(24, 216, 209, 0.12);
}

.step-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-step strong {
    color: var(--orange);
    font-size: 18px;
    font-weight: 500;
}

.process-step:nth-of-type(even) strong {
    color: var(--cyan);
}

.process-step h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.process-step p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.arrow {
    color: rgba(255, 255, 255, 0.26);
    display: grid;
    place-items: center;
    transform: translateY(15px);
}

.arrow .arrow-icon {
    width: 38px;
    height: 38px;
    stroke-width: 1.7;
}

.projects-band {
    grid-area: projects;
    padding: 24px 28px;
}

.project-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.project-card {
    position: relative;
    min-height: 230px;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
    transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.project-card img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    display: block;
    object-fit: cover;
    object-position: top center;
    transition: transform 240ms ease, filter 240ms ease;
}

.project-card span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #fff;
    font-weight: 800;
    background: rgba(4, 9, 16, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
}

.project-card:hover,
.project-card.active {
    transform: translateY(-4px);
    border-color: var(--cyan);
    box-shadow: 0 24px 46px rgba(24, 216, 209, 0.16);
}

.project-card:hover img,
.project-card.active img {
    transform: scale(1.04);
    filter: saturate(1.06) contrast(1.03);
}

.contact-band {
    grid-area: contact;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    padding: 24px 28px;
}

.contact-band span {
    color: var(--orange);
    font-weight: 800;
}

.contact-band h2 {
    margin-top: 6px;
    max-width: 520px;
}

.contact-form {
    display: flex;
    gap: 12px;
    width: 100%;
}

.contact-form input {
    width: 100%;
    flex: 1;
    min-height: 54px;
    padding: 0 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
}

.contact-form input:focus {
    border-color: var(--cyan);
}

.about-anchor,
.resources-anchor,
.solutions-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    max-width: 340px;
    padding: 14px 18px;
    color: #fff;
    background: linear-gradient(100deg, rgba(24, 216, 209, 0.96), rgba(255, 106, 19, 0.96));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: translateY(24px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes breathe {
    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.92);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.06);
    }
}

@media (max-width: 1380px) {
    :root {
        --sidebar: 274px;
    }

    .dashboard {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 22px;
    }

    .hero-grid {
        grid-template-columns: minmax(350px, 0.9fr) minmax(360px, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(170px, 1fr));
    }

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

    .arrow {
        display: none;
    }
}

@media (max-width: 1120px) {
    .mobile-menu {
        position: fixed;
        top: 18px;
        right: 18px;
        z-index: 70;
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--panel-strong);
        box-shadow: var(--shadow);
    }

    .mobile-menu span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
    }

    .sidebar {
        transform: translateX(calc(-100% - 30px));
        transition: transform 220ms ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .page-shell {
        margin-left: 0;
        padding: 16px;
    }

    .dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "services"
            "process"
            "projects"
            "contact";
    }

    .hero-panel .top-cta {
        position: static;
        width: max-content;
        margin-top: 22px;
    }

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

@media (max-width: 820px) {
    .hero-panel {
        min-height: auto;
        padding: 28px 0 8px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy {
        padding-top: 24px;
    }

    .hero-copy h1 {
        font-size: clamp(36px, 11vw, 54px);
    }

    .hero-art {
        min-height: 500px;
    }

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

    .project-card,
    .project-card img {
        min-height: 260px;
    }

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

    .contact-form {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-form input {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .page-shell {
        padding: 10px;
    }

    .sidebar {
        inset: 10px auto 10px 10px;
        width: min(304px, calc(100vw - 20px));
    }

    .hero-actions,
    .btn {
        width: 100%;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-art {
        min-height: 410px;
    }

    .stage {
        inset: 0 -12px 88px;
    }

    .skill-wheel {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .skill {
        min-width: 0;
        font-size: 12px;
    }

    .skill svg {
        width: 52px;
        height: 52px;
        padding: 12px;
    }

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

    .project-list {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card img {
        min-height: 300px;
    }

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

    .step-icon {
        width: 54px;
        height: 54px;
    }
}
