/* =========================================================
   1. RESET & GLOBAL
========================================================= */
*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:#f7f9fc;
  color:#07111f;
  font-family:Pretendard,'Noto Sans KR',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

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

/* =========================================================
   2. HEADER
========================================================= */
.header{
  height:126px;
  width:1280px;
  margin:0 auto;
  padding:26px 0px 26px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:#f8fafc;
  border-bottom:1px solid #e2e8f0;
}

.logo img{width:160px}
.top-btn{height:42px;padding:0 16px;font-size:13px;gap:12px
}

/* =========================================================
   3. BUTTON
========================================================= */
.top-btn,
.btn{
  height:58px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border-radius:8px;
  padding:0 34px;
  font-weight:800;
  font-size:15px;
  transition:all .3s cubic-bezier(.16,1,.3,1);
}

.top-btn,
.btn.dark{
  background:#07111f;
  color:#fff;
  box-shadow:0 4px 12px rgba(7,17,31,.08);
}

.top-btn:hover,
.btn.dark:hover{
  background:#1e293b;
  transform:translateY(-2px);
  box-shadow:0 8px 20px rgba(7,17,31,.15);
}

.btn.light{
  background:rgba(255,255,255,.85);
  border:1px solid #cbd5e1;
  color:#334155;
  backdrop-filter:blur(4px);
}

.btn.light:hover{
  background:#fff;
  border-color:#94a3b8;
  transform:translateY(-2px);
  box-shadow:0 6px 15px rgba(0,0,0,.05);
}

/* =========================================================
   4. HERO
========================================================= */
.hero{
  height:590px;
  position:relative;
  overflow:hidden;
  max-width:1280px;
  margin:0 auto 16px;
  padding:0 24px;
  background:#f8fafc;
}

.hero-bg{
  position:absolute;
  inset:0;
  border-radius:20px;
  overflow:hidden;
  background:
    linear-gradient(
      90deg,
      #f8fafc 0%,
      #f8fafc 35%,
      rgba(248,250,252,.85) 55%,
      rgba(248,250,252,0) 100%
    ),
    url('../assets/ui/hero.png') 75% center/100% auto no-repeat;
}

.hero-copy{
  position:relative;
  max-width:1280px;
  margin:0 auto;
  padding:70px 0;
}

.hero h1{
  font-size:76px;
  line-height:1.05;
  letter-spacing:-.04em;
  margin:0 0 28px;
  font-weight:800;
  color:#0f172a;
}

.hero p{
  font-size:19px;
  line-height:1.75;
  font-weight:500;
  color:#475569;
  margin:0 0 38px;
  word-break:keep-all;
}


.hero-actions{
  display:flex;
  gap:28px;
}

/* =========================================================
   5. FEATURES
========================================================= */
.features{
  max-width:1280px;
  margin:0 auto;
  padding:60px 24px 54px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:#fff;
  border-radius:16px;
  box-shadow:0 4px 20px rgba(15,23,42,.03);
}

.features article{
  text-align:center;
  border-left:1px solid #e2e8f0;
  padding:10px 20px;
  transition:transform .3s ease;
}

.features article:hover{
  transform:translateY(-4px);
}

.features article:first-child{
  border-left:none;
}

.ico{
  font-size:38px;
  margin-bottom:14px;
}

.purple{
  color:#8f4dc2;
}

.blue{
  color:#2563eb;
}

.green{
  color:#10b981;
}

.orange{
  color:#ef4b2e;
}

.features h3{
  margin:0 0 13px;
  font-size:18px;
}

.features p{
  margin:0;
  font-size:15px;
  line-height:1.7;
  font-weight:600;
  color:#263244;
}

/* =========================================================
   6. SECTION COMMON
========================================================= */
.section{
  max-width:1280px;
  margin:0 auto;
  padding:44px 24px 0;
}

.eyebrow{
  font-size:13px;
  color:#2563eb;
  font-weight:900;
  margin:0 0 8px;
}

.section h2{
  font-size:32px;
  letter-spacing:-.04em;
  margin:0 0 30px;
}

/* =========================================================
   7. PRODUCT / PROJECT CARD
========================================================= */
.cards{
  display:flex;
  gap:28px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:22px;
}

.cards::-webkit-scrollbar{
  height:8px;
}

.cards::-webkit-scrollbar-thumb{
  background:#c9d2df;
  border-radius:99px;
}

.card{
  flex:0 0 220px;
  scroll-snap-align:start;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(15,23,42,.03);
  transition:all .3s cubic-bezier(.16,1,.3,1);
}

.card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 24px rgba(15,23,42,.08);
  border-color:#cbd5e1;
}

.card img{
  width:100%;
  height:165px;
  object-fit:cover;
  display:block;
  border-bottom:1px solid #f1f5f9;
}

.card-body{
  padding:22px 20px 24px;
}

.project-cards .card-body{
  padding:12px 20px 24px;
}

.card h3{
  font-size:20px;
  line-height:1.35;
  margin:0 0 14px;
  padding-bottom:14px;
  border-bottom:1px solid #d8dde6;
  white-space:pre-line;
}

.card .subtitle{
  font-size:16px;
  line-height:1.4;
  font-weight:800;
  color:#3b82f6;
  margin:0 0 14px;
  white-space:pre-line;
}

.card .desc{
  font-size:13.5px;
  line-height:1.65;
  color:#475569;
  white-space:pre-line;
  margin:0;
  font-weight:700;
}

#products .cards{
  gap:24px;
}

#products .card{
  flex:0 0 228px;
}

#products .card .desc{
  font-weight:600;
}

.project-cards .card img{
  width:86%;
  height:118px;
  margin:10px auto 2px;
  object-fit:contain;
  display:block;
  border-bottom:none;
}

