/* ============================================================
   Techwin System | (주)테크윈시스템
   style.css
   ============================================================ */

:root {
  --blue: #1565c0;
  --blue-mid: #1e88e5;
  --blue-light: #e3f0fb;
  --gold: #e6a817;
  --gold-light: #fdf3d8;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --text: #1e293b;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(21, 101, 192, 0.08);
  --shadow-lg: 0 12px 48px rgba(21, 101, 192, 0.14);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #fff;
  color: var(--text);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 64px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08); }

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark { width: 36px; height: 36px; }
.nav-logo-mark svg { width: 100%; height: 100%; }
.nav-logo-texts { display: flex; flex-direction: column; line-height: 1.15; }
.nav-brand { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: 0.3px; color: var(--blue); }
.nav-brand span { color: var(--gold); }
.nav-sub { font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-sub); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  padding: 8px 20px;
  background: var(--blue);
  color: white !important;
  border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: var(--blue-mid) !important; transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 64px 80px;
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 55%, #fffbf0 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; right: -120px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: -80px; left: 40%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,168,23,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrap {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  width: 100%; position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 10px;
  background: var(--blue-light); border-radius: 20px;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}
.hero-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: blink 2s infinite; }
.hero-badge span { font-size: 12px; font-weight: 600; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; font-family: 'JetBrains Mono', monospace; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(46px, 5.5vw, 56px); font-weight: 800; line-height: 1.10;
  color: var(--gray-800); margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title .hl  { color: var(--blue); }
.hero-title .hl2 { color: var(--gold); }

.hero-desc {
  font-size: 16px; font-weight: 300; line-height: 1.8;
  color: var(--text-sub); margin-bottom: 40px;
  padding-left: 16px; border-left: 3px solid var(--blue);
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-actions { display: flex; gap: 14px; animation: fadeUp 0.7s 0.3s ease both; }

.btn-primary {
  padding: 13px 28px; background: var(--blue); color: white;
  border: none; border-radius: 6px; font-size: 15px; font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(21,101,192,0.3);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 10px 32px rgba(21,101,192,0.35); }

.btn-outline {
  padding: 13px 28px; background: white; color: var(--blue);
  border: 1.5px solid var(--blue); border-radius: 6px; font-size: 15px; font-weight: 600;
  font-family: 'Noto Sans KR', sans-serif; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.btn-outline:hover { background: var(--blue-light); }

/* ── Hero Image Slider (우측) ── */
.hero-visual { animation: fadeUp 0.7s 0.2s ease both; }

.hero-img-slider {
  position: relative;
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: #dce6f0;
}

.his-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: #c8d6e5;
  opacity: 0; transition: opacity 0.8s ease;
}
.his-slide.active { opacity: 1; }

.his-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 20px;
  background: linear-gradient(to top, rgba(10,25,60,0.72) 0%, transparent 100%);
  color: white; font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
}

.his-dots {
  position: absolute; bottom: 14px; right: 16px;
  display: flex; gap: 7px; z-index: 5;
}
.his-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer; padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.his-dot.active { background: white; transform: scale(1.3); }

/* ── SECTION BASE ── */
.section { position: relative; }
.inner { max-width: 1160px; margin: 0 auto; padding: 96px 64px; }

.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500;
  color: var(--blue); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
}
.sec-tag::before { content: ''; width: 20px; height: 2px; background: var(--blue); }

.sec-title { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 700; color: var(--gray-800); line-height: 1.1; }
.sec-title em { font-style: normal; color: var(--blue); }
.sec-desc { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-top: 14px; max-width: 540px; }

/* ── SERVICES ── */
.services-bg { background: var(--gray-50); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }

.svc-card {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 0 0 32px; position: relative; overflow: hidden;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; cursor: default;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(21,101,192,0.25); }
.svc-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.svc-card:hover::after { transform: scaleX(1); }

