:root {
  --primary: #FFD700;
  --secondary: #FF6700;
  --secondary-dark: #e55a00;
  --light: #F5F5F5;
  --light-gray: #e0e0e0;
  --medium-gray: #707070;
  --dark: #1A1A1A;
  --white: #ffffff;
  --footer-bg: #171923;
  --warning-bg: #fffbe6;
  --warning-card: #fffde7;
  --shadow-soft: 0 5px 15px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 15px 30px rgba(0, 0, 0, 0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 94px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  background-color: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.6;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

ul {
  padding-left: 1.2rem;
}

main {
  min-height: 70vh;
}

/* ================= HEADER & NAVIGATION ================= */

header {
  background-color: rgba(255, 255, 255, 0.96);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 3000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.10);
  padding: 15px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}

.logo-container {
  display: flex;
  align-items: center;
  min-width: max-content;
}

.logo {
  height: 64px;
  margin-right: 12px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-text {
  color: var(--primary);
  font-weight: 800;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
  white-space: nowrap;
}

.logo-text span {
  color: var(--secondary);
}

nav ul,
.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  padding-left: 0;
}

nav li {
  margin: 0;
}

nav a {
  color: var(--dark);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

nav a:hover,
nav a.active,
nav a[aria-current="page"] {
  background-color: var(--primary);
  color: var(--dark);
}

.login-btn {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
}

.login-btn:hover {
  background: var(--secondary-dark);
  color: var(--white) !important;
}

.mobile-nav-toggle {
  display: none;
  background: #fff3ee;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #c14800;
  margin-left: auto;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.lang-switcher button,
.lang-switcher span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--dark);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.70;
  transition: opacity 0.25s ease, transform 0.25s ease;
  padding: 4px 2px;
}

.lang-switcher button:hover,
.lang-switcher span:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-switcher button.active,
.lang-switcher span.active {
  opacity: 1;
  font-weight: 800;
  text-decoration: underline;
}

/* ================= HERO / BANNER ================= */

.banner {
  min-height: calc(100vh - 80px);
  background:
    linear-gradient(rgba(255, 215, 0, 0.30), rgba(255, 215, 0, 0.10)),
    url("../img/banner_cantiere.png");
  background-size: cover;
  background-position: center;
  background-blend-mode: lighten;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: var(--header-height);
  padding: 90px 20px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0.38) 0%,
    rgba(20, 20, 20, 0.25) 42%,
    rgba(0, 0, 0, 0.22) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 940px;
  padding: 0 20px;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
}

.banner h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.06;
  margin-bottom: 22px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 1px 0 #000;
}

.banner h1 span {
  color: var(--secondary);
}

.banner p {
  color: var(--white);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.65), 0 1px 0 #000;
}

.banner #banner-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 760px;
  margin: 0 auto;
}

.cta-row {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--secondary);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid var(--secondary);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.10);
}

.cta-button:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.20);
}

.cta-button.secondary {
  background: var(--white);
  border: 2px solid var(--secondary);
  color: var(--secondary) !important;
}

.cta-button.secondary:hover {
  background: var(--secondary);
  color: var(--white) !important;
}

/* ================= SECTIONS ================= */

.features-section,
.avatar-section,
.page-section {
  padding: 95px 5%;
  background: var(--white);
}

.alt-section {
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
}

.section-title {
  text-align: center;
  margin-bottom: 58px;
}

.section-title h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.8rem);
  margin-bottom: 15px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-title .divider {
  width: 100px;
  height: 5px;
  background: var(--secondary);
  margin: 0 auto 20px;
  border-radius: 10px;
}

