:root {
  --bg: #f4f7f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --dark: #0b1220;
  --dark-card: #121c2e;
  --dark-border: rgba(255, 255, 255, 0.11);
  --accent: #0f766e;
  --accent-hover: #115e59;
  --gold: #2dd4bf;
  --copper: #d97706;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 22px 50px rgba(11, 18, 32, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 2.8vw, 2.45rem); font-weight: 700; }
h3 { font-size: 1.16rem; font-weight: 600; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.container {
  width: min(1240px, 100% - 2.5rem);
  margin-inline: auto;
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.eyebrow-light { color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 247, 249, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

.brand-lockup { display: inline-flex; align-items: center; gap: 0.75rem; }

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0b1220 0%, #0f766e 100%);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  display: grid;
  place-items: center;
  letter-spacing: -0.02em;
}

.brand-lockup-light .brand-mark { background: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: "Space Grotesk", sans-serif; font-size: 1.12rem; letter-spacing: 0.08em; }
.brand-text small { font-family: "JetBrains Mono", monospace; font-size: 0.64rem; letter-spacing: 0.12em; color: var(--muted); margin-top: 2px; }
.brand-lockup-light .brand-text small { color: rgba(255, 255, 255, 0.62); }

.main-nav { display: flex; align-items: center; gap: 1.65rem; }
.nav-link { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.18s ease; }
.nav-link:hover, .nav-link.active { color: var(--ink); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.mobile-menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mobile-drawer.open { display: flex; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
.btn-lg { padding: 0.92rem 1.7rem; font-size: 0.96rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(15, 23, 42, 0.03); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: #fff; backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
  padding: 4.5rem 0;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.82) 48%, rgba(15, 118, 110, 0.22) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-copy { max-width: 660px; }
.hero-lead { font-size: 1.08rem; color: rgba(255, 255, 255, 0.82); margin: 1.15rem 0 2rem; max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.75rem; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.metric strong { display: block; font-size: 1.45rem; color: #fff; margin-bottom: 0.15rem; }
.metric span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.7); }

/* Sections */
.strength-band, .section-light, .section-catalog, .inquiry-section { padding: 5.2rem 0; }
.strength-band { background: var(--surface); border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2.5rem; }
.section-desc { max-width: 480px; color: var(--muted); margin: 0; }
.link-arrow { font-weight: 600; color: var(--accent); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

.strength-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.strength-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; }
.step-num { display: inline-block; color: var(--accent); font-weight: 600; margin-bottom: 0.8rem; }
.strength-card p { margin: 0; font-size: 0.92rem; color: var(--muted); }

.pillars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.cat-pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cat-pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #99f6e4; }
.cat-pillar-img { aspect-ratio: 4 / 3; background: #fff; padding: 1.25rem; display: grid; place-items: center; border-bottom: 1px solid var(--border); }
.cat-pillar-img img { max-height: 190px; object-fit: contain; }
.cat-pillar-info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.cat-count { color: var(--accent); margin-bottom: 0.4rem; }
.cat-pillar-info p { font-size: 0.88rem; color: var(--muted); margin: 0 0 1rem; flex: 1; }
.cat-arrow { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

.section-catalog { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.catalog-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.catalog-search-wrap { min-width: 280px; flex: 0 1 340px; }
.search-input { width: 100%; padding: 0.72rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; background: var(--bg); color: var(--ink); outline: none; }
.search-input:focus { border-color: var(--accent); background: #fff; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 2rem; }
.filter-tab { padding: 0.52rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--muted); font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all 0.16s ease; }
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-media { position: relative; aspect-ratio: 1 / 1; background: #fff; padding: 1.25rem; display: grid; place-items: center; border-bottom: 1px solid #f1f5f9; }
.product-media img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform 0.25s ease; }
.product-card:hover .product-media img { transform: scale(1.04); }
.product-code { position: absolute; top: 10px; left: 10px; background: rgba(11, 18, 32, 0.88); color: #fff; padding: 0.2rem 0.5rem; border-radius: 5px; font-size: 0.72rem; }
.badge-flagship { position: absolute; top: 10px; right: 10px; background: rgba(15, 118, 110, 0.12); color: #0f766e; border: 1px solid rgba(15, 118, 110, 0.35); padding: 0.18rem 0.5rem; border-radius: 5px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }

.product-body { padding: 1.15rem; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 0.74rem; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.product-body h3 a:hover { color: var(--accent); }
.product-sub { font-size: 0.84rem; color: var(--muted); margin: 0 0 0.9rem; flex: 1; }
.product-meta { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; color: var(--muted); padding-top: 0.75rem; border-top: 1px solid var(--border); margin-bottom: 0.95rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.engineering-band { background: var(--dark); color: #fff; padding: 5.5rem 0; }
.split-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.rounded-img { border-radius: var(--radius); border: 1px solid var(--border); }
.dark-lead { color: rgba(255, 255, 255, 0.78); margin: 0 0 2rem; }
.spec-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.spec-hl { background: var(--dark-card); border: 1px solid var(--dark-border); border-radius: var(--radius-sm); padding: 1.15rem; }
.spec-hl strong { display: block; color: var(--gold); margin-bottom: 0.45rem; }
.spec-hl p { margin: 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.74); }

.process-list { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-direction: column; gap: 1.15rem; }
.process-list li { display: grid; grid-template-columns: 82px 1fr; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.process-list li > span { color: var(--accent); font-weight: 600; padding-top: 2px; }
.process-list p { margin: 0.25rem 0 0; font-size: 0.88rem; color: var(--muted); }

.inquiry-section { background: #e9eff4; border-top: 1px solid var(--border); }
.inquiry-layout { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 3rem; align-items: start; }
.inquiry-info p { color: var(--muted); }
.company-card { margin-top: 1.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; display: flex; flex-direction: column; gap: 0.9rem; }
.company-row { display: flex; flex-direction: column; gap: 0.15rem; }
.company-row > span.mono { color: var(--accent); font-size: 0.72rem; }

.inquiry-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.inquiry-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.inquiry-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { width: 100%; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 0.92rem; color: var(--ink); background: #f8fafc; outline: none; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { border-color: var(--accent); background: #fff; }
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0 !important; pointer-events: none !important; }
.form-status { font-size: 0.9rem; border-radius: var(--radius-sm); padding: 0; }
.form-status.success { padding: 0.85rem 1rem; background: #ecfdf3; border: 1px solid #abefc6; color: #067647; }
.form-status.error { padding: 0.85rem 1rem; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

.page-banner { background: var(--dark); color: #fff; padding: 3.5rem 0; }
.page-banner p { color: rgba(255, 255, 255, 0.74); margin: 0.5rem 0 0; }
.breadcrumb-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0.85rem 0; font-size: 0.84rem; color: var(--muted); }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar span { margin: 0 0.45rem; }

.detail-section { padding: 3.2rem 0 4.5rem; background: var(--surface); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.2rem; align-items: start; }
.gallery-stage { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 1 / 1; padding: 2rem; display: grid; place-items: center; }
.gallery-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.85rem; }
.gallery-thumb { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); aspect-ratio: 1 / 1; padding: 0.3rem; cursor: pointer; display: grid; place-items: center; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--accent); }
.gallery-thumb img { max-height: 100%; object-fit: contain; }

.detail-sub { font-size: 1.05rem; color: var(--muted); margin: 0.6rem 0 1.4rem; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.75rem; }
.detail-badges span { background: var(--bg); border: 1px solid var(--border); padding: 0.35rem 0.7rem; border-radius: 6px; font-size: 0.8rem; }
.detail-block { margin-bottom: 1.65rem; }
.detail-block h3 { font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.65rem; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { background: var(--bg); border: 1px solid var(--border); padding: 0.3rem 0.68rem; border-radius: 999px; font-size: 0.82rem; }
.chip-mono { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 0.68rem 0.8rem; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 500; }
.detail-cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.feature-list li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.15rem 1.25rem; font-size: 0.92rem; color: var(--muted); }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(11, 18, 32, 0.74); backdrop-filter: blur(4px); display: none; place-items: center; padding: 1rem; }
.modal-backdrop.open { display: grid; }
.modal-panel { position: relative; width: min(620px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-lg); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 1.7rem; color: var(--muted); cursor: pointer; }
.modal-sub { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.92rem; }

.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 0.95rem 1rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { background: var(--bg); font-weight: 600; color: var(--muted); }
.admin-msg { max-width: 340px; white-space: pre-wrap; }
.status-select { padding: 0.4rem 0.6rem; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); font: inherit; }

.site-footer { background: var(--dark); color: rgba(255, 255, 255, 0.82); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--dark-border); }
.footer-summary { font-size: 0.88rem; color: rgba(255, 255, 255, 0.68); margin: 1rem 0 1.25rem; }
.footer-meta-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.footer-meta-chips span { font-size: 0.74rem; padding: 0.25rem 0.55rem; border-radius: 5px; border: 1px solid var(--dark-border); color: rgba(255, 255, 255, 0.78); }
.site-footer h4 { font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.68); }
.footer-links a:hover { color: #fff; }
.footer-address, .footer-domain { font-size: 0.86rem; color: rgba(255, 255, 255, 0.68); margin: 0 0 0.75rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.52); flex-wrap: wrap; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }

@media (max-width: 1080px) {
  .strength-grid, .pillars-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .detail-grid, .inquiry-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strength-grid, .pillars-grid, .product-grid, .spec-highlights, .feature-list, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
}
