/* ============================================================
   DEVOLVE — company site
   Theme: light blue
   ============================================================ */

:root {
  /* Brand palette (light blue) */
  --sky-50:  #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;

  --ink:      #0b1b2b;
  --ink-soft: #33465a;
  --muted:    #6b7f92;
  --line:     #e2edf5;

  --bg:       #ffffff;
  --bg-tint:  #f5fbff;
  --dark:     #0a1826;
  --dark-2:   #0f2436;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 4px 18px rgba(2, 132, 199, .08);
  --shadow-md: 0 18px 44px rgba(2, 132, 199, .14);
  --shadow-lg: 0 30px 70px rgba(2, 132, 199, .20);

  --ff-ko: "Pretendard", "Pretendard Variable", system-ui, sans-serif;
  --ff-display: "Space Grotesk", "Pretendard", system-ui, sans-serif;

  --nav-h: 72px;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--ff-ko);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: "Inter", var(--ff-ko); }

a { color: inherit; text-decoration: none; }
img, svg, iframe { display: block; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-600));
  z-index: 200; transition: width .1s linear;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  color: #fff; box-shadow: 0 10px 26px rgba(2, 132, 199, .32);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(2, 132, 199, .42); }
.btn--ghost {
  background: rgba(255, 255, 255, .7); color: var(--sky-700);
  border-color: var(--sky-200);
}
.btn--ghost:hover { transform: translateY(-3px); background: #fff; border-color: var(--sky-400); }
.btn--block { width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(2, 132, 199, .07); }
.nav__inner {
  width: min(100% - 40px, var(--maxw)); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 6px 12px rgba(2, 132, 199, .3)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--ff-display); font-size: 1.16rem; letter-spacing: .04em; color: var(--ink); }
.brand__text em { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem;
  color: var(--ink-soft); position: relative; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--sky-700); background: var(--sky-50); }
.nav__links a.is-active { color: var(--sky-700); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--sky-400), var(--sky-600)); border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--sky-50); border: 1px solid var(--line);
}
.lang-btn {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--ff-display); font-weight: 600; font-size: .82rem; letter-spacing: .03em;
  color: var(--muted); padding: 6px 13px; border-radius: 999px; transition: all .2s ease;
}
.lang-btn.is-active { background: #fff; color: var(--sky-700); box-shadow: var(--shadow-sm); }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
  background:
    radial-gradient(1100px 620px at 50% -10%, var(--sky-100), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, #e8f6ff, transparent 55%),
    linear-gradient(180deg, var(--sky-50), #ffffff 70%);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; width: 640px; height: 640px; border-radius: 50%; z-index: 0;
  top: -180px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, .28), transparent 60%);
  filter: blur(20px); pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 860px; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
  background: rgba(255, 255, 255, .8); border: 1px solid var(--sky-200);
  font-size: .84rem; font-weight: 500; color: var(--sky-700); box-shadow: var(--shadow-sm);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky-500); box-shadow: 0 0 0 0 rgba(14, 165, 233, .5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, .5); } 70% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); } }

.hero__title {
  font-family: var(--ff-display); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.03; letter-spacing: -.02em;
  color: var(--ink);
}
.hero__title .line { display: block; }
.hero__title .grad {
  background: linear-gradient(120deg, var(--sky-400), var(--sky-600) 55%, var(--sky-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin: 26px auto 0; max-width: 620px;
  font-size: clamp(1rem, 2vw, 1.18rem); color: var(--ink-soft);
}
.hero__cta { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__stats {
  margin-top: 56px; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap;
}
.hstat { display: flex; flex-direction: column; }
.hstat strong { font-family: var(--ff-display); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--sky-700); line-height: 1; }
.hstat span { margin-top: 8px; font-size: .9rem; color: var(--muted); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid var(--sky-400); border-radius: 14px; position: relative; }
.mouse span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; border-radius: 2px; background: var(--sky-500); animation: scrollDot 1.6s infinite; }
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  display: inline-block; font-family: var(--ff-display); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; color: var(--sky-600);
  padding: 5px 14px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--sky-100);
}
.eyebrow--light { color: var(--sky-200); background: rgba(56, 189, 248, .12); border-color: rgba(125, 211, 252, .25); }
.section__title {
  font-family: var(--ff-display); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); line-height: 1.12; margin-top: 18px; color: var(--ink);
}
.section__desc { margin-top: 18px; font-size: 1.08rem; color: var(--ink-soft); }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.about__lead p { font-size: 1.12rem; color: var(--ink-soft); }
.about__lead p + p { margin-top: 20px; }
.about__points { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.about__points li {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--bg-tint); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.about__points li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
.about__icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.4rem;
  background: #fff; border-radius: 13px; border: 1px solid var(--sky-100); box-shadow: var(--shadow-sm);
}
.about__points h3 { font-size: 1.08rem; margin-bottom: 4px; }
.about__points p { font-size: .96rem; color: var(--muted); }

