/* ============================================================
   RNK INTERNATIONAL — style.css
   Colors : Navy #1a2b4a | Gold #c9a84c | White #ffffff
   Fonts  : Inter (EN) + Noto Sans KR (KR)
   ============================================================ */

/* ── 0. VARIABLES ─────────────────────────────────────────── */
:root {
  --navy:       #1a2b4a;
  --navy-d:     #0d1a2e;
  --navy-l:     #243454;
  --gold:       #c9a84c;
  --gold-l:     #d9bc74;
  --gold-d:     #a8862f;
  --white:      #ffffff;
  --off-white:  #f7f8fc;
  --g100:       #f3f4f6;
  --g200:       #e5e7eb;
  --g300:       #d1d5db;
  --g400:       #9ca3af;
  --g500:       #6b7280;
  --g600:       #4b5563;
  --g700:       #374151;
  --g800:       #1f2937;

  --font-en: 'Inter', sans-serif;
  --font-kr: 'Noto Sans KR', sans-serif;

  --hdr: 72px;   /* header height */

  --ease: cubic-bezier(.4,0,.2,1);
  --t: all .28s var(--ease);

  --sh-sm: 0 1px 4px rgba(0,0,0,.08);
  --sh-md: 0 4px 18px rgba(0,0,0,.12);
  --sh-lg: 0 10px 36px rgba(0,0,0,.16);
  --sh-xl: 0 20px 60px rgba(0,0,0,.22);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

/* ── 1. RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-kr), var(--font-en);
  color: var(--g800);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  animation: bodyFadeIn .4s ease;
}

@keyframes bodyFadeIn { from { opacity: 0; } to { opacity: 1; } }

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

h1, h2, h3 { line-height: 1.28; font-weight: 700; }

/* ── 2. LAYOUT ────────────────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 40px;
  padding: 5px 16px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--g500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ── 3. BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: var(--r-md);
  font-size: .97rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--t);
  letter-spacing: .02em;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-l);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(201,168,76,.45);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,43,74,.35);
}

.btn-full { width: 100%; }

/* ── 4. HEADER ────────────────────────────────────────────── */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--hdr);
  z-index: 900;
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}

.header.scrolled {
  background: rgba(13, 26, 46, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hdr);
}

/* Logo */
.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.logo-main {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .06em;
}
.logo-sub {
  font-size: .68rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: .04em;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

/* Lang toggle */
.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  padding: 6px 18px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: .82rem;
  font-weight: 700;
  border-radius: 40px;
  cursor: pointer;
  transition: var(--t);
  letter-spacing: .06em;
}
.lang-toggle:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 23px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 5. HERO ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(140deg, var(--navy-d) 0%, #1e3260 55%, var(--navy-d) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Subtle grid pattern */
.hb-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Decorative circles */
.hb-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,.12);
}
.hb-c1 {
  width: 680px; height: 680px;
  top: -200px; right: -140px;
  animation: hbPulse 10s ease-in-out infinite;
}
.hb-c2 {
  width: 480px; height: 480px;
  bottom: -160px; left: -120px;
  border-color: rgba(201,168,76,.08);
  animation: hbPulse 13s ease-in-out infinite 2s;
}
.hb-c3 {
  width: 320px; height: 320px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(201,168,76,.06);
  animation: hbPulse 8s ease-in-out infinite 1s;
}

@keyframes hbPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%       { transform: scale(1.06); opacity: .4; }
}
.hb-c3 { animation-name: hbPulseCenter; }
@keyframes hbPulseCenter {
  0%, 100% { transform: translate(-50%,-50%) scale(1); }
  50%       { transform: translate(-50%,-50%) scale(1.08); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--hdr) + 50px) 28px 90px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 22px;
  border: 1.5px solid rgba(201,168,76,.7);
  border-radius: 40px;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: slideDown .8s var(--ease) both;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(3rem, 7.5vw, 5.5rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: .07em;
  line-height: 1.1;
  margin-bottom: 10px;
  animation: slideDown .8s var(--ease) .08s both;
}
.hero-title span { color: var(--gold); }

