/* =====================================================
   INHWA TECHWIN — style.css
   Dark premium theme / Pretendard / Responsive
   ===================================================== */

:root {
  --bg: #060a14;
  --bg-alt: #0a101f;
  --surface: #0e1526;
  --surface-2: #121b31;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e8edf6;
  --muted: #93a1b8;
  --accent: #4f8dff;
  --accent-2: #38e0c8;
  --grad: linear-gradient(120deg, #4f8dff 0%, #38e0c8 100%);
  --radius: 16px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Noto Sans KR", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(79, 141, 255, 0.35); }

img, svg { display: block; }

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

.container {
  width: min(1140px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s ease, padding 0.35s ease,
    border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 12px 0;
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-mark { width: 34px; height: 34px; }
.brand-text {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.brand-text small {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav > a:not(.btn) {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav > a:not(.btn):hover,
.nav > a:not(.btn).active { color: var(--text); }
.nav > a:not(.btn).active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: #04101f;
  box-shadow: 0 8px 24px rgba(56, 130, 246, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 130, 246, 0.4);
}
.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.12); }
.btn-sm { padding: 9px 20px; font-size: 0.88rem; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, #000 30%, transparent 75%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: float 12s ease-in-out infinite alternate;
}
.orb-1 {
  width: 480px; height: 480px;
  top: -140px; right: -100px;
  background: radial-gradient(circle, rgba(79, 141, 255, 0.4), transparent 65%);
}
.orb-2 {
  width: 420px; height: 420px;
  bottom: -160px; left: -120px;
  background: radial-gradient(circle, rgba(56, 224, 200, 0.24), transparent 65%);
  animation-delay: -6s;
}
@keyframes float {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-30px, 30px) scale(1.08); }
}

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero-title em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 40px;
  word-break: keep-all;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 720px;
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.85rem; color: var(--muted); }
.stat-divider { width: 1px; height: 36px; background: var(--line); }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  z-index: 1;
}
.scroll-hint span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc { color: var(--muted); font-size: 1.04rem; word-break: keep-all; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.about-copy h3 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.3;
  margin-bottom: 26px;
}
.about-copy p { color: var(--muted); margin-bottom: 18px; word-break: keep-all; }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(79, 141, 255, 0.4); }
.info-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.info-card h4 { font-size: 1.06rem; font-weight: 700; margin: 10px 0 8px; }
.info-card p { font-size: 0.9rem; color: var(--muted); word-break: keep-all; }

/* ---------- Business ---------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.biz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.biz-card:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 141, 255, 0.45);
  box-shadow: 0 20px 44px rgba(3, 8, 20, 0.5);
}
.biz-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(79, 141, 255, 0.1);
  color: var(--accent);
  margin-bottom: 22px;
}
.biz-icon svg { width: 26px; height: 26px; }
.biz-card h3 { font-size: 1.14rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.biz-card > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 18px; word-break: keep-all; flex-grow: 1; }
.biz-card ul {
  list-style: none;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: grid;
  gap: 7px;
}
.biz-card li {
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 16px;
  position: relative;
}
.biz-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.biz-card-cta {
  background: linear-gradient(150deg, rgba(79, 141, 255, 0.16), rgba(56, 224, 200, 0.08));
  border-color: rgba(79, 141, 255, 0.35);
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
}
.biz-card-cta h3 { font-size: 1.35rem; line-height: 1.35; }
.biz-card-cta p { flex-grow: 0; margin-bottom: 24px; }

/* ---------- Values ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  padding: 32px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(56, 224, 200, 0.4); }
.value-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.9;
}
.value-card h3 { font-size: 1.14rem; font-weight: 700; margin: 16px 0 10px; }
.value-card p { font-size: 0.92rem; color: var(--muted); word-break: keep-all; }

/* ---------- Careers ---------- */
.career-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 44px;
}
.career-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.career-card:hover { transform: translateY(-4px); border-color: rgba(79, 141, 255, 0.4); }
.career-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.career-card p { font-size: 0.92rem; color: var(--muted); word-break: keep-all; }

.apply-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(120deg, rgba(79, 141, 255, 0.14), rgba(56, 224, 200, 0.08));
  border: 1px solid rgba(79, 141, 255, 0.3);
  border-radius: 20px;
  padding: 40px 44px;
}
.apply-copy { max-width: 620px; }
.apply-copy h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.apply-copy p { color: var(--muted); font-size: 0.97rem; word-break: keep-all; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(79, 141, 255, 0.4); }
.contact-icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(56, 224, 200, 0.09);
  color: var(--accent-2);
  margin-bottom: 20px;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.95rem; word-break: keep-all; }
.contact-note {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--accent-2);
}
.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-link:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.map-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 36px;
}
.map-copy h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.map-copy p { color: var(--muted); font-size: 0.93rem; }
.map-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: #04070f;
  padding: 56px 0 36px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-info p { font-size: 0.86rem; color: var(--muted); margin-bottom: 6px; word-break: keep-all; }
.footer-info a { color: var(--text); }
.footer-info a:hover { text-decoration: underline; }
.copyright { margin-top: 24px; font-size: 0.8rem; color: rgba(147, 161, 184, 0.55); }

/* ---------- Reveal animation (only when JS is available) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .scroll-hint span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .career-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 768px) {
  .section { padding: 84px 0; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: rgba(4, 7, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav.open { opacity: 1; pointer-events: auto; }
  .nav > a:not(.btn) { font-size: 1.3rem; color: var(--text); }
  .nav-toggle { display: flex; }
  .hero { padding: 120px 0 90px; min-height: auto; }
  .hero-stats { gap: 20px; }
  .scroll-hint { display: none; }
  .br-pc { display: none; }
  .apply-box { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
  .map-box { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .biz-grid { grid-template-columns: 1fr; }
  .value-grid, .career-grid, .about-cards { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .stat strong { font-size: 1.2rem; }
}
