/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1F3B73;
  --violet: #7B72E9;
  --teal: #1FABA0;
  --green: #6CC46E;
  --tint: #E7F1FF;
  --grad: linear-gradient(135deg, var(--blue), var(--teal));
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e6e9f0;
  --bg-soft: #f7f8fc;
  --tech-bg: #eef2ff;
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 26px;
}
.eyebrow--light { color: var(--teal); }
.section-desc--light { color: rgba(255,255,255,.72); }
.is-hidden { display: none; }

h1, h2, h3 { color: var(--ink); font-weight: 800; letter-spacing: -0.02em; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gradient { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(31,59,115,.5); }
.btn--gradient:hover { box-shadow: 0 14px 28px -8px rgba(31,59,115,.6); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--pill { border: 1px solid var(--line); color: var(--ink); background: #fff; padding: 12px 22px; font-size: 14px; }
.btn--pill:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 10px 20px; font-size: 14px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.logo em { font-style: normal; font-weight: 400; color: var(--muted); }
.logo img { filter: drop-shadow(0 2px 4px rgba(31,59,115,.28)); }

.nav { display: flex; gap: 34px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-soft); transition: color .15s; }
.nav a:hover { color: var(--blue); }

.header__actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ===== Hero ===== */
.hero {
  padding: 76px 0 40px;
  overflow: hidden;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center bottom;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--teal);
  margin-bottom: 14px;
}
.hero__text h1 {
  font-size: 44px;
  line-height: 1.25;
  margin-bottom: 20px;
}
.highlight { color: var(--blue); position: relative; }
.hero__desc { color: var(--muted); font-size: 16px; line-height: 1.75; margin-bottom: 30px; }
.hero__buttons { display: flex; gap: 14px; margin-bottom: 34px; }
.hero__dots { display: flex; gap: 8px; }
.dot {
  width: 22px; height: 6px; border-radius: 999px;
  background: var(--line); border: none; cursor: pointer; padding: 0;
  transition: background .2s, width .2s;
}
.dot.is-active { background: var(--grad); width: 30px; }

.hero__visual {
  position: relative;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__mockup {
  max-width: 420px;
  width: 100%;
  height: auto;
  animation: float 5s ease-in-out infinite;
}
.hero__badge {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 24px -10px rgba(15,23,42,.25);
  animation: pulse-soft 3.4s ease-in-out infinite;
}
.hero__badge--chart { top: 30%; left: 4%; animation-delay: .3s; }
.hero__badge--star { top: 58%; right: 8%; animation-delay: 1s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: .85; }
}

/* ===== Values ===== */
.values { padding: 50px 0 40px; background: var(--bg-soft); }
.values__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.value:hover { transform: translateY(-6px); box-shadow: 0 20px 34px -18px rgba(15,23,42,.2); }
.value__icon { width: 56px; height: 56px; margin-bottom: 18px; }
.value__icon img { width: 100%; height: 100%; border-radius: 15px; }
.value h3 { font-size: 17px; margin-bottom: 10px; }
.value p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ===== Apps ===== */
.apps { padding: 0 0 100px; background: var(--bg-soft); }
.apps__head {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 50px;
  align-items: center;
  padding-top: 20px;
}
.apps__head h2 { font-size: 30px; line-height: 1.35; margin-bottom: 14px; }

.apps__carousel-wrap { position: relative; min-width: 0; }
.apps__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 20px;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 20px 34px -18px rgba(15,23,42,.2); }
.app-card__icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
}
.app-card__icon img { width: 100%; height: 100%; border-radius: 15px; }
.app-card h3 { font-size: 17px; margin-bottom: 10px; }
.app-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.apps__arrows { display: none; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.arrow-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  font-size: 18px; cursor: pointer; color: var(--ink-soft);
}
.arrow-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ===== AI & Big Data ===== */
.ai-data { padding: 90px 0; background: linear-gradient(150deg,#0d1830,#132a52); color: #fff; overflow: hidden; }
.ai-data__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
.ai-data__text h2 { color: #fff; font-size: 30px; line-height: 1.35; margin-bottom: 6px; }

.ai-data__flow { display: flex; align-items: flex-start; gap: 10px; margin-top: 36px; }
.flow-step { text-align: center; width: 84px; }
.flow-step__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.flow-step p { font-size: 12px; color: rgba(255,255,255,.75); font-weight: 600; line-height: 1.4; }
.flow-arrow { color: rgba(255,255,255,.3); font-size: 18px; margin-top: 14px; }

.ai-data__visual { position: relative; height: 340px; }
.network-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.network-node {
  position: absolute;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
}
.network-node span { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: rgba(255,255,255,.85); }
.network-node svg { background: #fff; border-radius: 50%; padding: 6px; box-sizing: content-box; }
.network-node--center {
  left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border: none; box-shadow: 0 0 0 8px rgba(31,59,115,.18);
}
.network-node--center span { font-size: 20px; font-weight: 800; color: #fff; }
.network-node--data { left: 8%; top: 10%; }
.network-node--analytics { right: 4%; top: 4%; }
.network-node--insight { left: 4%; bottom: 4%; }
.network-node--user { right: 8%; bottom: 10%; }

/* ===== Technology ===== */
.technology { padding: 90px 0; background: var(--tech-bg); }
.tech__head { max-width: 620px; margin-bottom: 50px; }
.tech__head h2 { font-size: 30px; line-height: 1.35; margin-bottom: 6px; }

.tech__banners { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.tech-banner {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 16px 30px -18px rgba(15,23,42,.3);
}
.tech-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.tech-banner:hover img { transform: scale(1.04); }

/* ===== About ===== */
.about { padding: 90px 0; background: #fff; }
.about__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.about__text h2 { font-size: 30px; line-height: 1.35; margin-bottom: 6px; }
.about__history-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; }
.timeline { border-left: 2px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; gap: 22px; margin-left: 4px; }
.timeline li { position: relative; }
.timeline li::before {
  content: '';
  position: absolute; left: -29px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad);
}
.timeline__year { display: block; font-weight: 800; color: var(--blue); font-size: 15px; margin-bottom: 4px; }
.timeline__desc { font-size: 14px; color: var(--ink-soft); }

/* ===== News ===== */
.news { padding: 90px 0; }
.news__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.news__head .eyebrow { margin: 0; }
.more-link { font-size: 14px; font-weight: 700; color: var(--ink-soft); display: inline-flex; gap: 6px; }
.more-link:hover { color: var(--blue); }

.news__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news-card__thumb {
  height: 150px;
  border-radius: 16px;
  margin-bottom: 16px;
  background-size: cover;
}
.thumb--1 { background: linear-gradient(135deg,#dbeafe,#93c5fd); }
.thumb--2 { background: linear-gradient(135deg,#fce7f3,#f9a8d4); }
.thumb--3 { background: linear-gradient(135deg,#dcfce7,#86efac); }
.news-card h3 { font-size: 15px; line-height: 1.5; margin-bottom: 8px; }
.news-card__date { font-size: 12.5px; color: var(--muted); }

.news-card--dark {
  background: linear-gradient(150deg,#101323,#1c2140);
  border-radius: 16px;
  padding: 24px 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 234px;
}
.news-card--dark .news-card__brand { font-weight: 800; font-size: 13px; color: #93c5fd; margin-bottom: auto; }
.news-card--dark .news-card__brand em { font-weight: 400; color: #cbd5e1; }
.news-card--dark h3 { color: #fff; margin-top: 14px; font-size: 17px; }
.news-card--dark .news-card__sub { color: #b6bcd6; font-size: 13px; margin: 6px 0 14px; }
.news-card--dark .news-card__date { color: #8a90ad; }

/* ===== Legal pages ===== */
.legal { padding: 60px 0 100px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: 32px; margin-bottom: 10px; }
.legal__updated { color: var(--muted); font-size: 13.5px; margin-bottom: 40px; }
.legal h2 { font-size: 18px; margin: 36px 0 12px; }
.legal p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin-bottom: 8px; }
.legal ul { margin: 0 0 8px; padding-left: 20px; }
.legal li { list-style: disc; color: var(--ink-soft); font-size: 14.5px; line-height: 1.8; margin-bottom: 4px; }
.legal__note {
  margin-top: 40px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.legal__back { margin-top: 32px; }

/* ===== Footer ===== */
.footer { background: #f7f8fc; border-top: 1px solid var(--line); padding-top: 64px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.logo--footer { margin-bottom: 10px; }
.footer__tagline {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--blue);
  margin-bottom: 14px;
}
.footer__brand p { font-size: 13.5px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }

.footer__col h4 { font-size: 14px; margin-bottom: 18px; }
.footer__col a, .footer__col p {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer__col a:hover { color: var(--blue); }
.footer__col--contact p { color: var(--ink-soft); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a:hover { color: var(--blue); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mockup, .hero__badge { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .apps__head { grid-template-columns: 1fr; }
  .apps__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: auto; order: -1; margin-bottom: 8px; }
  .hero__mockup { max-width: 360px; }
  .hero__text h1 { font-size: 34px; }
  .values__card { grid-template-columns: repeat(2, 1fr); }
  .ai-data__inner { grid-template-columns: 1fr; }
  .ai-data__visual { height: 280px; order: -1; }
  .tech__banners { grid-template-columns: 1fr; }
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero { padding: 44px 0 20px; }
  .hero__buttons { flex-wrap: wrap; }
  .hero__visual { height: auto; }
  .hero__mockup { max-width: 280px; }
  .hero__badge { display: none; }
  .values__card { grid-template-columns: 1fr; padding: 30px 22px; }
  .ai-data { padding: 60px 0; }
  .ai-data__visual { display: none; }
  .ai-data__flow { flex-wrap: wrap; gap: 18px 8px; }
  .flow-arrow { display: none; }
  .flow-step { width: 40%; }
  .apps__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .apps__grid::-webkit-scrollbar { display: none; }
  .app-card { min-width: 78%; scroll-snap-align: start; }
  .apps__arrows { display: flex; }
  .news__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* Mobile nav open state */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 24px;
  gap: 18px;
}
