/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2A7D52;
  --primary-dark: #1F5E3D;
  --primary-light: #E8F5EE;
  --bg-mint: #F0FAF5;
  --dark: #1A2E23;
  --gray: #6B7280;
  --light: #F0FAF5;
  --white: #FFFFFF;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #E5E7EB;
}

#navbar nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

#navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

#navbar ul a {
  font-size: 0.9rem;
  color: var(--dark);
  transition: color 0.2s;
}

#navbar ul a:hover { color: var(--primary); }

#navbar ul a.nav-active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

.btn-github {
  padding: 6px 16px;
  border: 1.5px solid var(--primary);
  border-radius: 20px;
  color: var(--primary) !important;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-github:hover {
  background: var(--primary);
  color: var(--white) !important;
}

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F0FAF5 0%, #E8F5EE 50%, #C8E6D4 100%);
  padding: 100px 24px 60px;
}

.hero-layout {
  max-width: 1100px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-inner {
  flex: 1;
  text-align: left;
}

.hero-images {
  flex: 0 0 auto;
  position: relative;
  width: 280px;
  height: 340px;
}

.hero-phone {
  width: 200px;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  position: absolute;
}

.hero-phone-back {
  top: 0;
  left: 0;
  transform: rotate(-6deg);
  opacity: 0.85;
}

.hero-phone-front {
  bottom: 0;
  right: 0;
  transform: rotate(4deg);
  z-index: 1;
}

@media (max-width: 860px) {
  .hero-layout { flex-direction: column; text-align: center; }
  .hero-inner { text-align: center; }
  .hero-images { width: 240px; height: 280px; }
  .hero-phone { width: 160px; }
}

.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

#hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--gray);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(42,125,82,0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(42,125,82,0.45); }

.btn-outline {
  padding: 14px 32px;
  border: 2px solid var(--dark);
  color: var(--dark);
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

.btn-outline:hover { background: var(--dark); color: var(--white); transform: translateY(-2px); }

/* ===== SECTIONS ===== */
section { padding: 96px 24px; }
section:nth-child(even) { background: var(--light); }

.container { max-width: 1100px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 10px auto 0;
}

.section-desc {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ===== ABOUT ===== */
.about-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(42,125,82,0.15); }

.about-card img {
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}

.about-card:hover img { transform: scale(1.12); }

.about-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }

.about-card p { font-size: 0.9rem; color: var(--gray); }


/* ===== POSTER ===== */
.poster-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.poster-img {
  width: 100%;
  max-width: 860px;
  border-radius: var(--radius);
  box-shadow: 0 4px 32px rgba(0,0,0,0.15);
  display: block;
}

/* ===== FEATURES ===== */
#features {
  background:
    linear-gradient(180deg, #f7fffb 0%, #eef9f3 100%);
  color: var(--dark);
  overflow: hidden;
}

#features .section-title,
#features .section-desc {
  color: var(--dark);
}

#features .section-desc {
  color: var(--gray);
}

.features-container {
  max-width: 1260px;
  margin: 0 auto;
}

.feature-carousel {
  position: relative;
}

.feature-showcase {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 28px;
}

.feature-showcase::-webkit-scrollbar {
  display: none;
}

