@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --blue-900: #1E3A8A;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-500: #3B82F6;
  --blue-100: #DBEAFE;
  --blue-50:  #EFF6FF;
  --ink: #0F172A;
  --text: #334155;
  --muted: #64748B;
  --line: #E2E8F0;
  --bg-soft: #F8FAFC;
  --radius: 16px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav a.active { color: var(--blue-700); background: var(--blue-50); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 130px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(59,130,246,.14), transparent 60%),
    radial-gradient(600px 300px at 10% 90%, rgba(96,165,250,.12), transparent 60%),
    #fff;
}
.hero .eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.hero h1 { margin-top: 22px; font-size: clamp(34px, 5vw, 60px); line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--blue-600); }
.hero p.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 620px; }
.hero .actions { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-rings { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 520px; opacity: .1; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 700; font-size: 16px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.28); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-700); }

/* ---------- Sub page hero ---------- */
.page-hero {
  padding: 90px 0 70px;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px;
  border-radius: 50%; border: 48px solid rgba(255,255,255,.08);
}
.page-hero .crumb { font-size: 13px; opacity: .8; letter-spacing: .1em; font-weight: 600; }
.page-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin-top: 8px; letter-spacing: -0.02em; }
.page-hero p { margin-top: 10px; opacity: .9; font-size: 17px; }

/* ---------- Sections ---------- */
section.block { padding: 100px 0; }
section.block.soft { background: var(--bg-soft); }
.section-head { margin-bottom: 52px; }
.section-head .kicker { color: var(--blue-600); font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); color: var(--ink); font-weight: 800; margin-top: 8px; letter-spacing: -0.02em; line-height: 1.3; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.section-head.center { text-align: center; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.08); border-color: var(--blue-100); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 20px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card ul { margin-top: 14px; list-style: none; }
.card ul li { font-size: 15px; padding: 4px 0 4px 20px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); }

