/* ===========================================================
   N-Geni Landing — style.css
   Mobile-First · Premium SaaS · Brand Green
   =========================================================== */

/* -----------------------------------------------------------
   0. Reset & Tokens
----------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

:root {
  /* Brand — 공식 N-Geni 컬러 팔레트 */
  --brand:        #3D9C76;   /* 메인 그린 */
  --brand-deep:   #0E5C36;   /* 짙은 그린 (헤드라인/푸터) */
  --brand-bright: #3BA27A;   /* 워드마크 그린 */
  --brand-mid:    #1D7249;   /* 중간 그린 */
  --brand-mint:   #86C9AB;   /* 밝은 민트 (보조) */
  --brand-soft:   #E8F4EE;   /* 매우 옅은 그린 (배경) */
  --accent:       #E61F19;   /* 적색 닷 (포인트) */

  /* Surfaces */
  --bg:           #FFFFFF;
  --bg-soft:      #FAF7F2;
  --bg-cream:     #F7F2E9;
  --card:         #FFFFFF;
  --border:       #E5E7E3;
  --border-soft:  #EFEEEA;

  /* Text */
  --ink:          #1A1F1C;
  --ink-2:        #2C332E;
  --muted:        #6B7570;
  --muted-2:      #8B928C;

  /* Effects */
  --radius-xs:    8px;
  --radius-sm:    12px;
  --radius:       18px;
  --radius-lg:    24px;
  --shadow-sm:    0 1px 2px rgba(15, 30, 22, 0.04), 0 2px 6px rgba(15, 30, 22, 0.04);
  --shadow:       0 4px 10px rgba(15, 30, 22, 0.06), 0 12px 28px rgba(15, 30, 22, 0.06);
  --shadow-lg:    0 8px 22px rgba(15, 30, 22, 0.08), 0 30px 60px rgba(15, 30, 22, 0.10);

  /* Typography */
  --font-sans:    'Pretendard Variable','Pretendard','Apple SD Gothic Neo','Noto Sans KR','Malgun Gothic',system-ui,-apple-system,sans-serif;
  --font-mono:    'JetBrains Mono','SF Mono',ui-monospace,'Consolas',monospace;

  /* Layout */
  --container:    1180px;
  --container-narrow: 820px;
  --header-h:     64px;

  /* Motion */
  --ease:         cubic-bezier(.22,.61,.36,1);
}

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  font-feature-settings: 'ss01','tnum';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--brand-soft); color: var(--brand-deep); }

/* -----------------------------------------------------------
   1. Layout primitives
----------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: var(--container-narrow); }

.section {
  padding: 72px 0;
  position: relative;
}
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-head {
  text-align: center;
  margin-bottom: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) { .section-head { margin-bottom: 72px; } }

.section-head .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 16px;
}
.section-head h2 {
  font-size: clamp(26px, 5.4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--ink);
}
.section-head h2 em {
  font-style: normal;
  color: var(--brand-deep);
}
.section-head .lead {
  font-size: clamp(15px, 2.2vw, 17px);
  color: var(--muted);
  margin: 0;
}

.text-grad {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Grid */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) {
  .grid { gap: 20px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid { gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
@media (min-width: 768px) { .card { padding: 28px; } }
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--brand-mint);
}

/* -----------------------------------------------------------
   2. Buttons
----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn-sm { padding: 9px 14px; font-size: 13.5px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 143, 110, 0.32);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(47, 143, 110, 0.42);
  color: #fff;
}

.btn-ghost {
  background: rgba(255,255,255,.7);
  color: var(--brand-deep);
  border-color: var(--brand-mint);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--brand-soft); }

/* -----------------------------------------------------------
   3. Header
----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled {
  border-color: var(--border-soft);
  box-shadow: 0 2px 16px rgba(15,30,22,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  height: 20px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .brand { gap: 10px; }
  .brand-mark { height: 34px; }
  .brand-text { height: 22px; }
}

.nav-desktop {
  display: none;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin-left: auto;
  margin-right: 16px;
}
.nav-desktop a {
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s var(--ease);
}
.nav-desktop a:hover { color: var(--brand-deep); }
.nav-desktop a:hover::after { transform: scaleX(1); }

@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.header-cta { display: none; }
@media (min-width: 1024px) { .header-cta { display: inline-flex; } }

.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 1024px) { .hamburger { display: none; } }

.nav-mobile {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  display: grid;
  gap: 4px;
  padding: 16px 20px 22px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
  box-shadow: 0 12px 24px rgba(15,30,22,.06);
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  padding: 14px 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 10px;
}
.nav-mobile a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav-mobile .btn { margin-top: 8px; padding: 14px 20px; }

/* -----------------------------------------------------------
   4. Hero
----------------------------------------------------------- */
.hero {
  position: relative;
  padding: 80px 0 90px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #FAF7F2 0%, #FFFFFF 100%);
}
@media (min-width: 768px) { .hero { padding: 120px 0 130px; } }

.hero-bg {
  position: absolute;
  inset: -10% -10% 0 -10%;
  z-index: -1;
  background: url('../assets/images/hero-pattern.svg') center / cover no-repeat;
  opacity: .9;
  animation: floatBg 22s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,244,238,.85) 0%, rgba(250,247,242,0) 60%),
              radial-gradient(circle at 80% 90%, rgba(168,213,186,.35) 0%, rgba(255,255,255,0) 50%);
}
@keyframes floatBg {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 1%, 0) scale(1.03); }
}

