/* ======= VARIABLES & BASE ======= */
:root {
    /* Brand Colors (High-Tech Grey & Neon Orange) */
    --primary: #2d3748;
    /* Dark Steel Grey */
    --primary-light: #718096;
    --accent: #ff6a00;
    /* High-tech Neon Orange */
    --accent-hover: #e05e00;

    /* Backgrounds & Text */
    --bg-main: #fafafa;
    --bg-light: #f1f5f9;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --success: #10b981;

    /* Spacing & Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans TC', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Global paragraph alignment */
p {
    text-align: justify;
    text-align-last: left;
}

/* ======= UTILITIES ======= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 490px) {
    .container {
        padding: 0 2rem;
    }
}
.container-sm {
    max-width: 800px;
}

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

.text-right {
    text-align: right;
}

.text-orange {
    color: var(--accent) !important;
}

.text-blue {
    color: var(--primary) !important;
}

.text-green {
    color: var(--success) !important;
}

.text-white {
    color: white !important;
}

.text-muted {
    color: var(--text-muted);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-blue {
    background-color: var(--primary);
}

.bg-gradient-brand {
    background: linear-gradient(135deg, #1a202c 0%, #000000 100%);
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.mt-5 {
    margin-top: 5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.3;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.icon-giant {
    font-size: 4rem;
}

/* ======= BUTTONS ======= */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

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

.btn-text {
    color: var(--primary);
    background: transparent;
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    color: var(--primary-light);
    transform: translateY(3px);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ======= NAVIGATION ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px 0;
}

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

.logo-image {
    height: 42px;
    margin-right: 16px;
}
@media (min-width: 490px) {
    .logo-image {
        height: 52px;
    }
}
.logo-text {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
}
@media (min-width: 490px) {
    .logo-text {
        font-size: 1.5rem;
    }
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: var(--accent);
}

/* ======= HERO SECTION & GHG ANIMATION ======= */
.hero {
    position: relative;
    padding: 110px 0 60px;
    background-color: #f1f5f9;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.2;
}

.shape-blue {
    width: 700px;
    height: 700px;
    background: var(--primary);
    top: -200px;
    right: -200px;
}

.shape-grey {
    width: 500px;
    height: 500px;
    background: var(--primary-light);
    bottom: -100px;
    left: -200px;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    letter-spacing: 1.5px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.4;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: normal;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}
@media (min-width: 490px) {
    .cta-group {
        gap: 1.5rem;
        flex-direction: row;
    }
}

.trust-marks {
    display: flex;
    gap: 2rem;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 700;
}

/* GHG specific hero visual */
.ghg-mockup {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(45, 55, 72, 0.25);
    overflow: hidden;
}

.ghg-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 1px;
}

.ghg-body {
    padding: 30px;
}

.data-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px dashed var(--border-color);
}

.data-node {
    text-align: center;
    color: var(--text-muted);
    font-weight: bold;
}

.data-node i {
    display: block;
    font-size: 2.5rem;
    color: var(--success);
    margin-bottom: 0.5rem;
}

.data-node.output i {
    color: var(--success);
}

.data-node.output span {
    color: var(--success);
}

.flow-arrow {
    color: #cbd5e1;
    font-size: 2rem;
    animation: pulseArrow 1.5s infinite;
}

.calculation-hub {
    text-align: center;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary);
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--accent);
}

.ghg-metric {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to right, rgba(45, 55, 72, 0.05), rgba(45, 55, 72, 0.1));
    border-radius: 8px;
    border-left: 5px solid var(--primary);
}

.metric-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: bold;
    margin-bottom: 5px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.trend-down {
    font-size: 1.1rem;
    color: var(--success);
    margin-left: 10px;
    display: inline-block;
}

/* ======= PAIN POINTS ======= */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    text-align: center;
}

.card p {
    text-align: center;
    text-align-last: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
}

.card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ======= WHY US (Consultant Focus) ======= */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.align-center {
    align-items: center;
}

.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.check-list li i {
    font-size: 1.8rem;
    margin-top: 0.2rem;
}

