/* =============================================
   EDS Logistics Landing Page - shadcn UI Style
   ============================================= */

/* --- Design Tokens --- */
.landing {
    --ld-background: #ffffff;
    --ld-foreground: #0a0a0a;
    --ld-muted: #f5f5f5;
    --ld-muted-foreground: #737373;
    --ld-border: #e5e5e5;
    --ld-card: #ffffff;
    --ld-primary: #2563eb;
    --ld-primary-foreground: #ffffff;
    --ld-primary-hover: #1d4ed8;
    --ld-accent: #E60012;
    --ld-radius-sm: 0.25rem;
    --ld-radius-md: 0.5rem;
    --ld-radius-lg: 0.75rem;
    --ld-radius-xl: 1rem;
    --ld-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --ld-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --ld-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --ld-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark mode tokens */
[data-bs-theme="dark"] .landing {
    --ld-background: #0a0a0a;
    --ld-foreground: #fafafa;
    --ld-muted: #171717;
    --ld-muted-foreground: #a3a3a3;
    --ld-border: #262626;
    --ld-card: #0a0a0a;
    --ld-primary: #3b82f6;
    --ld-primary-foreground: #ffffff;
    --ld-primary-hover: #60a5fa;
}

/* --- Korean line breaking ---
   한국어는 어절 단위로 줄바꿈한다(기본값은 글자 사이 어디서나 끊어 "책임집 / 니다"가 생김).
   :where() 로 특이도 0 — 컴포넌트가 자기 규칙으로 언제든 덮을 수 있다.
   break-word(anywhere 아님): 한 어절이 줄보다 길 때만 쪼개고, 최소 폭은 늘리지 않는다.
   이 파일은 공개 홈(index)만 불러오므로 관리 화면 표에는 닿지 않는다. */
:where(:lang(ko)) {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* --- Base Reset for Landing --- */
.landing {
    background: var(--ld-background);
    color: var(--ld-foreground);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Navigation (Accessibility) --- */
.ld-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--ld-foreground);
    color: var(--ld-background);
    border-radius: var(--ld-radius-md);
    font-weight: 600;
    text-decoration: none;
}

.ld-skip-link:focus {
    top: 1rem;
}

/* --- Navigation --- */
.ld-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 1rem 0;
    transition: all 300ms ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.ld-navbar.is-scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--ld-border);
    padding: 0.625rem 0;
    box-shadow: var(--ld-shadow-sm);
}

[data-bs-theme="dark"] .ld-navbar.is-scrolled {
    background: rgba(10, 10, 10, 0.85);
}

/* Mobile menu open: solid background */
.ld-navbar:has(#mobileNav.show),
.ld-navbar:has(#mobileNav.collapsing) {
    background: var(--ld-background);
    border-bottom-color: var(--ld-border);
    box-shadow: var(--ld-shadow-md);
}

/* Mobile nav: full-width buttons */
@media (max-width: 991.98px) {
    .ld-navbar #mobileNav .ld-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
    }
}

.ld-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--ld-foreground);
    text-decoration: none;
}

.ld-nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ld-muted-foreground);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    transition: color 200ms ease;
}

.ld-nav-link:hover,
.ld-nav-link:focus {
    color: var(--ld-foreground);
}

.ld-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--ld-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 250ms ease;
}

.ld-nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Buttons --- */
.ld-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--ld-radius-md);
    text-decoration: none;
    transition: all 150ms ease;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ld-btn-primary {
    background: var(--ld-primary);
    color: var(--ld-primary-foreground);
    border-color: var(--ld-primary);
    box-shadow: var(--ld-shadow-sm);
}

.ld-btn-primary:hover {
    background: var(--ld-primary-hover);
    color: var(--ld-primary-foreground);
    box-shadow: var(--ld-shadow-md);
    transform: translateY(-1px);
}

.ld-btn-outline {
    background: transparent;
    color: var(--ld-foreground);
    border-color: var(--ld-border);
}

