:root{
  --bg:#0b1020;
  --bg-soft:#121936;
  --surface:rgba(255,255,255,0.82);
  --surface-strong:#ffffff;
  --border:rgba(15,23,42,0.08);
  --text:#0f172a;
  --text-soft:#475569;
  --primary:#2563eb;
  --primary-strong:#1d4ed8;
  --accent:#7c3aed;
  --shadow:0 18px 50px rgba(15,23,42,0.10);
  --radius-xl:24px;
  --radius-lg:18px;
  --radius-md:14px;
  --container:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  padding:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,'Noto Sans KR','Apple SD Gothic Neo',sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.10), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(124,58,237,0.10), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
}

body.scroll-lock{
  overflow:hidden;
}

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

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

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

.site-header{
  position:relative;
  overflow:hidden;
  padding:40px 0 24px;
}

.hero{
  position:relative;
  padding:72px 0 28px;
  text-align:center;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,0.75);
  border:1px solid rgba(37,99,235,0.14);
  box-shadow:0 10px 30px rgba(37,99,235,0.08);
  color:var(--primary-strong);
  font-weight:700;
  font-size:14px;
  letter-spacing:.02em;
}

.hero h1{
  margin:22px 0 14px;
  font-size:clamp(40px, 6vw, 68px);
  line-height:1.02;
  letter-spacing:-0.04em;
  font-weight:800;
}

.hero-subtitle{
  margin:0;
  font-size:20px;
  font-weight:600;
  color:var(--text-soft);
}

.hero-description{
  max-width:820px;
  margin:22px auto 0;
  font-size:18px;
  line-height:1.72;
  color:var(--text-soft);
}

.hero-actions{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:14px;
  margin-top:30px;
}

.hero-meta{
  list-style:none;
  padding:0;
  margin:28px auto 0;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:12px;
}

.hero-meta li{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.72);
  border:1px solid rgba(15,23,42,0.08);
  color:var(--text-soft);
  font-size:14px;
  font-weight:600;
}

.section{
  padding:64px 0;
}

.section-alt{
  padding:64px 0;
}

.section-heading{
  margin-bottom:28px;
}

.section-kicker{
  display:inline-block;
  margin-bottom:10px;
  color:var(--primary-strong);
  font-weight:800;
  font-size:13px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.section-heading h2{
  margin:0 0 10px;
  font-size:34px;
  letter-spacing:-0.03em;
}

.section-heading p{
  margin:0;
  max-width:800px;
  color:var(--text-soft);
  line-height:1.75;
  font-size:17px;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

.feature-card{
  background:var(--surface);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:var(--shadow);
  border-radius:var(--radius-lg);
  padding:24px;
  transition:transform .18s ease, box-shadow .18s ease;
}

.feature-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 56px rgba(15,23,42,0.14);
}

.feature-card h3{
  margin:0 0 10px;
  font-size:20px;
  letter-spacing:-0.02em;
}

.feature-card p{
  margin:0;
  color:var(--text-soft);
  line-height:1.7;
  font-size:15px;
}

.code-card,
.about-card{
  background:var(--surface);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:var(--shadow);
  border-radius:var(--radius-xl);
  padding:28px;
}

.code-card h3{
  margin:0 0 10px;
  font-size:26px;
  letter-spacing:-0.03em;
}

.code-card p,
.about-card p{
  margin:0;
  color:var(--text-soft);
  line-height:1.8;
  font-size:16px;
}

.about-card p + p{
  margin-top:14px;
}

.check-list{
  margin:18px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}

.check-list li{
  position:relative;
  padding-left:24px;
  color:var(--text-soft);
  line-height:1.7;
}

.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  top:0;
  color:var(--primary);
  font-weight:800;
}

.code-card-actions{
  margin-top:20px;
}

.project-card{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap:24px;
  align-items:center;
  padding:28px;
  margin-top:22px;
  border-radius:var(--radius-xl);
  background:var(--surface);
  backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease;
}

.project-card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 56px rgba(15,23,42,0.14);
}

