:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #2563eb;
    --blue-600: #1d4ed8;
    --blue-700: #1e40af;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #64748b;
    --white: #ffffff;
    --surface: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    --radius: 1.15rem;
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --container: 1120px;
    --header-h: 4.4rem;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    background:
        radial-gradient(900px 480px at 8% -8%, rgba(37, 99, 235, 0.1), transparent 58%),
        radial-gradient(720px 420px at 100% 0%, rgba(96, 165, 250, 0.12), transparent 50%),
        #f4f8fc;
    min-height: 100vh;
}

.page-shell { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-700); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 0.7rem;
    background: var(--blue-500);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.brand-icon { width: 1.15rem; height: 1.15rem; }

.icon {
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    flex-shrink: 0;
}

.icon-lg { width: 1.45rem; height: 1.45rem; }

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    background: var(--blue-50);
    color: var(--blue-600);
    margin-bottom: 0.85rem;
}

.icon-badge.is-solid {
    background: var(--blue-500);
    color: #fff;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.nav-link:hover { color: var(--ink); background: #f1f5f9; }
.nav-link.is-active { color: var(--blue-700); background: var(--blue-50); }

.header-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    border-radius: 0.8rem;
    background: #fff;
    color: var(--ink) !important;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    white-space: nowrap;
}