.section-title p {
  color: var(--medium-gray);
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.16rem;
  line-height: 1.7;
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-container.two-columns {
  grid-template-columns: repeat(2, minmax(290px, 1fr));
  align-items: stretch;
}

.feature-card,
.info-card,
.document-card,
.event-card,
.gallery-card {
  background: var(--light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  padding: 38px 25px;
}

.feature-card:hover,
.info-card:hover,
.document-card:hover,
.event-card:hover,
.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.product-preview-card {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
}

.feature-image {
  width: 100%;
  max-width: 260px;
  display: block;
  margin: 0 auto 25px;
  border-radius: 10px;
}

.feature-card h3,
.info-card h3,
.document-card h3,
.event-card h3,
.gallery-card h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.45rem;
}

.feature-card p,
.info-card p,
.document-card p,
.event-card p,
.gallery-card p {
  color: var(--medium-gray);
  line-height: 1.7;
}

.feature-list {
  text-align: left;
  margin: 20px auto;
  max-width: 340px;
  color: var(--dark);
}

.feature-list li {
  margin-bottom: 10px;
}

.card-actions,
.section-cta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.video-card {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.video-card video {
  width: 100%;
  border-radius: 10px;
  display: block;
  background: #111;
}

.video-card p {
  margin-top: 12px;
  font-weight: 700;
}

/* ================= INFO GRID / RESEARCH ================= */

.info-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
}

.info-card i {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 22px;
}

/* ================= SAFETY SECTION ================= */

.safety-section {
  background: var(--warning-bg);
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.safety-card {
  display: flex;
  align-items: flex-start;
  background: var(--warning-card);
  border-left: 8px solid var(--secondary);
  border-radius: 12px;
  padding: 30px 35px;
  box-shadow: 0 4px 24px rgba(255, 103, 0, 0.08);
  max-width: 760px;
  width: 100%;
}

.safety-icon {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-right: 24px;
  margin-top: 4px;
}

.safety-content h3 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 1.4rem;
}

.safety-content ul {
  color: var(--dark);
  margin-left: 16px;
  font-size: 1.06rem;
}

/* ================= AVATAR SECTION ================= */

.avatar-section {
  background: linear-gradient(to bottom, #f9f9f9, #ffffff);
  text-align: center;
}

.avatar-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: center;
}

.avatar-player {
  flex: 1;
  min-width: 480px;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary);
}

.avatar-player video,
.avatar-player iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.avatar-features {
  flex: 1;
  min-width: 300px;
  text-align: left;
  counter-reset: avatarCounter;
}

.feature-item {
  margin-bottom: 30px;
  padding-left: 44px;
  position: relative;
  counter-increment: avatarCounter;
}

.feature-item::before {
  content: counter(avatarCounter);
  position: absolute;
  left: 0;
  top: 3px;
  width: 27px;
  height: 27px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  font-weight: 800;
}

.feature-item h3 {
  color: var(--secondary);
  margin-bottom: 10px;
  font-size: 1.32rem;
}

.feature-item p {
  color: var(--medium-gray);
  line-height: 1.7;
}

/* ================= PAGE HERO / FUTURE PAGES ================= */

.page-hero {
  margin-top: var(--header-height);
  padding: 120px 5% 75px;
  background:
    linear-gradient(rgba(255, 215, 0, 0.20), rgba(255, 215, 0, 0.08)),
    url("../img/banner_cantiere.png");
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.42);
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 4rem);
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--white);
  font-size: 1.18rem;
  max-width: 780px;
  margin: 0 auto;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.65);
}

.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.text-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 38px;
}

.spec-grid,
.documents-grid,
.events-grid,
.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.spec-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.documents-grid,
.events-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.spec-item {
  background: var(--light);
  border-radius: 12px;
  padding: 24px;
  border-left: 5px solid var(--secondary);
  box-shadow: var(--shadow-soft);
}

.spec-item h3 {
  color: var(--secondary);
  margin-bottom: 8px;
}

.spec-item p {
  color: var(--medium-gray);
}