.hero-inner { position: relative; text-align: center; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--brand-mint);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.hero-tag .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(230,57,70,.18);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,.4); }
  50%      { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}

.hero-title {
  font-size: clamp(32px, 8vw, 64px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
}
.hero-sub {
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
  line-height: 1.7;
}
.hero-sub strong { color: var(--brand-deep); font-weight: 700; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px;
  background: rgba(255,255,255,.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.hero-stat { text-align: center; }
.stat-num {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 800;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat-num .stat-x { color: var(--accent); margin: 0 1px; }
.stat-num .stat-w { font-size: .55em; color: var(--muted); margin-left: 2px; }
.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: -.01em;
}
@media (min-width: 640px) {
  .stat-label { font-size: 13px; }
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 2px solid var(--brand-mint);
  border-radius: 14px;
  display: none;
}
.hero-scroll span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 6px;
  background: var(--brand);
  border-radius: 4px;
  transform: translateX(-50%);
  animation: scrollHint 1.6s ease-in-out infinite;
}
@keyframes scrollHint {
  0% { opacity: 0; transform: translate(-50%, 0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 12px); }
}
@media (min-width: 768px) { .hero-scroll { display: block; } }

/* -----------------------------------------------------------
   5. Pain Points
----------------------------------------------------------- */
.pain { background: var(--bg); }

.pain-card { text-align: left; }
.icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-deep);
  background: var(--brand-soft);
}
.icon-wrap svg { width: 26px; height: 26px; }
.icon-wrap.red    { color: #B91C1C; background: #FEECEC; }
.icon-wrap.orange { color: #B45309; background: #FEF3DC; }
.icon-wrap.blue   { color: #1D4ED8; background: #E2EBFD; }
.icon-wrap.brand  { color: #fff; background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep)); }

.pain-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}
.pain-card p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* -----------------------------------------------------------
   6. Product Intro
----------------------------------------------------------- */
.product { background: var(--bg-soft); }
.product .section-head h2 em {
  display: inline-block;
  color: var(--brand-deep);
  font-style: normal;
}
.quote-banner {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 26px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
}
.quote-banner svg { flex-shrink: 0; opacity: .55; }
.quote-banner p {
  margin: 0;
  font-size: clamp(16px, 2.6vw, 20px);
  font-weight: 700;
  line-height: 1.55;
}

/* -----------------------------------------------------------
   7. Core Features
----------------------------------------------------------- */
.features { background: var(--bg); }

.feature-card { position: relative; padding-top: 30px; }
.feature-no {
  position: absolute;
  top: -10px; right: 22px;
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 800;
  color: var(--brand-soft);
  line-height: 1;
  pointer-events: none;
  letter-spacing: -.04em;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -.02em;
}
.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.feature-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}
.feature-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 8px;
  background:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%) no-repeat,
    linear-gradient(-45deg, var(--brand) 50%, transparent 50%) no-repeat;
  background-size: 7px 7px;
  background-position: 0 100%, 7px 0;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><polyline points='1,5 5,9 13,1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'><polyline points='1,5 5,9 13,1' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat;
  background: var(--brand);
}