.btn-auth:hover { background: #f8fafc; color: var(--ink) !important; }

.btn-auth.is-primary {
    background: var(--blue-500);
    border-color: transparent;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.btn-auth.is-primary:hover { background: var(--blue-600); color: #fff !important; }

.nav-toggle {
    display: none;
    width: 2.55rem;
    height: 2.55rem;
    border: 0;
    border-radius: 0.75rem;
    background: transparent;
    padding: 0.55rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 999px;
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.btn,
.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.2rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--blue-500);
    color: #fff;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover { background: var(--blue-600); color: #fff; }

.btn-secondary {
    background: #fff;
    border-color: #e2e8f0;
    color: var(--ink);
}

.btn-secondary:hover { background: #f8fafc; color: var(--ink); }

.btn-light {
    background: #fff;
    color: var(--blue-700);
}

.btn-light:hover { color: var(--blue-700); }

.nx-hero {
    padding: clamp(2.8rem, 6vw, 4.6rem) 0 1rem;
    text-align: center;
}

.nx-hero-copy { max-width: 760px; }

.nx-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-700);
    font-size: 0.82rem;
    font-weight: 700;
}

.nx-pill .icon { width: 0.95rem; height: 0.95rem; }

.nx-hero h1,
.section-title,
.page-hero h1,
.auth-panel h1,
.footer-name,
.cta-band h2,
.policy-panel h2 {
    font-family: var(--font);
}

.nx-hero h1 {
    margin: 0 auto 0.9rem;
    max-width: none;
    font-size: clamp(2.15rem, 4.2vw, 3.45rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.nx-hero h1 .line { display: block; color: var(--ink); }
.nx-hero h1 span { display: block; color: var(--blue-500); }
.accent { color: var(--blue-500); }

.nx-hero-copy > p:last-of-type,
.nx-hero-copy > p {
    margin: 0 auto 1.4rem;
    max-width: 46ch;
    color: var(--muted);
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.nx-hero-frame,
.nx-photo,
.media-frame,
.page-banner,
.service-media {
    overflow: hidden;
    background: #fff;
}

.nx-hero-frame {
    margin: 2rem auto 0;
    max-width: 880px;
    border-radius: 1.4rem;
    border: 1px solid var(--line);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.nx-hero-frame img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center 28%;
}

.section { padding: clamp(2.6rem, 5vw, 4.2rem) 0; }
.section-quiet,
.section-alt { background: rgba(255, 255, 255, 0.55); }

.section-head {
    max-width: 40rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.section-head.is-left { margin-left: 0; text-align: left; }

.section-kicker {
    margin: 0 0 0.45rem;
    color: var(--blue-600);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 0.7rem;
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.section-lead { margin: 0; color: var(--muted); }

.nx-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.4rem;
    align-items: center;
}

.nx-split.is-reverse > :first-child { order: 2; }

.nx-checks {
    list-style: none;
    margin: 1.1rem 0 1.3rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.nx-checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.nx-checks span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.5rem;
    background: var(--blue-50);
    color: var(--blue-600);
    flex-shrink: 0;
}

.nx-checks .icon { width: 0.95rem; height: 0.95rem; }

.nx-photo,
.media-frame,
.service-media {
    border-radius: 1.35rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.55rem;
    background: #fff;
}

.nx-photo img,
.media-frame img,
.service-media img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center 25%;
    border-radius: 1rem;
}

.chip-label {
    margin: 0 0 0.85rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

.point-item,
.feature-card,
.package-card,
.step-card,
.service-tile,
.product-card,
.faq-item,
.testimonial-card,
.info-panel,
.form-panel,
.policy-panel,
.auth-panel,
.service-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.point-item { padding: 1.15rem 1.2rem; }

.point-item h3,
.feature-card h3,
.package-card h3,
.step-card h3,
.service-tile h3,
.product-card h3,
.testimonial-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.point-item p,
.feature-card p,
.package-card p,
.step-card p,
.service-tile p,
.product-card p,
.testimonial-card p { margin: 0; color: var(--muted); }

.about-intro,
.feature-grid,
.package-grid,
.step-grid,
.service-tile-grid,
.product-grid,
.testimonial-grid,
.contact-grid,
.split-grid {
    display: grid;
    gap: 1rem;
}

.about-intro { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 2rem; }
.about-points { display: grid; gap: 1rem; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.package-grid,
.product-grid,
.testimonial-grid,
.service-tile-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(4, 1fr); }
.contact-grid,
.split-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }

.feature-card,
.package-card,
.step-card,
.service-tile,
.product-card,
.testimonial-card { padding: 1.25rem; }

.feature-icon,
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 0.75rem;
    background: var(--blue-50);
    color: var(--blue-600);
    font-weight: 800;
}

.step-num {
    background: var(--blue-500);
    color: #fff;
    font-size: 0.85rem;
}

.package-card.is-featured {
    border-color: var(--blue-200);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.package-price {
    margin: 0.35rem 0 0.9rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ink);
}

.package-price span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.package-card ul,
.service-list {
    margin: 0 0 1.15rem;
    padding-left: 1.1rem;
    color: var(--muted);
}

.package-card li + li,
.service-list li + li { margin-top: 0.35rem; }

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 46rem;
    margin: 0 auto;
}

.faq-item { padding: 0; overflow: hidden; }

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1rem 1.15rem;
    font-weight: 700;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon,
.policy-panel h2 .icon,
.page-hero h1 .icon,
.auth-switch .icon,
.info-list .icon { color: var(--blue-600); }

.faq-item[open] summary { border-bottom: 1px solid var(--line); color: var(--blue-700); }

.faq-item p {
    margin: 0;
    padding: 0.95rem 1.15rem 1.1rem;
    color: var(--muted);
}

.cta-band {
    margin: 0 auto clamp(2rem, 4vw, 3.2rem);
    width: min(100% - 2rem, var(--container));
    border-radius: 1.4rem;
    padding: clamp(1.6rem, 4vw, 2.4rem);
    background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #3b82f6);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.cta-band h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.92); max-width: 42ch; }

.page-hero { padding: clamp(1.6rem, 4vw, 2.4rem) 0 0.4rem; }

.page-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(2rem, 4.5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.page-hero p { margin: 0; max-width: 52ch; color: var(--muted); }

.page-banner {
    position: relative;
    max-height: 240px;
    border-radius: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.page-banner img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: center 30%;
}

.info-panel,
.form-panel,
.policy-panel,
.auth-panel { padding: 1.4rem; }

.form-row { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.form-row label { font-weight: 700; font-size: 0.9rem; }

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 0.8rem 0.95rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
}

.form-row textarea { min-height: 8.5rem; resize: vertical; }

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: 2px solid rgba(37, 99, 235, 0.28);
    border-color: var(--blue-400);
}

.alert { margin: 0 0 1rem; padding: 0.85rem 1rem; border-radius: 0.85rem; font-size: 0.95rem; }
.alert-success { background: var(--blue-50); border: 1px solid var(--blue-200); color: var(--blue-700); }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.95rem; }
.info-list li strong,
.info-list .icon-inline {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.15rem;
    color: var(--ink);
}
.info-list li span,
.info-list li a { color: var(--muted); text-decoration: none; }

.policy-panel { max-width: 48rem; }
.policy-panel h2 {
    margin: 1.8rem 0 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.policy-panel h2:first-child { margin-top: 0; }
.policy-panel p,
.policy-panel li { color: var(--muted); }
.policy-panel ul { padding-left: 1.15rem; }

.auth-wrap { max-width: 28rem; margin: 0 auto; }
.auth-panel h1 { margin: 0 0 0.45rem; font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-panel .auth-lead { margin: 0 0 1.15rem; color: var(--muted); }
.auth-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.service-detail { display: grid; gap: 1rem; }

.service-block {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.4rem;
    align-items: center;
    padding: 1.15rem;
}

.service-block:nth-child(even) > :first-child { order: 2; }

.site-footer {
    margin-top: 1rem;
    padding: 2.6rem 0 1.6rem;
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 1.3rem;
}

.footer-name { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 800; }
.footer-copy,
.footer-bottom p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.footer-heading { margin: 0 0 0.7rem; font-weight: 800; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-links a,
.footer-links li {
    text-decoration: none;
    color: var(--ink-soft);
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.footer-links a:hover { color: var(--blue-700); }

.footer-bottom {
    margin-top: 1.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
    .header-inner { grid-template-columns: 1fr auto; position: relative; }
    .header-left { order: 1; }
    .header-auth { order: 2; }
    .site-nav { order: 3; }
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.35rem;
        border-radius: 1rem;
        border: 1px solid var(--line);
        background: #fff;
        box-shadow: var(--shadow);
        z-index: 60;
    }

    .site-nav.is-open { display: flex; }
    .site-nav .nav-link { padding: 0.85rem 1rem; }

    .nx-hero-frame img { height: 240px; }
    .nx-photo img,
    .media-frame img,
    .service-media img { height: 220px; }
    .page-banner,
    .page-banner img { height: 180px; max-height: 180px; }

    .nx-split,
    .nx-split.is-reverse,
    .about-intro,
    .feature-grid,
    .package-grid,
    .step-grid,
    .service-tile-grid,
    .product-grid,
    .testimonial-grid,
    .contact-grid,
    .split-grid,
    .footer-grid,
    .service-block {
        grid-template-columns: 1fr;
    }

    .nx-split.is-reverse > :first-child,
    .service-block:nth-child(even) > :first-child { order: 0; }

    .cta-band { flex-direction: column; align-items: flex-start; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .feature-grid,
    .service-tile-grid { grid-template-columns: 1fr; }
    .nx-hero h1 { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
