/* =================================================================
   T-TIE (tie119.com) - 공식 프리미엄 스타일시트
   기획/기술: Seong Jin AI 비서실장
================================================================= */

:root {
    --primary: #FF4D00;         /* 안전 오렌지-레드 (119 긴급/결속 강조) */
    --primary-dark: #D63E00;
    --primary-glow: rgba(255, 77, 0, 0.25);
    --secondary: #0077B6;       /* 신뢰의 테크놀로지 블루 */
    --secondary-dark: #023E8A;
    --dark-bg: #0B132B;         /* 딥 프리미엄 네이비 */
    --dark-card: #1C2541;
    --light-bg: #F8F9FA;
    --light-card: #FFFFFF;
    --border-color: #E2E8F0;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    --success: #10B981;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-strong: 0 20px 40px rgba(11, 19, 43, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
    line-height: 1.6;
}

body {
    padding-bottom: 70px; /* 모바일 하단 플로팅 바 여백 */
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 상단 긴급 출고 배너 */
.top-emergency-bar {
    background: #111827;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 2px solid var(--primary);
}

.bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-pulse {
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7); }
    70% { transform: scale(1.03); box-shadow: 0 0 0 8px rgba(255, 77, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); }
}

.bar-text {
    flex: 1;
    text-align: center;
}

.bar-tel {
    color: #FFD166;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* 네비게이션 헤더 */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.logo-accent {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.patent-pill {
    background: #EFF6FF;
    color: var(--secondary);
    border: 1px solid #BFDBFE;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

/* 버튼 공통 스타일 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.btn-call {
    padding: 10px 18px;
    font-size: 15px;
}

.btn-xl {
    padding: 16px 30px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

/* 히어로 섹션 */
.hero-section {
    position: relative;
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #0B132B 0%, #1C2541 100%);
    color: #fff;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.18) 0%, rgba(255, 77, 0, 0) 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-label {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pill-red {
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

.pill-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    font-size: 46px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(90deg, #FF6B35 0%, #FFD166 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: #CBD5E1;
    margin-bottom: 30px;
    line-height: 1.65;
}

.hero-key-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 35px;
}

.kp-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.kp-icon {
    font-size: 26px;
}

.kp-text strong {
    display: block;
    font-size: 15px;
    color: #fff;
}

.kp-text small {
    font-size: 12px;
    color: #94A3B8;
}

.hero-btn-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.hero-trust-badge {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #94A3B8;
    flex-wrap: wrap;
}

/* 히어로 비주얼 카드 */
.visual-card {
    background: #FFFFFF;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-strong);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--dark-bg);
    color: #FFD166;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 4px;
}

.mechanism-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.mechanism-caption strong {
    display: block;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
}

.mechanism-caption p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 섹션 공통 */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.section-tag {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-muted);
}

/* 비디오 섹션 & 비교 박스 */
.video-section {
    background: #FFFFFF;
}

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.video-player-box {
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
}

.field-video {
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    background: #000;
}

.video-label {
    background: #111827;
    color: #fff;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
}

.compare-card-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.compare-card {
    padding: 24px;
    border-radius: var(--radius-md);
    position: relative;
}

.compare-card.bad {
    background: #FFF5F5;
    border: 1px solid #FED7D7;
}

.compare-card.bad h3 {
    color: #C53030;
    font-size: 18px;
    margin-bottom: 12px;
}

.compare-card.good {
    background: #F0FDF4;
    border: 2px solid var(--success);
    box-shadow: var(--shadow-soft);
}

.badge-best {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--success);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.compare-card.good h3 {
    color: #15803D;
    font-size: 20px;
    margin-bottom: 14px;
}

.compare-card ul {
    list-style: none;
}

.compare-card ul li {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 규격표 섹션 */
.specs-section {
    background: #F8F9FA;
}

.specs-table-wrapper {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.specs-table th {
    background: #F1F5F9;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 2px solid var(--border-color);
}

.specs-table td {
    padding: 16px 20px;
    font-size: 14px;
    border-bottom: 1px solid #EDF2F7;
    vertical-align: middle;
}

.model-badge {
    font-size: 15px;
    color: var(--text-main);
    font-weight: 800;
}

.model-badge.popular {
    color: var(--primary);
}

.hot-pill {
    background: #FEE2E2;
    color: #DC2626;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
}

.spec-highlight {
    font-size: 16px;
    font-weight: 800;
    color: var(--secondary-dark);
}

.featured-row {
    background: #FFFBF7;
}

.btn-table-call {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.btn-table-call:hover {
    background: var(--primary-dark);
}

.material-card {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.mat-item {
    background: #FFFFFF;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.mat-item strong {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.mat-item p {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

/* 실시간 견적 계산기 */
.calc-section {
    background: #FFFFFF;
}

.calc-card {
    background: #F8FAFC;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    box-shadow: var(--shadow-soft);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.qty-quick-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.btn-qty {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.btn-qty:hover {
    background: #E2E8F0;
    color: var(--primary);
}

.calc-result-box {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.result-header {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-bg);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.save-badge {
    background: #ECFDF5;
    color: #059669;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.result-divider {
    height: 1px;
    background: var(--border-color);
    margin: 20px 0;
}

.result-price-wrap {
    text-align: right;
    margin-bottom: 10px;
}

.price-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.price-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
}

.calc-notice {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* 대량 납품 & 문의 섹션 */
.contact-section {
    background: linear-gradient(135deg, #0B132B 0%, #172554 100%);
    color: #fff;
}

.contact-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info .section-tag {
    color: #FFD166;
}

.contact-info h2 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.3;
}

.contact-desc {
    font-size: 16px;
    color: #CBD5E1;
    margin-bottom: 30px;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.c-icon {
    font-size: 28px;
}

.c-card strong {
    display: block;
    font-size: 14px;
    color: #94A3B8;
}

.c-link {
    color: #FFD166;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
}

.c-card span {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.contact-form-wrap {
    background: #FFFFFF;
    color: var(--text-main);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-strong);
}

.contact-form h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.req {
    color: var(--primary);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #F8FAFC;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.checkbox-grid label {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}

/* 푸터 */
.site-footer {
    background: #070D1F;
    color: #94A3B8;
    padding: 50px 0 30px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 30px;
}

.f-logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    display: inline-block;
    margin-right: 8px;
}

.f-sub {
    font-size: 15px;
    color: #CBD5E1;
}

.f-tagline {
    font-size: 14px;
    color: #64748B;
    margin-top: 6px;
}

.footer-contacts p {
    margin-bottom: 6px;
}

.footer-contacts a {
    color: #E2E8F0;
    text-decoration: none;
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 25px;
    font-size: 13px;
    color: #64748B;
    flex-wrap: wrap;
    gap: 10px;
}

.f-credit {
    color: #94A3B8;
    font-weight: 600;
}

/* 모바일 하단 플로팅 바 */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111827;
    display: flex;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.2);
    border-top: 2px solid var(--primary);
}

.mobile-sticky-bar a {
    flex: 1;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-m-sms {
    background: #1F2937;
    color: #F3F4F6;
}

.btn-m-call {
    background: var(--primary);
    color: #FFFFFF;
}

/* 반응형 미디어 쿼리 */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
    .calc-card {
        grid-template-columns: 1fr;
    }
    .contact-box {
        grid-template-columns: 1fr;
    }
    .material-card {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-menu {
        display: none; /* 모바일 단순화 */
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 32px;
    }
    .hero-key-points {
        grid-template-columns: 1fr;
    }
    .hero-btn-group .btn {
        width: 100%;
    }
    .material-card {
        grid-template-columns: 1fr;
    }
    .checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