.ld-btn-outline:hover {
    background: var(--ld-muted);
    color: var(--ld-foreground);
    border-color: var(--ld-foreground);
}

.ld-btn-ghost {
    background: transparent;
    color: var(--ld-muted-foreground);
    border: none;
    padding: 0.5rem 0.75rem;
}

.ld-btn-ghost:hover {
    background: var(--ld-muted);
    color: var(--ld-foreground);
}

.ld-btn:active {
    transform: translateY(0) scale(0.98);
}

.ld-btn:focus-visible {
    outline: 2px solid var(--ld-primary);
    outline-offset: 2px;
}

/* --- Badge --- */
.ld-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ld-primary);
    background: rgb(37 99 235 / 0.08);
    border: 1px solid rgb(37 99 235 / 0.15);
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.ld-badge-accent {
    color: var(--ld-accent);
    background: rgb(230 0 18 / 0.08);
    border-color: rgb(230 0 18 / 0.15);
}

/* --- Section Layout --- */
.ld-section {
    padding: 5rem 0;
}

.ld-section-alt {
    background: var(--ld-muted);
}

.ld-section-dark {
    background: #0a0a0a;
    color: #fafafa;
}

[data-bs-theme="dark"] .ld-section-dark {
    background: #171717;
}

.ld-section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--ld-foreground);
    margin-bottom: 0.75rem;
}

.ld-section-dark .ld-section-title {
    color: #fafafa;
}

.ld-section-subtitle {
    font-size: 1rem;
    color: var(--ld-muted-foreground);
    line-height: 1.6;
    max-width: 600px;
}

.ld-section-dark .ld-section-subtitle {
    color: rgb(255 255 255 / 0.6);
}

.ld-divider {
    width: 3rem;
    height: 3px;
    background: var(--ld-primary);
    border: none;
    border-radius: 2px;
    margin: 1rem 0;
    opacity: 1;
}

/* --- Hero --- */
.ld-hero {
    padding: 8rem 0 5rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ld-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ld-foreground);
}

.ld-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--ld-muted-foreground);
    line-height: 1.7;
    max-width: 540px;
}

.ld-text-gradient {
    background: linear-gradient(135deg, var(--ld-primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ld-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgb(37 99 235 / 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgb(37 99 235 / 0.04), transparent);
}

[data-bs-theme="dark"] .ld-hero-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgb(59 130 246 / 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgb(59 130 246 / 0.08), transparent);
}

/* --- Stats --- */
.ld-stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.ld-stat-label {
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.6);
    margin-top: 0.5rem;
}

/* --- Card --- */
.ld-card {
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    padding: 2rem;
    transition: all 200ms ease;
}

.ld-card:hover {
    box-shadow: var(--ld-shadow-lg);
    border-color: rgb(37 99 235 / 0.3);
    transform: translateY(-2px);
}

.ld-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ld-radius-md);
    background: rgb(37 99 235 / 0.08);
    color: var(--ld-primary);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.ld-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    color: var(--ld-foreground);
}

.ld-card-text {
    font-size: 0.875rem;
    color: var(--ld-muted-foreground);
    line-height: 1.6;
}

/* --- Process Steps --- */
.ld-step {
    position: relative;
    text-align: center;
}

.ld-step-number {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ld-primary);
    color: var(--ld-primary-foreground);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.ld-step-connector {
    position: absolute;
    top: 24px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: var(--ld-border);
}

.ld-step-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: var(--ld-foreground);
}

.ld-step-desc {
    font-size: 0.8125rem;
    color: var(--ld-muted-foreground);
    line-height: 1.5;
}

/* --- Company Intro Card --- */
.ld-intro-card {
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    padding: 3rem;
    box-shadow: var(--ld-shadow-lg);
}

.ld-intro-card p {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: var(--ld-muted-foreground);
    margin-bottom: 1rem;
}

.ld-intro-card p:last-child {
    margin-bottom: 0;
}