.audio-toolbar {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.audio-toolbar .cta-button {
  padding: 12px 22px;
}

[data-audio-state="playing"] {
  box-shadow: 0 0 0 4px rgba(255, 103, 0, 0.18);
}

/* ================= ABOUT / PATENT ================= */

.about-section {
  max-width: 950px;
  margin: calc(var(--header-height) + 40px) auto 56px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(74, 20, 140, 0.09);
  padding: 44px 40px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 36px;
}

.about-image {
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-image img {
  width: 100%;
  max-width: 320px;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(74, 20, 140, 0.12);
  object-fit: cover;
}

.about-content {
  flex: 2 1 370px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-patent {
  margin: 18px 0 6px;
  padding: 12px 18px;
  background: #f6f1fa;
  border-left: 4px solid #4a148c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  font-size: 1.08rem;
  font-weight: 500;
  color: #3d2072;
}

.about-values {
  margin-top: 12px;
  padding-left: 8px;
}

.about-values li {
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.about-team {
  margin-top: 18px;
}

.patent-document {
  width: 100%;
  margin-top: 20px;
  border: 2px solid #4a148c;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(74, 20, 140, 0.15);
}

.patent-header {
  background-color: #4a148c;
  color: var(--white);
  padding: 8px 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.patent-header i {
  cursor: pointer;
}

.patent-viewer {
  height: 400px;
  width: 100%;
  border: none;
}

.patent-footer {
  background-color: #f5f5f5;
  padding: 8px 12px;
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  cursor: pointer;
  transition: background-color 0.25s;
}

.patent-footer:hover {
  background-color: #e8e8e8;
}

#patent-title {
  flex-grow: 1;
  text-align: left;
}

#patent-footer-text {
  text-align: center;
}

/* ================= CONTACT ================= */

.contact-section {
  background: #f8fafd;
  padding: calc(var(--header-height) + 60px) 20px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 28px;
  width: 100%;
  max-width: var(--max-width);
}

.contact-form {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 32px rgba(74, 20, 140, 0.09);
  padding: 40px 38px 24px;
  max-width: 430px;
  min-width: 300px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 7px;
  margin-bottom: 16px;
  border: 1.5px solid #dedede;
  border-radius: 8px;
  padding: 11px 13px;
  font-size: 1.05rem;
  background: #f6f8fa;
  transition: border-color 0.2s, background-color 0.2s;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: var(--white);
}

.contact-form .field-error {
  border-color: #d32f2f;
  background: #fff4f4;
}

.contact-form label {
  font-weight: 700;
  color: #232343;
}

.contact-info-box {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(74, 20, 140, 0.05);
  padding: 34px 38px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  font-size: 1.05rem;
}

.contact-info-box h3 {
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 1.19rem;
  font-weight: 800;
}

/* ================= FOOTER ================= */

footer {
  background: var(--footer-bg);
  color: var(--light);
  padding: 60px 0 30px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
}

.footer-column h3 {
  position: relative;
  margin-bottom: 28px;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--secondary);
}

.footer-column p {
  color: #ccc;
  line-height: 1.7;
  max-width: 320px;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
}

.footer-column ul li {
  margin-bottom: 14px;
}

.footer-column ul li a {
  color: #eee;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-column ul li a:hover,
.footer-column ul li a.active {
  color: var(--primary);
}

.footer-column .login-btn {
  display: inline-block;
  margin-top: 4px;
}

.contact-info {
  color: #ccc;
  line-height: 1.8;
}

.contact-info p {
  max-width: none;
  margin-bottom: 8px;
}

.contact-info i {
  color: var(--primary);
  width: 20px;
  margin-right: 10px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid #333;
  color: #bbb;
  background: transparent;
}

/* ================= MEDIA STATE ================= */

.media-error,
.image-error {
  outline: 2px dashed #d32f2f;
  outline-offset: 4px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1100px) {
  nav a {
    font-size: 0.78rem;
    padding: 8px 9px;
  }

  .logo-text {
    font-size: 1.65rem;
  }

  .logo {
    height: 56px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  header {
    padding: 10px 0;
  }

  .header-container {
    justify-content: flex-start;
  }

  .logo {
    height: 48px;
  }

  .logo-text {
    font-size: 1.35rem;
    letter-spacing: 1.2px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 4300;
  }

  #primary-nav {
    position: fixed;
    top: 72px;
    right: 12px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    padding: 14px 12px;
    display: none !important;
    flex-direction: column;
    align-items: flex-start;
    min-width: 235px;
    z-index: 4200;
  }

  #primary-nav.is-open {
    display: flex !important;
  }

  #primary-nav li {
    width: 100%;
  }

  #primary-nav a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .lang-switcher {
    position: fixed;
    top: 14px;
    right: 66px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 999px;
    padding: 6px 8px;
    gap: 6px;
    z-index: 4200;
    margin-left: 0;
  }

  .lang-switcher button,
  .lang-switcher span {
    padding: 4px 6px;
    font-size: 0.82rem;
  }

  .banner {
    min-height: calc(100vh - 72px);
    margin-top: 72px;
    padding: 80px 18px;
  }

  .features-section,
  .avatar-section,
  .page-section {
    padding: 70px 5%;
  }

  .features-container.two-columns,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .avatar-container {
    gap: 32px;
  }

  .avatar-player {
    min-width: 100%;
  }

  .about-section {
    margin: calc(var(--header-height) + 24px) auto 40px;
    flex-direction: column;
    padding: 28px 5vw 32px;
  }

  .about-image,
  .about-content {
    max-width: none;
  }

  .patent-viewer {
    height: 300px;
  }

  .contact-container {
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }

  .contact-form,
  .contact-info-box {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .avatar-player {
    min-width: 0 !important;
    aspect-ratio: 16 / 9;
  }

  .avatar-player video,
  .avatar-player iframe {
    min-height: 160px;
    border-radius: 10px;
  }

  .safety-card {
    flex-direction: column;
    padding: 26px 24px;
  }

  .safety-icon {
    margin: 0 0 14px;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
    padding: 13px 20px;
  }

  .cta-row,
  .card-actions,
  .section-cta,
  .audio-toolbar {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.08rem;
  }

  .logo {
    height: 42px;
    margin-right: 8px;
  }

  .lang-switcher {
    right: 62px;
    gap: 2px;
    padding: 5px 5px;
  }

  .lang-switcher button,
  .lang-switcher span {
    font-size: 0.72rem;
    padding: 3px 4px;
  }

  #primary-nav {
    right: 8px;
    min-width: 215px;
  }

  .banner h1 {
    font-size: 2rem;
  }

  .banner #banner-subtitle,
  .page-hero p {
    font-size: 1rem;
  }

  .section-title h2 {
    font-size: 1.75rem;
  }

  .feature-card,
  .info-card,
  .document-card,
  .event-card,
  .gallery-card,
  .text-card {
    padding: 28px 20px;
  }

  .contact-form {
    padding: 30px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ================= ABOUT PAGE FIXES ================= */
.about-title-block {
  text-align: left;
  margin-bottom: 8px;
}

.about-title-block .divider {
  margin-left: 0;
}

.about-title-block h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  margin-bottom: 15px;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-patent i {
  color: #4a148c;
  font-size: 2rem;
  margin-right: 10px;
  flex: 0 0 auto;
}

.patent-fullscreen-btn {
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
}

.patent-footer {
  width: 100%;
  border: none;
  display: block;
  font: inherit;
}

@media (max-width: 900px) {
  .about-title-block,
  .about-title-block .section-title {
    text-align: center;
  }

  .about-title-block .divider {
    margin-left: auto;
  }
}

/* ================= EVENTS PAGE REFINEMENT ================= */
.compact-title {
  margin-bottom: 34px;
}

.event-featured-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.25fr);
  gap: 34px;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.event-featured-media {
  min-height: 360px;
  background: #111;
}

.event-featured-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.event-featured-content {
  padding: 42px 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-featured-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.16;
  margin-bottom: 18px;
  color: var(--dark);
}

.event-featured-content p {
  color: var(--medium-gray);
  font-size: 1.08rem;
  line-height: 1.75;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.event-meta-grid div {
  background: var(--light);
  border-left: 4px solid var(--secondary);
  border-radius: 10px;
  padding: 14px 12px;
}

.event-meta-grid strong {
  display: block;
  color: var(--secondary);
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.event-meta-grid span {
  display: block;
  color: var(--medium-gray);
  font-size: 0.92rem;
}

.media-showcase {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.media-main-card,
.media-side-card {
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-main-card:hover,
.media-side-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.media-main-video.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.media-side-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.media-side-video.video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.media-card-body {
  padding: 24px 26px 28px;
}

.compact-media-body {
  padding: 18px 20px 22px;
}

.media-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  background: #fff3ee;
  color: var(--secondary);
  border: 1px solid rgba(255, 103, 0, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
}

.media-card-body p {
  color: var(--medium-gray);
  line-height: 1.68;
  margin: 0;
}

.refined-gallery-grid {
  align-items: stretch;
}

.refined-gallery-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.refined-gallery-card img,
.media-kit-box {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: flex;
}

.refined-gallery-card figcaption {
  padding: 18px 20px;
  color: var(--dark);
  font-weight: 700;
  line-height: 1.45;
}

.media-kit-box {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--dark);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  padding: 20px;
}

.media-kit-box i {
  font-size: 2.7rem;
}

.media-kit-box strong {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

@media (max-width: 900px) {
  .event-featured-card,
  .media-showcase {
    grid-template-columns: 1fr;
  }

  .event-featured-media,
  .event-featured-media img {
    min-height: 240px;
  }

  .event-featured-content {
    padding: 32px 26px;
  }

  .event-meta-grid {
    grid-template-columns: 1fr;
  }
}


/* ================= PRODUCT PAGE - PHASE 2 ================= */

.product-hero,
.events-hero {
  background-position: center;
}

.product-intro-section {
  background: var(--white);
}

.product-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.25fr);
  gap: 34px;
  align-items: center;
}

.product-visual-card,
.product-text-card,
.event-featured-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.product-visual-card {
  padding: 30px;
  text-align: center;
  border: 1px solid rgba(255, 103, 0, 0.10);
}

.product-visual-card img {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 22px;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.product-badges span {
  background: #fff3ee;
  color: #c14800;
  border: 1px solid rgba(255, 103, 0, 0.20);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 800;
}

.product-text-card {
  padding: 42px;
  border-left: 7px solid var(--secondary);
}

.product-text-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--dark);
}

.product-text-card p {
  color: var(--medium-gray);
  font-size: 1.12rem;
}

.product-action-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.technical-spec-grid .spec-item {
  min-height: 250px;
}

.spec-item i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 16px;
}

.workflow-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workflow-card {
  background: var(--light);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--secondary);
}

