/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f1b2d;
    --navy-light: #162033;
    --teal: #1a9e8f;
    --teal-dark: #158578;
    --teal-glow: rgba(26, 158, 143, 0.12);
    --white: #ffffff;
    --off-white: #f5f7fa;
    --slate: #e2e7ef;
    --text: #1c2a3a;
    --text-light: #5a6a7e;
    --text-on-dark: #c8d3e0;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 20px rgba(15, 27, 45, 0.06);
    --shadow-lg: 0 8px 40px rgba(15, 27, 45, 0.10);
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

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

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(26, 158, 143, 0.3);
}

.btn-outline {
    border: 1.5px solid var(--slate);
    color: var(--text);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 231, 239, 0.6);
    transition: background var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--teal);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform var(--transition);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    list-style: none;
    min-width: 190px;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--off-white);
    color: var(--teal);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(170deg, var(--off-white) 0%, var(--white) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}

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

.hero-graphic {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 280px;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--white);
    border: 1px solid var(--slate);
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.hero-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    border-color: var(--teal);
}

.hero-card-1 { transform: translateX(12px); }
.hero-card-2 { transform: translateX(-8px); }
.hero-card-3 { transform: translateX(20px); }

.hero-card-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.hero-card-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-card-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
}

.hero-card-desc {
    font-size: 0.76rem;
    color: var(--text-light);
}

.hero-text h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--navy);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.7;
}

/* ===== About ===== */
.about {
    padding: 100px 0;
}

.about h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 28px;
}

.about-content {
    max-width: 680px;
}

.about-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

/* ===== Products ===== */
.products {
    padding: 100px 0;
    background: var(--off-white);
}

.products h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 48px;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.product-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
}

.product-icon-lovetap {
    color: #c2678a;
}

.product-icon-ttc {
    color: #b97373;
}

.product-card h3 {
    font-size: 1.3rem;
    color: var(--navy);
    margin-bottom: 6px;
}

.product-platforms {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.product-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.product-card .btn-outline {
    padding: 10px 22px;
    font-size: 0.88rem;
}

/* ===== Innovation ===== */
.innovation {
    padding: 100px 0;
}

.innovation-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.innovation-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--teal);
    background: var(--teal-glow);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.innovation h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.innovation p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== Contact ===== */
.contact {
    padding: 80px 0;
    background: var(--off-white);
}

.contact h2 {
    font-size: 1.8rem;
    color: var(--navy);
    margin-bottom: 36px;
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 64px;
}

.contact-item {
    text-align: center;
}

.contact-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.contact-item a,
.contact-item p {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--teal);
}

/* ===== Footer ===== */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--slate);
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
}

.footer-copy {
    font-size: 0.82rem;
    color: var(--text-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--white);
        border-bottom: 1px solid var(--slate);
        padding: 8px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 14px 24px;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: var(--off-white);
        opacity: 1;
        visibility: visible;
        min-width: 0;
        padding: 0;
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 24px 12px 40px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-graphic {
        max-width: 260px;
        margin: 0 auto;
    }

    .hero-card-1,
    .hero-card-2,
    .hero-card-3 {
        transform: none;
    }

    .hero-text h1 br {
        display: none;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

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

    .product-card {
        padding: 32px 28px;
    }

    .about, .products, .innovation {
        padding: 72px 0;
    }

    .contact-grid {
        flex-direction: column;
        gap: 32px;
    }

    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-sub {
        font-size: 1rem;
    }
}
