/* IA Solutions — shared stylesheet (KR + EN) */
:root {
  --bg: #16142a;
  --text: #e9e8f5;
  --muted: #a9a7c3;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(140, 150, 255, 0.45);
  --blue: #4f9dff;
  --violet: #8b5cf6;
  --radius: 28px;
  --max: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(98, 40, 120, 0.55), transparent 70%),
    radial-gradient(ellipse 60% 55% at 100% 0%, rgba(35, 55, 110, 0.6), transparent 70%),
    linear-gradient(160deg, #1a1630 0%, #13111f 50%, #1a1530 100%);
  background-attachment: fixed;
  font-family: "Inter", "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
html[lang="ko"] body { word-break: keep-all; }

/* Twinkling starfield (drawn by main.js) */
#stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 72px 24px;
}
.hero .logo { width: 84px; height: 84px; margin-bottom: 28px; }
.brand {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 26px;
}
.brand .ia { color: var(--blue); }
.brand .sol {
  background: linear-gradient(180deg, #ffffff 0%, #c9c7e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { max-width: 620px; color: var(--muted); font-size: 0.92rem; margin-bottom: 36px; }
.lead strong { color: var(--text); font-weight: 600; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 176px; height: 50px; padding: 0 26px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(20, 18, 40, 0.35);
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: rgba(79, 157, 255, 0.12); border-color: var(--blue); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.subtle { border-color: var(--line); }

/* ---------- Service shortcut cards ---------- */
.shortcuts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: 40px auto 110px;
}
.shortcut {
  display: flex; flex-direction: column; align-items: center; gap: 30px;
  padding: 10px 24px 20px;
}
.shortcut + .shortcut { border-left: 1px solid var(--line); }
.shortcut img { width: 72%; max-width: 190px; aspect-ratio: 1; object-fit: contain; }

/* ---------- Content blocks ---------- */
section { scroll-margin-top: 24px; }
.intro { text-align: center; max-width: 800px; margin: 0 auto 110px; }
.intro p { color: var(--muted); }
.intro p strong { color: var(--text); }

h2 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.25;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #b9b6d6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.intro h2 { font-size: 1.6rem; }

.card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(15, 13, 30, 0.25);
  padding: 64px 56px;
  margin-bottom: 48px;
}
.card.flip .card-media { order: 2; }
.card-media { display: flex; justify-content: center; }
.card-media img { width: 78%; max-width: 260px; aspect-ratio: 1; object-fit: contain; }
.card-body p { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }

/* Sub-items under a card */
.subs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin: -8px 0 110px;
}
.sub { padding: 8px 28px; text-align: center; }
.sub + .sub { border-left: 1px solid var(--line); }
.sub h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.sub p { color: var(--muted); font-size: 0.85rem; line-height: 1.8; }
.subs.wide .sub { text-align: left; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; max-width: 720px; margin: 40px auto 90px; }
.cta p { color: var(--muted); margin-bottom: 34px; }

footer { text-align: center; padding: 0 24px 64px; }
.social { display: flex; justify-content: center; gap: 14px; margin-bottom: 22px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted);
  transition: color .2s, border-color .2s;
}
.social a:hover { color: var(--blue); border-color: var(--blue); }
.social svg { width: 18px; height: 18px; }
footer small { color: var(--muted); font-size: 0.75rem; opacity: 0.8; }

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

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .shortcuts { grid-template-columns: 1fr; gap: 36px; margin-bottom: 80px; }
  .shortcut + .shortcut { border-left: 0; }
  .shortcut img { width: 50%; }
  .card { grid-template-columns: 1fr; padding: 44px 28px; gap: 28px; text-align: center; }
  .card.flip .card-media { order: 0; }
  .card-media img { width: 55%; }
  .subs { grid-template-columns: 1fr; gap: 26px; margin-bottom: 80px; }
  .sub + .sub { border-left: 0; }
  .subs.wide .sub { text-align: center; }
}