.workflow-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  font-weight: 900;
  margin-bottom: 18px;
}

.workflow-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.workflow-card p {
  color: var(--medium-gray);
}

.document-card i {
  font-size: 2.4rem;
  color: var(--secondary);
  margin-bottom: 18px;
}

.document-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  color: var(--secondary);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
}

.document-link.is-disabled {
  color: #888;
  border-bottom-style: dashed;
  pointer-events: none;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
  background: var(--white);
}

.gallery-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 18px;
  font-weight: 800;
  color: var(--dark);
}


/* ================= PRODUCT WORKFLOW REFINEMENT ================= */
.product-workflow-section {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.18), transparent 34%),
    linear-gradient(to bottom, #ffffff, #fffaf0);
  position: relative;
  overflow: hidden;
}

.workflow-title-block p {
  max-width: 880px;
  color: #555;
  font-weight: 500;
}

.workflow-center {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 28px;
  position: relative;
  align-items: stretch;
}

.workflow-connector {
  position: absolute;
  top: 58px;
  left: 13%;
  right: 13%;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary), var(--secondary));
  border-radius: 999px;
  opacity: 0.75;
  z-index: 0;
}

.workflow-card-modern {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(255, 103, 0, 0.16);
  border-top: none;
  border-radius: 22px;
  padding: 34px 28px 32px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.workflow-card-modern::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

.workflow-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.12);
}