.hero-kr {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  letter-spacing: .15em;
  margin-bottom: 20px;
  animation: slideDown .8s var(--ease) .16s both;
}

.hero-slogan {
  font-size: clamp(1rem, 2.4vw, 1.28rem);
  color: rgba(255,255,255,.78);
  font-weight: 300;
  margin-bottom: 52px;
  letter-spacing: .02em;
  animation: slideDown .8s var(--ease) .24s both;
}

.hero .btn-gold {
  font-size: 1.02rem;
  padding: 16px 52px;
  animation: slideUp .8s var(--ease) .36s both;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 42px; left: 50%;
  transform: translateX(-50%);
  animation: fadeIn .8s ease 1.2s both;
}
.scroll-mouse {
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 12px;
  position: relative;
  margin: 0 auto;
}
.scroll-mouse span {
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollBob 2s ease-in-out infinite;
}
@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60%       { transform: translateX(-50%) translateY(10px); opacity: .3; }
}

/* ── 6. ABOUT ─────────────────────────────────────────────── */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-desc {
  font-size: 1.04rem;
  color: var(--g600);
  line-height: 1.9;
  margin-bottom: 44px;
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 32px;
  border-top: 1px solid var(--g200);
}
.meta-row { display: flex; gap: 24px; align-items: baseline; }
.meta-row dt {
  font-size: .78rem;
  font-weight: 700;
  color: var(--g400);
  letter-spacing: .1em;
  text-transform: uppercase;
  min-width: 90px;
  flex-shrink: 0;
}
.meta-row dd {
  font-size: .95rem;
  color: var(--navy);
  font-weight: 500;
}

/* Value cards */
.about-values { display: flex; flex-direction: column; gap: 20px; }

.value-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 28px;
  background: var(--off-white);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--gold);
  transition: var(--t);
}
.value-card:hover {
  background: var(--white);
  box-shadow: var(--sh-md);
  transform: translateX(5px);
}

.value-icon {
  width: 38px; height: 38px;
  color: var(--gold);
}
.value-icon svg { width: 100%; height: 100%; }

.value-title {
  font-size: 1.02rem;
  color: var(--navy);
  font-weight: 700;
}
.value-desc {
  font-size: .875rem;
  color: var(--g500);
  line-height: 1.75;
}

/* ── 7. PRODUCTS ──────────────────────────────────────────── */
.products { background: var(--off-white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Center lone 7th card */
.product-card:last-child:nth-child(3n+1) {
  grid-column: 2;
}

.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 32px 26px;
  border: 1px solid var(--g200);
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-l));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.product-card:hover::after { transform: scaleX(1); }

.product-icon {
  width: 50px; height: 50px;
  color: var(--gold);
  margin-bottom: 20px;
}
.product-icon svg { width: 100%; height: 100%; }

.product-name {
  font-size: .97rem;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.45;
}
.product-desc {
  font-size: .845rem;
  color: var(--g500);
  line-height: 1.8;
}

/* ── 8. WHY RNK ───────────────────────────────────────────── */
.why {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.why-label { border-color: rgba(201,168,76,.6); }
.why-title.section-title { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.why-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 44px 32px;
  text-align: center;
  transition: var(--t);
}
.why-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(201,168,76,.5);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}

/* Featured (middle) card */
.why-card--featured {
  background: var(--gold);
  border-color: var(--gold);
}
.why-card--featured:hover {
  background: var(--gold-l);
  border-color: var(--gold-l);
  box-shadow: 0 20px 56px rgba(201,168,76,.45);
  transform: translateY(-8px);
}
.why-card--featured .why-icon  { color: var(--navy); }
.why-card--featured .why-card-title,
.why-card--featured .why-card-desc { color: var(--navy); }

.why-icon {
  width: 62px; height: 62px;
  color: var(--gold);
  margin: 0 auto 26px;
}
.why-icon svg { width: 100%; height: 100%; }

.why-card-title {
  font-size: 1.22rem;
  color: var(--white);
  margin-bottom: 14px;
}
.why-card-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.68);
  line-height: 1.85;
}

