/* Mega Win Company Limited — brand colours from visiting card */
:root {
  --navy: #2E3192;
  --navy-dark: #1f2268;
  --navy-mid: #3a3da8;
  --red: #ED1C24;
  --red-dark: #c41218;
  --black: #111111;
  --grey-50: #f7f8fc;
  --grey-100: #eef0f7;
  --grey-200: #dce0ec;
  --grey-500: #64748b;
  --grey-700: #334155;
  --text: #1e293b;
  --white: #ffffff;
  --accent-export: #0d9488;
  --accent-import: #ED1C24;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(46, 49, 146, 0.10);
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--red); }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* —— Header / Nav —— */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
  border-bottom: 3px solid var(--red);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; opacity: 0.95; color: var(--white); }
.logo img {
  height: 52px;
  width: auto;
  background: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-text strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.logo-text span {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.nav-list a {
  color: rgba(255,255,255,0.88);
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-list a:hover,
.nav-list a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

main { flex: 1; }

/* —— Hero —— */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 3.5rem 0 3.75rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,28,36,0.22) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fca5a5;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 20ch;
}
.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* —— Buttons —— */
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--white);
  color: var(--navy);
}
.btn-primary:hover { background: #fee2e2; color: var(--navy-dark); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.btn-blue {
  background: var(--navy);
  color: var(--white);
}
.btn-blue:hover { background: var(--navy-dark); color: var(--white); }
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: var(--red-dark); color: var(--white); }

/* —— Sections —— */
.section { padding: 3rem 0; }
.section-alt { background: var(--grey-50); }
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.section-lead {
  color: var(--grey-500);
  margin-bottom: 2rem;
  max-width: 40rem;
}

/* —— Product images —— */
.product-img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  background: var(--grey-100);
}
.product-img.square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.product-img.wide {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.product-caption {
  font-size: 0.85rem;
  color: var(--grey-500);
  margin-top: -0.5rem;
  margin-bottom: 1rem;
}
.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}
.media-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
}
.media-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.media-card .media-body {
  padding: 1rem 1.1rem 1.2rem;
}
.media-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.media-card p {
  font-size: 0.9rem;
  color: var(--grey-700);
  margin: 0;
}

/* —— Pillar cards (Home) —— */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pillar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--navy);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pillar.export { border-top-color: var(--accent-export); }
.pillar.import { border-top-color: var(--red); }
.pillar-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--grey-100);
}
.pillar-panel {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-dark) 55%, #15184f 100%);
}
.pillar-panel-import {
  background: linear-gradient(145deg, var(--navy) 0%, #252a7a 50%, var(--navy-dark) 100%);
  position: relative;
}
.pillar-panel-import::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--navy-mid));
}
.pillar-panel-label {
  color: rgba(255,255,255,0.92);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.pillar-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pillar-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.85rem;
  width: fit-content;
}
.pillar.export .pillar-badge {
  background: #ccfbf1;
  color: #0f766e;
}
.pillar.import .pillar-badge {
  background: #fee2e2;
  color: #b91c1c;
}
.pillar h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.pillar p {
  color: var(--grey-700);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.1rem;
}
.pillar a.pillar-link {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.pillar.export a.pillar-link { color: var(--accent-export); }
.pillar.import a.pillar-link { color: var(--red); }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(90deg, var(--navy-dark), var(--navy), var(--red-dark));
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-band h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.cta-band p { opacity: 0.9; margin-bottom: 1.25rem; font-size: 0.98rem; }

/* —— Page header —— */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 2.25rem 0 2.5rem;
}
.page-header .badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}
.badge-export { background: rgba(13, 148, 136, 0.35); color: #99f6e4; }
.badge-import { background: rgba(237, 28, 36, 0.35); color: #fecaca; }
.page-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 0.4rem;
}
.page-header p {
  color: rgba(255,255,255,0.8);
  max-width: 36rem;
  font-size: 1rem;
}

.content-block { max-width: 42rem; }
.content-block p { margin-bottom: 1rem; color: var(--grey-700); }
.content-block ul {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: var(--grey-700);
}
.content-block li { margin-bottom: 0.4rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  box-shadow: var(--shadow);
  border-color: #c5c8e0;
}
.card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.card .abbr {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}
.card p { font-size: 0.9rem; color: var(--grey-500); }

.feature-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}
.feature-item {
  background: var(--white);
  border-left: 4px solid var(--accent-export);
  padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
}
.feature-item.import-style { border-left-color: var(--red); }
.feature-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}
.feature-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
.feature-item p { font-size: 0.93rem; color: var(--grey-700); margin: 0; }
.feature-item .feature-text { min-width: 0; }
.feature-item.text-only {
  grid-template-columns: 140px 1fr;
}
.feature-panel {
  width: 140px;
  height: 140px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(145deg, #1e3a5f 0%, #2E3192 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.35;
}
.pulse-also {
  margin-top: 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.pulse-also h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.pulse-also p {
  font-size: 0.93rem;
  color: var(--grey-700);
  margin: 0;
}
.pulse-also ul {
  margin: 0.6rem 0 0 1.1rem;
  color: var(--grey-700);
  font-size: 0.93rem;
}
.media-grid.media-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.media-card.text-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
}
.media-card .media-panel {
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #1e3a5f 0%, #2E3192 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 1rem;
}

/* —— Contact —— */
.contact-box {
  background: var(--grey-50);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius);
  padding: 1.75rem;
  max-width: 36rem;
}
.contact-box p { color: var(--grey-700); margin-bottom: 0.75rem; }
.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.contact-list li {
  margin-bottom: 0.65rem;
  color: var(--grey-700);
  font-size: 0.95rem;
}
.contact-list strong {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--navy);
}
.contact-list a { color: var(--navy); font-weight: 600; }
.contact-list a:hover { color: var(--red); }
.contact-note {
  font-size: 0.9rem;
  color: var(--grey-500);
  background: var(--white);
  border: 1px dashed var(--grey-200);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}
