:root {
  color-scheme: dark;
  --bg: #080b13;
  --bg-soft: #111827;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #77e4c8;
  --accent-2: #8ea7ff;
  --accent-3: #f5b7ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 28px;
  --max: 1180px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8ff;
  --bg-soft: #ffffff;
  --surface: rgba(20, 29, 48, 0.06);
  --surface-strong: rgba(20, 29, 48, 0.1);
  --text: #111827;
  --muted: #5d687d;
  --line: rgba(20, 29, 48, 0.14);
  --shadow: 0 24px 80px rgba(27, 43, 80, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(119, 228, 200, 0.18), transparent 36rem),
    radial-gradient(circle at 90% 10%, rgba(142, 167, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 50% 75%, rgba(245, 183, 255, 0.12), transparent 34rem),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 99;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #071018;
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand, .nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.brand { font-weight: 900; letter-spacing: -0.03em; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #071018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 40px rgba(119, 228, 200, 0.23);
}

.nav-actions a,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.58rem 0.86rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-actions a:hover,
.theme-toggle:hover { transform: translateY(-2px); background: var(--surface-strong); }
.theme-toggle { cursor: pointer; min-width: 43px; }

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

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: 3rem;
  padding: 5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.5rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}
h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.06em; margin-bottom: 1rem; }
h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); line-height: 1.16; letter-spacing: -0.04em; margin-bottom: 0.8rem; }
.hero-text, .section-heading p, .contact-card p { color: var(--muted); font-size: 1.08rem; max-width: 720px; }

.hero-actions, .contact-links, .project-links { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.button,
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.button:hover,
.project-links a:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #071018; border-color: transparent; }
.ghost, .project-links a { background: var(--surface); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 2rem;
}
.hero-stats div {
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.hero-stats strong { display: block; font-size: 2rem; letter-spacing: -0.05em; }
.hero-stats span { display: block; color: var(--muted); font-size: 0.9rem; }

.hero-panel {
  position: relative;
  min-height: 520px;
  border-radius: 40px;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--surface), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: auto -30% -28% -30%;
  height: 260px;
  background: linear-gradient(90deg, rgba(119, 228, 200, 0.28), rgba(142, 167, 255, 0.25), rgba(245, 183, 255, 0.24));
  filter: blur(40px);
}
.terminal-card {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
  border-radius: 26px;
  overflow: hidden;
  background: rgba(5, 8, 16, 0.86);
  border: 1px solid rgba(255,255,255,0.12);
}
html[data-theme="light"] .terminal-card { background: rgba(17, 24, 39, 0.92); color: #f8fafc; }
.terminal-top { display: flex; gap: 0.45rem; padding: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.terminal-top span { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); opacity: 0.9; }
.terminal-top span:nth-child(2) { background: var(--accent-2); }
.terminal-top span:nth-child(3) { background: var(--accent-3); }
pre { margin: 0; padding: 1.2rem; white-space: pre-wrap; font-size: clamp(0.8rem, 2vw, 1rem); }
.orbit-card {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1rem 1.25rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--bg-soft) 78%, transparent);
  box-shadow: var(--shadow);
}
.card-green { right: 2rem; top: 2rem; color: var(--accent); }
.card-blue { left: 2rem; bottom: 3rem; color: var(--accent-2); }
.card-purple { right: 3rem; bottom: 5.5rem; color: var(--accent-3); }

.intro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0 5rem;
}
.info-card,
.project-card,
.stack-card,
.contact-card,
.timeline,
.recommendation-card,
.cicd-card,
.pipeline-card,
.trouble-card,
.pipeline-flow {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.info-card { padding: 1.35rem; }
.info-icon { color: var(--accent); font-weight: 900; }
.info-card h2 { font-size: 1.3rem; letter-spacing: -0.04em; margin: 0.5rem 0; }
.info-card p, .project-content p, .stack-card p, .timeline p, .recommendation-card p, .cicd-card p, .pipeline-card p, .trouble-card p, .flow-step p { color: var(--muted); }

.section-heading { padding: 5rem 0 1.5rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.filter {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 800;
}
.filter.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #071018; border-color: transparent; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  padding-bottom: 4rem;
}
.project-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, opacity 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.project-card.featured,
.project-card.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr); }
.project-card.hidden { display: none; }
.project-content { padding: 1.6rem; }
.project-kicker { color: var(--accent); font-size: 0.84rem; font-weight: 900; margin-bottom: 0.7rem; letter-spacing: 0.04em; }
.feature-list { margin: 1rem 0 1.2rem; padding-left: 1.1rem; color: var(--muted); }
.feature-list li + li { margin-top: 0.4rem; }