.workflow-card-modern .workflow-icon-node {
  width: 92px;
  height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #fff3ee;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 22px rgba(255, 103, 0, 0.18);
}

.workflow-card-modern .workflow-icon-node i {
  color: var(--secondary);
  font-size: 2rem;
}

.workflow-card-modern .workflow-number {
  position: absolute;
  top: -12px;
  right: -10px;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.86rem;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.16);
}

.workflow-card-modern h3 {
  color: var(--secondary);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.workflow-card-modern p {
  color: var(--medium-gray);
  line-height: 1.68;
  margin: 0;
}

@media (max-width: 900px) {
  .workflow-center {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .workflow-connector {
    display: none;
  }

  .workflow-card-modern {
    padding: 30px 24px;
  }
}


/* ================= EVENTS PAGE - ERGO.TEC ARCHIVE UPDATE ================= */
.event-highlight-section {
  background: linear-gradient(to bottom, #ffffff, #fffaf0);
}

.event-featured-card-archive {
  border: 1px solid rgba(255, 103, 0, 0.14);
}

.event-featured-poster picture,
.event-featured-poster img {
  width: 100%;
  height: 100%;
  display: block;
}

.event-featured-poster img {
  object-fit: cover;
  object-position: center;
}

.event-meta-grid-archive div {
  background: #fff8df;
}

.event-featured-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.event-featured-actions .cta-button {
  padding: 12px 20px;
  font-size: 0.9rem;
}

.event-gallery-section {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.18), transparent 30%),
    var(--white);
}

.event-gallery-categories {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.event-category-card {
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #111;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.event-category-card.category-large {
  grid-column: span 2;
}

.event-category-card img,
.media-kit-visual {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.media-kit-visual {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--dark);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.media-kit-visual i {
  font-size: 3rem;
}

.media-kit-visual strong {
  font-size: 1.45rem;
  letter-spacing: 1px;
}

.event-category-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 24px 24px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.12));
  z-index: 1;
}

