/* ============================================================
   Superior Chemical Co. — Mobile-First Site
   Design: Claude artifact widget + dark liquid-glass + 3D molecules
   Tokens: bg #efece4 / ink #1c1a15 / accent #e5533c / accent-dark #c23a25
   ============================================================ */

/* ---------- font imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700&family=Georgia&family=ui-monospace&display=swap');

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: #efece4;
  color: #1c1a15;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom, 40px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- dark header ---------- */
.navbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(10, 10, 12, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-title {
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #f6f6f8;
}
.navbar-icon { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; overflow: hidden; }
.navbar-icon img { width: 100%; height: 100%; display: block; }
.navbar-links { display: flex; align-items: center; gap: 16px; }
.navbar-links a {
  font-size: 14px; font-weight: 600; color: rgba(246,246,248,0.7);
  text-decoration: none; transition: color 0.12s ease;
}
.navbar-links a:hover { color: #e5533c; }
.navbar-cta {
  font-size: 14.5px; font-weight: 600; color: #fff !important;
  background: #e5533c; padding: 8px 16px; border-radius: 980px;
  text-decoration: none; transition: background 0.12s ease, transform 0.12s ease;
}
.navbar-cta:hover { background: #c23a25; }
.navbar-cta:active { transform: scale(0.97); }
@media (max-width: 600px) { .hide-mobile { display: none; } }

/* ---------- wrap ---------- */
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ---------- hero / landing ---------- */
.hero { padding: 60px 0 40px; text-align: center; }
.hero-eyebrow {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 12px; font-weight: 600; color: #e5533c;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
}
h1.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 58px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.04;
  color: #1c1a15; max-width: 700px; margin: 0 auto;
}
.hero-sub {
  margin: 18px auto 0; font-size: 17px; line-height: 1.5;
  color: #5a5750; max-width: 560px; font-weight: 400;
}
.hero-actions {
  margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ---------- liquid glass buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 14px 24px; border-radius: 980px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, box-shadow 0.2s ease;
  font-family: inherit; position: relative; overflow: hidden;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit; pointer-events: none;
}
.btn:active { transform: scale(0.97); }
.btn-fill {
  background: linear-gradient(135deg, #e5533c 0%, #c23a25 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 83, 60, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-fill:hover {
  background: linear-gradient(135deg, #f06050 0%, #d04030 100%);
  box-shadow: 0 6px 20px rgba(229, 83, 60, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-tint {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: #1c1a15;
  border: 1px solid rgba(227, 222, 208, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
.btn-tint:hover {
  background: rgba(255,255,255,0.8);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ---------- section headers ---------- */
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 40px 0 16px;
}
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: #1c1a15;
}
.section-caption {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 12px; color: #8a8780; font-weight: 500;
}

/* ---------- widget grid ---------- */
.widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* ---------- product widget card ---------- */
.widget {
  position: relative; background: #fff;
  border-radius: 16px;
  border: 1px solid #e3ded0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 12px 32px rgba(0,0,0,0.06);
  padding: 22px; display: flex; flex-direction: column;
  min-height: 280px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  transform-style: preserve-3d; perspective: 800px;
  cursor: pointer;
}
.widget:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-1deg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 24px 48px rgba(0,0,0,0.12);
}
.widget::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(229, 83, 60, 0.06) 0%, transparent 60%);
  pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.widget:hover::after { opacity: 1; }

.widget-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.widget-icon {
  width: 38px; height: 38px; border-radius: 10px;
  flex-shrink: 0; overflow: hidden; display: block;
  background: linear-gradient(135deg, #efece4 0%, #e3ded0 100%);
  border: 1px solid #e3ded0; padding: 5px;
}
.widget-icon img { width: 100%; height: 100%; display: block; object-fit: contain; }
.widget-titles { flex: 1; min-width: 0; }
.widget-name {
  font-family: 'Archivo', sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2;
  color: #1c1a15;
}
.widget-sub {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 11.5px; color: #8a8780; font-weight: 500; margin-top: 2px;
}

.widget-rows { margin-bottom: 14px; }
.widget-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #f0ede6; font-size: 14px;
}
.widget-row:last-child { border-bottom: none; }
.widget-row .k { color: #1c1a15; font-weight: 500; }
.widget-row .v { color: #5a5750; font-variant-numeric: tabular-nums; font-weight: 500; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 980px; background: #f5f3ed;
  border: 1px solid #e3ded0; color: #5a5750;
}

.widget-cta { margin-top: auto; }
.cta-row { display: flex; gap: 8px; }
.learn-link {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 14px; border-radius: 980px; border: 1px solid #e3ded0;
  color: #5a5750; font-size: 14px; font-weight: 600; text-decoration: none;
  flex: 0 0 auto; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.learn-link:hover { border-color: #e5533c; color: #e5533c; background: rgba(229,83,60,0.04); }
.cta-row .order-link { width: auto; flex: 1; }
.order-link {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 14px; border-radius: 980px;
  background: linear-gradient(135deg, #e5533c 0%, #c23a25 100%);
  color: #fff; font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(229,83,60,0.25);
}
.order-link:hover {
  background: linear-gradient(135deg, #f06050 0%, #d04030 100%);
  box-shadow: 0 4px 16px rgba(229,83,60,0.35);
}
.order-link:active { transform: scale(0.98); }

/* ---------- trust strip ---------- */
.trust-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.trust-card {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e3ded0; border-radius: 12px;
  padding: 16px; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; color: #5a5750;
}
.trust-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #30d158; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.4);
}

/* ---------- register section ---------- */
.register-section { padding: 44px 0 20px; }
.register-widget {
  position: relative;
  background: linear-gradient(135deg, rgba(229,83,60,0.08) 0%, rgba(229,83,60,0.02) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid #e3ded0; border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.08);
  padding: 36px 32px; display: flex; flex-wrap: wrap; gap: 32px;
  justify-content: space-between; align-items: center;
}
.register-left { flex: 1; min-width: 260px; max-width: 440px; }
.register-badge {
  width: 44px; height: 44px; border-radius: 12px; overflow: hidden;
  margin-bottom: 16px; border: 1px solid #e3ded0; background: #fff;
}
.register-badge img { width: 100%; height: 100%; display: block; }
h2.register-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.15; margin-bottom: 10px; color: #1c1a15;
}
.register-copy { font-size: 14.5px; color: #5a5750; line-height: 1.55; }

.register-form { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 260px; max-width: 320px; }
.register-form input, .register-form select {
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e3ded0; border-radius: 10px;
  padding: 13px 14px; color: #1c1a15; font-family: inherit; font-size: 15px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.register-form input::placeholder { color: #a8a5a0; }
.register-form input:focus, .register-form select:focus {
  outline: none; border-color: #e5533c;
  box-shadow: 0 0 0 3px rgba(229, 83, 60, 0.12);
}
.register-submit {
  margin-top: 4px; padding: 13px 16px;
  background: linear-gradient(135deg, #e5533c 0%, #c23a25 100%);
  border: none; border-radius: 980px; color: #fff;
  font-weight: 700; font-size: 15px; cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(229,83,60,0.3);
  font-family: inherit;
}
.register-submit:hover {
  background: linear-gradient(135deg, #f06050 0%, #d04030 100%);
  box-shadow: 0 6px 20px rgba(229,83,60,0.4);
}
.register-submit:active { transform: scale(0.98); }
.register-submit:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 11.5px; color: #8a8780; text-align: center; }
.form-note a { color: #e5533c; text-decoration: none; }

/* ---------- footer ---------- */
footer {
  max-width: 980px; margin: 56px auto 0; padding: 24px 20px 0;
  border-top: 1px solid #e3ded0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-size: 13px; color: #8a8780; font-weight: 500;
}
footer a { color: #e5533c; text-decoration: none; }
footer .foot-name { color: #5a5750; font-weight: 600; }

/* ---------- product page ---------- */
.crumb {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 12px; color: #8a8780; font-weight: 500; padding: 16px 0 0;
}
.crumb a { color: #8a8780; text-decoration: none; }
.crumb a:hover { color: #e5533c; }

.p-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 28px; padding: 44px 0 12px; text-align: center;
}
.p-hero-text { max-width: 600px; }
.eyebrow {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 12px; font-weight: 700; color: #e5533c;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.eyebrow .cas { color: #8a8780; font-weight: 500; text-transform: none; letter-spacing: 0; }
h1.p-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5.2vw, 46px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.04;
}
.p-formula {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 18px; font-weight: 600; color: #5a5750; margin-top: 8px;
}
.p-lede {
  margin: 14px auto 0; font-size: 16.5px; line-height: 1.5;
  color: #5a5750; max-width: 520px;
}
.p-hero-actions {
  margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}

/* ---------- molecule card ---------- */
.mol-card {
  flex: 0 0 auto; width: 340px; max-width: 100%; margin: 0 auto;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid #e3ded0; border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 20px 40px rgba(0,0,0,0.08);
  padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.mol-caption {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 11.5px; color: #8a8780; font-weight: 600; text-align: center;
}
.mol-3d { width: 100%; height: 230px; border-radius: 12px; overflow: hidden; cursor: grab; touch-action: none; }
.mol-3d:active { cursor: grabbing; }
.mol-3d canvas { display: block; width: 100% !important; height: 100% !important; }
.mol-legend { display: flex; gap: 12px; justify-content: center; margin-top: 2px; }
.mol-legend span {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: #8a8780; font-weight: 600;
}
.mol-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mol-hint {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 10.5px; color: #a8a5a0; text-align: center;
  letter-spacing: 0.02em; max-width: 300px;
}

/* ---------- facts strip ---------- */
.facts-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 28px;
}
.fact {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e3ded0; border-radius: 12px; padding: 14px 16px;
}
.fact-label {
  font-family: ui-monospace, "SF Mono", "Fira Code", monospace;
  font-size: 10.5px; font-weight: 700; color: #8a8780;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.fact-value { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- about grid ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 8px; }
.about-copy p { font-size: 15.5px; line-height: 1.65; color: #5a5750; margin-bottom: 14px; }
.about-copy h3 { font-size: 16px; font-weight: 700; margin: 22px 0 8px; color: #1c1a15; }
.about-copy ul { padding-left: 20px; margin-bottom: 14px; }
.about-copy li { font-size: 15px; line-height: 1.6; color: #5a5750; margin-bottom: 6px; }
.side-widget { position: sticky; top: 80px; height: fit-content; }
.side-widget .widget-title {
  font-family: 'Archivo', sans-serif;
  font-size: 14px; font-weight: 700; margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid #e3ded0; padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.faq-a { font-size: 14.5px; line-height: 1.6; color: #5a5750; }

/* ---------- lead form ---------- */
.lead-form { display: flex; flex-direction: column; gap: 10px; }
.lead-form input, .lead-form select, .lead-form textarea {
  -webkit-appearance: none; appearance: none;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid #e3ded0; border-radius: 10px;
  padding: 12px 14px; color: #1c1a15; font-family: inherit; font-size: 14.5px; resize: vertical;
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #a8a5a0; }
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: none; border-color: #e5533c;
  box-shadow: 0 0 0 3px rgba(229, 83, 60, 0.12);
}

/* ---------- fade-in animations ---------- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- scroll-craft sections ---------- */
.sc-section { padding: 60px 0; }
.sc-section--dark {
  background: linear-gradient(180deg, #1c1a15 0%, #0a0a0c 100%);
  color: #f6f6f8; margin: 0 -20px; padding: 60px 20px;
}
.sc-section--dark .section-title { color: #f6f6f8; }
.sc-section--dark .widget { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.sc-section--dark .widget-name { color: #f6f6f8; }
.sc-section--dark .widget-sub { color: rgba(246,246,248,0.5); }
.sc-section--dark .widget-row { border-color: rgba(255,255,255,0.08); }
.sc-section--dark .widget-row .k { color: #f6f6f8; }
.sc-section--dark .widget-row .v { color: rgba(246,246,248,0.6); }
.sc-section--dark .chip { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); color: rgba(246,246,248,0.7); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .side-widget { position: static; }
  .mol-card { width: 100%; }
}
@media (max-width: 640px) {
  .widget-grid { grid-template-columns: 1fr; }
  .register-widget { padding: 28px 22px; flex-direction: column; align-items: stretch; }
  .register-form { max-width: none; }
  .hero { padding: 40px 0 30px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .widget-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .fade-in { transition: none; opacity: 1; transform: none; }
  .widget { transition: none; }
  .widget:hover { transform: none; }
}
