:root {
  --red: #d40000;
  --red2: #ff2323;
  --black: #0e0e0f;
  --ink: #1e1e21;
  --muted: #626267;
  --soft: #f7f7f8;
  --line: #e8e8ec;
  --white: #fff;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.1);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1220px, 92%);
  margin: auto;
}
.topbar {
  background: #101010;
  color: #fff;
  font-size: 13px;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 950;
  letter-spacing: 0.3px;
}
.logo img {
  height: 84px;
  width: auto;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.08));
}
.links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 800;
  font-size: 13.5px;
}
.links a {
  position: relative;
  white-space: nowrap;
}
.links a:not(.btn):after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: 0.25s;
}
.links a:hover:after {
  width: 100%;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: #fff !important;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 16px 35px rgba(212, 0, 0, 0.22);
  border: 0;
  cursor: pointer;
}
.btn.black {
  background: #111;
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.18);
}
.btn.ghost {
  background: #fff;
  color: #111 !important;
  border: 1px solid var(--line);
  box-shadow: none;
}
.hero {
  position: relative;
  min-height: 790px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(212, 0, 0, 0.15), transparent 32%),
    linear-gradient(135deg, #fff 0%, #fff 48%, #f6f6f7 100%);
}
.hero:before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -220px;
  width: 680px;
  height: 680px;
  background: conic-gradient(from 90deg, var(--red), #111, var(--red));
  border-radius: 50%;
  opacity: 0.08;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}