/* ---------- Business cards ---------- */
.business { background: linear-gradient(180deg, var(--bg-tint), #fff); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px 26px 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
  transform-style: preserve-3d; overflow: hidden; min-height: 230px;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 189, 248, .14), transparent 45%);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--sky-200); }
.card:hover::before { opacity: 1; }
.card__num { font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem; color: var(--sky-300); letter-spacing: .06em; }
.card h3 { font-size: 1.22rem; margin: 14px 0 10px; line-height: 1.25; }
.card p { font-size: .96rem; color: var(--muted); }
.card__tag {
  display: inline-block; margin-top: 14px; font-size: .76rem; font-weight: 600; color: var(--sky-700);
  background: var(--sky-50); border: 1px solid var(--sky-100); padding: 4px 11px; border-radius: 999px;
}

/* ---------- Growth (dark) ---------- */
.growth { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; overflow: hidden; }
.growth::before {
  content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 60%);
  top: -160px; right: -120px; filter: blur(30px);
}
.growth .section__title { color: #fff; }
.growth .section__desc { color: #b9d4e6; }
.growth__wrap {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr .9fr; gap: 56px; align-items: center;
}

.chart {
  position: relative; height: 340px; padding: 20px 10px 0;
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(125, 211, 252, .16);
}
.chart__grid { position: absolute; inset: 20px 20px 54px; display: flex; flex-direction: column; justify-content: space-between; }
.chart__grid span { height: 1px; background: rgba(255, 255, 255, .07); }
.chart__bars { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: space-around; gap: 30px; padding-bottom: 34px; }
.bar { position: relative; width: 100%; max-width: 110px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bar__fill {
  width: 100%; height: 0; border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, var(--sky-300), var(--sky-500) 60%, var(--sky-600));
  box-shadow: 0 0 30px rgba(56, 189, 248, .45), inset 0 2px 0 rgba(255,255,255,.3);
  transition: height 1.3s cubic-bezier(.2,.8,.2,1);
}
.bar__value { font-family: var(--ff-display); font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: 10px; }
.bar__label { position: absolute; bottom: 0; font-size: .92rem; color: #9fc3da; font-weight: 500; }

.growth__stats { display: flex; flex-direction: column; gap: 22px; }
.gstat strong { font-family: var(--ff-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--sky-300); line-height: 1; display: block; }
.gstat span { color: #9fc3da; font-size: .96rem; }
.growth__note { margin-top: 6px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); color: #cfe6f4; font-size: .96rem; }

/* ---------- Location ---------- */
.location { background: #fff; }
.location__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: stretch; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.location__info {
  display: flex; flex-direction: column; gap: 8px; padding: 34px;
  background: linear-gradient(160deg, var(--sky-50), #fff); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.info-row { display: flex; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row__label { flex: none; width: 108px; font-weight: 600; color: var(--sky-700); font-size: .92rem; }
.info-row__value p { color: var(--ink); font-size: 1rem; }
.location__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.location__actions .btn { padding: 11px 18px; font-size: .9rem; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, #fff, var(--sky-50)); }
.contact__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.contact__form {
  display: flex; flex-direction: column; gap: 18px; padding: 36px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 13px;
  background: var(--bg-tint); transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--sky-400); background: #fff; box-shadow: 0 0 0 4px rgba(56, 189, 248, .16);
}
.form-note { font-size: .92rem; min-height: 1.2em; }
.form-note.ok { color: var(--sky-700); font-weight: 600; }
.form-note.err { color: #d64545; font-weight: 600; }

.contact__info { padding: 36px; background: linear-gradient(160deg, var(--sky-600), var(--sky-700)); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact__info h3 { font-family: var(--ff-display); font-size: 1.3rem; margin-bottom: 22px; }
.contact__info ul { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.contact__info li { display: flex; gap: 14px; align-items: flex-start; }
.ci__icon { flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.15rem; background: rgba(255,255,255,.14); border-radius: 11px; }
.ci__label { display: block; font-size: .8rem; color: var(--sky-200); margin-bottom: 2px; }
.contact__info a, .contact__info p { color: #fff; font-size: .98rem; word-break: break-all; }
.contact__info a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #cde0ee; padding-top: 60px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__brand .brand__text strong { color: #fff; }
.footer__brand .brand__text em { color: #7fa8c2; }
.footer__brand p { margin-top: 12px; color: #8fb0c6; font-size: .95rem; }
.footer__meta { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: #a9c6d8; }
.footer__meta span:first-child { color: #6f93aa; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; text-align: center; font-size: .86rem; color: #6f93aa; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600)); color: #fff; font-size: 1.2rem;
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none;
  transition: opacity .3s, transform .3s;
}
.to-top.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .about__grid, .growth__wrap, .location__grid, .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .growth__stats { flex-direction: row; flex-wrap: wrap; gap: 26px; }
  .gstat { flex: 1 1 140px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; padding: 16px 20px 24px; background: rgba(255,255,255,.97);
    backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: 13px 14px; border-radius: 12px; }
  .nav__links a.is-active::after { display: none; }
  .nav__burger { display: flex; }
  .hero__stats { gap: 28px; }
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
