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

:root {
    --bg: #050816;
    --bg-soft: #071021;
    --text: #f5f7ff;
    --muted: #9aa3c7;
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.15);
    --accent: #fbbf24;
    --accent-soft: rgba(251, 191, 36, 0.12);
    --border-subtle: rgba(148, 163, 184, 0.25);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 60px rgba(15, 23, 42, 0.65);
    --shadow-subtle: 0 10px 35px rgba(15, 23, 42, 0.5);
}

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #0b1220 0, #020617 52%, #000 100%);
    color: var(--text);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a:hover {
    text-decoration: underline;
}

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

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.7));
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 40%;
    background: conic-gradient(from 120deg, var(--accent), var(--primary), #22c1c3, var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #020617;
    border: 1px solid rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.7);
}

.logo-text {
    font-size: 0.98rem;
    text-transform: uppercase;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    font-size: 0.9rem;
}

.nav-link {
    position: relative;
    color: var(--muted);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), var(--primary));
    transition: width 0.2s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

/* Hero */

main {
    flex: 1;
}

.hero {
    padding: 3.3rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 4vw, 2.9rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 1.4rem;
}

.accent {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s ease-out;
}

.btn.primary {
    background: linear-gradient(to right, var(--primary), #22c1c3);
    color: #0b1120;
    box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.8);
    text-decoration: none;
}

.btn.secondary {
    background: var(--accent);
    color: #111827;
    box-shadow: var(--shadow-subtle);
}

.btn.secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgba(251, 191, 36, 0.7);
    text-decoration: none;
}

.btn.ghost {
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
}

.btn.ghost:hover {
    background: rgba(15, 23, 42, 1);
    text-decoration: none;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.35);
    font-size: 0.72rem;
    color: var(--muted);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.card-mesh {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 1.6rem;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.25), transparent 55%),
        radial-gradient(circle at bottom right, rgba(251, 191, 36, 0.3), transparent 55%),
        linear-gradient(to bottom right, #020617, #020617);
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card-mesh::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.45;
    pointer-events: none;
}

.card {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.6);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 45px rgba(15, 23, 42, 0.8);
    margin-bottom: 0.8rem;
}

.card h3 {
    font-size: 0.95rem;
    margin: 0 0 0.15rem;
}

.card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* Sections */

.section {
    padding: 2.8rem 0;
}

.bg-soft {
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
}

.section-header {
    text-align: left;
    margin-bottom: 1.7rem;
}

.section-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.section-header p {
    color: var(--muted);
}

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

.info-card,
.service-card {
    padding: 1.3rem;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, var(--primary-soft), rgba(15, 23, 42, 0.98));
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-subtle);
}

.info-card h3,
.service-card h3 {
    margin-top: 0;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.info-card p,
.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* CTA */

.cta {
    padding-bottom: 3.4rem;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.6rem 1.7rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.16), rgba(251, 191, 36, 0.18));
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: var(--shadow-soft);
}

.cta-inner h2 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
}

.cta-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Page hero */

.page-hero {
    padding: 2.4rem 0 1.1rem;
}

.page-hero h1 {
    font-size: 1.9rem;
    margin: 0 0 0.4rem;
}

.page-subtitle {
    margin: 0;
    color: var(--muted);
}

/* Content */

.narrow {
    max-width: 760px;
}

.section .narrow h2 {
    margin-top: 1.4rem;
    margin-bottom: 0.4rem;
}

.section .narrow p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.96rem;
}

.bullet-list {
    padding-left: 1.1rem;
    color: var(--muted);
}

.bullet-list li {
    margin-bottom: 0.3rem;
}

/* Contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
}

.contact-form {
    padding: 1.4rem 1.4rem 1.5rem;
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
}

label {
    font-size: 0.8rem;
    color: var(--muted);
}

input,
textarea {
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #020617;
    color: var(--text);
    padding: 0.55rem 0.7rem;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.6);
}

textarea {
    resize: vertical;
}

.form-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0.4rem 0 0.9rem;
}

/* Legal */

.legal-content h2 {
    margin-top: 1.5rem;
}

.legal-content h3 {
    margin-top: 1.1rem;
}

.legal-content p {
    margin-bottom: 0.8rem;
}

/* Footer */

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.4fr 1fr;
    gap: 1.5rem;
    padding: 1.7rem 0 1.5rem;
    font-size: 0.85rem;
}

.footer-logo {
    margin-bottom: 0.4rem;
}

.footer-text {
    color: var(--muted);
    max-width: 360px;
}

.site-footer h4 {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.55rem 0;
    font-size: 0.78rem;
    color: var(--muted);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-visual {
        order: -1;
    }

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

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

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

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

@media (max-width: 640px) {
    .nav {
        position: absolute;
        inset: 55px 1.5rem auto 1.5rem;
        padding: 0.7rem 0.75rem;
        border-radius: 16px;
        background: rgba(2, 6, 23, 0.95);
        border: 1px solid rgba(148, 163, 184, 0.5);
        box-shadow: 0 18px 60px rgba(15, 23, 42, 0.95);
        flex-direction: column;
        gap: 0.65rem;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.16s ease-out, transform 0.16s ease-out;
    }

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

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 2.3rem;
    }

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

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

    .cta-inner {
        padding: 1.3rem 1.2rem;
    }
}