/* ── 9. CONTACT ───────────────────────────────────────────── */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 4px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--t);
}
a.contact-item:hover .ci-value { color: var(--gold); }

.ci-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--navy);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  padding: 11px;
}
.ci-icon svg { width: 100%; height: 100%; }

.ci-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  color: var(--g400);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ci-value {
  font-size: .92rem;
  color: var(--navy);
  font-weight: 500;
  line-height: 1.65;
  transition: color .2s;
}

.contact-note {
  margin-top: 8px;
  padding: 18px 20px;
  background: var(--off-white);
  border-radius: var(--r-md);
  border-left: 3px solid var(--gold);
}
.contact-note p {
  font-size: .845rem;
  color: var(--g500);
  line-height: 1.75;
}

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 7px; }

.form-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--g700);
  letter-spacing: .02em;
}

.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--g200);
  border-radius: var(--r-md);
  font-size: .92rem;
  font-family: inherit;
  color: var(--g800);
  background: var(--white);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,43,74,.09);
}
.form-input::placeholder { color: var(--g300); }

.form-textarea {
  min-height: 136px;
  resize: vertical;
  line-height: 1.7;
}

/* Submit success */
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-md);
  animation: slideUp .4s var(--ease);
}
.form-success.show { display: flex; }

.success-icon {
  width: 28px; height: 28px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  flex-shrink: 0;
}
.success-msg {
  font-size: .875rem;
  color: #15803d;
  line-height: 1.7;
}

/* ── 10. FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--navy-d);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo-en {
  display: block;
  font-family: var(--font-en);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .07em;
  margin-bottom: 4px;
}
.footer-logo-kr {
  display: block;
  font-size: .88rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 14px;
}
.footer-slogan {
  font-size: .83rem;
  color: rgba(255,255,255,.4);
  font-weight: 300;
  letter-spacing: .02em;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.footer-info p {
  font-size: .845rem;
  color: rgba(255,255,255,.45);
  line-height: 1.75;
}
.footer-info a {
  color: rgba(255,255,255,.45);
  transition: color .2s;
}
.footer-info a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 28px;
  text-align: center;
}
.footer-bottom p {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}

/* ── 11. REVEAL ANIMATION ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger siblings */
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .40s; }
.reveal:nth-child(7) { transition-delay: .48s; }

/* ── 12. SHARED KEYFRAMES ─────────────────────────────────── */
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── 13. RESPONSIVE ───────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:last-child:nth-child(3n+1) { grid-column: unset; }
  .about-grid { gap: 52px; }
}

/* Phablet */
@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --hdr: 64px; }

  .section { padding: 80px 0; }
  .section-title { font-size: 1.7rem; }
  .section-header { margin-bottom: 48px; }

  /* Mobile nav */
  .nav-links {
    display: none;
    position: fixed;
    top: var(--hdr); left: 0; right: 0;
    background: rgba(13,26,46,.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    z-index: 899;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 16px 28px;
    font-size: .97rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-links a::after { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-content { padding-top: calc(var(--hdr) + 30px); }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 44px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; }
  .product-card:last-child:nth-child(3n+1) { grid-column: unset; }

  /* Contact */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Small phone */
@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-badge { font-size: .68rem; }
  .btn { padding: 13px 30px; }
  .why-card { padding: 32px 24px; }
  .product-card { padding: 26px 22px; }
  .stats-bar { flex-direction: column; gap: 28px; padding: 32px 24px; }
  .stat-divider { width: 60px; height: 1px; }
  .back-top { bottom: 20px; right: 16px; width: 42px; height: 42px; }
}

/* ── 14. PRODUCT CARD FOOTER (상세보기 + TDS 버튼) ────────── */
.product-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.product-desc { flex: 1; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--g200);
}

.view-detail {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .03em;
  transition: color .2s;
}
.product-card:hover .view-detail { color: var(--gold-d); }

.doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border: 1.5px solid var(--g300);
  border-radius: 5px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--g600);
  letter-spacing: .04em;
  transition: var(--t);
  background: var(--white);
  text-decoration: none;
}
.doc-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,.06);
}