.svc-img-wrap {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: #e8edf2;
  margin-bottom: 0;
}
.svc-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: transform 0.4s;
}
.svc-card:hover .svc-img-wrap img { transform: scale(1.05); }
/* 이미지 없을 때 placeholder */
.svc-img-wrap img[src=""] ,
.svc-img-wrap img:not([src]) {
  visibility: hidden;
}
.svc-num { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); letter-spacing: 1px; margin: 20px 24px 10px; }
.svc-title { font-size: 16px; font-weight: 700; color: var(--gray-800); margin: 16px 24px 8px; }
.svc-desc { font-size: 13px; color: var(--text-sub); line-height: 1.7; margin: 0 24px; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-visual-wrap { position: relative; }
.about-img-bg {
  width: 100%; aspect-ratio: 5/4;
  background: linear-gradient(135deg, var(--blue-light) 0%, #dbeafe 100%);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-img-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%231565c0' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-bars-wrap { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding: 0 32px; position: relative; z-index: 1; }
.ab { width: 28px; border-radius: 4px 4px 0 0; animation: growBar 1.2s ease both; }
.ab:nth-child(1) { height: 45%; background: var(--blue-mid); animation-delay: 0.1s; }
.ab:nth-child(2) { height: 72%; background: var(--blue); animation-delay: 0.2s; }
.ab:nth-child(3) { height: 58%; background: var(--blue-mid); animation-delay: 0.3s; }
.ab:nth-child(4) { height: 92%; background: var(--gold); animation-delay: 0.4s; }
.ab:nth-child(5) { height: 65%; background: var(--blue); animation-delay: 0.5s; }
.ab:nth-child(6) { height: 80%; background: var(--blue-mid); animation-delay: 0.6s; }

.about-float {
  position: absolute; right: -24px; top: 32px;
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px; box-shadow: var(--shadow-lg);
}
.af-num { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1; }
.af-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.about-points { display: flex; flex-direction: column; gap: 28px; margin-top: 40px; }
.apoint { display: flex; gap: 16px; align-items: flex-start; }
.apoint-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.apoint-text h4 { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.apoint-text p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }

/* ── TECH TABS ── */
.tech-bg { background: var(--gray-50); }
.ttabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 48px; margin-top: 48px; }
.ttab {
  padding: 12px 26px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer; transition: color 0.2s, border-color 0.2s; font-family: 'Noto Sans KR', sans-serif;
}
.ttab.active { color: var(--blue); border-bottom-color: var(--blue); }
.ttab:hover:not(.active) { color: var(--text-sub); }

.tpanel { display: none; }
.tpanel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tpanel-text h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 700; color: var(--gray-800); margin-bottom: 14px; }
.tpanel-text p { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 24px; }
.tlist { display: flex; flex-direction: column; gap: 10px; }
.tlist-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-sub); }
.tlist-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

.tpanel-visual { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); }
.tnodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tnode { background: var(--gray-50); border: 1px solid var(--border); border-radius: 8px; padding: 14px 10px; text-align: center; transition: border-color 0.25s, background 0.25s; }
.tnode:hover { border-color: rgba(21,101,192,0.3); background: var(--blue-light); }
.tnode-icon { font-size: 22px; margin-bottom: 6px; }
.tnode-name { font-size: 11px; font-weight: 600; color: var(--text-sub); }

/* ── NEWS ── */
.news-header { display: flex; justify-content: space-between; align-items: flex-end; }
.news-more { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.news-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; margin-top: 48px; }
.ncard { background: white; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(21,101,192,0.25); }
.ncard-thumb { height: 180px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 44px; }
.ncard:first-child .ncard-thumb { height: 220px; font-size: 60px; }
.ncard-body { padding: 22px; }
.ncard-cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; color: var(--blue); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.ncard-title { font-size: 15px; font-weight: 700; color: var(--gray-800); line-height: 1.5; margin-bottom: 12px; }
.ncard:not(:first-child) .ncard-title { font-size: 13px; }
.ncard-date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-muted); }