.kicker {
  color: var(--red);
  font-weight: 950;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 13px;
}
h1 {
  font-size: 70px;
  line-height: 0.98;
  margin: 18px 0 22px;
  letter-spacing: -2.4px;
}
h1 span {
  color: var(--red);
}
.lead {
  font-size: 20px;
  line-height: 1.65;
  color: #4d4d53;
  max-width: 740px;
}
.hero-visual {
  position: relative;
}
.hero-photo {
  height: 520px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.05),
    rgba(212, 0, 0, 0.22)
  );
}
.logo-plate {
  position: absolute;
  left: -34px;
  bottom: -44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 18px 24px;
  box-shadow: var(--shadow);
  width: 330px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.stat {
  background: #111;
  color: #fff;
  border-radius: 22px;
  padding: 20px;
  text-align: center;
}
.stat b {
  font-size: 31px;
  color: #fff;
}
.stat small {
  display: block;
  color: #d8d8d8;
  margin-top: 4px;
}
.section {
  padding: 92px 0;
}
.section.alt {
  background: var(--soft);
}
.section-title {
  max-width: 850px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-title h2 {
  font-size: 46px;
  margin: 10px 0;
  letter-spacing: -1px;
}
.section-title p {
  color: #666;
  line-height: 1.7;
  font-size: 18px;
}
.grid {
  display: grid;
  gap: 24px;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  transition: 0.28s;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
.card-img {
  height: 205px;
  margin: -28px -28px 24px;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}
.card:hover .card-img img {
  transform: scale(1.06);
}
.icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #111, var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 27px;
  margin-bottom: 18px;
}
.card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}
.card p,
.card li {
  color: #666;
  line-height: 1.65;
}
.card ul {
  padding-left: 18px;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.feature-img {
  height: 440px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #111;
  color: #fff;
}
.track {
  display: flex;
  gap: 45px;
  white-space: nowrap;
  animation: marq 23s linear infinite;
  padding: 18px 0;
  font-weight: 950;
  letter-spacing: 2px;
}
.track i {
  color: var(--red);
  font-style: normal;
}
@keyframes marq {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.badge {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 850;
}
.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
label {
  font-weight: 850;
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 15px;
  margin-top: 8px;
  font: inherit;
  background: #fff;
}
textarea {
  min-height: 130px;
}
.full {
  grid-column: 1/-1;
}
.page-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff, #f7f7f8);
  border-bottom: 1px solid var(--line);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 34px;
  align-items: center;
}
.page-hero-img {
  height: 330px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.page-hero-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.footer {
  background: #0d0d0d;
  color: #fff;
  padding: 70px 0 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 40px;
}
.footer img {
  max-width: 220px;
}
.footer p,
.footer a {
  color: #bbb;
  line-height: 1.7;
}
.footer h4 {
  color: #fff;
}
.legal-content {
  max-width: 980px;
  margin: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 44px;
  line-height: 1.75;
  color: #444;
}
.legal-content h2,
.legal-content h3 {
  color: #111;
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: 0.8s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 1050px) {
  .links {
    gap: 12px;
    font-size: 12.5px;
  }
  .logo span {
    display: none;
  }
}
@media (max-width: 900px) {
  h1 {
    font-size: 48px;
  }
  .hero-grid,
  .feature,
  .footer-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }
  .cols-3,
  .cols-4,
  .cols-2 {
    grid-template-columns: 1fr 1fr;
  }
  .links {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .logo-plate {
    position: static;
    width: auto;
    margin-top: 18px;
  }
}
@media (max-width: 560px) {
  .cols-3,
  .cols-4,
  .cols-2,
  .stats {
    grid-template-columns: 1fr;
  }
  .logo img {
    height: 58px;
  }
  .hero-photo {
    height: 360px;
  }
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-info {
  background: #111;
  color: #fff;
  border-radius: 34px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.contact-info img {
  width: 240px;
  margin-bottom: 22px;
}
.contact-info p,
.contact-info a {
  color: #ddd;
  line-height: 1.8;
}
.contact-info .detail {
  border-top: 1px solid #333;
  padding-top: 18px;
  margin-top: 18px;
}
.facility-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  margin-top: 34px;
}
.facility-strip img {
  height: 360px;
  width: 100%;
  object-fit: cover;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.timeline {
  border-left: 3px solid var(--red);
  padding-left: 24px;
}
.timeline div {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}
@media (max-width: 900px) {
  .contact-panel,
  .facility-strip {
    grid-template-columns: 1fr;
  }
}

/* V5 extended pages */
.deep-section {
  padding: 82px 0;
}
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.split-panel.reverse {
  direction: rtl;
}
.split-panel.reverse > * {
  direction: ltr;
}
.panel-copy h2 {
  font-size: 42px;
  margin: 0 0 18px;
  letter-spacing: -1px;
}
.panel-copy p {
  color: #666;
  line-height: 1.75;
  font-size: 17px;
}
.panel-image {
  height: 430px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.feature-list div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px 19px;
  font-weight: 800;
}
.feature-list span {
  color: var(--red);
  margin-right: 8px;
}
.red-panel {
  background: linear-gradient(135deg, #111, #1f1f1f 55%, #d40000);
  color: #fff;
  border-radius: 36px;
  padding: 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.red-panel:after {
  content: "";
  position: absolute;
  right: -130px;
  top: -130px;
  width: 330px;
  height: 330px;
  border: 42px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}
.red-panel p {
  color: #eee;
  line-height: 1.75;
}
.red-panel h2,
.red-panel h3 {
  color: #fff;
}
.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.mini {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 20px;
}
.mini b {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}
.spec-table th,
.spec-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  background: #111;
  color: #fff;
}
.spec-table tr:last-child td {
  border-bottom: 0;
}
.category-hero-style-a {
  background:
    radial-gradient(circle at 80% 10%, rgba(212, 0, 0, 0.22), transparent 33%),
    linear-gradient(135deg, #fff, #f8f8f9);
}
.category-hero-style-b {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 0, 0, 0.1), transparent 32%),
    linear-gradient(135deg, #fff, #fff 55%, #f2f2f4);
}
.category-hero-style-c {
  background: linear-gradient(135deg, #111 0%, #1c1c1c 55%, #d40000 100%);
  color: #fff;
}
.category-hero-style-c .lead,
.category-hero-style-c .kicker {
  color: #fff;
}
.category-hero-style-c h1 span {
  color: #fff;
}
.image-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 18px;
}
.image-row img {
  height: 260px;
  width: 100%;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .split-panel,
  .split-panel.reverse,
  .mini-grid,
  .image-row {
    grid-template-columns: 1fr;
  }
  .panel-image {
    height: 330px;
  }
}

/* V6 premium motion upgrade - no text removed */
.motion-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.motion-bg span {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: 0.055;
  background: radial-gradient(circle, #d40000, transparent 62%);
  animation: floatOrb 18s ease-in-out infinite;
}
.motion-bg span:nth-child(1) {
  left: -120px;
  top: 12%;
  animation-delay: 0s;
}
.motion-bg span:nth-child(2) {
  right: -150px;
  top: 40%;
  animation-delay: 4s;
  background: radial-gradient(circle, #111, transparent 62%);
}
.motion-bg span:nth-child(3) {
  left: 35%;
  bottom: -190px;
  animation-delay: 8s;
}
@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(40px, -55px, 0) scale(1.18);
  }
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(212, 0, 0, 0.035) 50%,
    transparent 100%
  );
  height: 180px;
  animation: scanMove 7s linear infinite;
  mix-blend-mode: multiply;
}
@keyframes scanMove {
  0% {
    transform: translateY(-220px);
  }
  100% {
    transform: translateY(calc(100vh + 220px));
  }
}

.hero:after,
.page-hero:after {
  content: "";
  position: absolute;
  inset: auto 4% 5% auto;
  width: 220px;
  height: 220px;
  border: 28px solid rgba(212, 0, 0, 0.08);
  border-radius: 50%;
  animation: pulseRing 4.8s ease-in-out infinite;
  pointer-events: none;
}
.page-hero {
  position: relative;
  overflow: hidden;
}
@keyframes pulseRing {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.55;
  }
}

.hero-photo,
.page-hero-img,
.panel-image,
.feature-img,
.card-img {
  position: relative;
  background: #111;
}
.hero-photo:before,
.page-hero-img:before,
.panel-image:before,
.feature-img:before,
.card-img:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 45%,
    transparent 68%
  );
  transform: translateX(-120%);
  animation: imageSheen 5.8s ease-in-out infinite;
}
@keyframes imageSheen {
  0%,
  35% {
    transform: translateX(-120%);
  }
  55% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.hero-photo img,
.page-hero-img img,
.panel-image img,
.feature-img img,
.card-img img,
.image-row img {
  filter: saturate(1.08) contrast(1.04);
  transition:
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.9s ease;
}
.hero-photo:hover img,
.page-hero-img:hover img,
.panel-image:hover img,
.feature-img:hover img,
.card:hover .card-img img,
.image-row img:hover {
  transform: scale(1.075);
  filter: saturate(1.18) contrast(1.08);
}

.btn {
  position: relative;
  overflow: hidden;
}
.btn:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    transparent
  );
  transform: translateX(-120%);
  transition: 0.7s;
}
.btn:hover:before {
  transform: translateX(120%);
}

.card,
.red-panel,
.form,
.contact-info,
.legal-content,
.spec-table {
  position: relative;
}
.card:after,
.form:after,
.contact-info:after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(212, 0, 0, 0.45),
    transparent 30%,
    rgba(0, 0, 0, 0.18)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.45;
  pointer-events: none;
}

