:root {
  --bg: #0b1020;
  --bg-elevated: #121a2e;
  --surface: #182238;
  --text: #eef2ff;
  --text-muted: #a8b3cf;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.14);
  --accent-2: #06b6d4;
  --border: rgba(148, 163, 184, 0.18);
  --success: #22c55e;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.82);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

nav a:hover {
  color: var(--text);
}

.hero {
  padding: 72px 0 48px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bfdbfe;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid transparent;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.stat strong {
  display: block;
  font-size: 1.35rem;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

section {
  padding: 28px 0 56px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.7rem;
}

.section-desc {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 70ch;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.card p,
.card li {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #dbeafe;
  font-size: 0.78rem;
}

.app-screens {
  padding-bottom: 40px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: stretch;
}

.screen-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.screen-shot {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.04));
  padding: clamp(10px, 1.2vw, 14px) clamp(8px, 1vw, 12px) 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1 1 auto;
}

.screen-shot img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(56vh, 540px);
  object-fit: contain;
  object-position: center top;
  border-radius: 14px 14px 0 0;
  border: 1px solid var(--border);
  border-bottom: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.screen-card figcaption {
  padding: 14px clamp(12px, 1.2vw, 16px) 16px;
  flex: 0 0 auto;
}

.screen-card h3 {
  margin: 0 0 6px;
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  color: var(--text);
}

.screen-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: clamp(0.8rem, 0.95vw, 0.92rem);
  line-height: 1.55;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.pipeline-step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.pipeline-step strong {
  display: block;
  font-size: 0.92rem;
}

.pipeline-step span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.status-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.status-list li:last-child {
  border-bottom: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 7px;
  flex: 0 0 auto;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.deploy-box {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

pre {
  overflow-x: auto;
  background: #070b14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: #dbeafe;
  font-size: 0.86rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-shot img {
    max-height: min(48vh, 480px);
  }
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .pipeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .screen-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .screen-card {
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }

  .screen-shot img {
    max-height: 420px;
  }
}
