:root {
    --ink: #0f172a;
    --muted: #475569;
    --bg-top: #0b1d3f;
    --bg-mid: #102a57;
    --bg-bottom: #0c234b;
    --line-white: rgba(148, 163, 184, 0.32);
    --line-dark: rgba(148, 163, 184, 0.28);
    --accent: #0a84ff;
    --accent-2: #22d3ee;
    --danger: #dc2626;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Be Vietnam Pro", "Noto Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(1200px 760px at 12% -8%, rgba(93, 196, 255, 0.2), transparent 60%),
        radial-gradient(980px 700px at 94% 8%, rgba(87, 120, 255, 0.18), transparent 62%),
        radial-gradient(1200px 820px at 50% 108%, rgba(4, 19, 44, 0.5), transparent 70%),
        linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
    color: #e2e8f0;
    overflow-x: hidden;
}

.noise-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

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

.page-wrap {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 112px;
}

main {
    display: grid;
    gap: 26px;
}

.glass {
    position: relative;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 22px;
}

.topbar.glass {
    border: 1px solid var(--line-dark);
    background: rgba(8, 20, 42, 0.66);
    backdrop-filter: blur(18px) saturate(165%);
    -webkit-backdrop-filter: blur(18px) saturate(165%);
    box-shadow:
        0 16px 38px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.topbar.glass::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%);
    opacity: 0.5;
}

.brand {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: #e2e8f0;
}

.top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(145deg, rgba(38, 187, 255, 0.94), rgba(10, 132, 255, 0.94));
    border: 1px solid rgba(186, 230, 253, 0.45);
    box-shadow: 0 16px 32px -16px rgba(13, 153, 255, 0.72);
}

.btn-outline {
    color: #dbeafe;
    border-color: rgba(103, 232, 249, 0.36);
    background: rgba(34, 211, 238, 0.12);
}

.hero {
    border-radius: 40px;
    padding: 46px 44px;
    color: #e2e8f0;
}

.hero.glass {
    background:
        radial-gradient(circle at 12% 8%, rgba(92, 219, 255, 0.22), transparent 44%),
        radial-gradient(circle at 88% 12%, rgba(92, 147, 255, 0.24), transparent 46%),
        linear-gradient(145deg, #0a2148 0%, #123064 45%, #184484 100%);
    box-shadow: inset 0 -30px 70px rgba(0, 0, 0, 0.24);
}

.hero.glass::before {
    content: "";
    position: absolute;
    inset: -8% -6%;
    pointer-events: none;
    opacity: 0.92;
    background:
        radial-gradient(620px 420px at 22% 16%, rgba(146, 227, 255, 0.26), transparent 62%),
        radial-gradient(560px 360px at 78% 24%, rgba(137, 171, 255, 0.22), transparent 64%),
        radial-gradient(760px 520px at 50% 88%, rgba(3, 15, 35, 0.22), transparent 72%);
}

.hero.glass::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 35%, rgba(255, 255, 255, 0.03) 100%);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(103, 232, 249, 0.36);
    color: #dbeafe;
}

h1 {
    margin: 14px 0 12px;
    max-width: 18ch;
    font-size: clamp(2.2rem, 4.2vw, 3.7rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.lead {
    margin: 0;
    max-width: 68ch;
    color: #d8e6fb;
    font-size: clamp(1rem, 1.95vw, 1.2rem);
    line-height: 1.78;
}

.hero-cta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.metric-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    border-radius: 16px;
    border: 1px solid rgba(191, 233, 255, 0.24);
    background: rgba(7, 23, 49, 0.48);
    padding: 18px 16px;
}

.metric-card strong {
    display: block;
    margin-bottom: 5px;
    color: #f8fbff;
    font-size: 1.07rem;
}

.metric-card span {
    color: #c9dcfb;
    font-size: 0.95rem;
    line-height: 1.6;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel,
.form-shell,
.contact-card {
    border-radius: 24px;
}

.panel.glass,
.form-shell.glass,
.contact-card.glass {
    border: 1px solid var(--line-white);
    background:
        radial-gradient(860px 280px at 0% 0%, rgba(59, 130, 246, 0.08), transparent 58%),
        radial-gradient(720px 260px at 100% 0%, rgba(14, 165, 233, 0.08), transparent 60%),
        linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(240, 246, 255, 0.96) 100%);
    box-shadow:
        0 16px 34px rgba(30, 64, 175, 0.08),
        0 2px 10px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.panel {
    padding: 30px;
}

.panel h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.25vw, 2rem);
    letter-spacing: -0.015em;
    color: #0f172a;
}

.panel p {
    margin: 0 0 12px;
    color: #475569;
    line-height: 1.76;
}

.panel ul {
    margin: 0;
    padding-left: 20px;
}

.panel li {
    margin-bottom: 10px;
    color: #334155;
    line-height: 1.72;
}

.timeline {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.84);
    padding: 18px 16px;
}

