:root {
  --bg: #0b0d12;
  --bg-elev: #11141b;
  --surface: #161a23;
  --border: #232838;
  --text: #e8ecf3;
  --text-dim: #9aa3b2;
  --text-mute: #6b7280;
  --accent: #ff7a3d;
  --accent-soft: rgba(255, 122, 61, 0.12);
  --accent-strong: #ff8a52;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1120px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(20px, 5vw);
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.brand-mark img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
}
.brand-name { font-size: 1.1rem; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

@media (max-width: 520px) {
  .nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) max(20px, 5vw) clamp(80px, 12vw, 140px);
  max-width: var(--max);
  margin: 0 auto;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.accent { color: var(--accent); }

.lead {
  margin-top: 22px;
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 540px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #0b0d12;
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-orb {
  position: absolute;
  right: -120px;
  top: -80px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 122, 61, 0.35), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 9vw, 100px) max(20px, 5vw);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  margin-bottom: 48px;
  max-width: 640px;
}
.section-sub {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 61, 0.4);
  background: linear-gradient(180deg, var(--surface), #1a1f2c);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- App Cards ---------- */
.apps {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 61, 0.45);
}

.app-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.app-emoji {
  font-size: 3.4rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.app-body {
  padding: 22px 24px 26px;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.badge-project { background: rgba(255, 255, 255, 0.06); color: #cdd5e3; border-color: rgba(255, 255, 255, 0.14); }
.badge-dev     { background: rgba(255, 122, 61, 0.12); color: #ffb38a; border-color: rgba(255, 122, 61, 0.3); }
.badge-soon    { background: rgba(91, 141, 239, 0.14); color: #a8c4ff; border-color: rgba(91, 141, 239, 0.35); }
.badge-plan    { background: rgba(46, 204, 113, 0.12); color: #7be2a8; border-color: rgba(46, 204, 113, 0.3); }
.badge-live    { background: rgba(46, 204, 113, 0.18); color: #7be2a8; border-color: rgba(46, 204, 113, 0.4); }

.app-platform {
  font-size: 0.78rem;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

.app-body h3 { margin-bottom: 8px; font-size: 1.18rem; }
.app-body p  { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.8;
}
.about-text strong { color: var(--text); }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.98rem;
}
.features span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact { padding-top: 40px; }

.contact-card {
  background: linear-gradient(135deg, #161a23, #1c1410);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 122, 61, 0.18), transparent 60%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card .lead { margin-left: auto; margin-right: auto; }

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #0b0d12;
  font-weight: 700;
  font-size: 1.02rem;
  transition: transform 0.15s ease, background 0.2s ease;
}
.email-link:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.contact-hint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px max(20px, 5vw) 56px;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 0.88rem;
}
.muted { color: var(--text-mute); }
