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

:root {
  --primary: #4DB190;
  --primary-dark: #02542D;
  --primary-light: #E2F1EC;
  --highlight: #00C8B3;
  --accent: #F0C23B;
  --text: #111111;
  --sub-text: #878787;
  --third-text: #4C5F58;
  --background: #FBFBFE;
  --white: #FFFFFF;
  --black: #000000;
  --border: #CECECE;
  --sub-bg: #D9D9D9;
  --shadow: 0px 12px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0px 20px 60px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-round: 50px;
  --gradient: linear-gradient(135deg, #4DB190 0%, #00C8B3 50%, #02542D 100%);
  --gradient-soft: linear-gradient(135deg, #E2F1EC 0%, #FBFBFE 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 254, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(206, 206, 206, 0.3);
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-icon {
  height: 36px;
  width: auto;
}

.footer-logo-icon {
  height: 40px;
  width: auto;
}

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

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--sub-text);
  transition: color 0.2s;
}

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

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: -150px;
  animation-delay: 0s;
}

.shape-2 {
  width: 350px;
  height: 350px;
  background: var(--highlight);
  bottom: -50px;
  left: -100px;
  animation-delay: 2s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 40%;
  left: 10%;
  animation-delay: 4s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-20px) scale(1.02);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-round);
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--sub-text);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-scroll-link {
  margin-top: 24px;
  text-align: center;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-round);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(77, 177, 144, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(77, 177, 144, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-text {
  background: transparent;
  color: var(--sub-text);
  padding: 14px 16px;
  border: none;
}

.btn-text:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Sections Common ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-round);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--sub-text);
}

/* ===== Problem Section ===== */
.problem-section {
  background: var(--white);
}

.problem-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 32px;
}

.problem-block {
  padding: 36px 32px;
  background: var(--background);
  border: 1px solid rgba(206, 206, 206, 0.4);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.problem-block:hover {
  box-shadow: var(--shadow-lg);
}

.problem-block-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.problem-block-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.problem-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.problem-icon-red {
  background: #FEE2E2;
  color: #DC2626;
}

.problem-icon-green {
  background: var(--primary-light);
  color: var(--primary);
}

.problem-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(206, 206, 206, 0.3);
}

.flow-item {
  padding: 8px 16px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-round);
}

.flow-item-highlight {
  background: #FEE2E2;
  color: #DC2626;
  text-decoration: line-through;
}

.flow-item-solution {
  background: var(--primary);
  color: var(--white);
}

.flow-arrow {
  font-size: 1.2rem;
  color: var(--sub-text);
  font-weight: 600;
}

.problem-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.problem-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--third-text);
  line-height: 1.7;
}

.problem-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #DC2626;
  font-weight: 700;
}

.solution-list li::before {
  color: var(--primary);
}

/* ===== Features ===== */
.features-section {
  background: var(--background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 28px;
  background: var(--background);
  border: 1px solid rgba(206, 206, 206, 0.4);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

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

.feature-card p {
  font-size: 0.9rem;
  color: var(--sub-text);
  line-height: 1.7;
}

/* ===== Feature Showcase ===== */
.showcase-section {
  background: var(--white);
}

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(206, 206, 206, 0.35);
  opacity: 1;
  transform: translateY(0);
}

.feature-showcase:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature-showcase:first-of-type {
  padding-top: 0;
}

.js-scroll-reveal .feature-showcase {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-reveal .feature-showcase.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-showcase--reverse .feature-showcase-content {
  order: 2;
}

.feature-showcase--reverse .feature-showcase-media {
  order: 1;
}

.feature-showcase-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.feature-showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-showcase-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--third-text);
  line-height: 1.75;
}

.feature-showcase-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.feature-showcase-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(206, 206, 206, 0.45);
  box-shadow: var(--shadow-lg);
  background: var(--background);
}

.feature-showcase-media img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.feature-showcase-media--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
  border: none;
  box-shadow: none;
  background: transparent;
}

.feature-showcase-media--duo img {
  border-radius: var(--radius-md);
  border: 1px solid rgba(206, 206, 206, 0.45);
  box-shadow: var(--shadow);
}

/* ===== Architecture ===== */
.architecture-section {
  background: var(--background);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 28px;
}

.arch-card {
  background: var(--white);
  border: 1px solid rgba(206, 206, 206, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.arch-card:hover {
  box-shadow: var(--shadow-lg);
}

.arch-card-header {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(206, 206, 206, 0.3);
}

.arch-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.frontend-icon {
  background: #EBF8FF;
  color: #3B82F6;
}

.backend-icon {
  background: #FEF3C7;
  color: #D97706;
}

.arch-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  flex: 1;
}

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

.arch-tree {
  padding: 24px 32px;
}

.arch-tree pre {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--third-text);
  overflow-x: auto;
}

.tree-folder {
  color: var(--primary);
  font-weight: 600;
}

.tree-comment {
  color: var(--sub-text);
  font-style: italic;
}

/* ===== Tech Stack ===== */
.techstack-section {
  background: var(--white);
}

.stack-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.stack-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.stack-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.frontend-dot {
  background: #3B82F6;
}

.backend-dot {
  background: #D97706;
}

.infra-dot {
  background: #8B5CF6;
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--background);
  border: 1px solid rgba(206, 206, 206, 0.3);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.stack-item:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.stack-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.stack-item-desc {
  font-size: 0.8rem;
  color: var(--sub-text);
}

/* ===== Team ===== */
.team-section {
  background: var(--background);
}

.team-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.team-role-box {
  background: var(--white);
  border: 1px solid rgba(206, 206, 206, 0.4);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.team-role-box:hover {
  box-shadow: var(--shadow-lg);
}

.team-role-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(206, 206, 206, 0.3);
}

.team-role-members {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 16px 20px;
  background: var(--background);
  border: 1px solid rgba(206, 206, 206, 0.3);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.team-card:hover {
  transform: translateX(4px);
  border-color: var(--primary);
}

.team-avatar {
  font-size: 2rem;
  flex-shrink: 0;
}

.team-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.team-card p {
  font-size: 0.8rem;
  color: var(--sub-text);
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0;
  background: var(--primary-light);
  color: var(--text);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer .footer-logo-icon {
  filter: none;
}

.footer .logo-text {
  color: var(--primary-dark);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--sub-text);
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--third-text);
  transition: color 0.2s;
}

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

/* ===== Scroll Animations ===== */
.feature-card,
.arch-card,
.stack-category,
.team-role-box,
.problem-block {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.arch-card.visible,
.stack-category.visible,
.team-role-box.visible,
.problem-block.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .section {
    padding: 70px 0;
  }

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

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

  .stack-categories {
    grid-template-columns: 1fr;
  }

  .problem-content {
    grid-template-columns: 1fr;
  }

  .feature-showcase,
  .feature-showcase--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 0;
  }

  .feature-showcase--reverse .feature-showcase-content,
  .feature-showcase--reverse .feature-showcase-media {
    order: unset;
  }

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

  .problem-flow {
    gap: 8px;
  }

  .flow-item {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}