/* ===========================
   MAA — 글로벌 + 랜딩 스타일
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0F172A;
  --navy2:   #1E293B;
  --blue:    #1E40AF;
  --blue2:   #2563EB;
  --cyan:    #06B6D4;
  --cyan2:   #0891B2;
  --emerald: #10B981;
  --amber:   #F59E0B;
  --danger:  #EF4444;
  --slate50: #F8FAFC;
  --slate100:#F1F5F9;
  --slate200:#E2E8F0;
  --slate300:#CBD5E1;
  --slate400:#94A3B8;
  --slate500:#64748B;
  --slate700:#334155;
  --slate800:#1E293B;
  --white:   #FFFFFF;
  --rc: 12px;
  --rb: 8px;
  --sh:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --sh-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
  --sh-lg: 0 12px 40px rgba(0,0,0,.16);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Pretendard', 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
  background: var(--slate50);
  color: var(--navy);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

/* ─── 컨테이너 ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ─── 배지 ─── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px;
}
.badge-cyan   { background: rgba(6,182,212,.12);  color: var(--cyan);  border: 1px solid rgba(6,182,212,.25); }
.badge-blue   { background: rgba(37,99,235,.12);  color: var(--blue2); border: 1px solid rgba(37,99,235,.25); }
.badge-green  { background: rgba(16,185,129,.12); color: #059669;      border: 1px solid rgba(16,185,129,.25); }
.badge-amber  { background: rgba(245,158,11,.12); color: #B45309;      border: 1px solid rgba(245,158,11,.25); }
.badge-danger { background: rgba(239,68,68,.12);  color: #DC2626;      border: 1px solid rgba(239,68,68,.25); }

/* ─── 버튼 ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14px;
  border-radius: var(--rb); padding: 9px 20px;
  cursor: pointer; transition: all .2s; border: none; outline: none;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, var(--blue2) 100%);
  color: var(--white); box-shadow: 0 2px 8px rgba(30,64,175,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,64,175,.45); }
.btn-cyan {
  background: linear-gradient(135deg, var(--cyan2) 0%, var(--cyan) 100%);
  color: var(--white); box-shadow: 0 2px 8px rgba(6,182,212,.35);
}
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(6,182,212,.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.22);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(6,182,212,.07); }
.btn-sm { font-size: 13px; padding: 6px 14px; }
.btn-lg { font-size: 15px; padding: 12px 28px; border-radius: 10px; }

/* ─── 로고 (공용) ─── */
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue2) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; color: var(--white); flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(6,182,212,.4);
}
.logo-text { font-size: 18px; font-weight: 700; color: var(--white); letter-spacing: -.4px; }

/* =================================
   랜딩 헤더
   ================================= */
.lp-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,23,42,.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.lp-nav { display: flex; align-items: center; gap: 2px; }
.lp-nav-link {
  color: var(--slate400); font-size: 14px; font-weight: 500;
  padding: 7px 14px; border-radius: var(--rb); transition: all .2s;
}
.lp-nav-link:hover { color: var(--white); background: rgba(255,255,255,.07); }
.lp-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 16px; }

/* =================================
   히어로
   ================================= */
.hero {
  background: var(--navy);
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden; padding: 100px 0 80px;
}

/* 배경 그리드 패턴 */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
/* 사이버 글로우 */
.hero::after {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(6,182,212,.10) 0%, rgba(30,64,175,.07) 40%, transparent 70%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute; bottom: -20%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(30,64,175,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner { text-align: center; position: relative; z-index: 1; }

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(6,182,212,.1); color: var(--cyan);
  border: 1px solid rgba(6,182,212,.25);
  font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}
.hero-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: pulse 1.5s infinite; }

.hero-title {
  font-size: clamp(36px, 5.5vw, 60px); font-weight: 700;
  color: var(--white); line-height: 1.15;
  letter-spacing: -.8px; margin-bottom: 22px;
  animation: fadeUp .6s .1s ease both;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--cyan) 0%, #818cf8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px; color: var(--slate400);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.75;
  animation: fadeUp .6s .2s ease both;
}

.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp .6s .3s ease both;
}

.hero-stats {
  display: inline-flex; align-items: stretch; gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px; overflow: hidden;
  animation: fadeUp .6s .4s ease both;
}
.hstat {
  padding: 20px 36px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.hstat:last-child { border-right: none; }
.hstat-num   { font-size: 26px; font-weight: 700; color: var(--cyan); letter-spacing: -.5px; }
.hstat-label { font-size: 12px; color: var(--slate500); margin-top: 3px; }

/* =================================
   기능 섹션
   ================================= */
.features { padding: 112px 0; background: var(--white); }

.sec-header { text-align: center; margin-bottom: 64px; }
.sec-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: var(--cyan);
  margin-bottom: 12px;
}
.sec-title { font-size: 36px; font-weight: 700; color: var(--navy); letter-spacing: -.5px; margin-bottom: 14px; }
.sec-desc  { font-size: 16px; color: var(--slate500); max-width: 540px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--slate50);
  border: 1px solid var(--slate200);
  border-radius: var(--rc); padding: 32px 28px;
  transition: all .25s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(6,182,212,.03));
  opacity: 0; transition: opacity .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(6,182,212,.3); }