/* -----------------------------------------------------------
   8. Architecture
----------------------------------------------------------- */
.architecture {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.arch-board {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 768px) { .arch-board { padding: 40px; gap: 24px; } }

.arch-node {
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(47,143,110,.18);
}
.arch-node .node-label { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.arch-node .node-meta  { font-size: 12.5px; font-weight: 500; opacity: .85; margin-top: 4px; font-family: var(--font-mono); }
.arch-node.worker {
  background: #fff;
  color: var(--brand-deep);
  border: 1.5px solid var(--brand-mint);
  box-shadow: 0 4px 12px rgba(15,30,22,.05);
}

.arch-stream {
  position: relative;
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stream-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.stream-chip {
  background: #fff;
  border: 1px solid var(--brand-mint);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
}
.stream-chip .chip-title {
  display: block;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand-deep);
  font-size: 13px;
  margin-bottom: 2px;
  word-break: break-all;
}
.stream-chip .chip-sub { color: var(--muted); }
.stream-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--brand-deep);
  margin-top: 6px;
}
.pulse-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.pulse-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .35;
  animation: pulseDots 1.4s ease-in-out infinite;
}
.pulse-dots span:nth-child(2) { animation-delay: .2s; }
.pulse-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes pulseDots {
  0%, 100% { transform: scale(1); opacity: .35; }
  50%      { transform: scale(1.6); opacity: 1; }
}

.arch-workers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .arch-workers { grid-template-columns: 1fr; }
}

.arch-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 480px) { .arch-foot { grid-template-columns: 1fr; } }
.foot-chip {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
}
.foot-chip strong { color: var(--ink); font-weight: 800; }

/* -----------------------------------------------------------
   9. Modules
----------------------------------------------------------- */
.modules { background: var(--bg); }

.module-card { position: relative; }
.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.module-type {
  font-size: 11.5px;
  letter-spacing: .18em;
  font-weight: 700;
  color: var(--muted-2);
}
.module-badge {
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 4px 8px;
  border-radius: 6px;
}
.module-badge.worker { background: var(--ink-2); }
.module-badge.sse    { background: #6D28D9; }
.module-badge.jar    { background: #B45309; }

.module-card h3 {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  color: var(--brand-deep);
}
.module-card .tag-ai {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 2px 7px;
  border-radius: 5px;
  vertical-align: middle;
  letter-spacing: .08em;
}
.module-card ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.module-card li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}
.module-card li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 5px; height: 5px;
  background: var(--brand);
  border-radius: 50%;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border: 1px solid var(--brand-mint);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: -.01em;
}

.module-card.highlight {
  background: linear-gradient(160deg, #FFFFFF 0%, #F5FBF7 100%);
  border-color: var(--brand-mint);
}
.module-card.highlight::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--accent) 100%);
  z-index: -1;
  opacity: .12;
  pointer-events: none;
}

/* -----------------------------------------------------------
   10. AI Section
----------------------------------------------------------- */
.ai { background: var(--bg-soft); position: relative; overflow: hidden; }
.ai::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(168,213,186,.35) 0%, transparent 50%);
  pointer-events: none;
}

.chat-stage {
  max-width: 680px;
  margin: 0 auto 40px;
  display: grid;
  gap: 12px;
}
.chat-bubble {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: bubblePop .5s var(--ease) both;
}
@keyframes bubblePop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.chat-bubble p {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 78%;
}
.chat-bubble.user p {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-top-left-radius: 4px;
}
.chat-bubble.ai {
  flex-direction: row-reverse;
}
.chat-bubble.ai p {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  border-top-right-radius: 4px;
  font-weight: 500;
}
.chat-bubble.ai p strong { color: #fff; font-weight: 800; }

.extension-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 880px;
  margin: 0 auto;
}
.extension-card h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--brand-deep);
  letter-spacing: -.02em;
}
.extension-card > p {
  color: var(--muted);
  margin: 0 0 26px;
  font-size: 15px;
}

