:root {
  --ink: #f7fbff;
  --muted: #b9c7d9;
  --line: rgba(255, 255, 255, 0.18);
  --paper: #08101d;
  --panel: rgba(9, 17, 30, 0.76);
  --charcoal: #0b1220;
  --orange: #f4a34d;
  --red: #ff5b6e;
  --teal: #46d6d0;
  --blue: #7fa7ff;
  --green: #b5d877;
  --glass: rgba(9, 17, 30, 0.6);
  --glass-strong: rgba(9, 17, 30, 0.82);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: 0; }

.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 16, 29, 0.9), rgba(8, 16, 29, 0.42) 48%, rgba(8, 16, 29, 0.7)),
    linear-gradient(180deg, rgba(8, 16, 29, 0.18), rgba(8, 16, 29, 0.94) 82%),
    url("./assets/backgrounds/export-port-sunset.png") center / cover fixed no-repeat,
    #08101d;
}

.ambient-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 163, 77, 0.18), transparent 34%), linear-gradient(315deg, rgba(70, 214, 208, 0.16), transparent 38%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 16, 29, 0.62);
  backdrop-filter: blur(22px) saturate(1.15);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { display: inline-grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #08101d; background: linear-gradient(135deg, var(--orange), var(--teal)); font-size: 18px; font-weight: 800; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32); }
.brand strong, .brand small { display: block; line-height: 1.05; }
.brand strong { font-size: 17px; }
.brand small { margin-top: 3px; color: rgba(247, 251, 255, 0.68); font-size: 12px; }

.page-switcher { display: inline-flex; justify-content: center; gap: 6px; }
.page-switcher a { padding: 10px 13px; border: 1px solid transparent; border-radius: 999px; color: rgba(247, 251, 255, 0.68); font-size: 14px; font-weight: 700; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.page-switcher a.active, .page-switcher a:hover { border-color: rgba(255, 255, 255, 0.24); color: var(--ink); background: rgba(255, 255, 255, 0.12); }

.header-quote, .primary-action, .secondary-action, .form-actions button, .catalog-toolbar button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 0; border-radius: 999px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.header-quote, .primary-action, .form-actions button { color: #08101d; background: linear-gradient(135deg, #fff7ed, #d7fbff); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28); }
.header-quote { padding: 0 18px; }
.primary-action { padding: 0 20px; }
.secondary-action, .catalog-toolbar button { padding: 0 18px; border: 1px solid var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.1); }

.hero-section { position: relative; display: grid; min-height: calc(100vh - 76px); grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr); align-items: center; gap: clamp(28px, 5vw, 76px); padding: clamp(38px, 6vw, 82px) clamp(18px, 5vw, 72px) clamp(46px, 6vw, 86px); overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 690px; text-shadow: 0 3px 28px rgba(0, 0, 0, 0.45); }
.eyebrow { margin: 0 0 12px; color: var(--accent, var(--orange)); font-size: 13px; font-weight: 900; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(44px, 7vw, 88px); line-height: 0.95; letter-spacing: 0; color: #fff; }
h2 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1; letter-spacing: 0; }
h3 { font-size: 22px; letter-spacing: 0; }
.hero-lede { max-width: 610px; margin-bottom: 28px; color: rgba(247, 251, 255, 0.76); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.trust-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.trust-item { padding: 16px 18px 0 0; }
.trust-item strong { display: block; margin-bottom: 4px; font-size: 24px; }
.trust-item span { color: rgba(247, 251, 255, 0.66); font-size: 13px; line-height: 1.35; }

.hero-visual { position: relative; min-height: min(720px, calc(100vh - 120px)); overflow: hidden; perspective: 1350px; isolation: isolate; }
.scene-label { position: absolute; top: 8px; left: 3vw; z-index: 4; color: rgba(247, 251, 255, 0.66); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.orbit-stage { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; transform-style: preserve-3d; pointer-events: none; }
.orbit { position: relative; width: min(60vw, 660px); height: min(72vh, 600px); transform-style: preserve-3d; transform: translateY(-82px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); }
.orbit-card { position: absolute; top: 50%; left: 50%; width: clamp(200px, 17vw, 248px); height: clamp(270px, 24vw, 330px); margin: calc(clamp(270px, 24vw, 330px) / -2) 0 0 calc(clamp(200px, 17vw, 248px) / -2); border-radius: 8px; transform-style: preserve-3d; backface-visibility: visible; will-change: transform, opacity; transition: opacity 0.18s, filter 0.18s, visibility 0.18s; }
.orbit-face { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 8px; background: rgba(255, 255, 255, 0.92); transform: translateZ(0); backface-visibility: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34); }
.orbit-face img { height: 80%; width: 100%; object-fit: contain; object-position: center; padding: 14px; background: linear-gradient(135deg, rgba(240, 123, 36, 0.08), rgba(11, 139, 141, 0.08)), #fff; filter: contrast(1.04) saturate(1.06); }
.orbit-card-text { display: grid; flex: 1; align-content: center; justify-items: center; padding: 12px 14px 14px; color: #101724; background: rgba(255, 255, 255, 0.96); text-align: center; }
.orbit-card-text strong { font-size: 15px; line-height: 1.15; }

.metrics-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(8, 16, 29, 0.64); backdrop-filter: blur(22px); }
.metric { min-height: 150px; padding: 34px clamp(20px, 4vw, 56px); border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong, .metric span { display: block; }
.metric strong { margin-bottom: 8px; color: var(--accent, var(--orange)); font-size: clamp(28px, 3vw, 42px); }
.metric span { max-width: 220px; color: rgba(247, 251, 255, 0.66); font-size: 13px; line-height: 1.45; }

.category-section, .catalog-section, .quote-section { padding: clamp(72px, 9vw, 122px) clamp(18px, 5vw, 72px); }
.category-section { background: rgba(8, 16, 29, 0.68); backdrop-filter: blur(18px); }
.section-intro { max-width: 800px; margin-bottom: 44px; }
.section-intro p:last-child { max-width: 700px; color: rgba(247, 251, 255, 0.68); font-size: 16px; line-height: 1.65; }
.section-intro.compact { margin-bottom: 28px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-tile { min-height: 255px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(16px); }
.category-icon { display: grid; width: 46px; height: 46px; margin-bottom: 42px; place-items: center; border-radius: 8px; background: var(--tile-color, var(--ink)); color: #fff; }
.category-tile p { margin-bottom: 0; color: rgba(247, 251, 255, 0.66); font-size: 14px; line-height: 1.55; }

.catalog-section { background: rgba(8, 16, 29, 0.8); backdrop-filter: blur(22px); }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.catalog-toolbar label { display: grid; gap: 6px; }
.catalog-toolbar label span, .quote-form label span { color: rgba(247, 251, 255, 0.62); font-size: 12px; font-weight: 800; }
.catalog-toolbar select { min-width: 220px; min-height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: rgba(8, 16, 29, 0.9); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 8px; color: #101724; background: rgba(255, 255, 255, 0.9); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2); transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 26px 65px rgba(0, 0, 0, 0.3); }
.product-card.selected { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(70, 214, 208, 0.28), 0 24px 60px rgba(0, 0, 0, 0.28); }
.product-image-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f2f3f5; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s; }
.product-card:hover .product-image-wrap img { transform: scale(1.03); }
.product-code { position: absolute; right: 12px; bottom: 12px; padding: 6px 8px; border-radius: 5px; color: #fff; background: rgba(18, 21, 28, 0.78); font-size: 10px; font-weight: 900; }
.product-body { display: grid; min-height: 300px; align-content: space-between; gap: 18px; padding: 22px; }
.product-body h3 { margin-bottom: 8px; }
.product-body p { margin-bottom: 0; color: #626c78; font-size: 13px; line-height: 1.55; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.product-meta span { padding: 6px 8px; border-radius: 5px; color: #3e4854; background: #f1f3f5; font-size: 10px; font-weight: 750; }
.select-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; border-top: 1px solid rgba(16, 23, 36, 0.12); color: #6b7580; font-size: 11px; }
.select-row label { display: inline-flex; align-items: center; gap: 8px; color: #101724; font-size: 12px; font-weight: 800; }
.select-row input { width: 17px; height: 17px; accent-color: #0b8b8d; }

.quote-section { display: grid; grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr); gap: clamp(36px, 7vw, 100px); border-top: 1px solid var(--line); background: rgba(8, 16, 29, 0.9); }
.quote-copy p:last-child { max-width: 430px; color: rgba(247, 251, 255, 0.64); line-height: 1.65; }
.quote-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote-form label { display: grid; gap: 7px; }
.quote-form label.wide, .form-actions { grid-column: 1 / -1; }
.quote-form input, .quote-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: rgba(255, 255, 255, 0.08); outline: 0; }
.quote-form input { min-height: 46px; padding: 0 13px; }
.quote-form textarea { min-height: 110px; padding: 12px 13px; resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--teal); }
.quote-form input::placeholder, .quote-form textarea::placeholder { color: rgba(247, 251, 255, 0.38); }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.form-actions button { padding: 0 18px; }
.form-actions [role="status"] { color: var(--teal); font-size: 13px; }

.site-footer { position: relative; display: grid; grid-template-columns: minmax(240px, 1fr) auto; align-items: end; gap: 40px; overflow: hidden; padding: 58px clamp(18px, 5vw, 72px) 46px; border-top: 1px solid var(--line); background: rgba(8, 16, 29, 0.92); }
.footer-left { position: relative; z-index: 2; max-width: 510px; }
.footer-left p { margin: 22px 0 0; color: rgba(247, 251, 255, 0.52); font-size: 13px; line-height: 1.55; }
.footer-links { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 18px; color: rgba(247, 251, 255, 0.68); font-size: 13px; font-weight: 700; }
.footer-links a:hover { color: var(--teal); }
.footer-watermark { position: absolute; right: 3vw; bottom: -35px; color: rgba(255, 255, 255, 0.035); font-size: clamp(100px, 18vw, 260px); font-weight: 900; pointer-events: none; }

.textiles-page { --accent: var(--teal); }
.gloves-page { --accent: var(--orange); }

@media (max-width: 1100px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .page-switcher { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .hero-section { min-height: auto; grid-template-columns: 1fr; align-items: start; }
  .hero-visual { min-height: 500px; }
  .orbit { width: 100%; height: 480px; transform: translateY(-60px); }
  .metrics-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .quote-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { gap: 12px; padding: 12px 16px; }
  .brand small { display: none; }
  .header-quote { width: 44px; padding: 0; font-size: 0; }
  .hero-section { padding: 46px 16px 58px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-visual { min-height: 420px; }
  .orbit { height: 400px; transform: translateY(-50px); }
  .orbit-card { width: 164px; height: 220px; margin: -110px 0 0 -82px; }
  .orbit-card-text { padding: 9px; }
  .orbit-card-text strong { font-size: 12px; }
  .metrics-band, .category-grid, .product-grid, .quote-form, .site-footer { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-toolbar select { width: 100%; }
  .quote-form label.wide, .form-actions { grid-column: auto; }
  .footer-links { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
