@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

@font-face {
    font-family: 'GyeonggiMillenniumTitle';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Light.woff') format('woff');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'GyeonggiMillenniumTitle';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Medium.woff') format('woff');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'GyeonggiMillenniumTitle';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/Title_Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'GyeonggiMillenniumTitle';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2410-3@1.0/TitleV.woff') format('woff');
    font-weight: 800;
    font-display: swap;
}

:root {
    --primary-color: #222222;
    --primary-dark: #000000;
    --brand-green: #03C75A;
    --brand-blue: #0085FF;
    --primary: #03C75A;
    --accent: #0085FF;
    --accent-green: #03C75A;
    --accent-blue: #0085FF;

    --bg-light: #FAFBFC;
    --bg-white: #FFFFFF;

    --text-main: #242424;
    --text-muted: #666666;
    --text-light: #FFFFFF;

    --border-color: #ECEEF1;

    --navy-gradient: linear-gradient(135deg, #222222 0%, #000000 100%);
    --blue-gradient: linear-gradient(135deg, #0085FF 0%, #0066cc 100%);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --font-title: 'GyeonggiMillenniumTitle', sans-serif;
    --font-body: 'Pretendard', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
    word-break: keep-all;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.25rem;
}

.text-muted {
    color: var(--text-muted);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: #ffffff;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

#main-nav.nav-hidden {
    transform: translateY(-100%);
}

#main-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Sub Navigation (3rd Level) */
.sub-nav {
    position: sticky;
    top: 80px;
    /* Initially below main nav */
    width: 100%;
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: top 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}

.sub-nav.sticky-top {
    top: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.sub-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.sub-nav-brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sub-nav-logo {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    pointer-events: none;
    display: none;
    /* Initially hide */
}

.sub-nav.sticky-top .sub-nav-logo {
    display: block;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.sub-nav-title {
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    padding-left: 0;
    transition: var(--transition);
}

.sub-nav.sticky-top .sub-nav-title {
    color: var(--text-muted);
    font-size: 1rem;
}

.sub-nav.sticky-top .sub-nav-title::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--border-color);
    margin-right: 1.5rem;
    vertical-align: middle;
}

.sub-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    height: 100%;
    margin-right: auto;
    margin-left: 3rem;
}

.sub-nav-links li {
    height: 100%;
}

.sub-nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    transition: color 0.3s ease;
}

.sub-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.sub-nav-links a.active {
    color: var(--text-main);
    font-weight: 700;
}

.sub-nav.sticky-top .sub-nav-links a.active {
    color: var(--primary);
}

.sub-nav-links a.active::after {
    transform: scaleX(1);
}

.sub-nav.sticky-top .sub-nav-links a.active::after {
    transform: scaleX(1);
    height: 4px;
}

.sub-nav-links a:hover {
    color: var(--primary);
}

.sub-nav-cta {
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    pointer-events: none;
}

.sub-nav.sticky-top .sub-nav-cta {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sub-nav-cta .btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

#main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
}

.logo-text {
    font-size: 1.6rem;
    color: var(--text-main);
    letter-spacing: -0.04em;
    font-weight: 800;
}

.logo-subtext {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.dot-accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0;
    /* Reset gap, handle with padding */
    height: 100%;
    align-items: stretch;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    padding: 0 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-link:hover,
.nav-item:hover .nav-link {
    color: var(--accent-green);
}

.nav-item.dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 12px;
    display: block;
}

.nav-icon-small {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon-small {
    transform: rotate(180deg);
}

/* Mega Menu */
.mega-menu {
    position: fixed;
    top: 80px;
    /* Nav height */
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 900;
    pointer-events: none;
}

.nav-item.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-item.hover-buffer .mega-menu {
    pointer-events: auto;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 3rem 0;
}

.mega-column h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mega-column ul {
    list-style: none;
}

.mega-column ul li {
    margin-bottom: 1rem;
}

.mega-column ul li a {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-decoration: none;
    color: var(--text-main);
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.mega-column ul li a:hover {
    background: var(--bg-light);
}

.mega-column ul li a i {
    color: var(--accent-green);
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.mega-column ul li a div {
    display: flex;
    flex-direction: column;
}

.mega-column ul li a strong {
    font-size: 1rem;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.mega-column ul li a:hover strong {
    color: var(--accent-green);
}

.mega-column ul li a span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--accent-green);
    color: var(--text-light);
}

.btn-accent:hover {
    background: #00AD50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 195, 90, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-main);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--bg-light);
    color: var(--text-main);
}

.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    color: var(--accent-green);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0;
    border: none;
    background: none;
    transition: var(--transition);
}

.btn-text:hover {
    color: #00AD50;
    transform: translateX(4px);
}

/* Hero Section */
#hero {
    padding: 180px 0 120px;
    background: linear-gradient(180deg, #F8F9FA 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

#hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

#hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.mockup-container {
    position: relative;
    width: 100%;
}

.hero-bg-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    font-weight: 600;
}

