:root {
  --brand: #469165;
  --brand-2: #69b187;
  --text: #2b2b2b;
  --muted: #3b322b;
  --bg: #f9f8f5;
  --border: rgba(0, 0, 0, 0.22);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --maxw: 1280px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: var(--brand);
  text-decoration: none;
}
.navigator:hover {
  text-decoration: underline;
}

/* NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav .wrap {
  max-width: var(--maxw);
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}
.brand .logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: radial-gradient(circle at 30% 30%, #5ba67d, #2f6247 60%);
  display: inline-block;
  position: relative;
  box-shadow: var(--shadow);
}
.brand small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  margin-top: -2px;
}
.brand:hover {
  text-decoration: none;
  opacity: 1;
}
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav a {
  color: #111;
  font-weight: 600;
  font-size: 15px;
}

.menu-btn {
  display: none;
}

section {
  scroll-margin-top: 72px;
}

/* HERO */
.hero {
  background-image: url("../assets/bg2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  position: relative;
  min-height: 500px;
  height: 100vh;
  display: flex;
  flex-direction: column; /* 위에 텍스트, 아래 화살표 배치 */
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero .wrap {
  max-width: var(--maxw);
  margin: auto;
  position: relative;
  z-index: 2;
}

.scroll-down {
  position: absolute;
  bottom: 20%;
  left: 0; /* ✅ */
  right: 0; /* ✅ */
  margin: 0 auto; /* ✅ 가운데 정렬 */
  width: max-content; /* 내용만큼 너비 */
  color: #fff;
  cursor: pointer;
  animation: float 2s ease-in-out infinite;
  text-decoration: none;
  z-index: 3;
}

.scroll-down .material-symbols-outlined {
  font-size: 40px;
}

.scroll-down:hover {
  opacity: 0.8;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

#intro {
  margin-top: 10px;
}

#home-text {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #f9f8f5;
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  align-self: flex-start;
  text-transform: uppercase;
}
.icon-eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #f9f8f5;
  font-weight: 600;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  align-self: flex-start;
  text-transform: uppercase;
}

.icon-eyebrow .eyebrow-icon {
  font-size: 30px; /* 아이콘 크기 */
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  border: 1.5px solid #111;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  background: #111;
  color: #fff;
}
.btn.secondary {
  background: #fff;
  color: #111;
  border-color: #111;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* SECTIONS */
.section {
  padding: 72px 20px;
}
.section .wrap {
  max-width: var(--maxw);
  margin: auto;
}
.kicker {
  margin-bottom: 16px;
}
.h2 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(22px, 4.8vw, 36px);
  margin: 8px 0 10px;
}
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}
.learn {
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
}
.learn:hover {
  text-decoration: underline;
}
.alt {
  background: #f5faf7;
}

/* LAYOUT HELPERS */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 왼쪽 오른쪽 반반 */
  gap: 40px;
  align-items: center;
}

.two-col .col.left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-col .col.right {
  display: flex;
  justify-content: center;
}

.sensor-img {
  max-width: 70%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .two-col .col.left {
    align-items: flex-start;
  }

  .two-col .col.right {
    justify-content: center;
    margin-bottom: 20px;
  }

  .sensor-img {
    max-width: 90%;
  }
}

/* STORY */
/* 2열 레이아웃 기본 */
#story .wrap.two-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

/* 왼쪽 텍스트 */
.story-text {
  flex: 1;
  max-width: 50%;
}

/* 오른쪽 이미지 */
.story-image {
  flex: 1;
  max-width: 50%;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* 반응형 */
@media (max-width: 768px) {
  #story .wrap.two-col {
    flex-direction: column;
  }
  .story-text,
  .story-image {
    max-width: 100%;
  }
}

/* VALUES */

#values {
  background: #e7e1da;
  padding-top: 100px; /* 위쪽만 조정 */
}

#values .h2,
#values .lead {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#values .lead {
  max-width: 680px;
}
#values .card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 48px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card .icon {
  font-size: 32px;
  display: inline-block;
  margin-bottom: 12px;
}

.card .green {
  color: var(--brand);
}

.card h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 16px;
}

.icon-box.material-symbols-outlined {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: #469165;
  color: #fff;
  border-radius: 12px;
  font-size: 32px;
  margin-bottom: 6px;
}

.icon-box.orange {
  background: #d6741f;
}

@media (max-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* STATS */

.stats {
  background: var(--brand);
  color: #fff;
  text-align: center;
}

.stats .wrap {
  max-width: var(--maxw);
  margin: auto;
}

.stats .h2.center {
  color: #fff;
}

.stats .lead.center {
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.stat-card {
  background: #fff;
  color: var(--brand);
  padding: 28px 20px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-card h3 {
  font-size: 42px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.stat-card p {
  margin-top: 10px;
  font-size: 18px;
  color: var(--muted);
}

/*TECHNOLOGY*/
.why .center {
  text-align: center;
  max-width: 800px; /* 문장이 너무 넓게 퍼지지 않게 */
  margin-left: auto;
  margin-right: auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 1100px;
  margin: 2rem auto 0;
  gap: 1.5rem;
  align-items: stretch;
}

.why-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  height: 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.why-card span.material-symbols-outlined {
  background: #3e8c5b; /* 포인트 색상 */
  color: white;
  font-size: 2rem;
  padding: 0.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: inline-block;
}

.why-card h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.why-card p {
  color: #444;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* TEAM CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.team-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.card h3 {
  margin: 6px 0 8px;
}

/* VIDEO */
.video-wrapper {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* CONTACT FORM */

.contact-details {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow);
  color: inherit;
}
.contact-chip .material-symbols-outlined {
  font-size: 20px;
  line-height: 0;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .nav ul {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
  }
  .nav.open ul {
    display: flex;
    position: absolute;
    top: 56px;
    right: 12px;
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
  }
}

/* FOOTER */
footer {
  padding: 30px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--muted);
}
footer .wrap {
  max-width: var(--maxw);
  margin: auto;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: #333;
}
