/* ============================================
   (주)한국정밀 - Global Stylesheet
   Design: Dark Premium + Technical Trust
   Ref: remo.re.kr style
   ============================================ */

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

/* === Accessibility: focus-visible === */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
.world:focus-visible,
.product-card:focus-visible,
.gnb-sub li a:focus-visible,
.mobile-menu-title:focus-visible,
.mobile-sub li a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.world-precision:focus-visible,
.product-card-precision:focus-visible {
    outline-color: var(--graphite);
}

/* === Accessibility: reduced motion === */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    --primary: #0F172A;
    --accent: #0EA5E9;
    --accent-rgb: 14, 165, 233;
    --green: #22C55E;
    --green-rgb: 34, 197, 94;
    --graphite: #CBD5E1;
    --graphite-rgb: 203, 213, 225;
    --bg-dark: #020617;
    --bg-section: #0B1120;
    --text-primary: #F8FAFC;        /* 15.3:1 on #020617 */
    --text-secondary: #CBD5E1;      /* 11.2:1 on #020617 — AA 대형·소형 전체 충족 */
    --text-muted: #94A3B8;          /*  5.87:1 on #020617 — AA 본문 충족 */
    --border: rgba(255,255,255,0.12);
    --border-light: rgba(255,255,255,0.2);
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255,255,255,0.12);
    --max-width: 1400px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Design tokens — typography & rhythm */
    --hero-title-size: clamp(40px, 5vw, 72px);
    --sec-y-desktop: 120px;
    --sec-y-mobile: 80px;
    --page-banner-h: 300px;
    --page-banner-h-mobile: 220px;
}

/* === Subsite accent override — graphite division === */
body.site-graphite {
    --accent: #CBD5E1;
    --accent-rgb: 203, 213, 225;
}

/* === Korean text break rule — site-wide === */
h1, h2, h3, h4, h5, h6,
p, li,
.section-title, .section-desc,
.hero-title, .hero-subtitle,
.tech-card h3, .tech-card p,
.application-card h3, .application-card p {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: -0.015em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 본문 가독성 — 엔지니어·구매 담당자 기준 장문 정독 대응 */
p { line-height: 1.75; }
.section-desc { font-weight: 400; }

/* 스펙 표 숫자 가독성 강화 */
td, th { line-height: 1.5; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* --- Custom Pointer (Desktop) --- */
.pointer {
    display: none;
}

@media (min-width: 1281px) and (hover: hover) {
    .pointer {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 20px;
        height: 20px;
        border: 1.5px solid var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transition: transform 0.15s ease, opacity 0.15s ease;
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    .pointer.active {
        opacity: 1;
    }
    .pointer.hover {
        transform: translate(-50%, -50%) scale(2);
        background: rgba(var(--accent-rgb), 0.1);
    }
}

/* --- GNB (Header) --- */
.gnb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 60px;
    height: 80px;
    transition: background var(--transition), backdrop-filter var(--transition), top 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}

/* Site ribbon — hide on scroll down, slide down on scroll up */
.site-ribbon {
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    will-change: transform;
}
body.ribbon-hidden .site-ribbon {
    transform: translateY(-100%);
}
body.ribbon-hidden .gnb {
    top: 0 !important;
}

.gnb.scrolled {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.gnb-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gnb-logo {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1;
}

.gnb-logo .logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--text-primary);
}

.gnb-logo .logo-sub {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--accent);
    margin-top: 2px;
}

.gnb-nav {
    display: none;
}

@media (min-width: 1281px) {
    .gnb-nav {
        display: block;
    }
}

.gnb-menu {
    display: flex;
    gap: 48px;
}

.gnb-menu-item {
    position: relative;
}

.gnb-menu-item > a {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    padding: 28px 0;
    display: block;
    transition: color var(--transition);
}

.gnb-menu-item > a:hover,
.gnb-menu-item.active > a {
    color: var(--text-primary);
}

