/* =========================================================
   이글루클라우드 — 원본 재현 스타일 (아임웹 사이트 기준 측정값)
   ========================================================= */
:root {
  --accent: #2c91ec;          /* 섹션 라벨(About Us 등) */
  --brand: #3182f6;           /* theme-color */
  --black: #000;
  --warm-black: #0c0a0a;      /* 히어로·채용 상단 오버레이 */
  --card-dark: #1c1c1e;
  --text-dark: #212121;
  --text-gray: #8d8d93;
  --line-light: #e6e6e8;
  --bg-light: #f8f8f8;
  --legal-bg: #4b4b4f;
  --radius: 20px;
  --container: 1000px;
  --header-h: 80px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text-dark); background: #000; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: calc(var(--container) + 48px); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.m-only { display: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); background: #000; border-bottom: 1px solid rgba(255,255,255,.12); transition: background .3s; }
.site-header.transparent { background: transparent; }
.site-header.transparent.scrolled, .site-header.menu-open { background: #000; }
.header-inner { height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 56px; display: flex; align-items: center; gap: 40px; }
.logo img { width: 92px; height: auto; }
.gnb { margin-left: auto; display: flex; gap: 38px; }
.gnb a { color: #fff; font-size: 15px; font-weight: 500; letter-spacing: .01em; transition: color .2s; }
.gnb a:hover { color: var(--accent); }
.btn-header { background: #fff; color: var(--accent); font-size: 13px; font-weight: 500; padding: 11px 22px; border-radius: 999px; transition: transform .2s; }
.btn-header:hover { transform: translateY(-1px); }
.menu-toggle { display: none; margin-left: auto; width: 40px; height: 40px; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: transform .3s, opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: #000; padding: 16px 24px 32px; border-top: 1px solid rgba(255,255,255,.12); }
.mobile-menu nav a { display: block; color: #fff; font-size: 20px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.btn-mobile-cta { display: block; margin-top: 24px; text-align: center; background: #fff; color: var(--accent); font-weight: 600; padding: 14px; border-radius: 999px; }

/* ---------- Typography ---------- */
.eyebrow { color: var(--accent); font-size: 16px; font-weight: 700; line-height: 1.6; margin-bottom: 8px; }
.display { font-size: 60px; line-height: 1.1; font-weight: 700; color: #fff; }
.display-md { font-size: 52px; line-height: 1.15; font-weight: 700; }
.display-sm { font-size: 48px; line-height: 1.2; font-weight: 700; }
.light .display, .light .display-md, .light .display-sm { color: var(--text-dark); }
.dark .display-sm { color: #fff; }
.lead { color: var(--text-gray); font-size: 16px; line-height: 1.6; margin-top: 28px; }
.lead + .lead { margin-top: 24px; }
.lead b { color: #fff; }
.section-head { margin-bottom: 64px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 680px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(12,10,10,.6); }
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero h1 { font-size: 60px; line-height: 1.1; font-weight: 700; }
.hero p { font-size: 24px; line-height: 1.2; margin-top: 40px; }

/* ---------- Sections ---------- */
.dark { background: #000; color: #fff; }
.light { background: var(--bg-light); }
.about { padding: 140px 0 140px; }
.about .display { margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, 340px); gap: 18px; justify-content: center; margin-top: 64px; text-align: left; }
.stat-card { background: var(--card-dark); border-radius: 16px; padding: 28px 28px 32px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-label { color: var(--text-gray); font-size: 20px; line-height: 1.2; font-weight: 700; }
.stat-num { font-size: 48px; line-height: 1.2; font-weight: 700; color: #fff; }

.solutions { padding: 160px 0 120px; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.product.reverse .product-text { order: 2; }
.product-text h3 { font-size: 48px; line-height: 1.2; font-weight: 700; color: #fff; margin-top: 4px; }
.product-text p:not(.eyebrow) { color: var(--text-gray); font-size: 16px; margin-top: 32px; }
.text-link { display: inline-block; margin-top: 32px; font-weight: 700; color: #fff; }
.text-link:hover { color: var(--accent); }
.product-img img { border-radius: 24px; width: 100%; max-width: 472px; margin-left: auto; transition: transform .4s; }
.product.reverse .product-img img { margin-left: 0; margin-right: auto; }
.product-img:hover img { transform: translateY(-6px); }

.rounded-top { border-radius: 24px 24px 0 0; margin-top: -24px; position: relative; }
.leadership { padding: 150px 0 0; }
.leadership .lead { margin-top: 32px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.leader-card, .culture-card { background: #fff; border: 1px solid var(--line-light); border-radius: 16px; padding: 32px 28px; }
.leader-card .quote { color: var(--accent); font-size: 18px; font-weight: 700; line-height: 1.35; min-height: 50px; }
.leader-card .avatar { width: 160px; height: 160px; object-fit: cover; margin: 20px auto 8px; border-radius: 50%; }
.leader-card h3 { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--text-dark); }
.leader-card h3 span { font-size: 16px; font-weight: 500; }
.leader-card .desc { font-size: 14px; color: var(--text-gray); margin-top: 20px; min-height: 115px; }
.btn-outline { display: inline-block; margin-top: 24px; font-size: 12px; padding: 7px 20px; border: 1px solid #555; border-radius: 999px; color: var(--text-dark); transition: background .2s, color .2s; }
.btn-outline:hover { background: var(--text-dark); color: #fff; }
.divider { border: 0; border-top: 1px solid var(--line-light); margin: 70px 0 0; }

.culture { padding: 140px 0 0; }
.culture-card h3 { font-size: 26px; font-weight: 700; color: var(--text-dark); margin: 30px 0 20px; }
.culture-card p { font-size: 14px; color: var(--text-gray); padding-bottom: 20px; }

.contact { padding: 140px 0 120px; }
.contact .lead { margin-top: 36px; }
.form-wrap { max-width: 700px; }
.form-wrap iframe { display: block; border: 0; }

/* ---------- Career ---------- */
.dark-warm { background: var(--warm-black); color: #fff; }
.career-hero { padding: calc(var(--header-h) + 150px) 0 90px; }
.display-light { font-size: 46px; line-height: 1.35; font-weight: 400; }
.display-light b { font-weight: 700; }
.career-hero-img { margin: 80px auto 0; border-radius: 20px; width: 100%; max-width: 900px; aspect-ratio: 16/9; object-fit: cover; }
.history { padding: 120px 0 40px; }
.history .section-head { margin-bottom: 70px; }
.narrow-wide { max-width: 1048px; }
.history-title { text-align: center; font-size: 32px; font-weight: 700; margin-bottom: 70px; }
.history-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.tl-year { display: grid; grid-template-columns: 76px 1fr; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.tl-year:first-child { padding-top: 0; }
.year { color: var(--accent); font-weight: 700; font-size: 16px; }
.tl-year li { font-size: 14px; color: #c8c8cc; line-height: 1.55; padding-left: 52px; text-indent: -52px; }
.tl-year li b:first-child { display: inline-block; width: 46px; text-indent: 0; }
.tl-year li b { color: #fff; }
.history-img { border-radius: 10px; width: 100%; }
.office { padding: 140px 0 80px; }
.office .lead { color: #c8c8cc; }
.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 928px; }
.office-grid img { border-radius: 8px; aspect-ratio: 5/3; object-fit: cover; width: 100%; }
.jobs { padding: 100px 0 160px; }
.jobs-board-title { font-size: 15px; color: #fff; margin-bottom: 20px; }
.job-list li a { display: flex; justify-content: space-between; gap: 16px; padding: 22px 4px; border-bottom: 1px solid rgba(255,255,255,.15); color: #fff; }
.job-list li a:hover { color: var(--accent); }
.job-list .job-meta { color: var(--text-gray); font-size: 14px; }
.job-empty { color: #4a4a4e; text-align: center; padding: 40px 0; }
.job-empty svg { margin: 0 auto 14px; }
.job-empty p { font-size: 14px; }
.job-empty[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--text-gray); }
.footer-brand { text-align: center; padding: 90px 24px 60px; font-size: 12px; }
.footer-brand img { margin: 0 auto 18px; width: 120px; }
.footer-name { color: #c8c8cc; font-weight: 600; margin-bottom: 8px; }
.footer-info { line-height: 2; }
.footer-info span { margin: 0 6px; color: #555; }
.footer-links { margin-top: 26px; }
.footer-links a:hover { color: #fff; }
.footer-legal { background: var(--legal-bg); color: #e6e6e6; font-size: 11px; padding: 18px 0; }
.footer-legal ul { max-width: 1048px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 160px 24px 80px; }
.notfound .btn-header { display: inline-block; margin-top: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header-inner { padding: 0 32px; }
  .gnb { gap: 26px; }
}
@media (max-width: 1024px) {
  .display { font-size: 48px; }
  .display-md, .display-sm, .product-text h3 { font-size: 38px; }
  .product { gap: 40px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .history-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .gnb, .btn-header { display: none; }
  .menu-toggle { display: block; }
  .header-inner { padding: 0 20px; }
}
@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  .logo img { width: 78px; }
  .hero { height: 560px; }
  .hero h1, .display { font-size: 34px; line-height: 1.25; }
  .hero p { font-size: 17px; margin-top: 24px; line-height: 1.5; }
  .display-md, .display-sm, .product-text h3 { font-size: 28px; line-height: 1.3; }
  .display-light { font-size: 24px; }
  .about, .solutions, .leadership, .culture, .contact, .office { padding-top: 90px; }
  .about { padding-bottom: 90px; }
  .lead { font-size: 15px; }
  .stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 150px; }
  .stat-num { font-size: 36px; }
  .section-head { margin-bottom: 40px; }
  .product, .product.reverse { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .product .product-img { order: -1; }
  .product.reverse .product-text { order: 0; }
  .product-img img { margin: 0 auto !important; }
  .cards-3 { grid-template-columns: 1fr; }
  .leader-card .desc { min-height: 0; }
  .career-hero { padding-top: calc(var(--header-h) + 80px); }
  .career-hero-img { margin-top: 48px; }
  .history-title { font-size: 24px; margin-bottom: 40px; }
  .tl-year { grid-template-columns: 56px 1fr; }
  .office-grid { grid-template-columns: 1fr; }
  .footer-info span { display: none; }
  .footer-info { line-height: 1.8; }
}

/* 히어로가 없는 페이지: 고정 헤더 높이만큼 여백 */
.pad-top main { padding-top: var(--header-h); background: #000; }
.pad-top .solutions { padding-top: 120px; }
.leadership .cards-3, .culture .cards-3 { max-width: 1128px; }
.leader-card .quote { font-size: 17px; }
.leader-card h3 span { font-size: 15px; white-space: nowrap; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
