/* ================================================================
   coForward Virtual Keyboard — Promo Page Styles
   ================================================================ */

:root {
  --navy:        #0d1b2a;
  --navy-mid:    #1a2f47;
  --navy-light:  #243c58;
  --deep-blue:   #0f3460;
  --accent:      #4a90d9;
  --accent-glow: #5ba3ef;
  --accent-dark: #2e6fad;
  --teal:        #00c9a7;
  --white:       #ffffff;
  --off-white:   #f8faff;
  --text:        #1e2d3d;
  --text-muted:  #6b7a8d;
  --border:      #dde3ec;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── Utility ───────────────────────────────────────────────────── */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.badge {
  display: inline-block;
  background: rgba(74,144,217,.15);
  color: var(--accent-glow);
  border: 1px solid rgba(74,144,217,.3);
  border-radius: 40px;
  padding: 4px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Buttons ───────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-glow));
  color: #fff;
  box-shadow: 0 6px 24px rgba(74,144,217,.4);
}
.btn-primary:hover { box-shadow: 0 10px 32px rgba(74,144,217,.6); }

.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* ── Site Header & Nav ─────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
}

.site-header nav {
  height: 62px;
  background: rgba(13,27,42,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.site-header nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #fff; font-size: 12px;
}

.nav-logo-text { color: #fff; font-size: 17px; font-weight: 700; }
.nav-logo-text em { color: var(--accent-glow); font-style: normal; }

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

.nav-links .cta {
  background: var(--accent);
  color: #fff !important;
  padding: 7px 18px;
  border-radius: 7px;
  font-weight: 600;
}
.nav-links .cta:hover { background: var(--accent-glow); }

/* ── Section commons ───────────────────────────────────────────── */

section { padding: 90px 0; }

.section-badge { text-align: center; margin-bottom: 12px; }

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.25;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 52px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero ──────────────────────────────────────────────────────── */

.hero {
  background: linear-gradient(155deg, var(--navy) 0%, var(--deep-blue) 55%, #1a3a6e 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 28px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 30% 40%, rgba(74,144,217,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(0,201,167,.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-dots { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(74,144,217,.25);
  animation: float 6s ease-in-out infinite;
}
.dot:nth-child(1) { width:  8px; height:  8px; top: 15%; left: 10%; animation-delay: 0s;   }
.dot:nth-child(2) { width: 12px; height: 12px; top: 25%; left: 85%; animation-delay: 1s;   }
.dot:nth-child(3) { width:  6px; height:  6px; top: 70%; left: 20%; animation-delay: 2s;   }
.dot:nth-child(4) { width: 10px; height: 10px; top: 60%; left: 75%; animation-delay: 1.5s; }
.dot:nth-child(5) { width:  7px; height:  7px; top: 80%; left: 50%; animation-delay: 3s;   }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }

.hero h1 {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.hero h1 .gradient {
  background: linear-gradient(90deg, var(--accent-glow), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub  { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 8px; }
.hero-note { font-size: 13.5px; color: rgba(255,255,255,.45); margin-bottom: 44px; }

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num   { font-size: 30px; font-weight: 900; color: var(--accent-glow); display: block; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 2px; display: block; }

/* ── Features ──────────────────────────────────────────────────── */

.features { background: var(--off-white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  list-style: none;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(74,144,217,.13);
  border-color: rgba(74,144,217,.3);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon { font-size: 34px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.feature-card .en { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.feature-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.feature-card code { font-family: 'Fira Code', monospace; font-size: 12px; background: rgba(74,144,217,.1); color: var(--accent-dark); border-radius: 3px; padding: 1px 5px; }

/* ── Security ──────────────────────────────────────────────────── */

.security { background: var(--white); }

.security-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto 52px;
}

.flow-node {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  max-width: 190px;
}
.flow-node .node-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.flow-node h4 { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.flow-node p  { font-size: 11.5px; color: var(--text-muted); }

.flow-arrow { font-size: 22px; color: var(--accent); padding: 0 8px; flex-shrink: 0; }

.security-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
}

.security-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--off-white);
  border-radius: 12px;
  padding: 18px;
  border-left: 3px solid var(--accent);
}
.security-note .note-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.security-note h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.security-note p  { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.security-note code { font-family: 'Fira Code', monospace; font-size: 12px; background: rgba(74,144,217,.1); color: var(--accent-dark); border-radius: 3px; padding: 1px 5px; }

/* ── How it works ──────────────────────────────────────────────── */

.how { background: var(--off-white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  list-style: none;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  z-index: 0;
}

.step { text-align: center; padding: 0 24px; position: relative; z-index: 1; }

.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  font-size: 22px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(74,144,217,.35);
}

.step h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.step .en { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.step p   { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ── Code section ──────────────────────────────────────────────── */

.code-section { background: var(--navy); padding: 90px 0; }
.code-section .section-title { color: #fff; }
.code-section .section-sub   { color: rgba(255,255,255,.5); }

.code-window {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}

.code-bar {
  background: var(--navy-mid);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-dots { display: flex; gap: 6px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #ff5f57; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #28c840; }

.code-filename { font-size: 13px; color: rgba(255,255,255,.45); font-family: 'Fira Code', monospace; }

.code-body {
  background: #0d1117;
  padding: 28px 32px;
  font-family: 'Fira Code', monospace;
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  color: #e6edf3;
}
.code-body .cm { color: #8b949e; }
.code-body .kw { color: #ff7b72; }
.code-body .fn { color: #d2a8ff; }
.code-body .st { color: #a5d6ff; }
.code-body .nm { color: #f8c57d; }
.code-body .tg { color: #7ee787; }
.code-body .at { color: #79c0ff; }

/* ── Integration ───────────────────────────────────────────────── */

.integration { background: var(--white); }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.integration-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.integration-card-head {
  background: var(--off-white);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.ic-icon { font-size: 24px; flex-shrink: 0; }
.ic-head-text h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.ic-head-text p  { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.integration-card-body {
  background: #0d1117;
  padding: 20px 24px;
  font-family: 'Fira Code', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  color: #e6edf3;
  overflow-x: auto;
}
.integration-card-body .cm { color: #8b949e; }
.integration-card-body .kw { color: #ff7b72; }
.integration-card-body .fn { color: #d2a8ff; }
.integration-card-body .st { color: #a5d6ff; }
.integration-card-body .tg { color: #7ee787; }
.integration-card-body .at { color: #79c0ff; }
.integration-card-body .an { color: #ffa657; }

/* ── CTA ───────────────────────────────────────────────────────── */

.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
  padding: 100px 0;
  text-align: center;
}
.cta-section h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; color: #fff; margin-bottom: 14px; }
.cta-section p  { font-size: 16px; color: rgba(255,255,255,.65); margin-bottom: 40px; }
.cta-btns       { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  padding: 48px 0 28px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); max-width: 280px; line-height: 1.6; margin-top: 10px; }

.footer-links h4 {
  font-size: 12px; font-weight: 700;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a  { font-size: 13px; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: rgba(255,255,255,.8); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12.5px; color: rgba(255,255,255,.3); }

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .hero-stats { gap: 28px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .security-flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); }
  .integration-grid { grid-template-columns: 1fr; }
}