/* --- Work Intro: Subsection --- */
.ld-subsection {
    margin-top: 3rem;
}

.ld-subsection-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.ld-subsection-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ld-radius-md);
    background: rgb(37 99 235 / 0.08);
    color: var(--ld-primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.ld-subsection-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ld-foreground);
    letter-spacing: -0.02em;
    margin: 0;
}

.ld-subsection-desc {
    font-size: 0.875rem;
    color: var(--ld-muted-foreground);
    margin: 0;
}

/* --- Work Intro: Need Cards (배송 서비스의 필요성) --- */
.ld-need-card {
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    padding: 1.5rem;
    height: 100%;
    transition: all 200ms ease;
}

.ld-need-card:hover {
    box-shadow: var(--ld-shadow-lg);
    border-color: rgb(37 99 235 / 0.3);
    transform: translateY(-2px);
}

.ld-need-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--ld-radius-md);
    background: rgb(37 99 235 / 0.08);
    color: var(--ld-primary);
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ld-need-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ld-foreground);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.ld-need-text {
    font-size: 0.8125rem;
    color: var(--ld-muted-foreground);
    margin: 0;
    line-height: 1.6;
}

/* --- Work Intro: Flow Diagram (통합 물류 시스템) --- */
.ld-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    transition: all 200ms ease;
}

.ld-flow:hover {
    box-shadow: var(--ld-shadow-lg);
}

.ld-flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.ld-flow-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ld-muted);
    color: var(--ld-muted-foreground);
    font-size: 1.75rem;
    border: 2px solid var(--ld-border);
    transition: all 200ms ease;
}

.ld-flow-icon--primary {
    background: rgb(37 99 235 / 0.08);
    border-color: var(--ld-primary);
    color: var(--ld-primary);
}

.ld-flow-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ld-foreground);
    letter-spacing: -0.01em;
}

.ld-flow-arrow {
    color: var(--ld-border);
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .ld-flow {
        flex-direction: column;
        padding: 2rem 1.5rem;
        gap: 1rem;
    }
}

/* --- Work Intro: System Cards (시스템 현황) --- */
.ld-sys-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    height: 100%;
    transition: all 200ms ease;
}

.ld-sys-card:hover {
    box-shadow: var(--ld-shadow-lg);
    border-color: rgb(37 99 235 / 0.3);
    transform: translateY(-2px);
}

.ld-sys-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ld-radius-md);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.ld-sys-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ld-foreground);
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.ld-sys-desc {
    font-size: 0.8125rem;
    color: var(--ld-muted-foreground);
    line-height: 1.6;
    margin: 0;
}

/* --- Org Chart --- */
.ld-org {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ld-org-root {
    display: flex;
    justify-content: center;
}

.ld-org-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    transition: all 200ms ease;
}

.ld-org-node:hover {
    box-shadow: var(--ld-shadow-lg);
    border-color: rgb(37 99 235 / 0.3);
    transform: translateY(-2px);
}

.ld-org-node--primary {
    border-color: var(--ld-primary);
    background: rgb(37 99 235 / 0.04);
}

.ld-org-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgb(37 99 235 / 0.08);
    color: var(--ld-primary);
    font-size: 1.5rem;
}

.ld-org-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ld-foreground);
    letter-spacing: -0.02em;
    margin: 0;
}

/* 연결선: 루트에서 내려오는 세로선 */
.ld-org-connector {
    width: 2px;
    height: 2rem;
    background: var(--ld-border);
}

/* 가로선 + 브랜치 컨테이너 */
.ld-org-branches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    position: relative;
}

/* 가로선: 두 브랜치 중심을 잇는 선 */
.ld-org-branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: var(--ld-border);
}

.ld-org-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 각 브랜치 위의 세로선 */
.ld-org-line-down {
    width: 2px;
    height: 1.5rem;
    background: var(--ld-border);
}

.ld-org-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: center;
}