.ext-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .ext-flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
  }
}
.ext-node {
  background: var(--bg-soft);
  border: 1px dashed var(--brand-mint);
  border-radius: var(--radius);
  padding: 18px 16px;
}
.ext-node.base   { border-style: solid; border-color: var(--brand-mint); }
.ext-node.custom { background: var(--brand-soft); border-color: var(--brand); }
.ext-node.result {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  border: none;
}
.ext-title {
  display: block;
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-deep);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.ext-node.result .ext-title { color: #fff; }
.ext-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.ext-pills span {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-deep);
  border: 1px solid var(--brand-mint);
}
.ext-node.custom .ext-pills span { background: #fff; }
.ext-desc {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: .9;
}
.ext-plus {
  font-size: 24px;
  font-weight: 800;
  color: var(--brand);
  text-align: center;
  line-height: 1;
}

/* -----------------------------------------------------------
   11. Use Cases
----------------------------------------------------------- */
.cases { background: var(--bg); }
.case-card { text-align: left; }
.case-icon {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 14px;
}
.case-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.case-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* -----------------------------------------------------------
   12. Benefits
----------------------------------------------------------- */
.benefits {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.benefit-card {
  text-align: left;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.benefit-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1;
  letter-spacing: -.04em;
  margin-bottom: 12px;
  font-family: var(--font-mono);
}
.benefit-num span { color: var(--brand); font-size: .6em; }
.benefit-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}
.benefit-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* -----------------------------------------------------------
   13. Tech Stack
----------------------------------------------------------- */
.tech { background: var(--bg-soft); }
.tech-card {
  text-align: center;
  background: #fff;
}
.tech-label {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 800;
  color: var(--brand);
  padding: 4px 10px;
  background: var(--brand-soft);
  border-radius: 999px;
  margin-bottom: 10px;
}
.tech-card p {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  letter-spacing: -.01em;
}

/* -----------------------------------------------------------
   14. FAQ
----------------------------------------------------------- */
.faq { background: var(--bg); }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] {
  border-color: var(--brand-mint);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > span:first-child { flex: 1; }

.faq-icon {
  position: relative;
  width: 20px; height: 20px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.faq-icon::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.faq-body {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
  border-top: 1px dashed var(--border-soft);
  margin-top: -4px;
  padding-top: 16px;
}
.faq-body p { margin: 0; }
.faq-body code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  padding: 2px 6px;
  border-radius: 4px;
}
.faq-body strong { color: var(--ink); }

/* -----------------------------------------------------------
   15. Contact
----------------------------------------------------------- */
.contact {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--brand-soft) 100%);
}
.contact-wrap {
  display: flex;
  justify-content: center;
}

.contact-info {
  width: 100%;
  max-width: 560px;
  padding: 32px 24px;
}
@media (min-width: 768px) { .contact-info { padding: 44px 40px; } }

.contact-info h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -.02em;
  color: var(--brand-deep);
  text-align: center;
}
.contact-info-sub {
  margin: 0 0 28px;
  font-size: 14.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
}
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-ic {
  font-size: 22px;
  width: 42px; height: 42px;
  background: var(--brand-soft);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted-2);
  margin-bottom: 2px;
}
.info-list a,
.info-list p {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.info-list a:hover { color: var(--brand-deep); }

/* 주소 — 첫 줄은 한 줄로 고정, 두 번째 줄로 자연 줄바꿈 */
.info-list .addr {
  font-size: 14px;
  letter-spacing: -0.025em;
  line-height: 1.55;
}
.info-list .addr-line { white-space: nowrap; }

/* 연락처 CTA 버튼 영역 */
.contact-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 10px;
}
.contact-actions .btn { gap: 10px; }
@media (min-width: 480px) {
  .contact-actions { grid-template-columns: 1fr 1fr; }
}

/* -----------------------------------------------------------
   16. Footer
----------------------------------------------------------- */
.site-footer {
  background: #0F1814;
  color: #D5DCD7;
  padding: 56px 0 24px;
}
.footer-inner {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid #1F2A24;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 2fr; }
}
.foot-logo {
  height: 72px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}
.foot-tag {
  margin: 0;
  font-size: 14px;
  color: #A2ADA7;
  line-height: 1.65;
  max-width: 360px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.foot-cols h4 {
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 14px;
}
.foot-cols a {
  display: block;
  font-size: 14px;
  color: #A2ADA7;
  padding: 5px 0;
}
.foot-cols a:hover { color: var(--brand-mint); }

.foot-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #7A857F;
}
.foot-bottom p { margin: 0; }

/* -----------------------------------------------------------
   17. Sticky CTA (mobile)
----------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 80px);
  z-index: 90;
  background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
  color: #fff;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(47,143,110,.4);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.sticky-cta.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* -----------------------------------------------------------
   18. Scroll Reveal
----------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside grids */
.grid .reveal:nth-child(1) { transition-delay: .00s; }
.grid .reveal:nth-child(2) { transition-delay: .06s; }
.grid .reveal:nth-child(3) { transition-delay: .12s; }
.grid .reveal:nth-child(4) { transition-delay: .18s; }
.grid .reveal:nth-child(5) { transition-delay: .24s; }
.grid .reveal:nth-child(6) { transition-delay: .30s; }

/* -----------------------------------------------------------
   19. A11y / Reduced motion
----------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-bg { animation: none; }
}

/* -----------------------------------------------------------
   20. Print
----------------------------------------------------------- */
@media print {
  .site-header, .sticky-cta, .hero-scroll, .nav-mobile, .hamburger { display: none !important; }
  .hero-bg { display: none; }
  body { background: #fff; color: #000; }
  .section { padding: 24px 0; page-break-inside: avoid; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}
