/* ============================================================
   투인 소프트 — 다크 시네마틱 테마 (사보타지 스튜디오 구조 참고)
   구조: Home(히어로) → App&Web(풀폭 쇼케이스) → Story → Coming Soon
   ============================================================ */
:root {
  /* 팔레트 */
  --bg: #0b0d12;          /* 페이지 배경 */
  --bg-soft: #141824;     /* 패널 배경 */
  --card: #171c2a;        /* 카드 배경 */
  --line: #262d40;        /* 경계선 */
  --ink: #eceae4;         /* 본문 텍스트 */
  --ink-soft: #9aa0b0;    /* 보조 텍스트 */
  --coral: #ff6b57;       /* 메인 포인트 (앱·게임) */
  --coral-dark: #ff8a70;  /* 링크/호버 */
  --teal: #3ec6b8;        /* 웹서비스 */
  --gold: #f5b942;        /* 이야기/블로그 */
  --lav: #9b8cff;         /* Coming Soon */
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 107, 87, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(62, 198, 184, 0.07), transparent 60%),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  background: linear-gradient(135deg, var(--coral), #ff9d6b);
  color: #14100e;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.site-nav { display: flex; gap: clamp(12px, 2.4vw, 30px); flex-wrap: wrap; }

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

main { margin: 0 auto; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ---------- 히어로 (Home) ---------- */
.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 140px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 90px);
}

.hero-kicker {
  display: inline-block;
  color: var(--coral);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

.home-hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.home-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--coral), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text { color: var(--ink-soft); font-size: 1.06rem; margin: 0 0 30px; max-width: 34em; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-2px); }
.button.primary {
  background: linear-gradient(135deg, var(--coral), #ff9d6b);
  color: #14100e;
  box-shadow: 0 10px 30px rgba(255, 107, 87, 0.35);
}
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button.secondary:hover { border-color: var(--ink-soft); }

.hero-media { margin: 0; position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transform: rotate(1.5deg);
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(closest-side, rgba(255, 107, 87, 0.18), transparent 70%);
  z-index: -1;
}

/* ---------- 섹션 공통 ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.eyebrow {
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  font-weight: 800;
  margin: 0 0 10px;
}

.section-heading { margin-bottom: clamp(28px, 4vw, 48px); position: relative; }
.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.section-sub { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.heading-link { position: absolute; right: 0; top: 14px; font-size: 0.9rem; font-weight: 700; }

/* ---------- App&Web 풀폭 쇼케이스 ---------- */
.showcase { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }

.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.showcase-row.flip .showcase-art { order: 2; }

.showcase-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  overflow: hidden;
}
.showcase-art .art-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  filter: blur(40px) saturate(1.4);
  opacity: 0.55;
}
.showcase-art .art-grad-app { background: radial-gradient(circle at 30% 30%, rgba(255,107,87,0.5), rgba(20,16,20,0.9)); }
.showcase-art .art-grad-web { background: radial-gradient(circle at 30% 30%, rgba(62,198,184,0.45), rgba(14,20,24,0.9)); }
.showcase-art img.art-icon {
  position: relative;
  width: clamp(120px, 16vw, 180px);
  height: clamp(120px, 16vw, 180px);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  object-fit: cover;
}
.showcase-art .art-letter {
  position: relative;
  width: clamp(120px, 16vw, 180px);
  height: clamp(120px, 16vw, 180px);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 900;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.showcase-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(28px, 4vw, 56px);
}

.showcase-kind {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.kind-app { color: var(--coral); }
.kind-web { color: var(--teal); }

.showcase-body h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.showcase-body > p { margin: 0; color: var(--ink-soft); font-size: 0.99rem; max-width: 30em; }

.store-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.store-link {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.store-link:hover { text-decoration: none; border-color: var(--coral); background: rgba(255, 107, 87, 0.08); }

.status-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: none;
}
.status-review { background: rgba(245, 185, 66, 0.15); color: var(--gold); border: 1px solid rgba(245, 185, 66, 0.4); }
.status-planned { background: rgba(155, 140, 255, 0.14); color: var(--lav); border: 1px solid rgba(155, 140, 255, 0.4); }

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.story-copy p { color: var(--ink-soft); font-size: 1.02rem; }
.story-copy .story-lead {
  color: var(--ink);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
}

.story-side { display: flex; flex-direction: column; gap: 14px; }

.blog-card, .news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.blog-card h3 { margin: 6px 0 8px; font-size: 1.05rem; font-weight: 800; }
.blog-card p { margin: 0 0 10px; color: var(--ink-soft); font-size: 0.92rem; }
.blog-kind {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* 최근 소식 스트립 */
.news-strip { margin-top: clamp(36px, 5vw, 56px); }
.news-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.news-strip-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }

.news-grid, .news-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.news-card h3 { margin: 12px 0 8px; font-size: 1.02rem; font-weight: 800; }
.news-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.news-card-head { display: flex; gap: 12px; align-items: center; }
.news-icon { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.news-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 1.25rem;
}
.news-app { margin: 0; font-weight: 800; font-size: 0.88rem; }
.news-date { margin: 0; color: var(--ink-soft); font-size: 0.78rem; }
.news-tag { color: var(--coral); font-weight: 700; }

.news-points { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; }
.news-points li { margin-bottom: 4px; }

/* ---------- Coming Soon ---------- */
.coming-section {
  background: linear-gradient(180deg, rgba(155, 140, 255, 0.05), transparent 55%);
}
.coming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.coming-card {
  position: relative;
  background: var(--card);
  border: 1px dashed rgba(155, 140, 255, 0.45);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
}
.coming-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155, 140, 255, 0.22), transparent);
}
.coming-kind {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lav);
}
.coming-card h3 { margin: 8px 0 8px; font-size: 1.15rem; font-weight: 800; }
.coming-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- 컨택트 밴드 ---------- */
.contact-band {
  text-align: center;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: radial-gradient(700px 300px at 50% 0%, rgba(255, 107, 87, 0.08), transparent 70%);
}
.contact-band h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; }
.contact-band p { color: var(--ink-soft); margin: 0 0 24px; }

/* ---------- 업데이트 페이지 ---------- */
.updates-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px) clamp(16px, 3vw, 28px);
}
.updates-hero h1 {
  font-size: clamp(1.7rem, 3.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.3;
  margin: 10px 0 14px;
}
.update-board { max-width: 1160px; margin: 0 auto; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }

.update-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.filter-tab:hover { border-color: var(--ink-soft); color: var(--ink); }
.filter-tab.active {
  background: linear-gradient(135deg, var(--coral), #ff9d6b);
  border-color: transparent;
  color: #14100e;
}

/* ---------- 텍스트 유틸 ---------- */
.text-link { font-weight: 700; font-size: 0.92rem; }
.text-muted { color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- 푸터 ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .home-hero, .story-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; }
  .showcase-row { grid-template-columns: 1fr; }
  .showcase-row.flip .showcase-art { order: 0; }
  .heading-link { position: static; display: inline-block; margin-top: 6px; }
}
