/* ============================================================
   SB PANEL TECH — Style System
   Deep Navy + White + Gold | Architectural Panel / MBB restraint
   ============================================================ */

:root {
  --color-primary: #0A1628;
  --color-primary-light: #1B2A4A;
  --color-white: #FFFFFF;
  --color-offwhite: #F7F8FA;
  --color-accent: #C9A96E;
  --color-accent-bright: #D8BC84;
  --color-text-gray: #8892A0;
  --color-text-dark: #3A4555;
  --color-border: rgba(255, 255, 255, 0.10);
  --color-border-light: rgba(10, 22, 40, 0.10);

  --font-primary: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;

  --max-width: 1200px;
  --section-padding: 104px 24px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-padding-top: 72px; }

body {
  font-family: var(--font-primary);
  font-weight: var(--fw-regular);
  color: var(--color-primary);
  background: var(--color-white);
  line-height: 1.75;
  font-size: 16px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.mobile-br { display: none; }

/* Scroll animation */
.fade-in { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-group > .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-group > .fade-in:nth-child(2) { transition-delay: 0.10s; }
.fade-in-group > .fade-in:nth-child(3) { transition-delay: 0.20s; }
.fade-in-group > .fade-in:nth-child(4) { transition-delay: 0.30s; }

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Shared eyebrow label */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.section-heading {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: #0A1628 !important;
  -webkit-text-fill-color: #0A1628;
  background: var(--color-accent);
  padding: 14px 34px;
  letter-spacing: 0.03em;
  border: 1px solid var(--color-accent);
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:hover { background: var(--color-accent-bright); border-color: var(--color-accent-bright); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: #FFFFFF !important;
  -webkit-text-fill-color: #FFFFFF;
  padding: 14px 34px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255,255,255,0.35);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--color-accent); background: rgba(201,169,110,0.08); }

/* ==================== NAV ==================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  transition: background 0.3s var(--ease);
}
.nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent) 50%, transparent 100%);
}
.nav__inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 11px; }
.nav__logo-img { height: 30px; width: auto; display: block; }
.nav__logo-word {
  font-family: var(--font-serif); font-weight: 700; font-size: 19px;
  color: var(--color-white); letter-spacing: 0.04em; line-height: 1;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a {
  font-size: 15px; font-weight: var(--fw-regular); color: var(--color-text-gray);
  letter-spacing: 0.01em; transition: color 0.25s var(--ease);
}
.nav__links a:hover { color: var(--color-white); }
.nav__cta {
  font-size: 13px; font-weight: var(--fw-bold);
  color: #0A1628 !important; -webkit-text-fill-color: #0A1628;
  background: var(--color-accent); padding: 9px 22px; letter-spacing: 0.04em;
  transition: background 0.25s var(--ease), transform 0.2s var(--ease);
}
.nav__cta:hover { background: var(--color-accent-bright); transform: translateY(-1px); }

.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); margin: 5px 0; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--color-primary); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,22,40,0.86) 0%, rgba(10,22,40,0.58) 40%, rgba(10,22,40,0.18) 74%, rgba(10,22,40,0.06) 100%),
    linear-gradient(0deg, rgba(10,22,40,0.42) 0%, rgba(10,22,40,0) 55%);
}
.hero__content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 0 24px; width: 100%; }
.hero__eyebrow {
  font-family: var(--font-serif); font-size: 15px; font-weight: 600; color: var(--color-accent);
  letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px;
}
.hero__title {
  font-size: clamp(38px, 6vw, 74px); font-weight: var(--fw-bold); color: var(--color-white);
  line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero__title .accent { color: var(--color-accent); }
.hero__sub {
  font-size: clamp(16px, 2vw, 20px); font-weight: var(--fw-light); color: #D6DCE4;
  line-height: 1.7; max-width: 540px; margin-bottom: 44px;
}
.hero__sub p { margin: 0 0 15px; }
.hero__sub p:last-child { margin-bottom: 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; }
.hero__scroll span { display: block; width: 1px; height: 46px; background: linear-gradient(var(--color-accent), transparent); margin: 0 auto; }

/* ==================== ABOUT ==================== */
.about { background: var(--color-offwhite); padding: var(--section-padding); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about__lead {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: var(--fw-semibold); line-height: 1.4;
  color: var(--color-primary); letter-spacing: -0.01em; margin-bottom: 26px;
}
.about__body p { font-size: 16px; color: var(--color-text-dark); margin-bottom: 22px; line-height: 1.85; }
.about__body p:last-child { margin-bottom: 0; }
.about__visual { position: relative; }
.about__visual img { width: 100%; height: 460px; object-fit: cover; }
.about__visual::after { content: ''; position: absolute; left: -12px; bottom: -12px; width: 96px; height: 96px; border-left: 2px solid var(--color-accent); border-bottom: 2px solid var(--color-accent); }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 56px; background: var(--color-white);
  border: 1px solid rgba(10, 22, 40, 0.20);
  border-top: 3px solid var(--color-accent);
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.07);
}
.stat {
  padding: 34px 24px; text-align: center;
  border-right: 1px solid rgba(10, 22, 40, 0.14);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), background 0.32s var(--ease);
}
.stat:last-child { border-right: none; }
.stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(10, 22, 40, 0.16);
  position: relative; z-index: 1;
}
.stat__num { font-size: 26px; font-weight: var(--fw-bold); color: var(--color-primary); letter-spacing: -0.02em; }
.stat__num .unit { font-size: 15px; font-weight: var(--fw-semibold); color: var(--color-accent); }
.stat__label { font-size: 13px; color: var(--color-text-gray); margin-top: 6px; letter-spacing: 0.02em; }

