@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');

:root {
  --bg-dark: #08090D;
  --bg-section: #F5F6F8;
  --bg-white: #FFFFFF;
  --text-primary: #111319;
  --text-sec: #6B7280;
  --text-muted: #9CA3AF;
  --accent: #6366F1;
  --accent2: #818CF8;
  --accent-soft: rgba(99,102,241,0.07);
  --max-w: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard Variable', -apple-system, sans-serif;
  color: var(--text-primary); background: var(--bg-white);
  -webkit-font-smoothing: antialiased; letter-spacing: -0.02em;
  overflow-x: hidden;
}

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 48px; transition: all 0.5s var(--ease);
}
.nav.solid {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-logo { height: 32px; }
.nav-logo img { height: 100%; width: auto; display: block; }
.nav-logo.w { display: block; } .nav-logo.d { display: none; }
.nav.solid .nav-logo.w { display: none; } .nav.solid .nav-logo.d { display: block; }
.lang-toggle {
  display: flex; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); transition: all 0.5s;
}
.nav.solid .lang-toggle { border-color: #E5E7EB; }
.lang-btn {
  padding: 7px 15px; font-size: 11px; font-weight: 600; cursor: pointer;
  border: none; background: none; font-family: inherit;
  color: rgba(255,255,255,0.35); transition: all 0.3s; letter-spacing: 0;
}
.nav.solid .lang-btn { color: #9CA3AF; }
.lang-btn.active { color: white; background: rgba(255,255,255,0.1); }
.nav.solid .lang-btn.active { color: white; background: var(--accent); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--bg-dark); position: relative; overflow: hidden;
  padding: 120px 48px 80px;
}
/* Animated gradient orbs */
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
  pointer-events: none; animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb-1 {
  width: 600px; height: 600px; top: -10%; left: 20%;
  background: rgba(99,102,241,0.15);
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 400px; height: 400px; bottom: 10%; right: 15%;
  background: rgba(129,140,248,0.1);
  animation-delay: -4s;
}
.hero-orb-3 {
  width: 300px; height: 300px; top: 40%; left: 60%;
  background: rgba(167,139,250,0.06);
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}
.hero-watermark {
  position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  height: 90vh; opacity: 0.02; pointer-events: none;
}
.hero-watermark img { height: 100%; width: auto; }
.hero-content {
  position: relative; z-index: 2; text-align: center; max-width: 900px;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 76px);
  font-weight: 800; color: white;
  line-height: 1.25; letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero h1 .gr {
  background: linear-gradient(135deg, #818CF8 0%, #C4B5FD 50%, #A78BFA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: clamp(15px, 1.8vw, 19px);
  color: rgba(255,255,255,0.55); line-height: 1.8;
  max-width: 560px; margin: 0 auto 44px; word-break: keep-all;
}
.hero-stack {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.hero-chip {
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55); transition: all 0.4s var(--ease);
}
.hero-chip:hover { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: var(--accent2); }

/* Word stagger */
.hero h1 .w {
  display: inline-block; opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero.on h1 .w { opacity: 1; transform: translateY(0); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; z-index: 2;
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 11px; opacity: 0; animation: fadeIn 1s 1.8s forwards;
}
.scroll-hint::after {
  content: ''; position: absolute; top: 6px; left: 50%;
  width: 3px; height: 7px; background: rgba(255,255,255,0.4);
  border-radius: 3px; transform: translateX(-50%);
  animation: scrollWheel 2s 2s infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}
@keyframes fadeIn { to { opacity: 1; } }

/* STATEMENT */
.stmt {
  padding: clamp(120px, 14vw, 240px) 48px;
  background: var(--bg-white);
}
.stmt-inner { max-width: 820px; margin: 0 auto; }
.stmt p {
  font-size: clamp(22px, 3.2vw, 40px);
  font-weight: 600; line-height: 1.75;
  letter-spacing: -0.03em; word-break: keep-all;
}
.stmt .dim { color: #9CA3AF; }
.stmt .hl { color: var(--accent); font-weight: 700; }

/* SERVICES */
.svc-section {
  padding: clamp(100px, 12vw, 200px) 48px;
  background: var(--bg-section);
}
.svc-wrap { max-width: var(--max-w); margin: 0 auto; }
.svc-label {
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
.svc-heading {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800; line-height: 1.3; letter-spacing: -0.03em;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.svc-list { display: flex; flex-direction: column; gap: 16px; }
.svc-item {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
  padding: clamp(36px, 4vw, 56px);
  background: white; border-radius: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s var(--ease);
}
.svc-item:hover { box-shadow: 0 16px 64px rgba(0,0,0,0.04); transform: translateY(-2px); }
.svc-num { font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 14px; letter-spacing: 0.05em; }
.svc-item h3 {
  font-size: clamp(20px, 2.2vw, 28px); font-weight: 800;
  line-height: 1.3; letter-spacing: -0.03em; margin-bottom: 12px;
}
.svc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.svc-tag {
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 4px 10px; border-radius: 6px;
}
.svc-item p { font-size: 14px; color: var(--text-sec); line-height: 1.85; word-break: keep-all; }
.svc-item .detail { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; padding-top: 14px; border-top: 1px solid #F0F1F3; }
.svc-item .detail strong { color: var(--text-sec); }

/* Code visual */
.code-block {
  background: #0C0E14; border-radius: 16px; padding: 28px;
  font-family: var(--mono); font-size: 12.5px; line-height: 2;
  color: rgba(255,255,255,0.45); position: relative;
  border: 1px solid rgba(255,255,255,0.04);
  overflow: hidden;
}
.code-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 36px;
  background: rgba(255,255,255,0.02); border-bottom: 1px solid rgba(255,255,255,0.04);
}
.code-block .dots {
  position: absolute; top: 12px; left: 14px;
  display: flex; gap: 6px;
}
.code-block .dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.code-block .code-content { margin-top: 16px; overflow-x: auto; }
.code-block .kw { color: #C4B5FD; }
.code-block .fn { color: #818CF8; }
.code-block .str { color: #86EFAC; }
.code-block .cm { color: rgba(255,255,255,0.18); font-style: italic; }
.code-block .op { color: rgba(255,255,255,0.25); }
.code-block .res { color: #FCD34D; }
/* Cursor blink */
.code-block .cursor {
  display: inline-block; width: 7px; height: 14px;
  background: var(--accent); margin-left: 2px; vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* CONTACT */
.contact { padding: clamp(100px, 12vw, 200px) 48px; background: var(--bg-white); }
.contact-inner { max-width: 560px; margin: 0 auto; }
.contact-label {
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px; text-align: center;
}
.contact-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800; text-align: center;
  margin-bottom: 44px; letter-spacing: -0.03em;
}
.form-row { display: flex; gap: 12px; margin-bottom: 14px; }
.form-group { flex: 1; }
.f-input {
  width: 100%; padding: 18px 22px; border: 1.5px solid #E5E7EB;
  border-radius: 14px; font-size: 15px; background: var(--bg-section);
  font-family: inherit; outline: none; transition: all 0.3s var(--ease); color: var(--text-primary);
}
.f-input::placeholder { color: #C5C9D2; }
.f-input:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 4px var(--accent-soft); }
.f-textarea { min-height: 160px; resize: vertical; margin-bottom: 14px; }
.f-btn {
  width: 100%; padding: 18px; color: white; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  background: var(--accent); transition: all 0.3s; letter-spacing: -0.01em;
}
.f-btn:hover { background: #4F46E5; transform: translateY(-1px); box-shadow: 0 8px 32px rgba(99,102,241,0.2); }

/* FOOTER */
.ft {
  background: var(--bg-dark); padding: 64px 48px 48px;
}
.ft-legal {
  max-width: var(--max-w); margin: 0 auto;
  font-size: 14px; color: rgba(255,255,255,0.38); line-height: 2.4;
  text-align: center; word-break: keep-all;
}
.ft-legal .sep { color: rgba(255,255,255,0.12); margin: 0 10px; }
.ft-copy {
  max-width: var(--max-w); margin: 28px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 12px; color: rgba(255,255,255,0.15); text-align: center;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-inner { height: 56px; }
  .nav-logo { height: 26px; }
  .nav-logo img { height: 100%; width: auto; }
  .lang-btn { padding: 5px 11px; font-size: 10px; }
  .hero { padding: 100px 24px 64px; }
  .hero-orb-1 { width: 300px; height: 300px; }
  .hero-orb-2 { width: 200px; height: 200px; }
  .hero-orb-3 { display: none; }
  .hero-desc { margin-bottom: 32px; }
  .hero-desc br, .br-md { display: none; }
  .hero-stack { gap: 8px; }
  .hero-chip { padding: 7px 14px; font-size: 12px; }
  .stmt { padding: 80px 24px; }
  .svc-section { padding: 80px 20px; }
  .svc-item { grid-template-columns: 1fr; gap: 20px; padding: 28px 22px; }
  .code-block { font-size: 11px; padding: 22px; }
  .contact { padding: 80px 24px; }
  .form-row { flex-direction: column; }
  .ft { padding: 44px 24px 36px; }
  .ft-copy { text-align: center; }
}

/* TABLET */
@media (max-width: 1024px) and (min-width: 769px) {
  .svc-item { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 120px 36px 80px; }
  .stmt { padding: clamp(100px, 10vw, 160px) 36px; }
}

/* ANIM */
.rv {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.rv.vis { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.1s; }
.rv-d2 { transition-delay: 0.2s; }

/* Smooth parallax for watermark */
.hero-watermark { transition: transform 0.1s linear; }

/* Accessibility */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-hint { display: none; }
}

/* Form feedback */
.form-success {
  text-align: center; padding: 48px 24px;
  font-size: 18px; font-weight: 600; color: var(--accent);
  line-height: 1.8;
}
.form-error {
  background: #FEE2E2; color: #DC2626; padding: 14px 20px;
  border-radius: 12px; font-size: 14px; margin-bottom: 16px;
  animation: fadeIn 0.3s;
}