.project-visual,
.project-shot {
  min-height: 330px;
  border-right: 1px solid var(--line);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bg-soft);
}
.project-shot { padding: 1rem; }
.project-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.project-visual strong {
  position: relative;
  z-index: 1;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  letter-spacing: -0.07em;
}
.browser-dots {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  display: flex;
  gap: 0.45rem;
}
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.visual-farm { background: linear-gradient(135deg, rgba(24, 88, 69, 0.75), rgba(14, 22, 40, 0.95)); }
.visual-ipo { background: linear-gradient(135deg, rgba(51, 65, 126, 0.88), rgba(12, 19, 36, 0.96)); }
.visual-oil { background: linear-gradient(135deg, rgba(96, 75, 25, 0.88), rgba(16, 22, 37, 0.96)); }
.chart-lines { position: absolute; inset: 27% 14% auto; height: 150px; display: grid; gap: 1rem; }
.chart-lines i { display: block; height: 15px; border-radius: 999px; background: rgba(255,255,255,0.2); }
.chart-lines i:nth-child(1) { width: 78%; }
.chart-lines i:nth-child(2) { width: 54%; }
.chart-lines i:nth-child(3) { width: 88%; }
.schedule-card,
.price-tile {
  position: absolute;
  right: 2rem;
  top: 4rem;
  min-width: 124px;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}
.schedule-card span,
.price-tile span { display: block; color: rgba(255,255,255,0.72); font-weight: 800; }
.schedule-card b,
.price-tile b { font-size: 2rem; }

.stack-group { display: grid; gap: 1rem; margin: 1rem 0 1.2rem; }
.stack-group strong { display: block; margin-bottom: 0.45rem; }
.stack-list { display: flex; flex-wrap: wrap; gap: 0.48rem; }
.stack-list span {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 88%, var(--accent));
  background: var(--surface-strong);
  border: 1px solid var(--line);
  font-size: 0.83rem;
  font-weight: 760;
}
.project-links { margin-top: 1.25rem; }

.stack-section { padding-bottom: 4rem; }
.stack-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stack-card { padding: 1.5rem; }
.stack-card h3 { margin-bottom: 0.55rem; }

.timeline-section { padding-bottom: 4rem; }
.timeline {
  list-style: none;
  padding: 1.3rem;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.timeline li {
  position: relative;
  padding: 1rem;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}
.timeline span { display: block; color: var(--accent); font-weight: 900; margin-bottom: 0.5rem; }
.timeline strong { display: block; font-size: 1.2rem; margin-bottom: 0.4rem; }
.timeline p { margin-bottom: 0; }

.contact { padding-bottom: 4rem; }
.contact-card {
  padding: clamp(1.4rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(119, 228, 200, 0.12), rgba(142, 167, 255, 0.1)),
    var(--surface);
}
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }



.recommendation-section { padding: 0 0 3.5rem; }
.recommendation-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    linear-gradient(135deg, rgba(119, 228, 200, 0.12), rgba(142, 167, 255, 0.08)),
    var(--surface);
}
.recommendation-card h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.recommendation-card strong { color: color-mix(in srgb, var(--accent) 82%, var(--text)); }
.position-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.position-tags span {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.project-meta {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.1rem;
}
.project-meta span {
  display: block;
  padding: 0.72rem 0.85rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  background: color-mix(in srgb, var(--surface-strong) 84%, var(--accent) 8%);
  color: color-mix(in srgb, var(--text) 90%, var(--accent));
  font-size: 0.88rem;
  font-weight: 800;
}

.cicd-section,
.pipeline-section,
.troubleshooting-section { padding-bottom: 4rem; }
.cicd-grid,
.pipeline-grid,
.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.cicd-card,
.pipeline-card,
.trouble-card { padding: 1.5rem; }
.step-number {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #071018;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
  margin-bottom: 1rem;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
}
.flow-step {
  position: relative;
  min-height: 160px;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}
.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #071018;
  background: var(--accent);
  font-weight: 950;
  margin-bottom: 0.7rem;
}
.flow-step strong { display: block; font-size: 1.05rem; margin-bottom: 0.45rem; }
.flow-step p { margin-bottom: 0; font-size: 0.92rem; }
.flow-arrow {
  display: none;
  align-self: center;
  justify-self: center;
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 900;
}
.trouble-card p { margin-bottom: 0.75rem; }
.trouble-card p:last-child { margin-bottom: 0; }
.trouble-card strong { color: var(--accent); }

@media (max-width: 920px) {
  .hero,
  .project-card.featured,
  .project-card.wide { grid-template-columns: 1fr; }
  .project-visual,
  .project-shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .intro-grid,
  .timeline,
  .recommendation-card,
  .cicd-grid,
  .pipeline-grid,
  .trouble-grid { grid-template-columns: 1fr; }
  .project-grid,
  .stack-map,
  .pipeline-flow { grid-template-columns: 1fr; }
  .position-tags { grid-template-columns: 1fr; }
  .hero-panel { min-height: 420px; }
  .flow-arrow { display: none; }
}

@media (max-width: 640px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 0.9rem 0; }
  .nav-actions { width: 100%; overflow-x: auto; padding-bottom: 0.2rem; }
  .hero { min-height: auto; padding-top: 3rem; }
  .hero-stats { grid-template-columns: 1fr; }
  .project-content { padding: 1.25rem; }
  .project-visual, .project-shot { min-height: 230px; }
  .section-heading { padding-top: 3.4rem; }
}