/* ==================== PRODUCTS ==================== */
.products { background: var(--color-primary); padding: var(--section-padding); }
.products__head { max-width: 720px; margin-bottom: 52px; }
.products__head .section-heading { color: var(--color-white); margin-bottom: 20px; }
.products__intro { font-size: 17px; color: var(--color-text-gray); line-height: 1.8; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cat-card { position: relative; overflow: hidden; border: 1px solid var(--color-border); background: var(--color-primary-light); min-height: 300px; display: flex;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.cat-card__img { position: absolute; inset: 0; z-index: 0; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42); border-color: var(--color-accent); }
.cat-card:hover .cat-card__img img { transform: scale(1.05); }
.cat-card__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,22,40,0.94) 12%, rgba(10,22,40,0.55) 55%, rgba(10,22,40,0.35) 100%); }
.cat-card__body { position: relative; z-index: 2; padding: 32px; margin-top: auto; align-self: flex-end; }
.cat-card__num { font-size: 12px; font-weight: var(--fw-semibold); color: var(--color-accent); letter-spacing: 0.15em; margin-bottom: 12px; }
.cat-card__title { font-size: 22px; font-weight: var(--fw-semibold); color: var(--color-white); margin-bottom: 10px; }
.cat-card__desc { font-size: 15px; color: #C3CBD6; line-height: 1.65; }

/* Spec table */
.spec { margin-top: 56px; }
.spec__title { font-size: 18px; font-weight: var(--fw-semibold); color: var(--color-white); margin-bottom: 6px; }
.spec__note { font-size: 14px; color: var(--color-text-gray); margin-bottom: 22px; }
.spec__table-wrap { overflow-x: auto; border: 1px solid var(--color-border); }
table.spec__table { width: 100%; border-collapse: collapse; min-width: 640px; }
.spec__table thead th {
  text-align: left; font-size: 12px; font-weight: var(--fw-semibold); color: var(--color-accent);
  letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 22px; background: rgba(201,169,110,0.06);
  border-bottom: 1px solid var(--color-border);
}
.spec__table tbody td { font-size: 15px; color: #D6DCE4; padding: 15px 22px; border-bottom: 1px solid var(--color-border); }
.spec__table tbody tr:last-child td { border-bottom: none; }
.spec__table tbody td:first-child { font-weight: var(--fw-semibold); color: var(--color-white); }
.spec__table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.download-band { margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border: 1px solid var(--color-border); background: var(--color-primary-light);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.download-band:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(0, 0, 0, 0.30); border-color: var(--color-accent); }
.download-band__text { font-size: 16px; color: var(--color-white); font-weight: var(--fw-semibold); }
.download-band__text span { display: block; font-size: 14px; color: var(--color-text-gray); font-weight: var(--fw-regular); margin-top: 4px; }

/* ==================== APPLICATIONS ==================== */
.apps { background: var(--color-offwhite); padding: var(--section-padding); }
.apps__head { max-width: 720px; margin-bottom: 48px; }
.apps__head .section-heading { color: var(--color-primary); margin-bottom: 18px; }
.apps__intro { font-size: 17px; color: var(--color-text-dark); line-height: 1.8; }
.apps__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app-item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--color-primary-light);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.app-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.app-item:hover { transform: translateY(-8px); box-shadow: 0 22px 46px rgba(10, 22, 40, 0.30); z-index: 1; }
.app-item:hover img { transform: scale(1.06); }
.app-item__cap { position: absolute; left: 0; bottom: 0; z-index: 2; padding: 18px 20px; color: var(--color-white); font-weight: var(--fw-semibold); font-size: 15px; letter-spacing: 0.02em; width: 100%; background: linear-gradient(0deg, rgba(10,22,40,0.85), rgba(10,22,40,0) 100%); }
.apps__disclaimer { margin-top: 22px; font-size: 13px; color: var(--color-text-gray); }

/* ==================== QUALITY ==================== */
.quality { position: relative; background: var(--color-primary); padding: var(--section-padding); overflow: hidden; }
.quality__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.28; }
.quality__bg img { width: 100%; height: 100%; object-fit: cover; }
.quality::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,22,40,0.96) 30%, rgba(10,22,40,0.75) 100%); }
.quality__inner { position: relative; z-index: 2; }
.quality__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.quality__head .section-heading { color: var(--color-white); margin-bottom: 22px; }
.quality__lead { font-size: 17px; color: #D6DCE4; line-height: 1.85; }
.quality__lead strong { color: var(--color-accent); font-weight: var(--fw-semibold); }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cert { border: 1px solid var(--color-border); padding: 26px 24px; background: rgba(255,255,255,0.02);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.cert:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35); border-color: var(--color-accent); background: rgba(201, 169, 110, 0.05); }
.cert__title { font-size: 16px; font-weight: var(--fw-semibold); color: var(--color-white); margin-bottom: 8px; }
.cert__desc { font-size: 14px; color: var(--color-text-gray); line-height: 1.6; }
.cert__title .tag { display: inline-block; font-size: 11px; color: var(--color-accent); border: 1px solid var(--color-accent); border-radius: 2px; padding: 1px 7px; margin-left: 7px; vertical-align: middle; letter-spacing: 0.05em; }