.event-category-overlay.solid-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.20));
}

.event-category-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--dark);
  font-weight: 900;
  margin-bottom: 12px;
}

.event-category-overlay h3 {
  color: var(--white);
  font-size: 1.36rem;
  margin-bottom: 8px;
}

.event-category-overlay p {
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin: 0;
}

.timeline-grid-archive .timeline-card {
  border-top: 6px solid var(--secondary);
}

.media-kit-section {
  background: linear-gradient(to bottom, #ffffff, #f7f7f7);
}

.media-kit-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.media-kit-download-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 103, 0, 0.12);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.media-kit-download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.media-kit-download-card i {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3ee;
  color: var(--secondary);
  font-size: 1.7rem;
  margin-bottom: 18px;
}

.media-kit-download-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.media-kit-download-card p {
  color: var(--medium-gray);
  line-height: 1.62;
}

.download-card-highlight {
  border: 2px solid rgba(255, 103, 0, 0.35);
}

@media (max-width: 1000px) {
  .event-gallery-categories,
  .media-kit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-category-card.category-large {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .event-gallery-categories,
  .media-kit-grid {
    grid-template-columns: 1fr;
  }

  .event-category-card.category-large {
    grid-column: span 1;
  }

  .event-featured-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .event-featured-actions .cta-button {
    width: 100%;
    max-width: none;
  }
}


/* ================= EVENTS EXPO MEDIA WALL UPDATE ================= */
.expo-media-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.youtube-feature-card,
.compact-video-card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid rgba(255, 103, 0, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.youtube-feature-card:hover,
.compact-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.youtube-thumb-link {
  position: relative;
  display: block;
  min-height: 360px;
  background: #111;
  overflow: hidden;
}

.youtube-thumb-link img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  filter: saturate(1.03) contrast(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.youtube-thumb-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.05));
  pointer-events: none;
}

