* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --accent: #111827;
    --accent-hover: #374151;
    --alt-bg: #f9fafb;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--accent);
    color: #fff;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.brand-name {
    font-size: 18px;
}

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

.site-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav a.nav-cta {
    color: #fff;
    background: var(--accent);
    padding: 9px 18px;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.site-nav a.nav-cta:hover {
    background: var(--accent-hover);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
    padding: 120px 0 96px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 760px;
    margin: 0 auto 24px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

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

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
}

.btn-block {
    width: 100%;
}

/* ---------- Sections ---------- */

.section {
    padding: 96px 0;
}

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

.section-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 40px;
    max-width: 640px;
}

/* ---------- About ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 56px;
}

.about-text {
    color: var(--muted);
    margin-bottom: 18px;
    max-width: 600px;
}

.about-values {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-values li {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    color: var(--muted);
}

.about-values strong {
    color: var(--text);
    display: block;
}

/* ---------- Team ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 18px;
}

.avatar::before {
    content: attr(data-initials);
}

.team-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-card p {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Tech ---------- */

.tech-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-list li {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 9px 20px;
    background: var(--bg);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.tech-list li:hover {
    border-color: var(--accent);
    background: #fff;
}

/* ---------- Services ---------- */

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

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 14px;
    color: var(--muted);
}

/* ---------- Projects ---------- */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.project-logo {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.project-logo img {
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}

.placeholder-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f4f6;
    border: 1px solid var(--border);
    color: var(--muted);
    font-weight: 800;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card h3 {
    font-size: 17px;
    font-weight: 700;
}

.project-card p {
    font-size: 14px;
    color: var(--muted);
    flex: 1;
}

.project-tech {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech li {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 12px;
}

.project-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    align-self: flex-start;
}

.project-link:hover {
    border-bottom-color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
    .project-link {
        opacity: 0;
    }

    .project-card:hover .project-link,
    .project-link:focus-visible {
        opacity: 1;
    }
}

/* ---------- Back to top ---------- */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-hover);
}

/* ---------- Testimonials ---------- */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card p {
    font-size: 15px;
    color: var(--text);
    font-style: normal;
}

.testimonial-card footer {
    margin-top: auto;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.testimonial-card strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
}

.testimonial-card footer span {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-sub {
    color: var(--muted);
    margin: 12px 0 24px;
    max-width: 420px;
}

.contact-mail a {
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.contact-mail a:hover {
    border-bottom-color: var(--accent);
}

.contact-form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.form-group textarea {
    resize: vertical;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.form-status {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
}

.form-status.success {
    color: #15803d;
}

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

/* ---------- Footer ---------- */

.site-footer {
    background: var(--alt-bg);
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.footer-brand p {
    font-weight: 400;
    font-size: 14px;
    color: var(--muted);
    margin-left: 4px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 24px 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

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

    .site-nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .site-nav a.nav-cta {
        border: none;
        text-align: center;
        margin-top: 12px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 80px 0 64px;
    }

    .section {
        padding: 72px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