/* ── 15. PRODUCT MODAL ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 32, .75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s var(--ease);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-overlay.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-card {
  background: var(--white);
  border-radius: var(--r-xl);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .32s var(--ease);
  box-shadow: var(--sh-xl);
  scrollbar-width: thin;
}

/* Scrollbar */
.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: transparent; }
.modal-card::-webkit-scrollbar-thumb { background: var(--g200); border-radius: 2px; }

/* Gold accent bar at top */
.modal-card::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-l));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--g100);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--g500);
  transition: var(--t);
  z-index: 2;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover {
  background: var(--navy);
  color: var(--white);
}

/* Modal header */
.modal-header {
  padding: 32px 36px 24px;
}
.modal-title {
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
  padding-right: 40px; /* space for close btn */
}
.modal-desc {
  font-size: .9rem;
  color: var(--g500);
  line-height: 1.8;
}

/* Spec table */
.modal-specs-wrap {
  padding: 0 36px 24px;
}
.modal-spec-head {
  font-size: .72rem;
  font-weight: 700;
  color: var(--g400);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.modal-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.modal-specs tr { border-bottom: 1px solid var(--g100); }
.modal-specs tr:last-child { border-bottom: none; }
.spec-label {
  padding: 10px 16px 10px 0;
  color: var(--g500);
  font-weight: 600;
  white-space: nowrap;
  width: 38%;
  vertical-align: top;
}
.spec-value {
  padding: 10px 0;
  color: var(--navy);
  line-height: 1.6;
}

/* Modal actions */
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 36px 32px;
  border-top: 1px solid var(--g100);
}
.modal-actions .btn {
  flex: 1;
  min-width: 140px;
  padding: 12px 20px;
  font-size: .88rem;
}

/* Outline button for Drive */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--g300);
  color: var(--g600);
}
.btn-outline:hover {
  border-color: var(--navy);
  color: var(--navy);
  transform: translateY(-2px);
}

/* Mobile modal */
@media (max-width: 640px) {
  .modal-card { border-radius: var(--r-lg); max-height: 92vh; }
  .modal-header { padding: 28px 24px 20px; }
  .modal-specs-wrap { padding: 0 24px 20px; }
  .modal-actions { padding: 16px 24px 28px; flex-direction: column; }
  .modal-actions .btn { min-width: unset; flex: unset; width: 100%; }
}

/* ── 16. SCROLL PROGRESS BAR ──────────────────────────────── */
.scroll-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-d), var(--gold), var(--gold-l));
  z-index: 1100;
  transition: width 60ms linear;
  box-shadow: 0 0 8px rgba(201,168,76,.6);
  pointer-events: none;
}

/* ── 15. STATS BAR ────────────────────────────────────────── */
.stats-bar {
  display: flex;
  align-items: center;
  margin-top: 80px;
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 40px 56px;
  overflow: hidden;
  position: relative;
}
/* Subtle gold shimmer line at top */
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}

.stat-num {
  display: block;
  font-family: var(--font-en);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 8px;
  color: var(--gold);
}
.stat-icon svg { width: 100%; height: 100%; }

.stat-label {
  display: block;
  font-size: .74rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
  margin: 0 8px;
}

/* Mobile stats */
@media (max-width: 640px) {
  .stats-bar {
    flex-wrap: wrap;
    gap: 0;
    padding: 36px 28px;
  }
  .stat-item {
    flex: 0 0 50%;
    padding: 20px 12px;
  }
  .stat-divider { display: none; }
  .stat-num { font-size: 2.2rem; }
}

/* ── 16. BACK-TO-TOP BUTTON ───────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 26px;
  width: 48px;
  height: 48px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  transform: translateY(14px) scale(.9);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s;
  pointer-events: none;
  box-shadow: var(--sh-md);
}
.back-top svg { width: 20px; height: 20px; }

.back-top.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-top:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(201,168,76,.45);
  transform: translateY(-2px) scale(1);
}