.feature-card:hover::before { opacity: 1; }
.fc-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.fc-blue   { background: rgba(37,99,235,.1); }
.fc-cyan   { background: rgba(6,182,212,.1); }
.fc-green  { background: rgba(16,185,129,.1); }
.fc-amber  { background: rgba(245,158,11,.1); }
.fc-purple { background: rgba(139,92,246,.1); }
.fc-pink   { background: rgba(236,72,153,.1); }
.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.feature-card p  { font-size: 14px; color: var(--slate500); line-height: 1.7; }

/* =================================
   아키텍처 섹션
   ================================= */
.arch-section { padding: 112px 0; background: var(--navy); position: relative; overflow: hidden; }
.arch-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.arch-section .sec-title { color: var(--white); }
.arch-section .sec-desc  { color: var(--slate400); }

.arch-pipeline {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 0 auto; max-width: 900px;
  position: relative;
}
.arch-node {
  flex: 1;
  background: var(--navy2); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--rc); padding: 28px 20px;
  text-align: center; transition: all .25s; position: relative;
}
.arch-node:hover { border-color: rgba(6,182,212,.5); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.an-icon { font-size: 32px; margin-bottom: 12px; }
.an-label { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.an-sub   { font-size: 12px; color: var(--slate400); }
.an-badge { margin-top: 10px; }

.an-cyan   { border-top: 2px solid var(--cyan); }
.an-blue   { border-top: 2px solid var(--blue2); }
.an-green  { border-top: 2px solid var(--emerald); }

.arch-arrow {
  flex-shrink: 0; width: 40px; text-align: center;
  color: var(--slate500); font-size: 20px; position: relative;
}
.arch-arrow::before {
  content: ''; display: block;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(6,182,212,.2), rgba(6,182,212,.6), rgba(6,182,212,.2));
}

.arch-endpoints {
  display: flex; gap: 24px; justify-content: center; margin-top: 40px;
}
.arch-ep {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 14px 20px; font-size: 13px;
}
.arch-ep-icon { font-size: 22px; }
.arch-ep-label { color: var(--white); font-weight: 600; }
.arch-ep-sub   { color: var(--slate400); font-size: 12px; margin-top: 1px; }

/* =================================
   도메인 섹션
   ================================= */
.domains-section { padding: 112px 0; background: var(--slate50); }

.domain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.domain-card {
  background: var(--white); border: 1px solid var(--slate200);
  border-radius: var(--rc); padding: 32px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: all .25s;
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: rgba(6,182,212,.3); }
.dc-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, rgba(6,182,212,.12), rgba(30,64,175,.12));
  border: 1px solid rgba(6,182,212,.15);
}
.dc-title { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.dc-desc  { font-size: 14px; color: var(--slate500); line-height: 1.65; }
.dc-tags  { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.dc-tag   { font-size: 11px; font-weight: 600; color: var(--cyan2); background: rgba(6,182,212,.08); padding: 3px 9px; border-radius: 20px; }

/* =================================
   CTA 섹션
   ================================= */
.cta-section {
  padding: 100px 0; text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #0c1e40 50%, #071828 100%);
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(6,182,212,.12) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title { font-size: 40px; font-weight: 700; color: var(--white); letter-spacing: -.5px; margin-bottom: 16px; position: relative; }
.cta-desc  { font-size: 17px; color: var(--slate400); margin-bottom: 40px; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =================================
   푸터
   ================================= */
.lp-footer { background: #080e1c; border-top: 1px solid rgba(255,255,255,.06); padding: 48px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-left { display: flex; align-items: center; gap: 16px; }
.footer-sep  { width: 1px; height: 20px; background: rgba(255,255,255,.1); }
.footer-copy { font-size: 13px; color: var(--slate500); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 13px; color: var(--slate500); transition: color .2s; }
.footer-link:hover { color: var(--cyan); }

/* =================================
   사이드바 (앱 공통)
   ================================= */
.sidebar {
  width: 248px; flex-shrink: 0;
  background: var(--navy);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255,255,255,.05);
}
.sidebar-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sidebar-nav {
  padding: 10px 10px; display: flex; flex-direction: column; gap: 2px;
  flex: 1;
}
.sidebar-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.22); padding: 12px 10px 4px; margin-top: 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--rb);
  color: var(--slate400); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer; transition: all .15s; position: relative;
}
.nav-item:hover  { background: rgba(255,255,255,.07); color: var(--white); }
.nav-item.active { background: rgba(6,182,212,.14); color: var(--cyan); }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; background: var(--cyan); border-radius: 0 3px 3px 0;
}
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 10px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--rb);
  cursor: pointer; transition: background .15s;
}
.sidebar-user:hover { background: rgba(255,255,255,.06); }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan2), var(--blue2));
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--white);
}
.user-name  { font-size: 13px; font-weight: 600; color: var(--white); }
.user-role  { font-size: 11px; color: var(--slate400); margin-top: 1px; }
.sidebar-history { padding: 0 10px 10px; }
.history-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.22); padding: 10px 10px 6px;
}
.history-item {
  padding: 7px 12px; border-radius: var(--rb); cursor: pointer;
  font-size: 13px; color: var(--slate400); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; transition: all .15s;
}
.history-item:hover { background: rgba(255,255,255,.05); color: var(--white); }

/* =================================
   애니메이션
   ================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

/* =================================
   반응형
   ================================= */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-grid  { grid-template-columns: 1fr; }
  .arch-pipeline { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero { padding: 72px 0 60px; }
  .feature-grid { grid-template-columns: 1fr; }
  .lp-nav .lp-nav-link { display: none; }
  .hero-stats { flex-wrap: wrap; }
  .hstat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
}