.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
  max-width: 36rem;
}
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 0.3rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid #fca5a5;
  border-color: var(--red);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-hint {
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-top: 0.5rem;
}

.form-success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
}


/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
  font-size: 0.9rem;
  border-top: 3px solid var(--red);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
}
.footer-brand strong {
  color: var(--white);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.35rem;
}
.footer-contact {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
}
.footer-contact a {
  color: rgba(255,255,255,0.9);
}
.footer-contact a:hover { color: #fecaca; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
}
.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 1.5rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}


/* —— Polymers tech grid (modern B2B) —— */
.poly-hero-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
  border: 1px solid rgba(46, 49, 146, 0.12);
}
.poly-hero-brand .poly-hero-panel {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 160px;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(237, 28, 36, 0.22) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(90, 95, 200, 0.35) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 55%, #15184f 100%);
}
.poly-hero-photo {
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  min-height: 220px;
}
.poly-hero-photo .poly-hero-img {
  width: min(420px, 78%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(26, 28, 80, 0.18);
  background: #f5f5f7;
  display: block;
}
.poly-hero-photo .poly-hero-overlay {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0.85rem;
  justify-content: center;
}
.pillar-img.circle-dish {
  object-fit: contain;
  background: #f5f5f7;
  padding: 0.75rem 1rem;
}
.poly-hero-overlay {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tech-chip {
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 49, 146, 0.15);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.tech-card {
  position: relative;
  background: linear-gradient(165deg, rgba(255,255,255,0.95) 0%, rgba(247,248,252,0.98) 100%);
  border: 1px solid rgba(46, 49, 146, 0.12);
  border-radius: 14px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: 0 4px 18px rgba(46, 49, 146, 0.06);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
  backdrop-filter: blur(6px);
}
.tech-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--navy);
  opacity: 0.85;
}
.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(46, 49, 146, 0.14);
  border-color: rgba(46, 49, 146, 0.28);
  text-decoration: none;
}
.tech-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.grade-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.1rem;
  padding: 0.32rem 0.7rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 2px 6px rgba(46, 49, 146, 0.25);
}
.grade-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(237, 28, 36, 0.15);
}
.tech-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.tech-line {
  font-size: 0.9rem;
  color: var(--grey-700);
  margin-bottom: 0.85rem;
  line-height: 1.5;
  min-height: 2.7em;
}
.tech-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.tech-meta li {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(46, 49, 146, 0.07);
  border: 1px solid rgba(46, 49, 146, 0.1);
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Per-grade accent chips & top bars */
.tech-card[data-grade="pp"]::before { background: linear-gradient(90deg, #2E3192, #5b5fc7); }
.grade-pp { background: linear-gradient(135deg, #2E3192, #4a4db8); }

.tech-card[data-grade="hdpe"]::before { background: linear-gradient(90deg, #0e7490, #22d3ee); }
.grade-hdpe { background: linear-gradient(135deg, #0e7490, #0891b2); }
.tech-card[data-grade="hdpe"] .grade-dot { background: #06b6d4; box-shadow: 0 0 0 4px rgba(6,182,212,0.18); }

.tech-card[data-grade="ldpe"]::before { background: linear-gradient(90deg, #0369a1, #38bdf8); }
.grade-ldpe { background: linear-gradient(135deg, #0369a1, #0284c7); }
.tech-card[data-grade="ldpe"] .grade-dot { background: #0ea5e9; box-shadow: 0 0 0 4px rgba(14,165,233,0.18); }

.tech-card[data-grade="lldpe"]::before { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
.grade-lldpe { background: linear-gradient(135deg, #1d4ed8, #2563eb); }
.tech-card[data-grade="lldpe"] .grade-dot { background: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,0.18); }

.tech-card[data-grade="gpps"]::before { background: linear-gradient(90deg, #64748b, #cbd5e1); }
.grade-gpps { background: linear-gradient(135deg, #475569, #64748b); }
.tech-card[data-grade="gpps"] .grade-dot { background: #94a3b8; box-shadow: 0 0 0 4px rgba(148,163,184,0.25); }

.tech-card[data-grade="pet"]::before { background: linear-gradient(90deg, #0f766e, #2dd4bf); }
.grade-pet { background: linear-gradient(135deg, #0f766e, #0d9488); }
.tech-card[data-grade="pet"] .grade-dot { background: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,0.18); }

.tech-card[data-grade="abs"]::before { background: linear-gradient(90deg, #7c3aed, #c4b5fd); }
.grade-abs { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.tech-card[data-grade="abs"] .grade-dot { background: #8b5cf6; box-shadow: 0 0 0 4px rgba(139,92,246,0.2); }

.tech-card[data-grade="pc"]::before { background: linear-gradient(90deg, #b45309, #fbbf24); }
.grade-pc { background: linear-gradient(135deg, #b45309, #d97706); }
.tech-card[data-grade="pc"] .grade-dot { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.2); }

.tech-card[data-grade="mb"]::before { background: linear-gradient(90deg, #ED1C24, #2E3192); }
.grade-mb { background: linear-gradient(135deg, #ED1C24, #c41218); }
.tech-card-accent {
  background: linear-gradient(165deg, #fff 0%, #fff5f5 55%, #f0f1fb 100%);
  border-color: rgba(237, 28, 36, 0.22);
}

.poly-lab-note {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.poly-lab-note p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--grey-700);
  line-height: 1.45;
}

.poly-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.poly-split-text .content-block {
  max-width: 42rem;
}

@media (max-width: 720px) {
  .tech-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.75rem;
  }
  .nav-list.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .logo img { height: 44px; }
  .logo-text strong { font-size: 0.92rem; }
  .pillars, .media-grid, .media-grid.media-grid-3 { grid-template-columns: 1fr; }
  .feature-item, .feature-item.text-only { grid-template-columns: 1fr; }
  .feature-item img, .feature-panel { width: 100%; height: auto; aspect-ratio: 1; }
  .hero { padding: 2.5rem 0 2.75rem; }
  .section { padding: 2.25rem 0; }
  .poly-hero-brand .poly-hero-panel { aspect-ratio: 2 / 1; min-height: 120px; }
  .poly-hero-photo { min-height: 180px; padding: 1rem 0.75rem 2.2rem; }
  .poly-hero-photo .poly-hero-img { width: min(300px, 82%); }
}

/* —— Language switcher —— */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
  margin-left: 0.35rem;
}
.lang-switcher.notranslate { /* keep picker labels in English */ }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.15s;
}
.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.2);
}
.lang-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lang-current { min-width: 1.6em; text-align: left; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 10.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  z-index: 200;
}
.lang-menu[hidden] { display: none !important; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}
.lang-menu button:hover {
  background: var(--grey-100);
  color: var(--navy);
}
.lang-menu button.is-active {
  background: rgba(46, 49, 146, 0.1);
  color: var(--navy);
  font-weight: 700;
}

/* Hide Google Translate chrome; keep translation working */
#google_translate_element,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-spinner-pos {
  display: none !important;
}
body { top: 0 !important; }
.goog-te-gadget { font-size: 0 !important; }
.skiptranslate iframe { visibility: hidden !important; height: 0 !important; }
font { background: transparent !important; box-shadow: none !important; }

@media (max-width: 720px) {
  .lang-switcher {
    margin-left: auto;
    order: 2;
  }
  .nav-toggle { order: 3; }
  .nav-list { order: 4; }
  .logo { order: 1; }
}

/* —— v2: header quote CTA, spec tables, honeypot —— */
.header-cta { padding: 0.5rem 1rem; font-size: 0.88rem; white-space: nowrap; flex-shrink: 0; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; opacity: 0; }
.spec-table { width: 100%; border-collapse: collapse; margin: 0.9rem 0 0.8rem; font-size: 0.82rem; }
.spec-table caption { text-align: left; font-weight: 700; color: var(--navy); margin-bottom: 0.35rem; font-size: 0.85rem; }
.spec-table th, .spec-table td { border: 1px solid #e2e3ef; padding: 0.4rem 0.5rem; text-align: left; }
.spec-table th { background: rgba(46, 49, 146, 0.08); color: var(--navy); font-weight: 600; }
.spec-table td { color: var(--grey-700); }
.btn-quote { margin-top: 0.25rem; }
.tech-quote { display: inline-block; margin-top: 0.75rem; font-weight: 700; font-size: 0.88rem; color: var(--red); text-decoration: none; }
.tech-quote:hover { text-decoration: underline; }
.feature-text { min-width: 0; }
.notfound { text-align: center; padding: 4rem 0; }
.notfound .code { font-size: 4.5rem; font-weight: 800; color: var(--red); line-height: 1; }
@media (max-width: 720px) {
  .header-cta { order: 2; padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .spec-table { font-size: 0.8rem; }
  .spec-table th, .spec-table td { padding: 0.35rem 0.4rem; }
}
.spec-table tbody th { background: rgba(46, 49, 146, 0.04); text-align: left; white-space: nowrap; }
.spec-table .spec-trade th, .spec-table .spec-trade td { border-top-width: 2px; }
.spec-note { font-size: 0.75rem; color: var(--grey-500); margin: -0.4rem 0 0.8rem; }
@media (max-width: 720px) { .spec-table tbody th { white-space: normal; } }
