/* I&U (아이엔유) — official website
   Design: single stylesheet, no external assets, no CDN dependencies. */

:root {
  --ink: #0b1220;
  --ink-soft: #2a3446;
  --muted: #5b687d;
  --line: #e4e9f2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --brand: #1f5fd8;
  --brand-deep: #0e3b8f;
  --brand-soft: #eaf1ff;
  --accent: #00a8a0;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px -16px rgba(11, 18, 32, .25);
  --shadow-md: 0 2px 4px rgba(11, 18, 32, .05), 0 18px 40px -24px rgba(11, 18, 32, .35);
  --wrap: 1120px;
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", Roboto, "Noto Sans KR",
    "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- language switch ---------- */
[data-lang="ko"] .en { display: none !important; }
[data-lang="en"] .ko { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(31, 95, 216, .8);
  flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-ko { font-size: 15px; font-weight: 700; }
.brand-en { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav a { color: inherit; }
.nav a:hover { color: var(--brand); text-decoration: none; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  padding: 3px;
  gap: 2px;
}
.lang-toggle button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
}
.lang-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 15.5px;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(31, 95, 216, .9); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost { background: #fff; color: var(--ink); border-color: #d5dded; }
.btn-ghost:hover { border-color: #b9c7de; }
.btn-on-dark { background: #fff; color: var(--brand-deep); }
.btn-on-dark:hover { background: #eef3ff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, #e8f0ff 0%, rgba(232, 240, 255, 0) 70%),
    radial-gradient(760px 380px at 92% 8%, #e6fbf8 0%, rgba(230, 251, 248, 0) 68%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 56px;
  align-items: center;
  padding: 88px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid #d3e0ff;
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.35rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 800;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
}

.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 34em;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.hero-note {
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0;
}
.hero-note span { position: relative; }
.hero-note span + span::before {
  content: "·";
  position: absolute;
  left: -9px;
  color: #b9c4d6;
}

/* hero visual card */
.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 22px;
}

.mock-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #dfe5ef; }
.dot.on { background: var(--accent); }
.mock-title { margin-left: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

.mock-rows { display: grid; gap: 12px; padding-top: 16px; }
.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid #eef2f9;
}
.mock-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  font-size: 14px; flex: 0 0 auto;
}
.mock-row b { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.mock-row small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.mock-bar {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin-top: 6px;
}

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 46em; margin-bottom: 44px; }
.section-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 12px;
}
h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  font-weight: 800;
  text-wrap: balance;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }

/* about */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-copy p { margin: 0 0 16px; color: var(--ink-soft); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy strong { color: var(--ink); font-weight: 700; }

.facts { display: grid; gap: 14px; }
.fact {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.fact-num {
  font-size: 12px; font-weight: 800; color: var(--brand);
  background: var(--brand-soft);
  border-radius: 8px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  margin-top: 2px;
}
.fact h3 { margin: 0 0 3px; font-size: 15.5px; letter-spacing: -0.02em; }
.fact p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfdaf0; }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #eaf1ff, #e9fbf8);
  border: 1px solid #dbe6fa;
  margin-bottom: 18px;
  color: var(--brand);
}
.card h3 { font-size: 1.08rem; margin: 0 0 4px; letter-spacing: -0.025em; }
.card .card-sub { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 0; list-style: none; }
.tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
}

/* contact */
.contact-card {
  background: linear-gradient(150deg, #0c1a33 0%, #102a52 55%, #0b2038 100%);
  border-radius: 24px;
  color: #fff;
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 44px;
  box-shadow: 0 30px 60px -40px rgba(11, 26, 51, .9);
}
.contact-card h2 { color: #fff; margin-bottom: 12px; }
.contact-card .section-label { color: #7fb4ff; }
.contact-card p { color: #c3d0e4; margin: 0 0 24px; }
.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; gap: 2px; }
.contact-list .label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8ba3c4; }
.contact-list a, .contact-list span.value { color: #fff; font-size: 15.5px; font-weight: 600; }
.contact-list a:hover { color: #cfe1ff; }
.contact-side { border-left: 1px solid rgba(255, 255, 255, .13); padding-left: 40px; display: flex; flex-direction: column; gap: 18px; }
.contact-side h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #8ba3c4; margin: 0; font-weight: 800; }
.contact-side p { margin: 0; font-size: 14.5px; color: #d5e0f0; }
.contact-side a { color: #fff; }
.mini-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.mini-links a:hover { background: rgba(255, 255, 255, .13); text-decoration: none; }
.mini-links .arrow { color: #8ba3c4; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #a9b6ca; padding: 56px 0 34px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer .brand, .site-footer .brand-ko { color: #fff; }
.site-footer .brand-en { color: #7f8ea6; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.footer-nav a { color: #c3cede; }
.footer-nav a:hover { color: #fff; }

.legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; padding: 26px 0 10px; font-size: 13px; line-height: 1.7; }
.legal div { display: flex; gap: 10px; }
.legal dt { color: #7f8ea6; flex: 0 0 auto; min-width: 108px; }
.legal dd { margin: 0; color: #c3cede; }
.legal strong { color: #eaf0f9; font-weight: 600; }
.copyright { color: #7f8ea6; font-size: 12.5px; padding-top: 14px; margin: 0; }

/* ---------- document pages (privacy / terms / support) ---------- */
.doc-header {
  background: linear-gradient(180deg, #f7f9fd, #fff);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 44px;
}
.doc-header h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.03em; margin: 0 0 10px; font-weight: 800; }
.doc-header p { margin: 0; color: var(--muted); font-size: 14.5px; }
.doc-body { padding: 48px 0 72px; }
.prose { max-width: 800px; }
.prose h2 { font-size: 1.28rem; margin: 40px 0 12px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.03rem; margin: 24px 0 8px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-soft); font-size: 15.5px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.prose table.kv th { width: 104px; color: var(--ink-soft); }
.prose table.stack tbody th { background: transparent; }
.prose .callout {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.prose a { word-break: break-word; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 16px; color: var(--ink-soft); font-size: 15px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; padding: 34px 26px; gap: 30px; }
  .contact-side { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); padding-left: 0; padding-top: 26px; }
  .legal { grid-template-columns: 1fr; }
  .legal dt { min-width: 96px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .wrap { padding: 0 18px; }
  .header-inner { min-height: 62px; gap: 12px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav .nav-hide-sm { display: none; }
  .brand-ko { font-size: 14px; }
  .brand-en { font-size: 10px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .hero h1 { letter-spacing: -0.03em; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-note { gap: 4px 12px; }
  .hero-note span + span::before { display: none; }
  .contact-card { padding: 28px 20px; border-radius: 18px; }
  .site-footer { padding: 44px 0 28px; }
  .footer-top { gap: 20px; }
  .doc-header { padding: 40px 0 32px; }
  .doc-body { padding: 34px 0 56px; }
  .prose table { font-size: 13.8px; }
  .prose th, .prose td { padding: 9px 10px; }
  .prose table.kv th { width: 84px; }

  /* 3-column tables read as stacked cards on phones */
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr,
  .prose table.stack th, .prose table.stack td { display: block; width: auto; }
  .prose table.stack { border: 0; }
  .prose table.stack thead { display: none; }
  .prose table.stack tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
  }
  .prose table.stack td, .prose table.stack tbody th {
    border: 0;
    padding: 10px 14px;
  }
  .prose table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: 2px;
  }
  .prose table.stack td + td, .prose table.stack tbody th + td { border-top: 1px solid #eef2f9; }
}

/* narrow phones: keep the header on one line in both languages */
@media (max-width: 480px) {
  .header-inner { gap: 10px; }
  .nav a[href="#about"], .nav a[href="#services"],
  .nav a[href="index.html#about"], .nav a[href="index.html#services"] { display: none; }
  .nav .nav-hide-sm { display: inline; }
  .nav { gap: 12px; font-size: 14.5px; }
  .brand-en { display: none; }
  .brand-ko { font-size: 15px; }
  .lang-toggle button { padding: 5px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