/* ==================== CONTACT ==================== */
.contact { position: relative; background: var(--color-primary); padding: 112px 24px; overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.48; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; }
.contact::after { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(circle at 50% 42%, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.72) 60%, rgba(10,22,40,0.86) 100%); }
.contact__inner { position: relative; z-index: 2; text-align: center; max-width: 620px; margin: 0 auto; }
.contact__inner .eyebrow { margin-left: auto; margin-right: auto; }
.contact__sub { font-family: var(--font-serif); font-size: clamp(24px, 3.2vw, 34px); font-weight: 500; color: var(--color-white); line-height: 1.4; margin-bottom: 36px; }
.contact__rows { display: grid; gap: 14px; margin-bottom: 40px; }
.contact__row { display: flex; justify-content: center; gap: 14px; font-size: 16px; color: #D6DCE4; }
.contact__row .k { color: var(--color-accent); font-weight: var(--fw-semibold); min-width: 56px; text-align: right; }
.contact__row a { color: #D6DCE4 !important; -webkit-text-fill-color: #D6DCE4; transition: color 0.2s var(--ease); }
.contact__row a:hover { color: var(--color-white) !important; -webkit-text-fill-color: #FFFFFF; }

/* ==================== FOOTER ==================== */
.footer { background: var(--color-primary); border-top: 1px solid var(--color-border); padding: 34px 24px; }
.footer__inner { max-width: var(--max-width); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__left { display: flex; flex-direction: column; gap: 6px; }
.footer__brand-row { display: flex; align-items: center; gap: 10px; }
.footer__logo-img { height: 26px; width: auto; display: block; }
.footer__brand { font-family: var(--font-serif); font-weight: 700; font-size: 18px; color: var(--color-white); letter-spacing: 0.04em; }
.footer__meta { font-size: 13px; color: var(--color-text-gray); }
.footer__links a { font-size: 13px; color: var(--color-text-gray); transition: color 0.25s var(--ease); }
.footer__links a:hover { color: var(--color-white); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
  .about__grid, .quality__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__visual img { height: 340px; }
  .cat-grid { grid-template-columns: 1fr; }
  .apps__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-padding: 72px 20px; }
  .mobile-br { display: block; }

  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,0.98); flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 21px; }
  .nav__toggle { display: block; }

  .hero { min-height: 88vh; }
  .hero__bg img { object-position: center; }
  .hero__scrim { background: linear-gradient(0deg, rgba(10,22,40,0.86) 6%, rgba(10,22,40,0.45) 52%, rgba(10,22,40,0.22) 100%); }
  .hero__actions .btn-primary, .hero__actions .btn-ghost { width: 100%; text-align: center; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--color-border-light); }

  .cert-grid { grid-template-columns: 1fr; }
  .download-band { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer__left { align-items: center; }
}

@media (max-width: 480px) {
  .apps__grid { grid-template-columns: 1fr; }
  .nav__logo-sub { display: none; }
  .contact__row { flex-direction: column; gap: 2px; align-items: center; }
  .contact__row .k { min-width: 0; text-align: center; }
}