.step-label {
    display: inline-flex;
    margin-bottom: 7px;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.step-card p {
    margin: 0;
    color: #334155;
    line-height: 1.66;
}

.promo-link > a {
    display: block;
    border-radius: 26px;
    padding: 34px;
    color: #f0f9ff;
    border: 1px solid rgba(103, 232, 249, 0.42);
    background:
        radial-gradient(620px 260px at 0% 0%, rgba(122, 236, 255, 0.3), transparent 60%),
        linear-gradient(130deg, rgba(16, 78, 142, 0.9) 0%, rgba(24, 122, 201, 0.9) 52%, rgba(6, 52, 104, 0.92) 100%);
    box-shadow: 0 24px 54px -34px rgba(44, 178, 255, 0.86);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.promo-link > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 34px 66px -34px rgba(44, 178, 255, 1);
    border-color: rgba(190, 244, 255, 0.78);
}

.promo-link .promo-badge {
    display: inline-flex;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.2);
}

.promo-link h2 {
    margin: 0 0 10px;
    max-width: 30ch;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    line-height: 1.2;
}

.promo-link p {
    margin: 0 0 16px;
    max-width: 72ch;
    color: rgba(233, 246, 255, 0.95);
    line-height: 1.78;
}

.promo-link .promo-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 11px 17px;
    background: #ffffff;
    color: #0f5ca9;
    font-weight: 800;
}

.form-shell {
    padding: 32px;
}

.form-shell h2 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: clamp(1.42rem, 2.3vw, 2.05rem);
    letter-spacing: -0.015em;
}

.form-shell p {
    margin: 0 0 18px;
    color: #475569;
    line-height: 1.76;
}

.lead-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    color: #1e3a5f;
    font-size: 0.92rem;
    font-weight: 700;
}

.lead-input,
.lead-select,
.lead-textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: #ffffff;
    color: #0f172a;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.lead-input::placeholder,
.lead-textarea::placeholder {
    color: #64748b;
}

.lead-input:focus,
.lead-select:focus,
.lead-textarea:focus {
    border-color: rgba(10, 132, 255, 0.68);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.16);
}

.lead-textarea {
    resize: vertical;
    min-height: 126px;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.form-actions .btn-outline {
    color: #0f4ea4;
    border-color: rgba(59, 130, 246, 0.38);
    background: linear-gradient(180deg, #f4f9ff 0%, #e8f3ff 100%);
    box-shadow: 0 10px 22px -16px rgba(37, 99, 235, 0.44);
    opacity: 1;
}

.form-actions .btn-outline:hover {
    color: #0b3b80;
    border-color: rgba(37, 99, 235, 0.6);
    background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.status-msg {
    grid-column: 1 / -1;
    margin: 2px 0 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    display: none;
}

.status-msg.show {
    display: block;
}

.status-msg.success {
    background: rgba(22, 163, 74, 0.12);
    border: 1px solid rgba(22, 163, 74, 0.38);
    color: #166534;
}

.status-msg.error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.36);
    color: #991b1b;
}

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

.contact-card {
    text-align: center;
    padding: 24px 20px;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.34);
    box-shadow: 0 18px 34px rgba(30, 64, 175, 0.14), 0 8px 18px rgba(15, 23, 42, 0.08);
}

.contact-card .icon-box {
    margin: 0 auto 10px;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(150deg, #3b82f6, #2563eb);
    box-shadow: 0 14px 28px -14px rgba(37, 99, 235, 0.68);
}

.contact-card h3 {
    margin: 0 0 7px;
    color: #0f172a;
    font-size: 1.2rem;
}

.contact-card p {
    margin: 0;
    color: #475569;
    line-height: 1.66;
}

.footer {
    margin-top: 22px;
    text-align: center;
    color: #bfdbfe;
    font-size: 0.92rem;
}

.floating-dock {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dock-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 20px 34px -20px rgba(3, 10, 24, 0.92);
    transition: transform 220ms ease;
}

.dock-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

.dock-btn.call {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dock-btn.zalo {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 680ms cubic-bezier(.2, .8, .2, 1), transform 680ms cubic-bezier(.2, .8, .2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

.float-soft {
    animation: float-soft 5.6s ease-in-out infinite;
}

@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@media (max-width: 1080px) {
    .metric-grid,
    .grid-2,
    .timeline,
    .lead-form,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 36px 30px;
    }
}

@media (max-width: 720px) {
    .page-wrap {
        padding: 16px 12px 106px;
    }

    main {
        gap: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .top-actions {
        width: 100%;
    }

    .top-actions .btn {
        flex: 1 1 160px;
    }

    .hero,
    .panel,
    .form-shell,
    .promo-link > a,
    .contact-card {
        border-radius: 18px;
        padding: 20px;
    }

    .floating-dock {
        right: 12px;
        bottom: 12px;
    }

    .dock-btn {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