.youtube-thumb-link:hover img {
  transform: scale(1.035);
  filter: saturate(1.10) contrast(1.04);
}

.youtube-play-badge,
.mini-play {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.youtube-play-badge {
  left: 28px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 1.45rem;
}

.youtube-feature-card h3 {
  color: var(--secondary);
  margin: 0 0 10px;
  font-size: 1.45rem;
}

.expo-video-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.compact-video-frame {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.compact-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #111;
}

.expo-gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 18px;
}

.expo-photo-card {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--white);
  isolation: isolate;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.expo-photo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.expo-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.expo-photo-card:hover img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

.expo-photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.06) 58%);
  z-index: 1;
  pointer-events: none;
}

.expo-photo-large {
  grid-column: span 2;
  grid-row: span 2;
}

.expo-photo-label,
.expo-photo-card strong {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 2;
}

.expo-photo-label {
  bottom: 58px;
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 40px);
  background: rgba(255, 215, 0, 0.94);
  color: var(--dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.expo-photo-card strong {
  bottom: 20px;
  font-size: 1rem;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.youtube-mini-card .mini-play {
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1rem;
}

@media (max-width: 1000px) {
  .expo-media-layout,
  .expo-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expo-photo-large {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .expo-media-layout,
  .expo-gallery-grid {
    grid-template-columns: 1fr;
  }

  .youtube-thumb-link,
  .youtube-thumb-link img {
    min-height: 250px;
  }

  .expo-gallery-grid {
    grid-auto-rows: 245px;
  }

  .expo-photo-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}



/* ================= HOME RESEARCH SECTION ================= */
.research-story-section {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, #ffffff 46%, #fff8ef 100%);
}

.dark-eyebrow {
  color: var(--secondary);
  text-shadow: none;
}

.left-divider {
  margin: 0 0 22px;
}

.research-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.research-top-card {
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(255, 103, 0, 0.10);
  border-radius: 24px;
  padding: 38px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.research-top-copy h2 {
  font-size: clamp(1.95rem, 3.3vw, 2.9rem);
  margin-bottom: 14px;
  line-height: 1.14;
  color: var(--dark);
}

.research-lead {
  color: var(--medium-gray);
  font-size: 1.08rem;
  line-height: 1.78;
  max-width: 720px;
}

.research-chain-card {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1f232d 0%, #2c303b 100%);
  overflow: hidden;
}

.research-chain-line {
  position: absolute;
  top: 50%;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,215,0,0.15), rgba(255,103,0,0.9), rgba(255,215,0,0.15));
  transform: translateY(-50%);
}

.research-chain-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 140px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);
  border-radius: 18px;
  padding: 18px;
}

.research-chain-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), #ffec8a);
  color: var(--dark);
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(255, 215, 0, 0.18);
}

.research-chain-node strong {
  color: var(--white);
  font-size: 1.08rem;
  line-height: 1.2;
}

.research-chain-node span:last-child {
  color: rgba(255,255,255,0.82);
  font-size: 0.94rem;
  line-height: 1.45;
}

.research-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.78fr);
  gap: 28px;
  align-items: stretch;
}

.research-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.research-step-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px 24px 26px;
  border: 1px solid rgba(255, 103, 0, 0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-step-card:hover,
.research-highlight-card:hover,
.research-metric-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 34px rgba(0,0,0,0.10);
}

.research-step-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.research-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff2cf;
  color: var(--secondary);
  font-weight: 900;
  letter-spacing: 0.8px;
}

.research-step-badge i {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff3ee;
  color: var(--secondary);
  font-size: 1.25rem;
}

.research-step-card h3 {
  color: var(--secondary);
  font-size: 1.22rem;
  margin-bottom: 10px;
  line-height: 1.28;
}