/* ── PARTNERS ── */
.partners-section {
  background: var(--gray-50);
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.partners-head { text-align: center; margin-bottom: 56px; padding: 0 64px; }
.partners-track-wrap {
  overflow: hidden;
  padding-bottom: 4px;
  /* 양쪽 끝 페이드 효과 */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes scroll-left { to { transform: translateX(-50%); } }
.partner-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 90px;
  flex-shrink: 0;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.partner-item:hover { border-color: rgba(21,101,192,0.25); box-shadow: var(--shadow-md); }
.partner-item img {
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.3s, opacity 0.3s;
}
.partner-item:hover img { filter: grayscale(0%); opacity: 1; }

/* ── CONTACT ── */
#contact { background: #ffffff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.cinfo h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 38px; font-weight: 700; color: var(--gray-800); margin-bottom: 14px; }
.cinfo p { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin-bottom: 36px; }
.cdetails { display: flex; flex-direction: column; gap: 18px; }
.cdetail { display: flex; align-items: flex-start; gap: 14px; }
.cdetail-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.cdetail-txt label { display: block; font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; font-family: 'JetBrains Mono', monospace; }
.cdetail-txt span { font-size: 14px; color: var(--text); }

.cform { background: var(--gray-50); border: 1px solid var(--border); border-radius: 16px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 12px; font-weight: 600; color: var(--text-sub); margin-bottom: 7px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 14px; background: white; border: 1px solid var(--border);
  border-radius: 7px; color: var(--text); font-size: 14px; font-family: 'Noto Sans KR', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.fg input:focus, .fg textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(21,101,192,0.08); }
.fg textarea { height: 110px; resize: none; }
.fsub { width: 100%; padding: 13px; background: var(--blue); color: white; border: none; border-radius: 7px; font-size: 15px; font-weight: 600; font-family: 'Noto Sans KR', sans-serif; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.fsub:hover:not(:disabled) { background: var(--blue-mid); transform: translateY(-1px); }
.fsub:disabled { opacity: 0.65; cursor: not-allowed; }
.req { color: #e53e3e; font-size: 12px; }
.cf-msg { margin-top: 12px; padding: 12px 16px; border-radius: 7px; font-size: 14px; font-weight: 500; }
.cf-ok    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.cf-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.field-err-msg { display: none; font-size: 12px; color: #dc2626; margin-top: 5px; }
.fg input.field-error { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

/* ── FOOTER ── */
footer {
  background: #f1f4f8;
  border-top: 1px solid var(--border);
}
 
* ── FOOTER ── */
footer {
  background: #f1f4f8;
  border-top: 1px solid var(--border);
}
 
/* 상단: 로고 + 메뉴 */
.footer-top {
  border-bottom: 1px solid var(--border);
}
.footer-top-inner {
  max-width: 1160px; margin: 0 auto; padding: 28px 64px;
  display: flex; align-items: center; justify-content: flex-start; gap: 80px;
}
.footer-logo-wrap { display: flex; align-items: center; }
.footer-logo { height: 36px; width: auto; object-fit: contain; }
 
.footer-menu { display: flex; align-items: center; gap: 40px; }
.footer-menu a {
  font-size: 14px; font-weight: 600; color: var(--text-sub);
  text-decoration: none; transition: color 0.2s;
  letter-spacing: 0.3px;
}
.footer-menu a:hover { color: var(--blue); }
 
/* 하단: 회사정보 */
.footer-bottom {
  max-width: 1160px; margin: 0 auto; padding: 24px 64px 32px;
}

.footer-meta {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  margin-bottom: 10px;
}
.footer-meta span {
  font-size: 13px; color: var(--text-sub);
  white-space: nowrap;
}
.footer-meta strong { color: var(--text); font-weight: 600; }
.footer-copy {
  font-size: 12px; color: var(--text-muted); margin-top: 4px;
}
 
@media (max-width: 960px) {
  .footer-top-inner { padding: 20px 24px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom { padding: 20px 24px 28px; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .footer-menu { gap: 20px; }
}

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { padding: 90px 24px 60px; }
  .hero-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-card-float { display: none; }
  .inner { padding: 72px 24px; }
  .svc-grid { grid-template-columns: 1fr; }
  .about-grid, .tpanel.active, .contact-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .about-float { display: none; }
}
