html {
    scroll-behavior: smooth;
}


:root {
    --bg-main: #050509;
    --bg-alt: #0d0d15;
    --bg-card: #151524;
    --border-subtle: #26263a;
    --text-main: #f5f5ff;
    --text-muted: #9a9ab8;
    --accent: #5c7cfa;
    --accent-soft: rgba(92, 124, 250, 0.15);
    --danger: #ff6b6b;
    --success: #51cf66;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(5,5,9,0.95), rgba(5,5,9,0.85), transparent);
    border-bottom: 1px solid rgba(38,38,58,0.7);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.logo {
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 14px;
    text-transform: uppercase;
}

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

.nav__link {
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--text-muted);
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav__link:hover {
    background: rgba(92, 124, 250, 0.12);
    color: var(--text-main);
    transform: translateY(-1px);
}

.nav__link--primary {
    background: var(--accent);
    color: #fff;
}

/* Hero */

.hero {
    padding: 32px 0 40px;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero__title {
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 8px;
}

.hero__subtitle {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 15px;
}

.hero__bullets {
    margin: 0 0 20px;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero__bullets li {
    margin-bottom: 4px;
}

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

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero__tag {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(92, 124, 250, 0.4);
}

/* Sections */

.section {
    padding: 32px 0;
}

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

.section__title {
    margin: 0 0 16px;
    font-size: 20px;
}

.section__subtitle {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Cards, grid */

.grid {
    display: grid;
    gap: 16px;
}

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

.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
}

.card__title {
    margin: 0 0 8px;
    font-size: 16px;
}

.card__text {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Projects */

.project {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: radial-gradient(circle at top left, rgba(92, 124, 250, 0.1), transparent 55%), var(--bg-main);
    margin-bottom: 20px;
}

.project__title {
    margin: 0 0 6px;
    font-size: 17px;
}

.project__type {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--accent);
}

.project__description {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.project__list {
    margin: 0 0 10px;
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.project__list li {
    margin-bottom: 4px;
}

.project__stack {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* Process */

.process {
    display: grid;
    gap: 12px;
}

.process__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(21, 21, 36, 0.9);
    border: 1px solid var(--border-subtle);
}

.process__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    flex-shrink: 0;
}

.process__title {
    margin: 0 0 4px;
    font-size: 14px;
}

.process__text {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

/* About */

.about__text p {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.about__list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.about__list li {
    margin-bottom: 4px;
}

/* Form */

.form {
    max-width: 640px;
    margin-top: 8px;
}

.form__group {
    margin-bottom: 14px;
}

.form__group--inline {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.form__label {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: #05050b;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(92, 124, 250, 0.4);
    background: #070712;
}

.form__textarea {
    resize: vertical;
    min-height: 96px;
}

.form__message {
    margin-top: 8px;
    font-size: 13px;
}

.form__message--error {
    color: var(--danger);
}

.form__message--success {
    color: var(--success);
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.button--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(92, 124, 250, 0.3);
}

.button--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(92, 124, 250, 0.4);
}

/* Contact */

.contact__meta {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.contact__placeholder {
    opacity: 0.6;
    font-style: italic;
}

/* Footer */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 16px 0 20px;
    background: #050509;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Responsive */

@media (min-width: 768px) {
    .hero {
        padding: 48px 0 56px;
    }

    .hero__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .hero__title {
        font-size: 34px;
    }

    .hero__subtitle {
        font-size: 15px;
        max-width: 520px;
    }

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

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

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

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1200px) {
    .hero__title {
        font-size: 40px;
    }

    .section {
        padding: 40px 0;
    }

    .project {
        display: flex;
        align-items: stretch;
    }

    .project__info {
        padding-right: 8px;
    }
}
