/* ═══════════════════════════════════════════════════════
   CENDRIX LANDING — Apple-inspired light design
   ═══════════════════════════════════════════════════════ */

@import url('https://cdn.jsdelivr.net/npm/pretendard@latest/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f5f7;
  --bg-card:   #ffffff;
  --text-1:    #1d1d1f;
  --text-2:    #6e6e73;
  --text-3:    #86868b;
  --accent:    #0071e3;
  --accent-h:  #0077ed;
  --accent-l:  #e8f0fe;
  --divider:   rgba(0,0,0,0.08);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --radius:    18px;
  --radius-l:  24px;
  --font:      'Pretendard Variable', -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }

/* ════ NAV ════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 52px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 32px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-mark {
  width: 26px; height: 26px;
  background: var(--text-1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 14px; height: 14px; color: #fff; }
.nav-logo-text {
  font-size: 15px; font-weight: 700; letter-spacing: -.4px;
  color: var(--text-1);
}
.nav-actions { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-size: 13px; color: var(--text-2);
  padding: 6px 14px; border-radius: 20px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text-1); background: var(--bg-alt); }
.nav-btn {
  font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 20px;
  background: var(--accent); color: #fff;
  transition: background .15s;
}
.nav-btn:hover { background: var(--accent-h); }

/* ════ HERO ══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 130px 32px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

/* 배경 그라디언트 원 */
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse,
    rgba(0,113,227,0.05) 0%,
    rgba(100,180,255,0.04) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  animation: fadeUp .5s ease both;
}

.hero-title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 700; letter-spacing: -2.5px;
  line-height: 1.05; color: var(--text-1);
  margin-bottom: 20px;
  animation: fadeUp .5s .08s ease both;
}
.hero-title .blue {
  background: linear-gradient(135deg, #0071e3 0%, #2196f3 50%, #00c7ff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 19px; font-weight: 400;
  color: var(--text-2); line-height: 1.65;
  max-width: 520px; margin: 0 auto 40px;
  animation: fadeUp .5s .16s ease both;
}

.hero-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
  animation: fadeUp .5s .24s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 500;
  padding: 13px 26px; border-radius: 980px;
  background: var(--accent); color: #fff;
  transition: background .15s, transform .15s;
}
.btn-primary:hover {
  background: var(--accent-h);
  transform: scale(1.02);
}
.btn-primary svg { width: 14px; height: 14px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15px; font-weight: 500;
  color: var(--accent); padding: 13px 20px;
  border-radius: 980px; transition: background .15s;
}
.btn-ghost:hover { background: var(--accent-l); }