.ld-org-details li {
    font-size: 0.8125rem;
    color: var(--ld-muted-foreground);
    line-height: 1.8;
    letter-spacing: -0.01em;
}

.ld-org-details li::before {
    content: "·";
    margin-right: 0.375rem;
    font-weight: 700;
    color: var(--ld-primary);
}

@media (max-width: 575.98px) {
    .ld-org-node {
        padding: 1.25rem 1.5rem;
    }

    .ld-org-branches {
        gap: 1rem;
    }

    .ld-org-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .ld-org-name {
        font-size: 0.9375rem;
    }
}

/* --- Image Section --- */
.ld-image-wrapper {
    background: var(--ld-card);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    padding: 2rem;
    box-shadow: var(--ld-shadow-sm);
}

.ld-image-wrapper img {
    border-radius: var(--ld-radius-md);
}

/* --- Map --- */
.ld-map-wrapper {
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius-xl);
    overflow: hidden;
    box-shadow: var(--ld-shadow-md);
}

/* --- Contact --- */
.ld-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.ld-contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--ld-radius-md);
    background: rgb(37 99 235 / 0.08);
    color: var(--ld-primary);
    flex-shrink: 0;
    font-size: 1rem;
}

.ld-contact-label {
    font-size: 0.75rem;
    color: var(--ld-muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

.ld-contact-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ld-foreground);
    text-decoration: none;
}

.ld-contact-value:hover {
    color: var(--ld-primary);
}

/* --- Footer --- */
.ld-footer {
    background: #0a0a0a;
    color: rgb(255 255 255 / 0.5);
    padding: 2rem 0;
    font-size: 0.8125rem;
}

[data-bs-theme="dark"] .ld-footer {
    background: #171717;
}

.ld-footer a {
    color: rgb(255 255 255 / 0.7);
    text-decoration: none;
    transition: color 200ms ease;
}

.ld-footer a:hover {
    color: #ffffff;
}

/* --- Scroll Reveal Animations --- */
[data-ld-reveal] {
    opacity: 0;
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-ld-reveal="fade-up"] {
    transform: translateY(24px);
}

[data-ld-reveal="fade-down"] {
    transform: translateY(-24px);
}

[data-ld-reveal="fade-left"] {
    transform: translateX(24px);
}

[data-ld-reveal="fade-right"] {
    transform: translateX(-24px);
}

[data-ld-reveal="scale"] {
    transform: scale(0.95);
}

[data-ld-reveal].is-revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger children */
[data-ld-stagger] > * {
    opacity: 0;
    transform: translateY(16px);
    transition:
        opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-ld-stagger].is-revealed > *:nth-child(1) { transition-delay: 0ms; }
[data-ld-stagger].is-revealed > *:nth-child(2) { transition-delay: 80ms; }
[data-ld-stagger].is-revealed > *:nth-child(3) { transition-delay: 160ms; }
[data-ld-stagger].is-revealed > *:nth-child(4) { transition-delay: 240ms; }
[data-ld-stagger].is-revealed > *:nth-child(5) { transition-delay: 320ms; }
[data-ld-stagger].is-revealed > *:nth-child(6) { transition-delay: 400ms; }

[data-ld-stagger].is-revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    [data-ld-reveal],
    [data-ld-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* --- Responsive --- */
@media (min-width: 992px) {
    .ld-section {
        padding: 6rem 0;
    }
    .ld-hero {
        padding: 10rem 0 6rem;
    }
}

@media (max-width: 767.98px) {
    .ld-hero {
        padding: 6rem 0 3rem;
        min-height: auto;
    }
    .ld-section {
        padding: 3.5rem 0;
    }
    .ld-intro-card {
        padding: 1.5rem;
    }
    .ld-image-wrapper {
        padding: 0.5rem;
        border-radius: var(--ld-radius-md);
    }
    .ld-image-wrapper img {
        border-radius: var(--ld-radius-sm);
    }
    .ld-step-connector {
        display: none;
    }
}