.research-step-card p {
  color: var(--medium-gray);
  line-height: 1.68;
  margin: 0;
}

.research-side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.research-metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.research-metric-card,
.research-highlight-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid rgba(255, 103, 0, 0.10);
  box-shadow: 0 14px 30px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.research-metric-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.research-metric-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--secondary), var(--primary));
}

.research-metric-card strong {
  color: var(--secondary);
  font-size: 1.18rem;
  padding-left: 10px;
}

.research-metric-card span {
  color: var(--medium-gray);
  font-size: 0.95rem;
  padding-left: 10px;
}

.research-highlight-card {
  padding: 28px 24px;
  background: linear-gradient(145deg, #1e232d 0%, #303544 100%);
  color: var(--white);
}

.research-highlight-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 12px 26px rgba(255,103,0,0.24);
  margin-bottom: 18px;
}

.research-highlight-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.25;
}

.research-highlight-card p {
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
  margin-bottom: 20px;
}

.research-cta-button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1080px) {
  .research-main-grid,
  .research-top-card {
    grid-template-columns: 1fr;
  }

  .research-step-grid {
    grid-template-columns: 1fr;
  }

  .research-chain-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .research-top-card,
  .research-step-card,
  .research-highlight-card,
  .research-metric-card {
    padding-left: 20px;
    padding-right: 20px;
  }

  .research-chain-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .research-chain-line {
    display: none;
  }

  .research-chain-node {
    min-height: auto;
  }
}



/* ================= CONTACT PAGE MODERNIZATION ================= */
.contact-hero {
  background-position: center;
}

.contact-page-section {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.18), transparent 30%),
    linear-gradient(to bottom, #ffffff, #fff8ef);
}

.contact-page-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
  gap: 30px;
  align-items: stretch;
}

.contact-panel {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 103, 0, 0.12);
  padding: 38px;
}

.contact-form-panel h2,
.contact-info-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--dark);
}

.contact-form-panel > p,
.contact-info-panel > p {
  color: var(--medium-gray);
  line-height: 1.72;
  margin-bottom: 24px;
}

.modern-contact-form {
  max-width: none;
  min-width: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
}

.modern-contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.modern-contact-form .form-group {
  margin-bottom: 16px;
}

.modern-contact-form label {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--dark);
  font-weight: 800;
}

.modern-contact-form input,
.modern-contact-form textarea {
  width: 100%;
  border: 1.5px solid #dedede;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f9fafc;
}

.modern-contact-form input:focus,
.modern-contact-form textarea:focus {
  border-color: var(--secondary);
  background: var(--white);
  outline: none;
}

.contact-submit-button {
  width: 100%;
  margin-top: 6px;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.contact-result {
  min-height: 24px;
  margin-top: 14px;
  color: var(--secondary);
  font-weight: 800;
}

.contact-info-panel {
  background: linear-gradient(145deg, #1e232d 0%, #303544 100%);
  color: var(--white);
}

.contact-info-panel h2 {
  color: var(--white);
}

.contact-info-panel > p,
.contact-info-list p {
  color: rgba(255,255,255,0.84);
}

.contact-info-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.contact-info-list p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
}

.contact-info-list i {
  color: var(--primary);
  min-width: 20px;
  margin-top: 4px;
}

.contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 20px;
}

.contact-quick-links .document-link {
  color: var(--primary);
}

@media (max-width: 900px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .contact-panel {
    padding: 28px 22px;
  }

  .modern-contact-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ================= PDF PATENT OPEN LINK ================= */
.patent-fullscreen-btn,
.patent-open-pdf-btn {
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 1rem;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
}

.patent-fullscreen-btn:hover,
.patent-open-pdf-btn:hover {
  color: var(--primary);
}

.patent-open-link {
  text-decoration: none;
}

.patent-open-link:focus-visible,
.patent-fullscreen-btn:focus-visible,
.patent-open-pdf-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