.check-list li strong {
    font-size: 1.3rem;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.check-list li p {
    color: #cbd5e1;
    font-size: 1.05rem;
}

.assurance-graphics {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.shield-bg {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    animation: spinSlow 40s linear infinite;
}

.shield-icon {
    position: absolute;
    inset: 0;
    margin: auto;
    width: fit-content;
    height: fit-content;
    color: var(--accent);
    opacity: 0.8;
    animation: pulseScale 3s infinite alternate;
    z-index: 1;
}

.floating-box {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    z-index: 10;
    width: 150px;
    top: 50%;
    left: 50%;
}
@media (min-width: 490px) {
    .floating-box {
        width: 260px;
    }
}

.floating-icon {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.floating-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.floating-text span {
    display: none;
}
@media (min-width: 490px) {
    .floating-text span {
        display: inline-block;
    }
    .floating-text div {
        display: inline-block;
    }
}

.fb-1 {
    margin-top: -136px;
    margin-left: -176px;
    animation: float 5s ease-in-out infinite;
}

@media (min-width: 490px) {
    .fb-1 {
        margin-left: -236px;
    }
}
.fb-2 {
    margin-top: 76px;
    margin-left: -196px;
    animation: float 7s ease-in-out infinite reverse;
}

@media (min-width: 490px) {
    .fb-2 {
        margin-left: -236px;
    }
}
.fb-3 {
    margin-top: -30px;
    margin-left: 70px;
    animation: float 6s ease-in-out infinite 2s;
}

@media (min-width: 490px) {
    .fb-3 {
        margin-left: 20px;
    }
}
/* ======= FEATURES ======= */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse>* {
    direction: ltr;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.feature-text h3 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.feature-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
}

.glass-mockup {
    background: white;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.border-orange {
    border: 2px solid rgba(249, 115, 22, 0.4);
}

.coefficient-table {
    font-size: 0.95rem;
}

.table-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
    color: var(--primary);
}

.table-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
}

.table-row span {
    flex: 1;
}

.progress-bar-mockup {
    height: 16px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.bar-fill {
    height: 100%;
    background: var(--success);
    transition: width 1.5s ease;
    animation: fillBar 3s forwards;
}

.dual-output {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 490px) {
    .dual-output {
        flex-direction: row;
    }
}


/* ======= CALL TO ACTION (Form) ======= */
.action-box {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 4.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.form-input {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.05rem;
    transition: border-color 0.3s;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.2);
}

.form-input option {
    color: var(--text-main);
}

/* Fix for select options text color */

/* Footer */
.footer {
    background: #0f172a;
    color: var(--text-muted);
    padding: 3rem 0;
    border-top: 1px solid #1e293b;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
}

/* ======= ANIMATIONS ======= */
@keyframes spinSlow {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes pulseArrow {
    0% {
        transform: translateX(0);
        opacity: 0.5;
    }

    50% {
        transform: translateX(10px);
        opacity: 1;
    }

    100% {
        transform: translateX(0);
        opacity: 0.5;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes fillBar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.hover-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======= RESPONSIVE ======= */
@media (max-width: 992px) {

    .hero-container,
    .two-column,
    .feature-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .hero {
        padding: 100px 0 40px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .cta-group {
        justify-content: center;
    }

    .trust-marks {
        justify-content: center;
    }

    .assurance-graphics {
        height: 500px;
    }
}

/* ======= MOBILE HAMBURGER MENU ======= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 320px;
    transform: translateY(20px);
    transition: transform 0.35s ease;
}

.mobile-menu-overlay.open .mobile-menu-nav {
    transform: translateY(0);
}

.mobile-nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
    background: var(--bg-light);
    color: var(--accent);
}

.mobile-nav-cta {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
    font-size: 1.15rem;
    padding: 1.1rem 2rem;
    box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.4);
}

@media (max-width: 1010px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .assurance-graphics {
        transform: scale(0.85);
        height: 450px;
    }

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

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

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .action-box {
        padding: 2.5rem 1.5rem;
    }

    .data-flow {
        flex-direction: column;
        gap: 15px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    @keyframes pulseArrow {
        0% {
            transform: rotate(90deg) translateX(0);
            opacity: 0.5;
        }

        50% {
            transform: rotate(90deg) translateX(10px);
            opacity: 1;
        }

        100% {
            transform: rotate(90deg) translateX(0);
            opacity: 0.5;
        }
    }
}

/* Body scroll lock when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}