.kicker {
  animation: kickerGlow 3.5s ease-in-out infinite;
}
@keyframes kickerGlow {
  0%,
  100% {
    letter-spacing: 3px;
    opacity: 0.92;
  }
  50% {
    letter-spacing: 4.2px;
    opacity: 1;
  }
}

.logo img {
  animation: logoFloat 4.8s ease-in-out infinite;
}
@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.track {
  animation: marq 19s linear infinite;
}
.reveal {
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.16, 0.8, 0.26, 1),
    filter 0.9s ease;
  filter: blur(8px);
}
.reveal.show {
  filter: blur(0);
}
.card:nth-child(2n) {
  transition-delay: 0.08s;
}
.card:nth-child(3n) {
  transition-delay: 0.16s;
}
.card:nth-child(4n) {
  transition-delay: 0.24s;
}

.split-panel:before,
.feature:before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  background: rgba(212, 0, 0, 0.07);
  border-radius: 38px;
  transform: rotate(18deg);
  animation: shapeDrift 9s ease-in-out infinite;
  pointer-events: none;
}
.split-panel,
.feature {
  position: relative;
}
@keyframes shapeDrift {
  0%,
  100% {
    right: 8%;
    top: 3%;
    transform: rotate(18deg) translateY(0);
  }
  50% {
    right: 12%;
    top: 8%;
    transform: rotate(38deg) translateY(28px);
  }
}

.category-hero-style-c .btn.ghost {
  background: #fff;
  color: #111 !important;
}

/* V7 image safety patch: keeps existing design but prevents blanks */
img {
  /* background: #111; */
}
img[src$=".svg"] {
  background: linear-gradient(135deg, #111, #d40000);
}
.page-hero-img,
.hero-photo,
.panel-image,
.feature-img,
.card-img,
.image-row img {
  background: #111;
}
