/* ===== SNN Portfolio — Shared Styles ===== */
:root {
  --bg:       #0a0a0f;
  --bg2:      #12121a;
  --bg3:      #1a1a2e;
  --surface:  #1e1e30;
  --border:   #2a2a40;
  --text:     #e4e4ef;
  --text2:    #9999b0;
  --accent:   #6c63ff;
  --accent2:  #00d4aa;
  --danger:   #ff4d6a;
  --warn:     #ffb84d;
  --radius:   12px;
  --max-w:    1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.nav-brand span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: var(--text2); font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* ---- Hero ---- */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,.12) 0%, transparent 60%);
}
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(108,99,255,.15);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,99,255,.35);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(108,99,255,.5); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-accent2 {
  background: linear-gradient(135deg, var(--accent2), #00b894);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(0,212,170,.3);
}
.btn-accent2:hover { box-shadow: 0 6px 28px rgba(0,212,170,.45); color: #0a0a0f; }
.btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Section ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.section-title {
  font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 12px;
}
.section-sub {
  text-align: center; color: var(--text2); max-width: 560px; margin: 0 auto 48px;
}

/* ---- Cards Grid ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text2); font-size: .92rem; }

/* ---- Feature List ---- */
.feature-list { list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(0,212,170,.15);
  color: var(--accent2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .8rem; font-weight: 700;
}
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list .desc { color: var(--text2); font-size: .88rem; }

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
  margin-top: 48px;
}
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text2); font-size: .85rem; margin-top: 4px; }

/* ---- Tech Stack ---- */
.tech-stack {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 24px;
}
.tech-tag {
  padding: 6px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--text2);
  font-weight: 500;
}

/* ---- Screenshot ---- */
.screenshot-frame {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 40px auto;
  max-width: 720px;
  text-align: center;
}
.screenshot-frame .mock {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: .85rem;
  color: var(--accent2);
  text-align: left;
  line-height: 1.8;
  overflow-x: auto;
}
.screenshot-frame .mock .prompt { color: var(--accent); }
.screenshot-frame .mock .output { color: var(--text2); }
.screenshot-frame .mock .cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Phone Mock ---- */
.phone-mock {
  width: 280px;
  margin: 40px auto;
  background: #1a1a2e;
  border-radius: 36px;
  border: 3px solid var(--border);
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  padding: 32px 20px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.phone-notch {
  width: 120px; height: 24px;
  background: #1a1a2e;
  border-radius: 0 0 16px 16px;
  margin: -12px auto 16px;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text2);
  font-size: .85rem;
}
.footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; }

/* ---- Product Cards (Portfolio) ---- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .2s, transform .2s, box-shadow .3s;
}
.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108,99,255,.15);
}
.product-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.product-card h3 { font-size: 1.4rem; font-weight: 700; }
.product-card .tagline { color: var(--text2); font-size: .95rem; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.product-tags span {
  padding: 4px 10px;
  background: var(--bg3);
  border-radius: 6px;
  font-size: .78rem;
  color: var(--text2);
}
.product-card .product-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: .92rem;
}
.product-card .product-link:hover { gap: 10px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 1.8rem; }
  .section { padding: 48px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .btn-group { flex-direction: column; align-items: center; }
  .product-card { padding: 28px; }
}