.hero-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center;
  margin-top: 52px; max-width: 660px;
  animation: fadeUp .5s .32s ease both;
}
.chip {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  padding: 5px 14px; border-radius: 980px;
  background: var(--bg-alt);
  transition: background .15s, color .15s;
}
.chip:hover { background: #e8e8ed; color: var(--text-1); }

/* ════ STATS ═════════════════════════════════════════════ */
.stats-bar { padding: 0 32px; margin-bottom: 100px; }
.stats-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.stat-item {
  padding: 36px 28px;
  border-right: 1px solid var(--divider);
  transition: background .2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: #ebebed; }
.stat-num {
  font-size: 40px; font-weight: 700; letter-spacing: -2px;
  color: var(--text-1); line-height: 1; margin-bottom: 6px;
}
.stat-num .unit { font-size: 22px; color: var(--accent); }
.stat-label { font-size: 13px; color: var(--text-3); }

/* ════ SECTION HEADER ════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; letter-spacing: -1.5px;
  color: var(--text-1); line-height: 1.1; margin-bottom: 14px;
}
.section-desc {
  font-size: 17px; color: var(--text-2);
  max-width: 520px; margin: 0 auto; line-height: 1.6;
}

/* ════ FEATURES ══════════════════════════════════════════ */
.features-section { padding: 0 32px 80px; }

/* ── 공통 bento 카드 ──────────────────────────────────── */
.bento-card {
  background: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 32px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow .25s, transform .25s;
}
.bento-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-label {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.card-label-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}
.card-title {
  font-size: 22px; font-weight: 700; letter-spacing: -.5px;
  color: var(--text-1); margin-bottom: 10px; line-height: 1.25;
  word-break: keep-all;
}
.card-desc {
  font-size: 14px; color: var(--text-2); line-height: 1.65;
  word-break: keep-all;
}

/* ── 혁신 기능 5개 (Large Bento) ─────────────────────── */
.bento-hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 280px 280px 200px;
  gap: 12px; margin-bottom: 12px;
}
.bc-asset   { grid-column: span 7; grid-row: span 2; background: var(--bg-alt); }
.bc-rbac    { grid-column: span 5; grid-row: span 1; }
.bc-tenant  { grid-column: span 5; grid-row: span 1; }
.bc-ifrs    { grid-column: span 6; grid-row: span 1; }
.bc-vehicle { grid-column: span 6; grid-row: span 1; }

/* 자산 카드 */
.bc-asset .card-title { font-size: 32px; letter-spacing: -1px; }
.asset-visual { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 28px; }
.asset-chip {
  background: #fff; border-radius: 10px;
  padding: 10px 12px; font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 7px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--divider);
  font-weight: 500;
}
.asset-chip .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-green  { background: #34c759; }
.dot-blue   { background: #007aff; }
.dot-amber  { background: #ff9f0a; }
.dot-gray   { background: #aeaeb2; }
.dot-red    { background: #ff3b30; }
.dot-teal   { background: #5ac8fa; }

/* RBAC 카드 */
.bc-rbac .card-big-num {
  font-size: 68px; font-weight: 800; letter-spacing: -4px;
  color: var(--text-1); line-height: 1; margin-bottom: 4px;
}
.bc-rbac .card-big-num span { color: var(--accent); }

/* 멀티테넌트 카드 */
.tenant-bars { display: flex; gap: 5px; margin-top: 20px; align-items: flex-end; height: 64px; }
.tenant-bar {
  flex: 1; border-radius: 5px 5px 0 0;
  background: #e5e5ea; transition: background .2s;
}
.bento-card:hover .tenant-bar { background: #d1d1d6; }
.tenant-bar:nth-child(1) { height: 35%; }
.tenant-bar:nth-child(2) { height: 55%; }
.tenant-bar:nth-child(3) { height: 78%; background: #c7e0f8; }
.tenant-bar:nth-child(4) { height: 60%; }
.tenant-bar:nth-child(5) { height: 100%; background: #90c4f5; }
.bento-card:hover .tenant-bar:nth-child(3) { background: #a5cef5; }
.bento-card:hover .tenant-bar:nth-child(5) { background: var(--accent); }

/* IFRS 카드 */
.ifrs-tag {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--accent);
  background: var(--accent-l);
  padding: 3px 10px; border-radius: 6px;
  margin-bottom: 12px;
}
.bc-ifrs .card-title { font-size: 20px; }

/* ── 중요 기능 5개 (Medium) ──────────────────────────── */
.bento-mid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px; margin-bottom: 12px;
}
.bm-license { grid-column: span 4; grid-row: span 2; }
.bm-depr    { grid-column: span 4; grid-row: span 1; }
.bm-bulk    { grid-column: span 4; grid-row: span 1; }
.bm-supply  { grid-column: span 4; grid-row: span 1; }
.bm-assign  { grid-column: span 4; grid-row: span 1; }

.bm-license { background: var(--bg-alt); }

.license-seats { display: flex; gap: 4px; margin-top: 18px; flex-wrap: wrap; }
.seat {
  width: 20px; height: 20px; border-radius: 5px;
  background: #e5e5ea;
}
.seat.used { background: var(--accent); }

.pill-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pill {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  padding: 4px 12px; border-radius: 980px;
  background: var(--bg-alt); border: 1px solid var(--divider);
}
.pill.active { color: var(--accent); background: var(--accent-l); border-color: transparent; }

/* ── 일반 기능 10개 (Small) ──────────────────────────── */
.bento-small { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.bs-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow .2s, transform .2s;
}
.bs-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bs-icon {
  width: 36px; height: 36px;
  background: var(--bg-alt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; color: var(--accent);
}
.bs-icon svg { width: 17px; height: 17px; }
.bs-title { font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 5px; letter-spacing: -.2px; }
.bs-desc  { font-size: 13px; color: var(--text-3); line-height: 1.55; word-break: keep-all; }

/* ════ PRICING ═══════════════════════════════════════════ */
.pricing-section { padding: 100px 0; background: var(--bg-alt); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.popular {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(0,113,227,.06), var(--shadow-md);
}
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 14px; border-radius: 980px;
  white-space: nowrap;
}
.pricing-plan-name {
  font-size: 14px; font-weight: 700; color: var(--accent);
  margin-bottom: 6px;
}
.pricing-price {
  font-size: 38px; font-weight: 800; letter-spacing: -2px;
  color: var(--text-1); line-height: 1; margin-bottom: 4px;
}
.pricing-price .per { font-size: 14px; font-weight: 400; color: var(--text-3); letter-spacing: 0; }
.pricing-desc {
  font-size: 13px; color: var(--text-3); margin-bottom: 24px;
  line-height: 1.5; min-height: 36px;
}
.pricing-specs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-spec { display: flex; justify-content: space-between; align-items: center; }
.pricing-spec-label { font-size: 13px; color: var(--text-2); }
.pricing-spec-val { font-size: 13px; font-weight: 700; color: var(--text-1); }
.pricing-cta {
  display: block; text-align: center; width: 100%;
  padding: 12px; border-radius: 980px;
  font-size: 14px; font-weight: 600; transition: all .15s;
}
.pricing-cta.primary { background: var(--accent); color: #fff; }
.pricing-cta.primary:hover { background: var(--accent-h); transform: scale(1.02); }
.pricing-cta.secondary {
  background: var(--bg-alt); color: var(--text-1);
  border: 1px solid var(--divider);
}
.pricing-cta.secondary:hover { background: #e8e8ed; }

.enterprise-banner {
  margin-top: 12px;
  background: var(--bg-card);
  border-radius: var(--radius-l);
  padding: 28px 36px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
}
.enterprise-btn {
  flex-shrink: 0; padding: 10px 22px; border-radius: 980px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--text-1); color: #fff;
  border: none; transition: background .15s;
}
.enterprise-btn:hover { background: #333; }

/* ════ PROOF ═════════════════════════════════════════════ */
.proof-section { padding: 100px 32px; }
.proof-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.proof-main {
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 52px 44px;
}
.proof-quote {
  font-size: 22px; font-weight: 500; line-height: 1.55;
  color: var(--text-1); letter-spacing: -.3px;
  margin-bottom: 32px; word-break: keep-all;
}
.proof-quote span { color: var(--accent); font-weight: 700; }
.proof-author { display: flex; align-items: center; gap: 12px; }
.proof-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--text-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.proof-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.proof-role { font-size: 12px; color: var(--text-3); }

.proof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proof-stat-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
  transition: background .2s;
}
.proof-stat-card:hover { background: #ebebed; }
.proof-stat-num {
  font-size: 44px; font-weight: 800; letter-spacing: -2.5px;
  color: var(--text-1); line-height: 1; margin-bottom: 6px;
}
.proof-stat-num em { font-style: normal; color: var(--accent); font-size: .65em; }
.proof-stat-desc { font-size: 13px; color: var(--text-3); }

/* ════ CTA ═══════════════════════════════════════════════ */
.cta-section { padding: 0 32px 100px; }
.cta-box {
  max-width: 1160px; margin: 0 auto;
  background: var(--bg-alt);
  border-radius: var(--radius-l);
  padding: 80px 60px;
  text-align: center;
}
.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700; letter-spacing: -1.5px;
  color: var(--text-1); margin-bottom: 14px; line-height: 1.1;
}
.cta-title span { color: var(--accent); }
.cta-sub { font-size: 17px; color: var(--text-2); margin-bottom: 36px; }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ════ FOOTER ════════════════════════════════════════════ */
.footer { border-top: 1px solid var(--divider); padding: 32px; }
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo { font-size: 14px; font-weight: 700; color: var(--text-1); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 12px; color: var(--text-3); transition: color .15s; }
.footer-links a:hover { color: var(--text-1); }
.footer-copy { font-size: 12px; color: var(--text-3); }

/* ════ ANIMATIONS ════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-group > * { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal-group.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:.04s; }
.reveal-group.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:.10s; }
.reveal-group.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:.16s; }
.reveal-group.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:.22s; }
.reveal-group.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:.28s; }

/* ════ RESPONSIVE ════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bento-hero { grid-template-columns: repeat(6,1fr); grid-template-rows: auto; }
  .bc-asset   { grid-column: span 6; grid-row: span 1; }
  .bc-rbac, .bc-tenant, .bc-ifrs, .bc-vehicle { grid-column: span 3; }

  .bento-mid  { grid-template-columns: repeat(6,1fr); grid-template-rows: auto; }
  .bm-license { grid-column: span 6; grid-row: span 1; }
  .bm-depr, .bm-bulk, .bm-supply, .bm-assign { grid-column: span 3; }

  .bento-small { grid-template-columns: repeat(3,1fr); }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .proof-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .hero-title { letter-spacing: -1.5px; }
  .bento-hero { grid-template-columns: 1fr 1fr; }
  .bc-asset, .bc-rbac, .bc-tenant, .bc-ifrs, .bc-vehicle { grid-column: span 2; }
  .bento-mid  { grid-template-columns: 1fr 1fr; }
  .bm-license, .bm-depr, .bm-bulk, .bm-supply, .bm-assign { grid-column: span 2; }
  .bento-small { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item  { border-right: none; border-bottom: 1px solid var(--divider); }
  .stat-item:last-child { border-bottom: none; }
  .nav-link   { display: none; }
  .cta-box    { padding: 48px 24px; }
  .proof-stats { grid-template-columns: 1fr 1fr; }
  .container  { padding: 0 20px; }
}