/* =========================================================
   8. CONTACT
========================================================= */
.contact{
  max-width:1280px;
  margin:80px auto 0;
  padding:60px 40px;
  display:grid;
  grid-template-columns:1.8fr auto auto;
  gap:40px;
  align-items:center;
  background:#fff;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(15,23,42,.04);
  border:1px solid #e2e8f0;
}

.contact h2{
  font-size:31px;
  line-height:1.28;
  margin:0 0 14px;
  letter-spacing:-.04em;
}

.contact p{
  font-size:17px;
  line-height:1.7;
  margin:6px 0;
}

.contact .btn.dark{
  margin-right:30px;
}

/* =========================================================
   9. FOOTER
========================================================= */
footer{
  width:1380px;
  margin:30px auto 0;
  background:#07111f;
  color:#94a3b8;
  padding:60px 40px;
  display:grid;
  grid-template-columns:180px 1.25fr 1fr 1fr 1fr;
  gap:40px;
  align-items:flex-start;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
}

footer img{
  width:150px;
}

footer p{
  margin:0;
  font-size:13.5px;
  line-height:1.8;
  color:#cbd5e1;
}

/* =========================================================
   10. CLIENT LOGO
========================================================= */
.client-section{
  max-width:1280px;
  margin:0 auto;
  padding:34px 24px 0;
}

.client-row{
  display:flex;
  gap:28px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:0 0 26px;
  max-width:calc((218px * 5) + (28px * 4));
}

.client-row::-webkit-scrollbar{
  height:8px;
}

.client-row::-webkit-scrollbar-thumb{
  background:#c9d2df;
  border-radius:99px;
}

.client-card{
  flex:0 0 210px;
  height:92px;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  scroll-snap-align:start;
  box-shadow:0 4px 10px rgba(15,23,42,.02);
  transition:all .3s ease;
}

.client-card:hover{
  border-color:#cbd5e1;
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(15,23,42,.06);
}

.client-card img{
  max-width:78%;
  max-height:62px;
  object-fit:contain;
  filter:grayscale(1);
  opacity:.86;
}

.client-card:hover img{
  filter:grayscale(0);
  opacity:1;
}

/* =========================================================
   11. PARTNER LOGO
========================================================= */

.partner-section{
  padding-top:28px;
}

/* =========================================================
   12. MOBILE (≤900px)
========================================================= */
@media(max-width:900px){

  body{
    overflow-x:hidden;
  }

  .header{
  height:126px;
  width:1280px;
  margin:0 auto;
  padding:26px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(248,250,252,.92);
  border-bottom:1px solid #e2e8f0;
}

  .logo img{
    width:142px;
  }

  .top-btn{
    height:42px;
    padding:0 16px;
    font-size:13px;
    gap:12px;
  }

  .hero{
  height:590px;
  position:relative;
  overflow:hidden;
  max-width:1280px;
  margin:0 auto;
  padding:0 24px;
  background:#f8fafc;
  border-radius:0 0 18px 18px;
}

  .hero-bg{
    position:absolute;
    inset:0;
    background:
      linear-gradient(
        90deg,
        #f8fafc 0%,
        rgba(248,250,252,.9) 45%,
        rgba(248,250,252,.38) 75%,
        rgba(248,250,252,.08) 100%
      ),
      url('../assets/ui/hero.png') 78% center/cover no-repeat;
  }

  .hero-copy{
    position:relative;
    max-width:none;
    padding:48px 22px 0;
  }

  .hero h1{
    font-size:42px;
    line-height:1;
    margin:0 0 20px;
  }

  .hero p{
    font-size:14px;
    line-height:1.55;
    margin:0 0 20px;
  }

  .hero-actions{
    gap:10px;
    flex-wrap:wrap;
  }

  .btn{
    height:48px;
    padding:0 20px;
  }

  .features{
  max-width:1280px;
  margin:0 auto;
  padding:52px 24px 46px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  background:#fff;
  border-radius:18px;
  box-shadow:0 8px 28px rgba(15,23,42,.04);
}

.features article{
  text-align:center;
  border-left:1px solid #e2e8f0;
  padding:10px 20px;
  transition:transform .25s ease;
}

.features article:hover{
  transform:translateY(-4px);
}

  .section{
    max-width:none;
    padding:40px 22px 0;
  }

  .card{
  flex:0 0 220px;
  scroll-snap-align:start;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 6px 16px rgba(15,23,42,.04);
  transition:all .3s cubic-bezier(.16,1,.3,1);
}

.card h3{
  font-size:20px;
  line-height:1.35;
  margin:0 0 14px;
  padding-bottom:14px;
  border-bottom:1px solid #edf2f7;
  white-space:pre-line;
  color:#0f172a;
}

.card .subtitle{
  font-size:16px;
  line-height:1.35;
  font-weight:900;
  margin:0 0 18px;
  white-space:pre-line;
  color:#2563eb;
}

  .contact{
  max-width:1280px;
  margin:72px auto 0;
  padding:56px 40px;
  display:grid;
  grid-template-columns:1.8fr auto auto;
  gap:36px;
  align-items:center;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:22px;
  box-shadow:0 12px 32px rgba(15,23,42,.045);
}

footer{
  width:1380px;
  margin:80px auto 0;
  background:#07111f;
  color:#dbe5f0;
  padding:42px 32px;
  display:grid;
  grid-template-columns:180px 1.25fr 1fr 1fr 1fr;
  gap:36px;
  align-items:center;
  border-top-left-radius:22px;
  border-top-right-radius:22px;
}

  .client-section{
    max-width:none;
    padding:34px 22px 0;
  }

  .client-row{
    max-width:none;
  }

  .client-card{
    flex-basis:48vw;
    height:86px;
  }

  .client-card img{
    max-height:54px;
  }

}