.link-more { display: inline-flex; margin-top: 18px; color: var(--blue-600); font-weight: 700; font-size: 15px; }
.link-more:hover { text-decoration: underline; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .num { font-size: 42px; font-weight: 800; color: var(--blue-600); letter-spacing: -0.02em; }
.stats .label { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.about-visual { aspect-ratio: 4/3; border-radius: 24px; background: linear-gradient(135deg, var(--blue-50), var(--blue-100)); display: grid; place-items: center; }
.about-visual img { width: 60%; }
.info-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.info-table th, .info-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
.info-table th { width: 180px; background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.values .card { text-align: left; }
.values .card .no { font-size: 14px; font-weight: 800; color: var(--blue-500); letter-spacing: .1em; }

/* ---------- Greeting ---------- */
.greeting { display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start; }
.ceo-photo { aspect-ratio: 3/4; border-radius: 24px; background: linear-gradient(160deg, var(--blue-100), var(--blue-50)); display: grid; place-items: center; color: var(--blue-500); font-weight: 600; }
.greeting blockquote { font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); font-weight: 800; line-height: 1.45; letter-spacing: -0.02em; margin-bottom: 32px; }
.greeting blockquote em { font-style: normal; color: var(--blue-600); }
.greeting .body p { margin-bottom: 18px; font-size: 17px; }
.greeting .sign { margin-top: 36px; font-size: 17px; color: var(--ink); }
.greeting .sign strong { font-size: 24px; margin-left: 10px; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.process .step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.process .step::before { counter-increment: step; content: "0" counter(step); font-weight: 800; color: var(--blue-500); font-size: 14px; letter-spacing: .1em; }
.process .step h4 { color: var(--ink); font-size: 18px; margin: 6px 0 4px; }
.process .step p { font-size: 14.5px; color: var(--muted); }

/* ---------- Portfolio ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.filters button { border: 1.5px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--text); transition: .2s; }
.filters button.active, .filters button:hover { border-color: var(--blue-600); color: #fff; background: var(--blue-600); }
.work { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15,23,42,.08); }
.work .thumb { aspect-ratio: 16/10; display: grid; place-items: center; color: #fff; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.work .meta { padding: 22px 24px 26px; }
.work .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--blue-700); background: var(--blue-50); padding: 4px 10px; border-radius: 6px; }
.work h3 { margin-top: 10px; font-size: 18px; color: var(--ink); }
.work p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.work .year { font-size: 13px; color: var(--muted); margin-top: 10px; }
.work.hidden { display: none; }
.t1 { background: linear-gradient(135deg,#1D4ED8,#60A5FA); }
.t2 { background: linear-gradient(135deg,#0EA5E9,#2563EB); }
.t3 { background: linear-gradient(135deg,#1E3A8A,#3B82F6); }
.t4 { background: linear-gradient(135deg,#2563EB,#93C5FD); }
.t5 { background: linear-gradient(135deg,#3730A3,#60A5FA); }
.t6 { background: linear-gradient(135deg,#0369A1,#38BDF8); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info .item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info .item:first-child { padding-top: 0; }
.contact-info .item .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; }
.contact-info .item .icon svg { width: 22px; height: 22px; }
.contact-info .item h4 { color: var(--ink); font-size: 16px; }
.contact-info .item p { color: var(--muted); font-size: 15.5px; }
.form { background: var(--bg-soft); border-radius: 20px; padding: 36px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.form .field { margin-bottom: 18px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15.5px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59,130,246,.15); }
.form textarea { min-height: 150px; resize: vertical; }
.form .agree { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.form .agree input { width: auto; }
.form .btn { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.form-note { margin-top: 12px; font-size: 14px; color: var(--blue-700); text-align: center; min-height: 20px; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(135deg, var(--blue-700), var(--blue-500)); border-radius: 24px; padding: 64px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.cta p { opacity: .9; margin-top: 6px; }
.cta .btn { background: #fff; color: var(--blue-700); }
.cta .btn:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: #0B1220; color: #94A3B8; padding: 60px 0 40px; margin-top: 0; font-size: 14.5px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid #1E293B; }
.site-footer .f-brand { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.site-footer .f-brand span { color: var(--blue-500); font-weight: 600; font-size: 14px; letter-spacing: .3em; margin-left: 6px; }
.site-footer .f-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer .f-nav a:hover { color: #fff; }
.site-footer .biz { margin-top: 24px; line-height: 1.9; }
.site-footer .biz span + span::before { content: "|"; margin: 0 10px; color: #334155; }
.site-footer .copy { margin-top: 14px; color: #64748B; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about-split, .greeting, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .ceo-photo { max-width: 320px; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 10px; }
  .grid-2, .grid-3, .grid-4, .process { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  section.block { padding: 72px 0; }
  .hero { padding: 80px 0 90px; }
  .cta { padding: 40px 28px; }
  .info-table th { width: 110px; }
}

/* ---------- Added: tech chips / timeline / product ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips span { font-size: 13px; font-weight: 600; color: var(--blue-700); background: var(--blue-50); padding: 5px 11px; border-radius: 999px; }
.timeline { position: relative; padding-left: 28px; border-left: 2px solid var(--blue-100); }
.timeline .t-item { position: relative; padding: 0 0 34px; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-500); }
.timeline .t-date { font-size: 14px; font-weight: 700; color: var(--blue-600); }
.timeline h4 { font-size: 18px; color: var(--ink); margin-top: 2px; }
.timeline p { font-size: 15.5px; color: var(--muted); }
.product { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: center; background: linear-gradient(135deg, #0B1220, #1E3A8A); color: #CBD5E1; border-radius: 24px; padding: 56px; }
.product h3 { color: #fff; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin: 10px 0 12px; }
.product .tag { display: inline-block; font-size: 12.5px; font-weight: 700; color: #93C5FD; background: rgba(147,197,253,.12); padding: 4px 10px; border-radius: 6px; }
.product ul { list-style: none; margin: 18px 0 26px; }
.product ul li { padding: 5px 0 5px 22px; position: relative; font-size: 15.5px; }
.product ul li::before { content: "✓"; position: absolute; left: 0; color: #60A5FA; font-weight: 800; }
.product .btn { background: #fff; color: var(--blue-700); }
.work .thumb small { display: block; font-size: 13px; font-weight: 600; opacity: .85; margin-top: 4px; text-align: center; }
.work .who { font-size: 13.5px; color: var(--ink); font-weight: 600; margin-top: 10px; }
@media (max-width: 960px) { .product { grid-template-columns: 1fr; padding: 36px 28px; } }
.product-shot { width: 100%; border-radius: 16px; border: 1px solid #1E293B; box-shadow: 0 30px 60px rgba(0,0,0,.45); }
.greeting.no-photo { grid-template-columns: 1fr; max-width: 820px; }
