@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --ink: #0f1729;
  --text: #333d4b;
  --muted: #6b7684;
  --line: #e7eaf0;
  --bg: #f7f8fb;
  --card: #ffffff;
  --blue: #4f7cff;
  --blue-deep: #2f5bea;
  --green: #3ddc97;
  --orange: #ffa62b;
  --pink: #ff5a7a;
  --violet: #8b6cff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 41, 0.04), 0 8px 28px rgba(15, 23, 41, 0.06);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin: 0 auto;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 251, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.mark {
  display: grid;
  grid-template-columns: repeat(2, 11px);
  gap: 3px;
}

.mark i {
  width: 11px;
  height: 11px;
  border-radius: 3.5px;
  background: var(--blue);
}

.mark i:nth-child(2) {
  background: var(--green);
}

.mark i:nth-child(3) {
  background: var(--orange);
}

.mark i:nth-child(4) {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--ink);
  opacity: 0.25;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 10px;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(15, 23, 41, 0.05);
}

.nav-links .lang {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--card);
}

@media (max-width: 640px) {
  .nav-links a:not(.lang) {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-deep);
  background: #eaf0ff;
  padding: 6px 12px;
  border-radius: 999px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.25);
}

h1 {
  margin: 20px 0 18px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 800;
}

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 0%, var(--violet) 55%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 32px;
  max-width: 34em;
  font-size: clamp(17px, 2vw, 19px);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 20px rgba(15, 23, 41, 0.18);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 41, 0.22);
}

.btn.ghost {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  background: #fff;
  border-color: #d5dae3;
}

/* Hero visual: a block board where the last piece is about to complete the line. */
.board {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 1;
  padding: 18px;
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow), 0 30px 60px -20px rgba(79, 124, 255, 0.25);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  transform: rotate(-4deg);
}

.board span {
  border-radius: 10px;
  background: #eef1f6;
}

.board span.b {
  background: var(--blue);
}
.board span.g {
  background: var(--green);
}
.board span.o {
  background: var(--orange);
}
.board span.p {
  background: var(--pink);
}
.board span.v {
  background: var(--violet);
}

.board span:not(:empty),
.board span.b,
.board span.g,
.board span.o,
.board span.p,
.board span.v {
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), inset 0 5px 0 rgba(255, 255, 255, 0.25);
}

.board .drop {
  position: absolute;
  /* Two cells wide, one cell tall, landing in the gap at the right end of row 5. */
  width: calc((100% - 76px) / 6 * 2 + 8px);
  height: calc((100% - 76px) / 6);
  right: 18px;
  bottom: calc(18px + (100% - 76px) / 6 + 8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  animation: drop 3.2s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}

.board .drop i {
  border-radius: 10px;
  background: var(--violet);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), inset 0 5px 0 rgba(255, 255, 255, 0.25), 0 12px 20px -8px rgba(139, 108, 255, 0.6);
}

@keyframes drop {
  0% {
    transform: translate(40px, -140px) rotate(8deg);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  55%,
  100% {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .board .drop {
    animation: none;
  }
}

@media (max-width: 860px) {
  .hero {
    padding: 40px 0 72px;
  }
  .hero .wrap {
    grid-template-columns: 1fr;
  }
  .board {
    width: min(320px, 86%);
    margin-top: 12px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 88px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.kicker {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

h2 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Products */

.products {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.app {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
}

.app:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.app .icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 41, 0.12);
}

.app .icon svg,
.app .icon img {
  width: 100%;
  height: 100%;
}

.app h3 {
  margin: 18px 0 2px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.app .tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.app p {
  margin: 10px 0 18px;
  font-size: 15.5px;
  color: var(--text);
  flex: 1;
}

.app .status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
  background: #eef1f6;
  color: var(--muted);
}

.chip.live {
  background: #e3f9ef;
  color: #0f8a55;
}

a.chip.live:hover {
  background: #cdf3e1;
}

.chip.soon::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Services */

.services .grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.service {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.service .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: #eaf0ff;
}

.service h3 {
  margin: 16px 0 6px;
  color: var(--ink);
  font-size: 18px;
}

.service p {
  margin: 0;
  font-size: 15.5px;
  color: var(--muted);
}

/* Principles */

.principles {
  background: var(--ink);
  color: #c9d1de;
}

.principles h2,
.principles h3 {
  color: #fff;
}

.principles .kicker {
  color: var(--green);
}

.principles .section-head p {
  color: #a3adbd;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.steps div {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.steps div::before {
  counter-increment: step;
  content: '0' counter(step);
  font-size: 14px;
  font-weight: 800;
  color: var(--green);
}

.steps h3 {
  margin: 8px 0 8px;
  font-size: 19px;
}

.steps p {
  margin: 0;
  font-size: 15.5px;
}

/* Contact */

.contact-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, #eaf0ff 0%, #f4efff 55%, #ffeef2 100%);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card p {
  margin: 0;
  color: var(--text);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-actions .btn {
  justify-content: center;
}

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }
}

/* Footer */

footer {
  padding: 40px 0 56px;
  font-size: 14px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}
