:root {
  --ink: #111614;
  --ink-2: #2a322e;
  --ink-soft: #4d5752;
  --muted: #7d8681;
  --line: #e8e4dc;
  --line-dark: rgba(255, 255, 255, 0.1);
  --bg: #fbfaf7;
  --tint: #f4f0e8;
  --card: #ffffff;
  --accent: #e59a3c;
  --accent-deep: #c27819;
  --coral: #d97757;
  --green: #2f7a43;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 1px 2px rgba(17, 22, 20, 0.04), 0 18px 40px -18px rgba(17, 22, 20, 0.22);
  --header-h: 72px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.brand-name em, .footer-brand em { font-style: normal; color: var(--accent-deep); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
}
.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lang-switch a[aria-current="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 22, 20, 0.12); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-ghost { background: rgba(255, 255, 255, 0.6); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--tint); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-outline-light:hover { border-color: #fff; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -2;
  background:
    radial-gradient(520px 380px at 78% 30%, rgba(229, 154, 60, 0.22), transparent 70%),
    radial-gradient(460px 360px at 92% 70%, rgba(217, 119, 87, 0.16), transparent 70%),
    radial-gradient(600px 400px at 12% 10%, rgba(244, 240, 232, 1), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(17, 22, 20, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 22, 20, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pill-dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fdeee6; }
.pill-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.14;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.grad {
  background: linear-gradient(100deg, var(--accent-deep), var(--coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { margin-top: 24px; max-width: 540px; font-size: 18px; color: var(--ink-soft); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 28px; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.hero-facts span { font-size: 13px; color: var(--muted); }

.hero-visual { position: relative; }
.app-window {
  border-radius: 18px;
  overflow: hidden;
  background: #121412;
  border: 1px solid rgba(17, 22, 20, 0.2);
  box-shadow: 0 40px 80px -30px rgba(17, 22, 20, 0.45);
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
}
.app-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b1f1c; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a403c; }
.app-bar i:nth-child(1) { background: #f2786a; }
.app-bar i:nth-child(2) { background: #f3c25a; }
.app-bar i:nth-child(3) { background: #69c27a; }
.app-bar span { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.5); }
.app-window img { width: 100%; height: auto; }

.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.float-pixzzi { left: -36px; bottom: -40px; width: 168px; padding: 8px; }
.float-pixzzi video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f8fafc; }
.float-pixzzi p { padding: 8px 4px 2px; font-size: 12px; font-weight: 700; }
.float-claude { right: -20px; top: 22%; padding: 14px 16px; width: 240px; }
.float-claude .fc-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.float-claude .fc-head .tag { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #fdf0dc; color: var(--accent-deep); font-size: 11px; }
.float-claude ul { margin-top: 10px; display: grid; gap: 6px; }
.float-claude li { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); padding: 6px 8px; border-radius: 8px; background: var(--tint); }
.float-claude li b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.spark { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Tech strip ---------- */
.strip { padding: 26px 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.5); overflow: hidden; }
.strip-inner { display: flex; align-items: center; gap: 28px; }
.strip-label { flex-shrink: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.strip-track { display: flex; gap: 12px; flex-wrap: wrap; }
.strip-track li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ---------- Sections ---------- */
.section { padding: 128px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #fff; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-deep); }
.section-dark .kicker { color: var(--accent); }
.section-title { margin-top: 14px; font-size: clamp(30px, 3.8vw, 46px); line-height: 1.22; font-weight: 800; letter-spacing: -0.035em; }
.section-sub { margin-top: 16px; max-width: 620px; font-size: 17px; color: var(--ink-soft); }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.62); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }

/* About */
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 72px; align-items: start; }
.about-body > p { font-size: 18px; color: var(--ink-soft); }
.principles { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principles li { padding: 22px 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.principles .num { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent-deep); }
.principles h3 { margin-top: 10px; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.principles p { margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* Claude bento */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento-card {
  position: relative;
  grid-column: span 2;
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bento-card:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.bento-card.wide { grid-column: span 6; padding: 40px; }
.bento-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; }
.bento-main > div { min-width: 0; }
.bento-card .bento-desc { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.64); }
.bento-card.wide h3 { font-size: 26px; }
.bento-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.bento-card h3 { margin-top: 12px; font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -0.03em; }
.bento-card > p { margin-top: 10px; font-size: 15px; color: rgba(255, 255, 255, 0.64); }
.status {
  position: absolute;
  top: 26px;
  right: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.status.live { background: rgba(105, 194, 122, 0.16); color: #8fdc9f; }
.status.building { background: rgba(229, 154, 60, 0.18); color: #f3bd72; }
.status.planned { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.6); }
.bento-card h3, .bento-label { padding-right: 84px; }

.pipeline { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pipeline li {
  position: relative;
  padding: 14px 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}
.pipeline li b { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.pipeline li.is-claude { background: rgba(217, 119, 87, 0.16); border-color: rgba(217, 119, 87, 0.45); color: #fff; }

.code {
  margin-top: 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: #0a0d0c;
  border: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  overflow-x: auto;
  white-space: pre;
}
.code .k { color: #f3bd72; }
.code .s { color: #8fdc9f; }
.code .n { color: #9cc4ff; }
.code-cap { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.42); }

/* Products */
.product-feature {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-media { position: relative; background: #f8f8f8; border-right: 1px solid var(--line); overflow: hidden; }
.product-media video { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transform: scale(1.18); transform-origin: 0 50%; }
.product-info { padding: 52px; display: flex; flex-direction: column; justify-content: center; }
.badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
}
.badge.green { background: #eaf5ec; color: var(--green); }
.product-logo { margin-top: 22px; width: min(260px, 80%); height: auto; }
.product-title { margin-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.product-desc { margin-top: 12px; color: var(--ink-soft); }
.meta { margin-top: 24px; border-top: 1px solid var(--line); }
.meta li { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.meta span { width: 78px; flex-shrink: 0; color: var(--muted); font-weight: 400; }
.product-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }

.case-grid { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.case-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-media { aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.case-media.dark { background: #121412; }
.case-media.warm { background: linear-gradient(135deg, #fbf3e6, #f3e3cc); }
.case-media .mascot { width: auto; height: 92%; object-fit: contain; }
.case-info { padding: 30px 32px 34px; display: flex; flex-direction: column; flex: 1; }
.case-title { margin-top: 16px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.case-desc { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }
.points { margin-top: 18px; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 18px; font-size: 15px; font-weight: 500; }
.points li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tags { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: 8px; background: var(--tint); color: var(--ink-soft); font-size: 13px; font-weight: 500; }

/* Business */
.biz-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.biz-card { position: relative; padding: 30px 28px 32px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.biz-card.soon { background: rgba(255, 255, 255, 0.5); border-style: dashed; }
.biz-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); color: var(--accent-deep); }
.biz-card.soon .biz-icon { background: #ece8e0; color: var(--muted); }
.biz-icon svg { width: 23px; height: 23px; }
.biz-card h3 { margin-top: 22px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.biz-card p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.biz-tag { position: absolute; top: 24px; right: 24px; padding: 4px 10px; border-radius: 999px; background: #ece8e0; color: var(--muted); font-size: 12px; font-weight: 600; }

/* Contact */
.contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px 64px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 420px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(217, 119, 87, 0.35), transparent);
}
.contact-card h2 { margin-top: 12px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.3; font-weight: 800; letter-spacing: -0.03em; }
.contact-card p.sub { margin-top: 14px; color: rgba(255, 255, 255, 0.62); }
.contact-actions { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }

/* Footer */
.site-footer { padding: 56px 0 64px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.footer-desc { margin-top: 12px; max-width: 420px; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { width: 100%; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 20px; }
  .bento-card { grid-column: span 3; }
  .bento-main { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bento-card:not(.wide):last-child { grid-column: span 6; }
  .float-claude { right: -8px; }
}

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-open .site-header { background: var(--bg); }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }

  .hero { padding: calc(var(--header-h) + 40px) 0 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 72px; }
  .app-window { transform: none; }
  .float-pixzzi { left: -8px; bottom: -48px; width: 132px; }
  .float-claude { right: -8px; top: auto; bottom: -56px; width: 210px; }

  .section { padding: 96px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 0; }
  .bento-card, .bento-card.wide { grid-column: span 6; }
  .bento-card.wide { padding: 30px 24px; }
  .product-feature { grid-template-columns: 1fr; }
  .product-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-grid { grid-template-columns: 1fr; }
  .biz-grid { grid-template-columns: 1fr 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 48px 32px; }
  .contact-actions { width: 100%; }
}

@media (max-width: 600px) {
  .container { width: calc(100% - 40px); }
  .brand-name { font-size: 17px; }
  .hero-facts { gap: 20px; }
  .principles { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .code { font-size: 11.5px; padding: 14px 16px; }
  .bento-card { padding: 26px 22px; }
  .status { top: 22px; right: 20px; }
  .product-info { padding: 32px 24px; }
  .case-info { padding: 26px 24px 28px; }
  .biz-grid { grid-template-columns: 1fr; }
  .float-claude { display: none; }
}

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