.card-1 {
    top: 20%;
    left: -10%;
    animation: float 6s infinite ease-in-out;
}

.card-2 {
    bottom: 20%;
    right: 10%;
    animation: float 8s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Section Layouts */
.section {
    padding: 100px 0;
    position: relative;
}

.solution-section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
}

.bg-gradient-navy {
    background: var(--navy-gradient);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 195, 90, 0.1);
    color: var(--accent-green);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-badge.accent {
    background: rgba(0, 139, 241, 0.2);
    color: var(--accent-blue);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: inherit;
}

.section-title small {
    font-size: 1.5rem;
    opacity: 0.6;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.25rem;
    opacity: 0.8;
    margin-bottom: 4rem;
}

/* Solution Grid */
.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.solution-grid.reverse {
    direction: rtl;
}

.solution-grid.reverse>* {
    direction: ltr;
}

.solution-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.solution-info p {
    font-size: 1.1rem;
    color: inherit;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.feature-list,
.check-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li,
.check-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-list li::before,
.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2303c75a'%3E%3Cpath d='M12 0a12 12 0 1 0 12 12A12.014 12.014 0 0 0 12 0zm6.927 8.2-6.845 9.289a1.011 1.011 0 0 1-1.43.188l-4.888-3.908a1 1 0 1 1 1.25-1.562l4.076 3.261 6.227-8.451a1 1 0 1 1 1.61 1.183z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.benefit-tag {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Browser Mockup */
.browser-mockup {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.browser-header {
    height: 30px;
    background: #F1F3F5;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DEE2E6;
}

.browser-mockup img {
    width: 100%;
    display: block;
}

.shadow-green {
    box-shadow: 0 20px 50px rgba(0, 195, 90, 0.15);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.feature-card {
    padding: 2.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-green);
}

.feature-card i {
    width: 50px;
    height: 50px;
    color: var(--accent-green);
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ERP Grid */
.erp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.erp-module {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.erp-module i {
    width: 60px;
    height: 60px;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.erp-module h4 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.benefit-glass {
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Gallery & Minimal Feats */
.features-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-top: 5rem;
}

.feat-mini-card h5 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: #09101A;
    color: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 5rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    color: var(--accent-green);
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.8rem;
}

.link-group a {
    color: #fff;
    text-decoration: none;
    opacity: 0.6;
    transition: 0.3s;
}

.link-group a:hover {
    opacity: 1;
    color: var(--accent-green);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.4;
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {

    #hero .container,
    .solution-grid,
    .features-grid,
    .erp-grid {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .solution-grid {
        gap: 3rem;
    }

    .solution-grid.reverse {
        direction: ltr;
    }

    .hero-image {
        display: none;
    }
}

/* --- Mega Menu Layouts --- */
.mega-menu-grid {
    display: grid;
    gap: 40px;
}

.frameon-grid {
    grid-template-columns: 1fr 1.5fr 1.5fr !important;
}

.solutions-grid {
    grid-template-columns: 1fr 1.2fr 1.2fr !important;
}

.mega-menu-title {
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 10px;
    font-family: var(--font-primary);
}

.mega-menu-desc {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.btn-text {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.btn-text:hover {
    color: #e65e2e;
    text-decoration: underline;
}

.product-card-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-card {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.3s;
    text-decoration: none;
    color: var(--text);
    border: 1px solid transparent;
}

.product-card:hover:not(.disabled) {
    background-color: #f7f9fa;
    transform: translateY(-2px);
}

.product-card.disabled {
    opacity: 0.7;
    cursor: default;
}

.product-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-card:hover:not(.disabled) .product-icon {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.product-info {
    flex: 1;
}

.product-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 5px;
}

.product-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    font-family: var(--font-primary);
}

.product-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    position: relative;
    padding-left: 10px;
    margin-left: 5px;
    opacity: 0.8;
}

.product-subtitle::before {
    content: '|';
    position: absolute;
    left: 0;
    color: #dfe6e9;
    font-weight: 300;
}

.product-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.badge-coming-soon {
    display: inline-block;
    background-color: #f7f9fa;
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #dfe6e9;
    margin-left: auto;
}

/* --- Solutions Link Styles --- */
/* --- Solutions Link Styles --- */
.mega-category-header {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-weight: 700;
    opacity: 0.6;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list li {
    margin-bottom: 8px;
}

.solution-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 12px;
    transition: var(--transition);
    color: var(--text-main);
    gap: 14px;
}

.solution-link:hover {
    background-color: var(--bg-light);
}

.solution-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.solution-link:hover .solution-icon {
    background-color: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.solution-icon i {
    width: 22px;
    height: 22px;
}

.link-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.link-content strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.link-content span {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.4;
}

.solution-link:hover .link-content strong {
    color: var(--accent-blue);
}

/* --- Subpage / Solution Details Styles --- */

.subpage-hero {
    height: 560px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Fixed nav offset */
    background: #F7F9FA;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
    position: relative;
    overflow: hidden;
}

.subpage-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.subpage-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--primary-color);
}

.subpage-hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 195, 90, 0.1);
    color: var(--accent-green);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    border: 1px solid rgba(0, 195, 90, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.subpage-hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-main);
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.solution-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.text-center {
    text-align: center;
}

.three-col {
    grid-template-columns: repeat(3, 1fr);
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.rounded-img {
    width: 100%;
    border-radius: 12px;
}

.mt-4 {
    margin-top: 1.5rem;
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6rem;
    opacity: 0.35;
    filter: grayscale(1);
    margin-top: 0;
    padding: 1rem 0;
}

.client-logos span {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--text-main);
}

.bg-dark-accent {
    background: var(--navy-gradient);
    padding: 100px 0;
}

.bg-dark-accent .section-title {
    color: #fff !important;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.bg-dark-accent .section-subtitle {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Response */
@media (max-width: 992px) {

    .subpage-hero .container,
    .two-col-grid,
    .three-col {
        grid-template-columns: 1fr;
    }

    .subpage-hero {
        text-align: center;
        padding-top: 140px;
        height: auto;
        padding-bottom: 60px;
    }

    .subpage-hero-image {
        display: none;
    }

    .footer-top {
        flex-direction: column;
        gap: 4rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
}

.link-content strong {
    font-size: 1rem;
    margin-bottom: 2px;
}

.link-content span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mobile-menu-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 6px;
    background: #f1f3f5;
    color: #868e96;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}

/* Client Logos Infinite Scroll */
.client-logos-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.client-logos-container::before,
.client-logos-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.client-logos-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.client-logos-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.client-logos-track {
    display: inline-block;
    animation: scrollLogos 40s linear infinite;
}

.client-logos-track span {
    display: inline-block;
    font-size: 1.4rem;
    color: #ced4da;
    font-weight: 700;
    margin: 0 2.5rem;
    transition: color 0.3s;
}

.client-logos-track:hover {
    animation-play-state: paused;
}

.client-logos-track span:hover {
    color: var(--primary);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Submodule Explorer - Grid Layout */
.submodule-v-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.submodule-v-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.submodule-v-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.submodule-v-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f8f9fa;
}

.submodule-v-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.submodule-v-card:hover .submodule-v-image img {
    transform: scale(1.05);
}

.v-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submodule-v-body {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.submodule-v-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.submodule-v-header i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.submodule-v-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.1rem;
}

.submodule-v-subname {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.submodule-v-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.btn-full {
    width: 100%;
}

@media (max-width: 1400px) {
    .submodule-v-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .submodule-v-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.submodule-v-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    flex-shrink: 1;
}

.submodule-v-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.submodule-v-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f8f9fa;
}

.submodule-v-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.submodule-v-card:hover .submodule-v-image img {
    transform: scale(1.05);
}

.v-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--primary-dark);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.submodule-v-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.submodule-v-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.submodule-v-header i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.submodule-v-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
}

.submodule-v-subname {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.submodule-v-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.8rem;
    flex-grow: 1;
}

.btn-full {
    width: 100%;
}



/* Brand Attribute List & Check List */
/* Check List (Simple List) */
.check-list {
    list-style: none !important;
    padding-left: 0 !important;
}

.check-list li {
    position: relative;
    padding-left: 2rem !important;
    margin-bottom: 1.2rem;
}

.check-list li::before {
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Brand Attribute List (Modern Cards) */
.brand-attribute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.brand-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.brand-card:hover::before {
    opacity: 1;
}

.brand-card h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.brand-card i {
    color: var(--accent-green);
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Responsive Design & Mobile Menu
   ========================================================================== */

/* Mobile Menu Base Elements */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-toggle i {
    width: 28px;
    height: 28px;
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
    display: none;
}

.mobile-menu.active {
    transform: translateX(0);
    display: block;
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    cursor: pointer;
}

.mobile-parent-link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
}

.mobile-sub-links {
    list-style: none;
    padding: 0 0 1.2rem 1rem;
}

.mobile-sub-links li {
    margin-bottom: 0.8rem;
}

.mobile-sub-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1rem;
    display: block;
}

.mobile-sub-links a.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.mobile-sub-links .frameon-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.mobile-sub-links .frameon-link.subtle {
    color: var(--text-main);
}

.mobile-badge {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(3, 199, 90, 0.08);
    color: var(--accent-green);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
}

.mobile-badge.soft {
    background: rgba(3, 199, 90, 0.06);
    font-size: 0.75rem;
    text-transform: lowercase;
}

.mobile-category-title {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem 0 !important;
    list-style: none;
}

.mobile-cta {
    margin-top: 2rem;
}

.full-width {
    width: 100%;
}

/* --- Media Queries --- */

/* Desktop Only Helper */
@media (min-width: 1025px) {
    .mobile-only {
        display: none !important;
    }
}

/* Tablet & Mobile (Standard Breakpoint) */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-toggle {
        display: block;
    }

    /* Container adjustments */
    .container {
        padding: 0 1.5rem;
    }

    /* Header */
    #main-nav {
        height: 70px;
    }

    .sub-nav {
        top: 70px;
    }

    .sub-nav.sticky-top {
        top: 0;
    }

    .mobile-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .logo-text {
        font-size: 1.4rem;
    }

    /* Typography */
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Hero */
    #hero {
        padding: 120px 0 60px;
    }

    #hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .mockup-container {
        width: 100%;
    }

    /* Sections */
    .section {
        padding: 72px 0;
    }

    .solution-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .solution-grid.reverse {
        direction: ltr;
    }

    /* Features */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Footer */
    .footer-top {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        width: 100%;
    }

    .footer-brand {
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
    }

    /* Sub Navigation */
    .sub-nav .container {
        overflow-x: auto;
        justify-content: flex-start;
        gap: 1.5rem;
        padding-bottom: 5px;
        /* Space for scrollbar if visible */
    }

    .sub-nav-links {
        margin: 0;
        gap: 1.5rem;
        display: flex;
        flex-wrap: nowrap;
    }

    .sub-nav-links li {
        flex-shrink: 0;
    }

    .sub-nav-links a {
        white-space: nowrap;
    }

    .sub-nav-cta {
        display: none;
    }

    .submodule-v-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .sub-nav .sub-nav-logo,
    .sub-nav.sticky-top .sub-nav-logo {
        display: none;
    }

    .sub-nav.sticky-top .sub-nav-title::before {
        display: none;
    }

    .sub-nav {
        top: 64px;
    }

    .sub-nav.sticky-top {
        top: 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    #main-nav {
        height: 64px;
    }

    .mobile-menu {
        top: 64px;
        height: calc(100vh - 64px);
        padding: 1.25rem;
    }

    h1 {
        font-size: 1.9rem;
    }

    h2,
    .section-title {
        font-size: 1.6rem;
    }

    #hero {
        padding: 100px 0 60px;
    }

    #hero p {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2.5rem;
    }

    .solution-grid,
    .two-col-grid {
        gap: 2rem;
    }

    .feature-card {
        padding: 1.6rem;
    }

    .hero-btns {
        gap: 1rem;
    }

    .subpage-hero {
        padding-top: 120px;
    }

    .submodule-v-grid {
        gap: 1.25rem;
    }

    .footer-top {
        align-items: flex-start;
    }

    .footer-links {
        text-align: left;
    }
}

/* Link Card Style for Grids */
.link-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    cursor: pointer;
    background: #fff;
    border: 1px solid transparent;
}

.link-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.05);
}

.link-card h4 {
    color: var(--text-main);
    transition: color 0.3s;
}

.link-card:hover h4 {
    color: var(--accent-green);
}