html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nav-link,
.mobile-nav-link,
.footer-link {
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.nav-link:hover,
.footer-link:hover {
    color: #c4b5fd;
}

.mobile-nav-link {
    border-radius: 12px;
    padding: .9rem 1rem;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #c4b5fd;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-lines {
    position: relative;
}

.menu-lines::before,
.menu-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-lines::before {
    top: -6px;
}

.menu-lines::after {
    top: 6px;
}

#menuButton.open .menu-lines {
    background: transparent;
}

#menuButton.open .menu-lines::before {
    transform: translateY(6px) rotate(45deg);
}

#menuButton.open .menu-lines::after {
    transform: translateY(-6px) rotate(-45deg);
}

.hero-section {
    background:
        linear-gradient(90deg, rgba(5, 5, 7, .98) 0%, rgba(12, 11, 18, .92) 48%, rgba(5, 5, 7, .8) 100%),
        radial-gradient(circle at 76% 36%, rgba(105, 65, 255, .34), transparent 36%),
        #050507;
}

.hero-grid {
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
}

.hero-media {
    pointer-events: none;
}

.hero-logo-watermark {
    position: absolute;
    right: max(2rem, 7vw);
    top: 16%;
    width: min(42vw, 540px);
    border-radius: 36px;
    opacity: .12;
    filter: saturate(1.15);
}

.mock-phone {
    position: absolute;
    display: grid;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 28px;
    background: rgba(21, 19, 29, .72);
    box-shadow: 0 24px 80px rgba(105, 65, 255, .22);
    backdrop-filter: blur(18px);
}

.mock-phone-a {
    right: max(2rem, 10vw);
    bottom: 17%;
    width: min(34vw, 380px);
    min-height: 260px;
    padding: 24px;
}

.mock-phone-b {
    right: max(2rem, 33vw);
    bottom: 10%;
    width: min(22vw, 230px);
    min-height: 190px;
    padding: 20px;
}

.phone-pill,
.phone-balance,
.phone-row,
.phone-chart {
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
}

.phone-pill {
    width: 46%;
    height: 18px;
    background: linear-gradient(90deg, #6941ff, #a78bfa);
}

.phone-pill.small {
    width: 62%;
}

.phone-balance {
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(105, 65, 255, .75), rgba(140, 109, 255, .42));
}

.phone-row {
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .1);
}

.phone-row.short {
    width: 78%;
}

.phone-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.phone-actions span {
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .11);
}

.phone-chart {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 108px;
    padding: 14px;
    border-radius: 18px;
}

.phone-chart span {
    flex: 1;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #a78bfa, #6941ff);
}

.phone-chart span:nth-child(1) { height: 35%; }
.phone-chart span:nth-child(2) { height: 70%; }
.phone-chart span:nth-child(3) { height: 50%; }
.phone-chart span:nth-child(4) { height: 88%; }

.status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #a78bfa;
    box-shadow: 0 0 0 7px rgba(167, 139, 250, .16);
}

.section-kicker {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(105, 65, 255, .1);
    color: #5b21b6;
    padding: .55rem .9rem;
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-kicker.dark {
    background: rgba(167, 139, 250, .12);
    color: #ddd6fe;
}

.service-card,
.project-card,
.contact-panel,
.app-preview,
.legal-card {
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.service-card,
.project-card {
    padding: 28px;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(105, 65, 255, .42);
    box-shadow: 0 20px 58px rgba(105, 65, 255, .16);
}

.service-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: #f3f0ff;
    color: #6941ff;
    font-weight: 950;
}

.service-card h3,
.project-card h3 {
    margin-top: 22px;
    font-size: 1.18rem;
    font-weight: 950;
    letter-spacing: 0;
}

.service-card p,
.project-card p {
    margin-top: 10px;
    color: #64748b;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.7;
}

.project-bar {
    height: 8px;
    width: 84px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6941ff, #a78bfa);
}

.app-preview {
    background: linear-gradient(180deg, #15131d, #0c0b12);
    border-color: rgba(255, 255, 255, .12);
    padding: 28px;
    color: #fff;
}

.app-preview-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-preview-header h3 {
    font-size: 1.3rem;
    font-weight: 950;
}

.app-preview-header p {
    margin-top: 4px;
    color: #aaa2bf;
    font-weight: 700;
}

.app-preview-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.app-preview-grid div {
    min-height: 88px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .045);
}

.app-preview-grid span {
    display: block;
    color: #aaa2bf;
    font-size: .78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.app-preview-grid strong {
    display: block;
    margin-top: 8px;
    font-size: 1.3rem;
    font-weight: 950;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.contact-line span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #6941ff;
}

.contact-panel {
    display: grid;
    gap: 20px;
    padding: 28px;
}

.contact-panel label {
    display: grid;
    gap: 8px;
}

.contact-panel label span {
    font-size: .84rem;
    font-weight: 950;
    color: #334155;
}

.contact-panel input,
.contact-panel select,
.contact-panel textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    background: #f8fafc;
    padding: 14px 15px;
    font-weight: 700;
    color: #0f172a;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.contact-panel input:focus,
.contact-panel select:focus,
.contact-panel textarea:focus {
    border-color: #6941ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(105, 65, 255, .12);
}

.legal-main {
    background: #f8fafc;
    color: #0f172a;
    padding-top: 7rem;
}

.legal-card {
    padding: clamp(1.25rem, 3vw, 3rem);
}

.legal-card h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 950;
    line-height: 1.02;
    letter-spacing: 0;
}

.legal-card h2 {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 950;
}

.legal-card p,
.legal-card li {
    color: #475569;
    font-weight: 600;
    line-height: 1.85;
}

.legal-card p {
    margin-top: .9rem;
}

.legal-card ul {
    margin-top: .9rem;
    padding-left: 1.25rem;
    list-style: disc;
}

.legal-card hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e2e8f0;
}

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

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

@media (max-width: 900px) {
    .hero-logo-watermark {
        right: -12rem;
        top: 22%;
        width: 760px;
    }

    .mock-phone {
        display: none;
    }
}

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

    .reveal,
    .service-card,
    .project-card {
        transition: none;
    }
}