.gnb-sub {
    position: absolute;
    top: 100%;
    left: -20px;
    min-width: 220px;
    background: rgba(11, 17, 32, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.gnb-menu-item:hover .gnb-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 사업부 독립성 — 컬러 구분 */
.gnb-menu-item > a.gnb-energy { color: var(--accent); }
.gnb-menu-item > a.gnb-precision { color: var(--graphite); }
.gnb-menu-item > a.gnb-energy:hover { color: #38BDF8; }
.gnb-menu-item > a.gnb-precision:hover { color: #E2E8F0; }

/* 드롭다운 내부 섹션 라벨 */
.gnb-sub-label {
    padding: 8px 24px 6px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
}

.gnb-sub-divider {
    height: 1px;
    margin: 8px 20px;
    background: var(--border);
    pointer-events: none;
}

/* 모바일 메뉴 사업부 구분 */
.mobile-menu-title.mobile-energy { color: var(--accent); }
.mobile-menu-title.mobile-precision { color: var(--graphite); }
.mobile-sub-group {
    padding: 12px 24px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    pointer-events: none;
}

.gnb-sub li a {
    display: block;
    padding: 10px 24px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.gnb-sub li a:hover {
    color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

/* Hamburger Toggle */
.gnb-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

@media (min-width: 1281px) {
    .gnb-toggle {
        display: none;
    }
}

.gnb-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.gnb-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.gnb-toggle.active span:nth-child(2) {
    opacity: 0;
}

.gnb-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(2, 6, 23, 0.98);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

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

.mobile-menu-inner {
    padding: 120px 40px 60px;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
    width: 100%;
    text-align: left;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 24px 0;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-title::after {
    content: '+';
    font-size: 20px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.mobile-menu-item.open .mobile-menu-title::after {
    transform: rotate(45deg);
}

.mobile-sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.mobile-menu-item.open .mobile-sub {
    max-height: 500px;
}

.mobile-sub li a {
    display: block;
    padding: 12px 0 12px 16px;
    font-size: 16px;
    color: var(--text-secondary);
}

.mobile-sub li a:hover {
    color: var(--accent);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.hero-ken-burns {
    animation: heroKenBurns 28s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.10) translate(-1.8%, -1.2%); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-ken-burns { animation: none; }
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(var(--accent-rgb), 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 60%, rgba(34, 197, 94, 0.05) 0%, transparent 70%);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 8s infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    padding: 0 24px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    background: rgba(var(--accent-rgb), 0.05);
}

.hero-label .dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #38BDF8;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.3);
}

/* graphite 사업부 — 밝은 회색 accent 버튼 가독성 보정 (흰 글씨 → 어두운 글씨) */
body.site-graphite .btn-primary {
    color: #0F172A;
}
body.site-graphite .btn-primary:hover {
    background: #E2E8F0;
    color: #0F172A;
    box-shadow: 0 8px 30px rgba(203, 213, 225, 0.4);
}

.btn-outline {
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.03);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

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

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.15em;
    animation: scrollBounce 2s infinite;
}

.hero-scroll .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Section Common --- */
.section {
    padding: 120px 60px;
    position: relative;
}

@media (max-width: 768px) {
    .section {
        padding: 80px 24px;
    }
    .gnb {
        padding: 0 24px;
    }
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

#technology p {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.section-header {
    margin-bottom: 64px;
}

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

.section-header.center .section-desc {
    margin: 0 auto;
}

/* --- Products Section --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.product-card {
    position: relative;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}


.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.product-card:hover::before {
    opacity: 1;
}

/* graphite 사업부 — product-card 기본 보더에도 silver tint 적용 */
body.site-graphite .product-card {
    border-color: rgba(var(--accent-rgb), 0.18);
}
body.site-graphite .product-card:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.product-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: gap var(--transition);
}

.product-card:hover .product-link {
    gap: 12px;
}

/* --- Numbers Section --- */
.numbers {
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

@media (max-width: 1200px) {
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

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

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

.number-value {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.number-unit {
    font-size: clamp(20px, 2.5vw, 28px);
}

.number-label {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Technology Section --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 1200px) {
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.tech-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 48px 36px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.tech-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.tech-card:hover::after {
    width: 60%;
}

.tech-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--accent-rgb), 0.2);
}

.tech-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.15), rgba(34, 197, 94, 0.1));
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    font-size: 32px;
}

.tech-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.tech-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.tech-card ul li {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* --- Application Industries --- */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.industry-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
    group: true;
}

.industry-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-section) 100%);
    transition: transform 0.6s ease;
}

.industry-card:hover .industry-card-bg {
    transform: scale(1.05);
}

.industry-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,6,23,0.9) 0%, rgba(2,6,23,0.2) 50%, transparent 100%);
    z-index: 1;
}

.industry-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 24px;
    z-index: 2;
}

.industry-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.industry-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.industry-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.industry-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* --- Partners / Certification Marquee --- */
.partners {
    overflow: hidden;
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-section);
}

.marquee-wrap {
    display: flex;
    gap: 60px;
    animation: marquee 40s linear infinite;
}

.marquee-wrap:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 80px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    white-space: nowrap;
    transition: all var(--transition);
    filter: grayscale(1);
    opacity: 0.5;
}

.marquee-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--text-primary);
    border-color: var(--border-light);
}

.marquee-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.2);
    opacity: 0.7;
    transition: filter var(--transition), opacity var(--transition);
}

.marquee-item:hover img {
    filter: grayscale(0) brightness(1);
    opacity: 1;
}

/* --- CTA Section --- */
.cta-section {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(var(--accent-rgb), 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-desc {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
    word-break: keep-all;
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Contact Tab Section --- */
.contact-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.contact-tab {
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: all var(--transition);
    background: transparent;
}

.contact-tab.active,
.contact-tab:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #EF4444;
    margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: inherit;
    transition: border-color var(--transition);
    outline: none;
}

/* Primary form submit — centered on desktop, full-width on mobile */
@media (min-width: 769px) {
    form button[type="submit"].btn-primary {
        width: auto !important;
        min-width: 240px;
        display: flex !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--accent);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--primary);
}

/* --- Quick Side Menu --- */
.quick-menu {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition);
}

.quick-menu.visible {
    opacity: 1;
    transform: translateY(0);
}

.quick-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.quick-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    padding: 80px 60px 40px;
    background: var(--bg-dark);
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 24px 32px;
    }
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
}

.footer-logo .logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.footer-logo .logo-sub {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--accent);
    display: block;
    margin-top: 2px;
}

.footer-slogan {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 60px;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 32px;
        flex-wrap: wrap;
    }
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col li a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-col li a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* --- Utility --- */
.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Divider line */
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 2px;
    margin-bottom: 24px;
}

.section-header.center .section-divider {
    margin-left: auto;
    margin-right: auto;
}
