:root {
    --bg: #f8fafc;
    --bg-soft: #eef3f8;
    --surface: #ffffff;
    --surface-dark: #0b1526;
    --surface-dark-alt: #101d31;
    --text: #101828;
    --text-soft: #5d6879;
    --text-light: #dce6f4;
    --border: #dfe7f0;
    --primary: #4f6ef7;
    --primary-dark: #3854dc;
    --primary-soft: #e8edff;
    --accent: #7c5cff;
    --success: #2fbf83;
    --shadow-sm: 0 14px 38px rgba(15, 31, 55, 0.08);
    --shadow-lg: 0 28px 80px rgba(7, 18, 38, 0.18);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --container: 1180px;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img,
svg {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", sans-serif;
    line-height: 1.12;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(3rem, 6vw, 5.8rem);
    letter-spacing: -0.055em;
}

h1 span {
    display: block;
    background: linear-gradient(100deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(2.2rem, 4vw, 3.7rem);
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 14px;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 120px 0;
}

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

.section-dark {
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 15%, rgba(79, 110, 247, 0.22), transparent 32%),
        radial-gradient(circle at 85% 70%, rgba(124, 92, 255, 0.18), transparent 30%),
        var(--surface-dark);
    color: #fff;
}

.skip-link {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 9999;
    padding: 12px 18px;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.skip-link:focus {
    top: 18px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.scrolled {
    border-bottom-color: rgba(214, 223, 234, 0.85);
    background: rgba(248, 250, 252, 0.9);
    box-shadow: 0 8px 30px rgba(15, 31, 55, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.brand > span:last-child > span {
    color: var(--primary);
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.88rem;
    box-shadow: 0 10px 24px rgba(79, 110, 247, 0.24);
}

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

.main-nav > a:not(.button) {
    position: relative;
    color: #344054;
    font-size: 0.94rem;
    font-weight: 600;
}

.main-nav > a:not(.button)::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    content: "";
    transform: scaleX(0);
    transition: transform 0.22s ease;
}

.main-nav > a:not(.button):hover::after,
.main-nav > a:not(.button).active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    width: 45px;
    height: 45px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 6px auto;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 23px;
    border: 1px solid var(--primary);
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), #5b7af8);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 13px 30px rgba(79, 110, 247, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 38px rgba(79, 110, 247, 0.3);
}

.button-small {
    min-height: 43px;
    padding: 9px 17px;
    border-radius: 11px;
    font-size: 0.9rem;
}

.button-secondary {
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.button-secondary:hover {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.button-full {
    width: 100%;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 31px;
    height: 2px;
    background: currentColor;
}

.eyebrow-light {
    color: #9eb0ff;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 58px;
}

.section-heading > p:last-child {
    max-width: 660px;
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 1.08rem;
}

.section-heading-centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading-centered .eyebrow {
    justify-content: center;
}

.section-heading-centered > p:last-child {
    margin-inline: auto;
}

.section-heading-split {
    display: flex;
    max-width: none;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
}

.section-heading-split > div {
    max-width: 670px;
}

.section-heading-split > p {
    max-width: 400px;
    margin-bottom: 8px;
}

.hero {
    display: flex;
    min-height: 820px;
    align-items: center;
    overflow: hidden;
    padding-top: calc(var(--header-height) + 85px);
    background:
        linear-gradient(rgba(248, 250, 252, 0.89), rgba(248, 250, 252, 0.93)),
        radial-gradient(circle at 20% 30%, rgba(79, 110, 247, 0.24), transparent 34%),
        radial-gradient(circle at 80% 62%, rgba(124, 92, 255, 0.20), transparent 34%);
}

.hero::after {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(79, 110, 247, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 110, 247, 0.16) 1px, transparent 1px);
    background-size: 55px 55px;
    content: "";
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent 88%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.hero-glow-one {
    top: 160px;
    left: -170px;
    width: 420px;
    height: 420px;
    background: rgba(79, 110, 247, 0.12);
}

.hero-glow-two {
    right: -110px;
    bottom: 20px;
    width: 340px;
    height: 340px;
    background: rgba(124, 92, 255, 0.12);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
    gap: 70px;
}

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

.hero-text {
    max-width: 660px;
    margin-bottom: 34px;
    color: var(--text-soft);
    font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.hero-highlights {
    display: flex;
    gap: 42px;
    margin-top: 48px;
}

.hero-highlights div {
    display: flex;
    flex-direction: column;
}

.hero-highlights strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
}

.hero-highlights span {
    color: var(--text-soft);
    font-size: 0.83rem;
}

.hero-visual {
    position: relative;
    min-height: 470px;
}

.code-window {
    position: absolute;
    top: 38px;
    right: 0;
    width: min(100%, 520px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 23px;
    background: rgba(10, 21, 39, 0.97);
    box-shadow: var(--shadow-lg);
    transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
}

.window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 19px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #8390a4;
    font-size: 0.78rem;
}

.window-dots {
    display: flex;
    gap: 7px;
}

.window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fc5f57;
}

.window-dots span:nth-child(2) {
    background: #fdbc40;
}

.window-dots span:nth-child(3) {
    background: #34c84a;
}

.code-content {
    min-height: 350px;
    padding: 35px 31px 38px;
    color: #cdd8e7;
    font-family: Consolas, Monaco, monospace;
    font-size: clamp(0.84rem, 1.4vw, 0.98rem);
    line-height: 1.9;
}

.code-content p {
    margin: 0;
}

.indent {
    padding-left: 25px;
}

.code-purple {
    color: #c792ea;
}

.code-blue {
    color: #82aaff;
}

.code-green {
    color: #c3e88d;
}

.code-yellow {
    color: #ffcb6b;
}

.terminal-line {
    margin-top: 28px !important;
    color: #7ee2b8;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.2em;
    margin-left: 5px;
    background: #7ee2b8;
    vertical-align: -0.2em;
    animation: blink 0.85s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.floating-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.floating-card-one {
    top: 15px;
    left: -15px;
}

.floating-card-two {
    right: -15px;
    bottom: 18px;
}

.floating-card strong,
.floating-card small {
    display: block;
}

.floating-card strong {
    font-size: 0.88rem;
}

.floating-card small {
    color: var(--text-soft);
    font-size: 0.7rem;
}

.floating-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 800;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
}

.about-grid .section-heading {
    position: sticky;
    top: 130px;
    align-self: start;
}

.large-text {
    color: #263248;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.55;
}

.about-content > p:not(.large-text) {
    color: var(--text-soft);
}

.feature-list {
    display: grid;
    margin-top: 42px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.feature-item {
    display: flex;
    gap: 17px;
    padding: 22px;
    border: 1px solid rgba(216, 226, 238, 0.85);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.67);
}

.feature-item > span {
    flex: 0 0 auto;
    color: var(--primary);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.feature-item strong {
    display: block;
    margin-bottom: 6px;
}

.feature-item p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.55;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 525px;
    flex-direction: column;
    overflow: hidden;
    padding: 33px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 16px 50px rgba(15, 31, 55, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    border-color: rgba(79, 110, 247, 0.45);
    box-shadow: var(--shadow-sm);
    transform: translateY(-7px);
}

.service-card-featured {
    border-color: rgba(79, 110, 247, 0.38);
    background:
        linear-gradient(145deg, rgba(232, 237, 255, 0.85), rgba(255, 255, 255, 0.96) 48%),
        #fff;
}

.service-label {
    position: absolute;
    top: 19px;
    right: 19px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.service-number {
    position: absolute;
    top: 19px;
    left: 23px;
    color: #c8d0dd;
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
}

.service-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 42px 0 25px;
    place-items: center;
    border-radius: 17px;
    background: var(--primary-soft);
    color: var(--primary);
}

.service-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.service-card > p {
    color: var(--text-soft);
}

.service-card ul {
    margin: 8px 0 28px;
    padding: 0;
    list-style: none;
}

.service-card li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: #3d4859;
    font-size: 0.91rem;
}

.service-card li::before {
    position: absolute;
    top: 16px;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    content: "";
    box-shadow: 0 0 0 5px var(--primary-soft);
}

.service-card > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--primary);
    font-weight: 700;
}

.service-card > a span {
    transition: transform 0.2s ease;
}

.service-card > a:hover span {
    transform: translateX(4px);
}

.section-dark .section-heading {
    margin-bottom: 65px;
}

.section-dark .section-heading h2 {
    max-width: 700px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.process-card {
    position: relative;
    min-height: 275px;
    padding: 31px 27px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(13px);
}

.process-card::after {
    position: absolute;
    top: 50px;
    right: -21px;
    z-index: 2;
    width: 40px;
    height: 1px;
    background: rgba(158, 176, 255, 0.38);
    content: "";
}

.process-card:last-child::after {
    display: none;
}

.process-card > span {
    display: grid;
    width: 43px;
    height: 43px;
    margin-bottom: 42px;
    place-items: center;
    border-radius: 12px;
    background: rgba(120, 145, 255, 0.16);
    color: #a9b9ff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.process-card p {
    margin-bottom: 0;
    color: #aebbcf;
    font-size: 0.91rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.project-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 16px 45px rgba(15, 31, 55, 0.055);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-5px);
}

.project-card-large {
    grid-column: 1 / -1;
}

.project-card-large {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.project-visual {
    position: relative;
    display: flex;
    min-height: 330px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card:not(.project-card-large) .project-visual {
    min-height: 305px;
}

.project-visual-zynerion {
    min-height: 420px;
    background:
        radial-gradient(circle at 70% 30%, rgba(124, 92, 255, 0.32), transparent 35%),
        linear-gradient(145deg, #101b30, #162748);
}

.mock-sidebar {
    display: flex;
    width: 82px;
    height: 280px;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    padding-top: 24px;
    border-radius: 17px 0 0 17px;
    background: #0b1424;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.mock-sidebar span {
    width: 37px;
    height: 37px;
    border-radius: 13px;
    background: #243553;
}

.mock-sidebar span:first-child {
    border-radius: 10px;
    background: var(--primary);
}

.mock-content {
    width: 62%;
    height: 280px;
    padding: 24px;
    border-radius: 0 17px 17px 0;
    background: #172640;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.mock-header {
    width: 38%;
    height: 15px;
    margin-bottom: 42px;
    border-radius: 9px;
    background: #405274;
}

.mock-message {
    width: 84%;
    height: 45px;
    margin-bottom: 17px;
    border-radius: 11px;
    background: #223652;
}

.mock-message.short {
    width: 58%;
}

.project-visual-intervention {
    background:
        radial-gradient(circle at 50% 10%, rgba(79, 110, 247, 0.18), transparent 34%),
        linear-gradient(145deg, #eef3fb, #dfe8f5);
}

.paper {
    width: 220px;
    height: 245px;
    padding: 34px 28px;
    border-radius: 6px;
    background: white;
    box-shadow: 0 25px 55px rgba(15, 31, 55, 0.18);
    transform: rotate(-3deg);
}

.paper span {
    display: block;
    height: 9px;
    margin-bottom: 18px;
    border-radius: 5px;
    background: #dce4ef;
}

.paper span:nth-child(1) {
    width: 55%;
    height: 14px;
    background: var(--primary);
}

.paper span:nth-child(3) {
    width: 72%;
}

.paper .paper-box {
    width: 100%;
    height: 90px;
    border: 2px solid #e2e8f1;
    background: transparent;
}

.project-visual-mobile {
    background:
        radial-gradient(circle at 65% 35%, rgba(124, 92, 255, 0.28), transparent 34%),
        linear-gradient(145deg, #111c32, #1b2c4a);
}

.phone-mockup {
    position: relative;
    width: 145px;
    height: 270px;
    padding: 40px 17px 18px;
    border: 5px solid #0a1020;
    border-radius: 27px;
    background: #f8fafc;
    box-shadow: 0 30px 55px rgba(0, 0, 0, 0.33);
}

.phone-speaker {
    position: absolute;
    top: 13px;
    left: 50%;
    width: 45px;
    height: 5px;
    border-radius: 4px;
    background: #0f1728;
    transform: translateX(-50%);
}

.phone-card {
    height: 75px;
    margin-bottom: 20px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.phone-line {
    height: 9px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #d8e0ec;
}

.phone-line.short {
    width: 65%;
}

.phone-button {
    position: absolute;
    right: 17px;
    bottom: 20px;
    left: 17px;
    height: 32px;
    border-radius: 10px;
    background: var(--primary);
}

.project-content {
    padding: 31px;
}

.project-card-large .project-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.project-topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.project-content > p {
    color: var(--text-soft);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #f8fafc;
    color: #46536a;
    font-size: 0.76rem;
    font-weight: 700;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tech-list span {
    padding: 13px 18px;
    border: 1px solid rgba(209, 220, 233, 0.85);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #344054;
    font-weight: 700;
    box-shadow: 0 7px 20px rgba(15, 31, 55, 0.04);
}

.contact-section {
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 110, 247, 0.22), transparent 28%),
        radial-gradient(circle at 80% 85%, rgba(124, 92, 255, 0.18), transparent 28%),
        #0b1526;
    color: #fff;
}

.contact-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 90px;
}

.contact-content > p:not(.eyebrow) {
    color: #b2bfd1;
    font-size: 1.08rem;
}

.contact-points {
    display: grid;
    gap: 21px;
    margin-top: 38px;
}

.contact-points > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-points span {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    background: rgba(79, 110, 247, 0.18);
    color: #9aabff;
    font-weight: 800;
}

.contact-points p {
    margin: 0;
    color: #afbdd0;
    font-size: 0.89rem;
}

.contact-points strong {
    color: #fff;
}

.contact-card {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.23);
    backdrop-filter: blur(16px);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

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

.form-group label {
    color: #e9eef7;
    font-size: 0.84rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.form-group input,
.form-group select {
    height: 51px;
    padding: 0 14px;
}

.form-group textarea {
    min-height: 145px;
    padding: 13px 14px;
    resize: vertical;
}

.form-group select option {
    background: #14233b;
    color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(130, 152, 255, 0.9);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.15);
}

.form-group textarea::placeholder {
    color: #8592a6;
}

.form-note {
    margin: 16px 0 0;
    color: #8795aa;
    font-size: 0.73rem;
    line-height: 1.55;
    text-align: center;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
}

.form-message {
    display: none;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
}

.form-message.visible {
    display: block;
}

.form-message.success {
    background: rgba(47, 191, 131, 0.15);
    color: #a6f2cf;
}

.form-message.error {
    background: rgba(235, 91, 91, 0.15);
    color: #ffb8b8;
}

.site-footer {
    padding: 32px 0;
    border-top: 1px solid #1d2a3e;
    background: #08111f;
    color: #a7b3c5;
}

.footer-inner {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
}

.brand-footer {
    color: #fff;
}

.footer-inner > p {
    margin: 0;
    font-size: 0.81rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 22px;
    border-top: 1px solid #1d2a3e;
    text-align: center;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.reveal-delay-small {
    transition-delay: 0.08s;
}

.reveal-delay {
    transition-delay: 0.16s;
}

.reveal-delay-large {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1050px) {
    .main-nav {
        gap: 20px;
    }

    .main-nav > a:not(.button) {
        font-size: 0.88rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 0.85fr;
        gap: 35px;
    }

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

    .process-card::after {
        display: none;
    }

    .contact-grid {
        gap: 55px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-height: 70px;
    }

    .section {
        padding: 90px 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        right: 0;
        bottom: 0;
        left: 0;
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 30px 20px;
        background: rgba(248, 250, 252, 0.98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.22s ease, transform 0.22s ease;
        backdrop-filter: blur(18px);
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav > a:not(.button) {
        padding: 15px 4px;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .main-nav .button {
        margin-top: 24px;
    }

    .hero {
        min-height: auto;
        padding-top: 145px;
        padding-bottom: 100px;
    }

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

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

    .hero-visual {
        width: min(100%, 620px);
        min-height: 435px;
        margin: 15px auto 0;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-grid .section-heading {
        position: static;
    }

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

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

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

    .project-card-large .project-content {
        padding: 33px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .copyright {
        width: 100%;
        grid-column: auto;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 76px 0;
    }

    h1 {
        font-size: clamp(2.75rem, 14vw, 4.1rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading-split {
        display: block;
    }

    .hero {
        padding-top: 125px;
    }

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

    .hero-highlights {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .hero-highlights div {
        padding: 13px 10px;
        border: 1px solid var(--border);
        border-radius: 11px;
        background: rgba(255, 255, 255, 0.58);
        text-align: center;
    }

    .hero-highlights strong {
        font-size: 0.82rem;
    }

    .hero-highlights span {
        font-size: 0.68rem;
    }

    .hero-visual {
        min-height: 350px;
    }

    .code-window {
        top: 25px;
    }

    .code-content {
        min-height: 290px;
        padding: 28px 20px;
        font-size: 0.73rem;
    }

    .floating-card {
        transform: scale(0.85);
    }

    .floating-card-one {
        top: -12px;
        left: -10px;
        transform-origin: left top;
    }

    .floating-card-two {
        right: -8px;
        bottom: -2px;
        transform-origin: right bottom;
    }

    .feature-list,
    .process-grid,
    .projects-grid,
    .form-row {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .service-card,
    .project-content,
    .project-card-large .project-content,
    .contact-card {
        padding: 24px;
    }

    .project-card-large {
        grid-column: auto;
    }

    .project-visual-zynerion {
        min-height: 300px;
    }

    .mock-sidebar,
    .mock-content {
        height: 220px;
    }

    .mock-sidebar {
        width: 60px;
    }

    .mock-sidebar span {
        width: 30px;
        height: 30px;
    }

    .project-card:not(.project-card-large) .project-visual {
        min-height: 270px;
    }

    .tech-list {
        justify-content: flex-start;
    }

    .tech-list span {
        flex: 1 0 calc(50% - 12px);
        text-align: center;
    }

    .contact-section {
        padding-bottom: 90px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
