/* Boryeong Technology — design system
   Palette derived from logo: deep metallic blue */
:root {
  --navy-900: #0a1f3d;
  --navy-800: #0e2a52;
  --navy-700: #123a6e;
  --blue-600: #1d5cb0;
  --blue-500: #2f7fd9;
  --blue-100: #e8f1fb;
  --blue-50: #f4f8fd;
  --steel: #8fa9c9;
  --text: #1b2637;
  --text-sub: #4a5a70;
  --line: #dde6f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(14, 42, 82, 0.10);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); line-height: 1.65; background: var(--white); word-break: keep-all; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.05rem; color: var(--navy-800); letter-spacing: -0.02em; }
.gnb { display: flex; gap: 6px; }
.gnb a {
  padding: 10px 16px; font-weight: 600; font-size: 0.98rem; color: var(--text-sub);
  border-radius: 8px; transition: color .15s, background .15s;
}
.gnb a:hover { color: var(--blue-600); background: var(--blue-50); }
.gnb a.active { color: var(--blue-600); }
.gnb a.cta {
  background: var(--blue-600); color: var(--white); margin-left: 8px;
}
.gnb a.cta:hover { background: var(--navy-700); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: .2s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--blue-600) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .35;
  background-image:
    linear-gradient(rgba(143, 169, 201, .18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 169, 201, .18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%);
}
.hero-inner { position: relative; padding: 96px 0 104px; }
.hero .eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  color: var(--steel); text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.hero h1 strong { color: #9cc4f2; }
.hero p.lead { margin-top: 20px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: #cddcf0; max-width: 620px; }
.hero-actions { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  border: 0; cursor: pointer; transition: .15s;
}
.btn-primary { background: var(--white); color: var(--navy-800); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-blue { background: var(--blue-600); color: var(--white); }
.btn-blue:hover { background: var(--navy-700); }

/* ---------- page hero (sub pages) ---------- */
.page-hero {
  color: var(--white); padding: 64px 0;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; }
.page-hero p { margin-top: 10px; color: #b9cde6; max-width: 640px; }
.breadcrumb { font-size: .85rem; color: var(--steel); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--blue-50); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head .tag {
  display: inline-block; font-size: .8rem; font-weight: 700; color: var(--blue-600);
  background: var(--blue-100); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; letter-spacing: -0.02em; color: var(--navy-800); }
.section-head p { margin-top: 12px; color: var(--text-sub); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .18s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-500); }
.card .icon { width: 52px; height: 52px; margin-bottom: 18px; }
.card h3 { font-size: 1.12rem; font-weight: 700; color: var(--navy-800); margin-bottom: 8px; }
.card p { font-size: .93rem; color: var(--text-sub); }
.card .more { display: inline-block; margin-top: 14px; font-size: .88rem; font-weight: 700; color: var(--blue-600); }

/* feature rows (detail pages) */
.feature-row {
  display: grid; grid-template-columns: 380px 1fr; gap: 48px; align-items: center;
  padding: 56px 0; border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-visual {
  border-radius: var(--radius); overflow: hidden; background: var(--blue-50);
  border: 1px solid var(--line);
}
.feature-visual svg, .feature-visual img { width: 100%; height: auto; display: block; }
.greeting-visual img { width: 100%; height: auto; display: block; }
.card-img { width: 100%; height: 150px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; display: block; }
.feature-body h3 { font-size: 1.45rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.feature-body .sub { color: var(--blue-600); font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.feature-body p { margin-top: 12px; color: var(--text-sub); }
.feature-body ul { margin-top: 16px; display: grid; gap: 8px; }
.feature-body li { padding-left: 24px; position: relative; font-size: .95rem; color: var(--text); }
.feature-body li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--blue-500); border-bottom: 2.5px solid var(--blue-500);
  transform: rotate(-45deg);
}

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.stat { text-align: center; padding: 28px 12px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--blue-600); letter-spacing: -0.02em; }
.stat span { font-size: .9rem; color: var(--text-sub); }

/* ---------- about ---------- */
.greeting {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.greeting-visual { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.greeting h2 { font-size: 1.7rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; line-height: 1.4; }
.greeting p { margin-top: 18px; color: var(--text-sub); }
.greeting .sign { margin-top: 24px; font-weight: 700; color: var(--navy-800); }

.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-box iframe, .map-placeholder { width: 100%; height: 380px; border: 0; }
.map-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--text-sub); font-size: .95rem;
}
.info-list { display: grid; gap: 14px; margin-top: 24px; }
.info-list li { display: flex; gap: 14px; align-items: baseline; }
.info-list b { min-width: 84px; color: var(--navy-800); }
.info-list span { color: var(--text-sub); }

/* ---------- notice ---------- */
.notice-list { border-top: 2px solid var(--navy-800); }
.notice-list li { border-bottom: 1px solid var(--line); }
.notice-list a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 6px; transition: background .15s; }
.notice-list a:hover { background: var(--blue-50); }
.notice-list .title { font-weight: 600; }
.notice-list .date { color: var(--text-sub); font-size: .9rem; white-space: nowrap; }

/* ---------- contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.contact-side h3 { font-size: 1.3rem; font-weight: 800; color: var(--navy-800); }
.contact-side p { margin-top: 10px; color: var(--text-sub); font-size: .95rem; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .88rem; font-weight: 700; color: var(--navy-800); }
.form-field label .req { color: #d64545; }
.form-field input, .form-field select, .form-field textarea {
  font-family: var(--font); font-size: .95rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white);
  transition: border-color .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--blue-500);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-agree { grid-column: 1 / -1; display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--text-sub); }
.form-agree input { margin-top: 3px; }
.form-submit { grid-column: 1 / -1; }
.form-submit .btn { width: 100%; justify-content: center; font-size: 1.05rem; }
.form-msg { grid-column: 1 / -1; display: none; padding: 14px; border-radius: 8px; font-size: .93rem; font-weight: 600; }
.form-msg.ok { display: block; background: #e9f8ef; color: #1c7a3d; }
.form-msg.err { display: block; background: #fdeeee; color: #c03030; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- cta band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy-800), var(--blue-600)); color: var(--white); padding: 64px 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-band p { margin-top: 8px; color: #c7d9ef; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #93a7c2; padding: 52px 0 40px; font-size: .9rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.footer-brand img { height: 34px; background: var(--white); padding: 5px 8px; border-radius: 8px; }
.footer-info { margin-top: 16px; line-height: 1.9; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a:hover { color: var(--white); }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; color: #6d82a0; }

/* ---------- home: hero split ---------- */
.hero-split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-visual svg { width: min(400px, 100%); height: auto; display: block; margin: 0 auto; }
.hv-spin, .hv-spin-rev, .hv-part { transform-box: fill-box; transform-origin: center; }
.hv-spin { animation: hvSpin 46s linear infinite; }
.hv-spin-rev { animation: hvSpin 28s linear infinite reverse; }
.hv-part { animation: hvPulse 4.5s ease-in-out infinite; }
.hv-beam { transform: translateY(120px); animation: hvBeam 4s ease-in-out infinite alternate; }
@keyframes hvSpin { to { transform: rotate(360deg); } }
@keyframes hvPulse { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
@keyframes hvBeam { from { transform: translateY(120px); } to { transform: translateY(320px); } }

.hero-rotator {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: baseline; gap: 8px; max-width: 560px;
}
.rot-num { font-size: 1.05rem; font-weight: 800; color: #9cc4f2; font-variant-numeric: tabular-nums; }
.rot-total { font-size: .85rem; color: var(--steel); margin-right: 10px; }
.rot-items { position: relative; flex: 1; min-height: 1.7em; }
.rot-item {
  position: absolute; inset: 0; margin: 0; font-size: .97rem; color: #cddcf0;
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s;
}
.rot-item.on { opacity: 1; transform: none; }

/* ---------- home: card thumbs ---------- */
.card-thumb { border-radius: 10px; overflow: hidden; margin-bottom: 18px; }
.card-thumb img { width: 100%; height: 150px; object-fit: cover; display: block; transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.05); }

/* ---------- home: why band (dark) ---------- */
.why-band {
  position: relative; overflow: hidden; padding: 84px 0; color: var(--white);
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
}
.why-band::before {
  content: ""; position: absolute; inset: 0; opacity: .3;
  background-image:
    linear-gradient(rgba(143, 169, 201, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 169, 201, .16) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 70%);
}
.why-band .container { position: relative; }
.why-band .section-head h2 { color: var(--white); }
.tag-dark { display: inline-block; font-size: .8rem; font-weight: 700; color: #9cc4f2; background: rgba(47,127,217,.18); padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.why-band .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.why-band .stat b {
  background: linear-gradient(120deg, #9cc4f2, #2f7fd9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.why-band .stat span { color: #b9cde6; }

/* ---------- home: industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind-tile {
  background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--blue-500);
  border-radius: 10px; padding: 20px 20px 18px; transition: .18s;
}
.ind-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ind-tile b { display: block; font-size: 1.02rem; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; }
.ind-tile span { font-size: .87rem; color: var(--text-sub); }

/* ---------- home: process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.step-num { display: block; font-size: 1.6rem; font-weight: 800; color: var(--blue-500); font-variant-numeric: tabular-nums; opacity: .85; }
.step b { display: block; font-size: 1.08rem; font-weight: 700; color: var(--navy-800); margin: 10px 0 6px; }
.step > span:last-child { font-size: .9rem; color: var(--text-sub); }
.step::after {
  content: "→"; position: absolute; top: 30px; right: -19px; color: var(--blue-500);
  font-weight: 700; font-size: 1.1rem;
}
.step:last-child::after { content: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hv-spin, .hv-spin-rev, .hv-part, .hv-beam { animation: none; }
  .rot-item { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-thumb img { transition: none; }
}

/* ---------- map links ---------- */
.map-links { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.btn-outline { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-600); }
.btn-outline:hover { background: var(--blue-50); }

/* ---------- legal page ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 34px 0 12px; color: var(--navy-800); }
.legal p { margin-bottom: 12px; color: var(--text-sub); line-height: 1.8; }
.legal ul { margin: 0 0 12px 18px; list-style: disc; color: var(--text-sub); line-height: 1.9; }
.footer-bottom a { color: inherit; text-decoration: underline; }
.footer-bottom a:hover { color: var(--white); }
.form-agree a { color: var(--blue-600); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .greeting, .contact-wrap { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 26px; padding: 42px 0; }
  .feature-row.reverse { direction: ltr; }
  .hero-split { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { content: none; }
}
@media (max-width: 760px) {
  .gnb {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 4vw 18px; display: none;
  }
  .gnb.open { display: flex; }
  .gnb a { padding: 14px 12px; }
  .gnb a.cta { margin: 10px 0 0; text-align: center; }
  .nav-toggle { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 80px; }
  .section { padding: 60px 0; }
  .why-band { padding: 60px 0; }
  .ind-grid, .steps { grid-template-columns: 1fr; }
  .step::after { content: none; }
}