.feature-panel {
  flex: 0 0 100%;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 52px;
  padding: 54px 70px;
  border: 1px solid rgba(42, 125, 82, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 18%, rgba(42, 125, 82, 0.16), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #ffffff 56%, #e2f4ea 100%);
  box-shadow: 0 18px 60px rgba(42, 125, 82, 0.13);
  scroll-snap-align: start;
}

.feature-copy {
  max-width: 600px;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 8px 15px;
  border-radius: 999px;
  background: #e8f5ee;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.feature-kicker span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 900;
}

.feature-kicker::after {
  content: none;
}

.feature-copy h3 {
  margin-bottom: 24px;
  color: #12231a;
  font-size: clamp(2.7rem, 5.7vw, 4.8rem);
  font-weight: 900;
  line-height: 1.12;
}

.feature-copy h3 strong {
  color: var(--primary);
  font-style: normal;
}

.nowrap {
  white-space: nowrap;
}

.feature-copy p:not(.feature-kicker) {
  max-width: 560px;
  color: #5f6f66;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.85;
  word-break: keep-all;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.feature-tags span {
  padding: 8px 15px;
  border: 1px solid rgba(42, 125, 82, 0.18);
  border-radius: 10px;
  background: rgba(255,255,255,0.76);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.feature-visual {
  justify-self: center;
  position: relative;
  width: min(100%, 260px);
  aspect-ratio: 9 / 20;
  border: 10px solid var(--dark);
  border-radius: 40px;
  background: #000;
  box-shadow: 0 24px 56px rgba(0,0,0,0.28), 0 0 0 2px rgba(255,255,255,0.07);
  overflow: hidden;
  padding: 0;
}

.feature-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 20px;
  background: var(--dark);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.feature-visual::after {
  content: none;
}

.feature-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.feature-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(42, 125, 82, 0.16);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 10px 28px rgba(42, 125, 82, 0.16);
  transition: background 0.2s, color 0.2s, opacity 0.2s, transform 0.2s;
}

.feature-nav:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-50%) scale(1.04);
}

.feature-nav:disabled {
  cursor: default;
  opacity: 0.35;
}

.feature-nav-prev {
  left: -24px;
}

.feature-nav-next {
  right: -24px;
}

.feature-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(42, 125, 82, 0.2);
  cursor: pointer;
  transition: width 0.2s, background 0.2s;
}

.feature-dot.is-active {
  width: 32px;
  background: var(--primary);
}

/* ===== USER FLOW ===== */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-step {
  text-align: center;
  max-width: 140px;
}

.flow-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.flow-step:hover .flow-circle {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(42,125,82,0.4);
}

.flow-step h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }

.flow-step p { font-size: 0.78rem; color: var(--gray); line-height: 1.5; }

.flow-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 12px;
  flex-shrink: 0;
}

/* ===== TECH STACK ===== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}

.stack-group {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.stack-group h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.badges { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== TEAM ===== */
.team-cards {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  min-width: 260px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.team-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }

.role-tag {
  background: var(--primary);
  color: var(--white);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}

.role { color: var(--primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; }

.role-detail { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-copy { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-cards { grid-template-columns: repeat(3, 1fr); }

  .feature-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 42px 28px;
  }

  .feature-copy {
    max-width: none;
  }

  .feature-copy h3 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .feature-visual {
    width: min(100%, 240px);
    aspect-ratio: 9 / 20;
    height: auto;
  }

  .feature-nav {
    width: 44px;
    height: 44px;
    font-size: 2rem;
  }

  .feature-nav-prev {
    left: 8px;
  }

  .feature-nav-next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  #navbar ul { gap: 16px; }
  #navbar ul li:not(:last-child) { display: none; }

  .about-cards { grid-template-columns: repeat(2, 1fr); }

  .flow-steps { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: 0; }
}

@media (max-width: 520px) {
  #features {
    padding-left: 16px;
    padding-right: 16px;
  }

  .feature-showcase {
    gap: 18px;
  }

  .feature-panel {
    padding: 32px 20px 76px;
    gap: 32px;
  }

  .feature-kicker {
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.82rem;
  }

  .feature-kicker::after {
    width: 34px;
  }

  .feature-copy h3 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 10.5vw, 3rem);
  }

  .feature-copy p:not(.feature-kicker) {
    font-size: 1rem;
    line-height: 1.75;
  }

  .feature-tags {
    gap: 8px;
    margin-top: 28px;
  }

  .feature-tags span {
    padding: 7px 12px;
    font-size: 0.82rem;
  }

  .feature-visual {
    width: min(100%, 200px);
    aspect-ratio: 9 / 20;
    height: auto;
  }

  .feature-nav {
    top: auto;
    bottom: 18px;
    transform: none;
    background: var(--white);
  }

  .feature-nav:hover {
    transform: scale(1.04);
  }

  .feature-dots {
    margin-top: 18px;
  }
}

/* ===== FADE-IN ANIMATION (step 4에서 JS와 연동) ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
