:root {
    --navy-950: #030918;
    --navy-900: #061124;
    --navy-800: #0a1b34;
    --navy-700: #102844;
    --gold: #f7bd3b;
    --gold-strong: #ffd86a;
    --silver: #d9dde4;
    --text: #f8fbff;
    --muted: #aeb9c9;
    --line: rgba(255, 255, 255, .13);
    --panel: rgba(255, 255, 255, .07);
    --shadow: 0 28px 90px rgba(0, 0, 0, .34);
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Cairo", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(247, 189, 59, .14), transparent 28rem),
        radial-gradient(circle at 85% 14%, rgba(217, 221, 228, .09), transparent 26rem),
        linear-gradient(180deg, var(--navy-950), var(--navy-900) 42%, #040914);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 78%);
}

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

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

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 9, 24, .72);
    backdrop-filter: blur(22px);
}

.nav {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(247, 189, 59, .22);
}

.brand b {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-inline: auto;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-strong);
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-button,
.language-button,
.nav-cta {
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
}

.nav-cta {
    padding-inline: 18px;
    border-color: rgba(247, 189, 59, .55);
    background: linear-gradient(135deg, rgba(247, 189, 59, .2), rgba(255, 255, 255, .06));
    color: var(--gold-strong);
}

.menu-button {
    display: none;
}

.hero {
    position: relative;
    min-height: 100vh;
    padding: 150px 0 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 70px;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(26px);
    opacity: .55;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

.glow-one {
    inset: 18% auto auto -150px;
    background: radial-gradient(circle, rgba(247, 189, 59, .22), transparent 68%);
}

.glow-two {
    inset: auto -140px 5% auto;
    background: radial-gradient(circle, rgba(217, 221, 228, .16), transparent 70%);
    animation-delay: -2s;
}

.eyebrow {
    color: var(--gold-strong);
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--gold);
}

.hero h1,
.section h2 {
    margin: 16px 0;
    line-height: 1.18;
    letter-spacing: 0;
}

.hero h1 {
    font-size: clamp(42px, 6.2vw, 82px);
    max-width: 820px;
}

.hero p,
.section-head p,
.proof-copy p,
.contact-copy p,
.service-card p,
.timeline-item p {
    color: var(--muted);
}

.hero p {
    max-width: 680px;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

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

.primary {
    color: #111827;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
    box-shadow: 0 18px 40px rgba(247, 189, 59, .24);
}

.secondary {
    background: rgba(255, 255, 255, .06);
    border-color: var(--line);
}

.trust-strip {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 680px;
}

.trust-strip span {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
    color: var(--muted);
}

.trust-strip b {
    display: block;
    color: var(--text);
    font-size: 24px;
    line-height: 1.2;
}

.hero-visual {
    position: relative;
    min-height: 570px;
    display: grid;
    place-items: center;
}

.logo-stage {
    position: relative;
    width: min(500px, 92vw);
    aspect-ratio: 1;
    border: 1px solid rgba(247, 189, 59, .24);
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025)),
        radial-gradient(circle at 50% 35%, rgba(247, 189, 59, .18), transparent 58%);
    box-shadow: var(--shadow), inset 0 0 80px rgba(247, 189, 59, .06);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.logo-stage::before {
    content: "";
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
}

.logo-stage img {
    position: relative;
    width: 76%;
    border-radius: 8px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .38);
    animation: logoLift 5s ease-in-out infinite;
}

.pixel {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--gold);
    box-shadow: 0 0 22px rgba(247, 189, 59, .65);
    animation: pixelDrift 6s ease-in-out infinite;
}

.p1 { inset: 16% auto auto 18%; }
.p2 { inset: 28% 14% auto auto; animation-delay: -1s; }
.p3 { inset: auto auto 18% 24%; animation-delay: -2s; }
.p4 { inset: auto 22% 22% auto; animation-delay: -3s; }

.system-card {
    position: absolute;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(5, 14, 31, .78);
    backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.system-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.system-card b {
    color: var(--gold-strong);
    font-size: 24px;
}

.card-a { inset: 13% auto auto 0; }
.card-b { inset: auto 0 14% auto; }

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

.section-head {
    max-width: 760px;
    margin-bottom: 36px;
}

.section h2 {
    font-size: clamp(32px, 4.7vw, 58px);
}

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

.service-card,
.timeline-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .035));
    padding: 28px;
    min-height: 250px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service-card:hover,
.timeline-item:hover,
.work-item:hover {
    transform: translateY(-6px);
    border-color: rgba(247, 189, 59, .46);
}

.service-number {
    color: var(--gold);
    font-weight: 900;
}

.service-card h3,
.timeline-item h3 {
    margin: 12px 0 8px;
    font-size: 23px;
}

.proof-section {
    background: linear-gradient(90deg, rgba(247, 189, 59, .08), rgba(217, 221, 228, .05), rgba(255, 255, 255, .02));
    border-block: 1px solid var(--line);
}

.proof-grid {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 52px;
    align-items: center;
}

.proof-list {
    display: grid;
    gap: 12px;
}

.proof-list div {
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    min-height: 78px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    padding: 14px 18px;
}

.proof-list b {
    color: var(--gold);
    font-size: 24px;
}

.proof-list span {
    font-weight: 800;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.work-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease;
}

.browser-bar {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding-inline: 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .045);
}

.browser-bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold);
}

.browser-bar i:nth-child(2) {
    background: var(--silver);
}

.browser-bar i:nth-child(3) {
    background: #5f7088;
}

.project-preview {
    min-height: 215px;
    display: grid;
    place-items: center;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(247, 189, 59, .12), transparent 36%),
        linear-gradient(160deg, rgba(217, 221, 228, .1), rgba(6, 17, 36, .7));
}

.project-preview img {
    width: min(190px, 80%);
    height: 126px;
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .3));
}

.project-preview.has-screenshot {
    padding: 0;
    align-items: stretch;
}

.project-preview.has-screenshot img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    object-position: top center;
    filter: none;
}

.project-meta {
    display: block;
    padding: 20px;
}

.project-meta strong,
.project-meta small {
    display: block;
}

.project-meta strong {
    font-size: 19px;
}

.project-meta small {
    color: var(--muted);
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.timeline-item b {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #111827;
    background: var(--gold);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 46px;
    align-items: start;
}

.phone {
    direction: ltr;
    display: block;
    width: max-content;
    color: var(--gold-strong);
    font-size: 23px;
    font-weight: 900;
    text-decoration: none;
    margin: 22px 0;
}

form {
    display: grid;
    gap: 14px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
    box-shadow: var(--shadow);
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(3, 9, 24, .58);
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus {
    border-color: rgba(247, 189, 59, .7);
    box-shadow: 0 0 0 4px rgba(247, 189, 59, .1);
}

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

.form-status {
    min-height: 26px;
}

.form-status.success {
    color: #58d68d;
}

.form-status.error {
    color: #ff7676;
}

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

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

@keyframes floatGlow {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(26px, -18px, 0) scale(1.08); }
}

@keyframes logoLift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pixelDrift {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: .9; }
    50% { transform: translate3d(10px, -14px, 0); opacity: .45; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 1020px) {
    .hero-grid,
    .proof-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
    }

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

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

@media (max-width: 760px) {
    .nav {
        min-height: 74px;
    }

    .brand span {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        margin-inline-start: auto;
    }

    .nav-links {
        position: absolute;
        inset: 84px 16px auto;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(3, 9, 24, .96);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px;
    }

    .hero {
        min-height: auto;
        padding-top: 120px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .trust-strip,
    .services-grid,
    .work-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .system-card {
        display: none;
    }
}