.project-label{
  display:inline-block;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(37,99,235,0.10);
  color:var(--primary-strong);
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.project-content h3{
  margin:0 0 16px;
  font-size:32px;
  letter-spacing:-0.03em;
}

.project-content p{
  margin:18px 0 0;
  color:var(--text-soft);
  line-height:1.8;
  font-size:16px;
}

.project-meta{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px 16px;
}

.project-meta li{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  border-radius:12px;
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(15,23,42,0.06);
  font-size:14px;
}

.project-meta strong{
  color:var(--text);
}

.project-meta span{
  color:var(--text-soft);
  text-align:right;
}

.project-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.project-tags span{
  padding:8px 12px;
  border-radius:999px;
  background:#eef4ff;
  color:var(--primary-strong);
  font-size:13px;
  font-weight:700;
  border:1px solid #dce8ff;
}

.project-actions{
  margin-top:22px;
}

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

.project-gallery img{
  width:100%;
  height:190px;
  object-fit:cover;
  border-radius:16px;
  border:1px solid rgba(15,23,42,0.08);
  box-shadow:0 10px 24px rgba(15,23,42,0.08);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}

.project-gallery img:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 30px rgba(15,23,42,0.14);
}

.project-gallery img:first-child:nth-last-child(3){
  grid-column:span 2;
  height:220px;
}

.project-gallery.two{
  grid-template-columns:1fr;
}

.project-gallery.two img{
  height:200px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  transition:transform .16s ease, background .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow:0 12px 28px rgba(37,99,235,0.22);
}

.btn-primary:hover{
  box-shadow:0 16px 34px rgba(37,99,235,0.28);
}

.btn-secondary{
  color:var(--text);
  background:rgba(255,255,255,0.8);
  border:1px solid rgba(15,23,42,0.08);
}

.site-footer{
  padding:28px 0 48px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding-top:20px;
  border-top:1px solid rgba(15,23,42,0.08);
  color:var(--text-soft);
  font-size:15px;
}

.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.footer-links a{
  color:var(--text-soft);
}

.footer-links a:hover{
  color:var(--primary-strong);
}

.bg-orb{
  position:fixed;
  z-index:-1;
  border-radius:50%;
  filter:blur(60px);
  opacity:.35;
  pointer-events:none;
}

.orb-1{
  width:260px;
  height:260px;
  background:#60a5fa;
  top:40px;
  left:-40px;
}

.orb-2{
  width:240px;
  height:240px;
  background:#a78bfa;
  top:180px;
  right:-60px;
}

.lightbox{
  position:fixed;
  inset:0;
  background:rgba(5,10,22,0.88);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:30px;
}

.lightbox.open{
  display:flex;
}

.lightbox img{
  max-width:min(1100px, 92vw);
  max-height:84vh;
  border-radius:18px;
  box-shadow:0 20px 60px rgba(0,0,0,.45);
}

.lightbox-close{
  position:absolute;
  top:22px;
  right:24px;
  width:48px;
  height:48px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

.lightbox-caption{
  position:absolute;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  color:#eef2ff;
  background:rgba(0,0,0,.30);
  padding:10px 16px;
  border-radius:999px;
  font-size:14px;
}

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

  .project-card{
    grid-template-columns:1fr;
  }
}

@media (max-width: 720px){
  .container{
    width:min(var(--container), calc(100% - 24px));
  }

  .hero{
    padding:56px 0 16px;
  }

  .hero-subtitle{
    font-size:18px;
  }

  .hero-description{
    font-size:16px;
  }

  .section{
    padding:48px 0;
  }

  .section-alt{
    padding:48px 0;
  }

  .section-heading h2{
    font-size:28px;
  }

  .feature-grid{
    grid-template-columns:1fr;
  }

  .project-meta{
    grid-template-columns:1fr;
  }

  .project-gallery{
    grid-template-columns:1fr;
  }

  .project-gallery img,
  .project-gallery.two img,
  .project-gallery img:first-child:nth-last-child(3){
    height:180px;
    grid-column:auto;
  }

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }
}