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

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Giữ padding ngang 16px từ .container, chỉ thêm padding dọc */
    padding-top: 10px;
    padding-bottom: 10px;
    position: relative;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f9fafb;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* hamburger toggle */
#nav-toggle {
    display: none;
}

.nav-toggle-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #ffffff;
}

.nav-toggle-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: #111827;
    position: relative;
}

.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #111827;
}

.nav-toggle-btn span::before {
    top: -6px;
}

.nav-toggle-btn span::after {
    top: 6px;
}

.nav-links {
    display: flex;
    gap: 20px;
    font-size: 14px;
    margin-left: 28px;
}

.nav-links a {
    color: #4b5563;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #2563eb;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.nav-phone {
    color: #2563eb;
    font-weight: 600;
}

.btn-primary {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: #2563eb;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    background: #1d4ed8;
}

main {
    margin-top: 56px;
}

/* HERO */
.hero {
    position: relative;
    min-height: calc(100vh - 56px);
    display: block;
    background-size: cover;
    background-position: center;
    color: #0f172a;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
}

.hero-content {
    position: relative;
    padding: 92px 0;
    text-align: left;
}

.hero-eyebrow {
    font-size: 14px;
    font-weight: 500;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-title span {
    color: #2563eb;
}

.hero-subtitle {
    max-width: 540px;
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 24px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid #cbd5f5;
    background: #ffffff;
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.btn-outline:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.hero-note {
    font-size: 13px;
    color: #6b7280;
}

/* SECTION BASE */
section {
    padding: 64px 0;
}

section:nth-of-type(even) {
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 14px;
    color: #6b7280;
}

/* ABOUT */
.about-grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: center;
    }
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.about-card {
    border-radius: 20px;
    background: #ffffff;
    padding: 24px 24px 20px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
}

.about-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    gap: 16px;
}

.about-row-label {
    color: #6b7280;
    min-width: 130px;
}

.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
    font-size: 14px;
}

.about-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #2563eb;
}

.about-stat-label {
    color: #6b7280;
    font-size: 12px;
}

/* PRODUCTS */
.product-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.product-card {
    border-radius: 22px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.product-image {
    height: 160px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
}

.product-sub {
    font-size: 13px;
    color: #6b7280;
}

.product-link {
    font-size: 13px;
    font-weight: 500;
    color: #2563eb;
    margin-top: 4px;
}

/* LICENSE */
.license-layout {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .license-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: flex-start;
    }
}

.license-main {
    background: #ffffff;
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    font-size: 14px;
}

.license-main h3 {
    font-size: 15px;
    margin-bottom: 16px;
}

.license-main table {
    width: 100%;
    border-collapse: collapse;
}

.license-main td {
    padding: 6px 0;
    vertical-align: top;
}

.license-main td:first-child {
    width: 150px;
    color: #6b7280;
}

.license-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 14px;
}

.license-card {
    border-radius: 18px;
    background: #f9fafb;
    padding: 14px 16px 14px;
    border: 1px solid #e5e7eb;
}

.license-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.license-card ul {
    padding-left: 18px;
    font-size: 13px;
    color: #4b5563;
}

/* CONTACT */
.contact-layout {
    display: grid;
    gap: 24px;
}

@media (min-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
    }
}

.contact-card {
    border-radius: 20px;
    background: #ffffff;
    padding: 20px 22px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    font-size: 14px;
}

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

.contact-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
}

.contact-value {
    font-weight: 500;
}

.contact-meta {
    font-size: 13px;
    color: #4b5563;
}

.contact-form {
    border-radius: 20px;
    background: #ffffff;
    padding: 20px 22px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    font-size: 14px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.form-field {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

input, select, textarea {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

textarea {
    border-radius: 16px;
    min-height: 96px;
    resize: vertical;
    line-height: 1.5;
}

input:focus, select:focus, textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
    background-color: #ffffff;
}

.contact-form button {
    width: 100%;
    margin-top: 8px;
}

.contact-map {
    margin-top: 16px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.contact-map iframe {
    width: 100%;
    height: 220px;
    border: 0;
}

/* FOOTER */
footer {
    background: #020617;
    color: #e5e7eb;
    padding: 40px 0 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 24px;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1.1fr 1.2fr;
    }
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-description {
    font-size: 13px;
    color: #9ca3af;
    max-width: 360px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-pill {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    font-weight: 700;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 6px;
}

.footer-links a {
    color: #d1d5db;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-contact p {
    margin-bottom: 6px;
    color: #d1d5db;
}

.footer-contact span {
    color: #9ca3af;
}

.footer-bottom {
    padding-top: 12px;
    border-top: 1px solid #111827;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    color: #6b7280;
    font-size: 12px;
}

.footer-bottom a {
    color: #9ca3af;
}

/* ============================
   MOBILE FIXES
   ============================ */
@media (max-width: 768px) {
    header {
        padding: 6px 0;
    }

    /* Đã loại bỏ padding ngang khỏi .nav trong mobile để căn chỉnh đúng */
    /* .nav {
      padding-inline: 12px;
    } */
    .logo-mark {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 13px;
        line-height: 1.2;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        gap: 10px;
        padding: 10px 16px 14px;
        border-bottom: 1px solid #e5e7eb;
        display: none;
        z-index: 15;
    }

    .nav-right {
        display: none;
    }

    .nav-toggle-btn {
        display: flex;
    }

    #nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .hero {
        min-height: 380px;
        background-position: center;
    }

    .hero-content {
        padding: 40px 0 48px;
    }

    .hero-title {
        font-size: 26px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 22px;
    }

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

    .about-card {
        margin-top: 16px;
    }

    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .product-image {
        height: 120px;
    }

    .license-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 200px;
    }

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

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}


.hero .container {
    padding-left: 16px;
    padding-right: 16px;
}
