/* Site-wide centering: section headings and lead paragraphs (heroes stay left-aligned) */
.ex-hero-inner { width: 100%; text-align: left; }
.ex-hero-inner .section-lead { margin-left: 0; text-align: left; }
.section-lead { margin-left: auto; margin-right: auto; text-align: center; }
main section > .container > h2 { text-align: center; }
.ex-compare h2, .ex-compare-lead { text-align: center; }
.ex-compare-cols { max-width: 900px; margin: 40px auto 0; text-align: center; }
@media (max-width: 768px) { .ex-compare-cols { grid-template-columns: 1fr !important; gap: 28px !important; } }
.ex-compare-cols ul { display: inline-block; text-align: left; }

/* Phones: stack inline grids, footer columns, and let wide tables scroll */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
  [style*="repeat(2"], [style*="repeat(3"], [style*="repeat(4"], [style*="1fr 1fr"] { grid-template-columns: 1fr !important; }
  .spec-table { display: block; overflow-x: auto; }
}

/* Phones: keep the process strip legible by letting it scroll sideways */
@media (max-width: 640px) {
  .nanotech-flow { overflow-x: auto; }
  .nanotech-flow img { min-width: 640px; }
}

/* Two-column checklists (Performance/Sustainability etc.): centered block, headings centered, list text left */
.center-cols { max-width: 800px; margin: 0 auto; text-align: center; }
.center-cols ul { display: inline-block; text-align: left; }

/* Application card titles */
.app-card h3 { text-align: center; }

/* Case-study lab results table and notes */
.lab-table { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 0.9rem; }
.lab-table th { text-align: right; color: var(--teal); font-weight: 700; padding: 8px 10px; border-bottom: 2px solid rgba(139,95,246,0.3); }
.lab-table td { text-align: right; padding: 8px 10px; border-bottom: 1px solid rgba(139,95,246,0.2); }
.lab-table th:first-child, .lab-table td:first-child { text-align: left; }
.lab-note { font-size: 0.8rem; opacity: 0.7; font-style: italic; margin: 6px 0 0; }

/* Lifecycle steps (how-it-works) */
.lifecycle-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; max-width: 980px; margin: 0 auto; }
.lifecycle-step { flex: 0 1 220px; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; background: rgba(255,255,255,0.02); }
.lifecycle-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(31,224,201,0.15); color: var(--teal); font-weight: 800; }
.lifecycle-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }

@media (max-width: 768px) {
  .case-left, .case-right { min-width: 0; }
  .lab-table { display: block; overflow-x: auto; }
}

/* Partnership page: centered card titles and column lists */
.partner-card h3, .model-card h3, .model-card .model-tag { text-align: center; }
.value-col { text-align: center; }
.value-col ul { display: inline-block; text-align: left; }

/* Contact page */
.why-grid h4 { text-align: center; }
.form-privacy-notice { font-size: 0.82rem; color: #a8acc0; margin: 0 0 18px; }

/* Visible keyboard focus everywhere */
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Applications: featured data center card */
.app-card-featured { grid-column: 1 / -1; border-color: rgba(31,224,201,0.4); background: rgba(31,224,201,0.05); }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 24px; }
.app-stat { background: rgba(31,224,201,0.1); border: 1px solid rgba(31,224,201,0.3); border-radius: 8px; padding: 18px; text-align: center; }
.app-stat-num { font-size: 1.9rem; font-weight: 800; color: var(--teal); }
.app-stat-label { font-size: 0.85rem; color: var(--silver); margin-top: 6px; }
.app-note { font-size: 0.82rem; opacity: 0.75; margin: 16px 0 0; }
.app-note a { color: var(--teal); font-weight: 700; text-decoration: none; }
@media (max-width: 768px) { .app-stats { grid-template-columns: 1fr; } }
.app-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .app-grid-3 { grid-template-columns: repeat(2, 1fr); } .app-grid-3 .app-card-featured { grid-column: 1 / -1; } }
@media (max-width: 768px) { .app-grid-3 { grid-template-columns: 1fr; } }

/* Specifications: centered card titles */
.feature-card h3, .unit-name, .config-grid h4 { text-align: center; }

/* How it works: centered step titles */
.nanotech-step h3 { text-align: center; }

/* Homepage: centered card titles */
.ex-feature-card h3 { text-align: center; }

/* Embedded video (loads only after the visitor clicks "Load video") */
.video-frame { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; background: #060815; border: 1px solid rgba(31,224,201,0.25); border-radius: 12px; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Partnership: pull quote */
.partner-quote-section { padding: 70px 0; }
.partner-quote { max-width: 820px; margin: 0 auto; text-align: center; font-size: 1.5rem; line-height: 1.5; font-weight: 600; color: var(--white); }
.partner-quote strong { color: var(--teal); font-weight: 700; }
@media (max-width: 768px) { .partner-quote { font-size: 1.2rem; } .partner-quote-section { padding: 48px 0; } }

/* Air purification page */
.air-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.air-overview-card { display: block; text-decoration: none; color: inherit; border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; padding: 28px; background: rgba(255,255,255,0.02); text-align: center; transition: border-color 0.2s, transform 0.2s; }
.air-overview-card:hover, .air-overview-card:focus-visible { border-color: var(--teal); transform: translateY(-2px); }
.air-overview-card h3 { color: var(--teal); margin-bottom: 6px; text-align: center; }
.air-overview-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.7; margin-bottom: 12px; }
.air-overview-card p:last-child { font-size: 0.95rem; opacity: 0.85; }
.air-product { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.air-product-reverse .air-figure { order: 2; }
.air-figure { margin: 0; text-align: center; }
.air-figure img { width: 100%; max-width: 440px; height: auto; display: inline-block; border-radius: 12px; border: 1px solid rgba(31,224,201,0.25); background: #fff; }
.air-product h2 { margin-bottom: 12px; }
.air-lead { font-size: 1.05rem; color: #a8acc0; margin-bottom: 22px; }
.air-sub { color: var(--teal); margin: 8px 0 12px; }
.air-sub-center { text-align: center; margin: 48px 0 20px; }
.air-stages { list-style: none; margin: 0 0 24px; }
.air-stages li { padding: 8px 0 8px 22px; position: relative; font-size: 0.95rem; opacity: 0.9; }
.air-stages li:before { content: "\25B8"; position: absolute; left: 0; color: var(--teal); }
.air-table { margin: 8px 0 0; }
.air-note { font-size: 0.85rem; opacity: 0.75; font-style: italic; }
.air-accessories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 880px; margin: 0 auto; }
.air-accessory { border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; padding: 20px; background: rgba(255,255,255,0.02); text-align: center; }
.air-accessory img { width: 100%; max-width: 260px; height: auto; border-radius: 8px; background: #fff; margin-bottom: 14px; }
.air-accessory h4 { color: var(--teal); margin-bottom: 8px; text-align: center; }
.air-accessory p { font-size: 0.9rem; opacity: 0.85; text-align: left; }
.air-disclaimer { max-width: 760px; margin: 36px auto 0; font-size: 0.78rem; opacity: 0.65; }
@media (max-width: 900px) {
  .air-overview, .air-accessories { grid-template-columns: 1fr; }
  .air-product { grid-template-columns: 1fr; gap: 28px; }
  .air-product-reverse .air-figure { order: 0; }
}

/* Technology menu: Water / Air groups */
.main-nav .dropdown .dd-label { padding: 10px 20px 4px; font-size: 0.68rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); opacity: 0.85; cursor: default; white-space: nowrap; }
.main-nav .dropdown .dd-label:not(:first-child) { margin-top: 6px; border-top: 1px solid rgba(139,95,246,0.2); padding-top: 12px; }
.side-panel-submenu .side-panel-group { display: block; padding: 10px 0 2px; font-size: 0.7rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.footer-section .footer-sub { font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin: 14px 0 8px; }

/* Hub homepage */
.hub-hero { min-height: 62vh; display: flex; align-items: center; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(75,63,143,0.35), transparent 65%); }
.hub-hero-inner { padding-top: 70px; padding-bottom: 70px; }
.hub-h1 { font-size: min(4rem, 7vw); line-height: 1.1; letter-spacing: -1px; font-weight: 800; margin: 10px 0 18px; }
.hub-hero .section-lead { margin-left: auto; margin-right: auto; }
.hub-hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hub-hero-actions .cta-btn { padding: 14px 28px; font-size: 1rem; }
.hub-ghost-btn { padding: 14px 28px; font-size: 1rem; font-weight: 700; border: 1px solid rgba(31,224,201,0.5); border-radius: 6px; color: var(--white); text-decoration: none; }
.hub-ghost-btn:hover, .hub-ghost-btn:focus-visible { background: rgba(31,224,201,0.12); border-color: var(--teal); }
.hub-tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.hub-tech-card { display: flex; flex-direction: column; border: 1px solid rgba(139,95,246,0.28); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.02); }
.hub-tech-visual { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; min-height: 320px; background: linear-gradient(160deg, rgba(31,224,201,0.08), rgba(75,63,143,0.25)); }
.hub-tech-visual img { max-width: 100%; max-height: 280px; width: auto; height: auto; filter: drop-shadow(0 14px 24px rgba(0,0,0,0.45)); }
.hub-visual-air img { max-width: 48%; border-radius: 10px; background: #fff; filter: none; object-fit: cover; height: 280px; }
.hub-tech-body { padding: 26px 28px 30px; text-align: center; flex: 1; display: flex; flex-direction: column; }
.hub-tech-tag { font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.hub-tech-body h3 { font-size: 1.45rem; margin-bottom: 12px; text-align: center; }
.hub-tech-body p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 20px; flex: 1; }
.hub-tech-link { color: var(--teal); font-weight: 700; text-decoration: none; }
.hub-tech-link:hover { text-decoration: underline; }
.hub-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.hub-story-item { border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; padding: 28px; background: rgba(255,255,255,0.02); text-align: center; }
.hub-story-item h3 { color: var(--teal); margin-bottom: 12px; text-align: center; }
.hub-story-item p { font-size: 0.95rem; opacity: 0.85; text-align: left; }
.hub-why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hub-why-item { text-align: center; padding: 22px 16px; border-top: 2px solid rgba(31,224,201,0.45); }
.hub-why-item h3 { font-size: 1.05rem; margin-bottom: 8px; text-align: center; }
.hub-why-item p { font-size: 0.9rem; opacity: 0.8; }
@media (max-width: 900px) { .hub-tech-grid, .hub-story { grid-template-columns: 1fr; } .hub-why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hub-why { grid-template-columns: 1fr; } .hub-visual-air img { height: 200px; } }

/* Air section pages */
.air-highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 8px 0 22px; }
.air-highlight { border: 1px solid rgba(31,224,201,0.3); background: rgba(31,224,201,0.07); border-radius: 8px; padding: 16px; text-align: center; }
.air-highlight strong { display: block; font-size: 1.15rem; color: var(--teal); margin-bottom: 4px; }
.air-highlight span { font-size: 0.85rem; color: var(--silver); }
.air-static { cursor: default; }
.air-static:hover { border-color: rgba(139,95,246,0.25); transform: none; }
.air-narrow { max-width: 860px; margin: 0 auto; }
.air-wide { max-width: 900px; margin: 0 auto; }
.air-wide img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid rgba(31,224,201,0.25); }
.air-compare-wrap { overflow-x: auto; }
.air-compare th, .air-compare td { vertical-align: top; }
.air-compare td:first-child { white-space: nowrap; }
.air-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.air-app { border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; padding: 28px; background: rgba(255,255,255,0.02); }
.air-app h3 { color: var(--teal); text-align: center; margin-bottom: 12px; }
.air-app p { font-size: 0.95rem; opacity: 0.88; margin-bottom: 14px; }
.air-app-links a { color: var(--teal); font-weight: 700; margin-right: 14px; text-decoration: none; }
.air-app-links a:hover { text-decoration: underline; }
@media (max-width: 900px) { .air-apps { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .air-highlights { grid-template-columns: 1fr; } }

/* Section polish: breadcrumb trail, current menu item, cross-links */
.crumb-trail { font-size: 0.8rem; color: #8a8ea8; margin-bottom: 14px; }
.crumb-trail a { color: var(--teal); text-decoration: none; }
.crumb-trail a:hover { text-decoration: underline; }
.crumb-trail span { margin: 0 8px; opacity: 0.7; }
.crumb-trail .crumb-here { margin: 0; opacity: 1; color: var(--silver); }
.main-nav .dropdown a.current { color: var(--teal); font-weight: 700; }
.cross-strip { text-align: center; padding: 70px 0; }
.cross-strip .section-lead { margin-left: auto; margin-right: auto; }
.cross-strip .hub-ghost-btn { display: inline-block; margin-top: 8px; }

/* Air home hero with three side-by-side videos */
.air-hero { padding: 40px 0 50px; background: radial-gradient(ellipse at 50% 0%, rgba(31,224,201,0.12), transparent 60%); }
.air-hero .crumb-trail { text-align: left; }
.air-hero-text { text-align: center; max-width: 820px; margin: 10px auto 34px; }
.air-hero-text .section-lead { margin-left: auto; margin-right: auto; }
.vid-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vid-card { display: block; padding: 0; margin: 0; background: none; border: 0; color: inherit; font: inherit; text-align: center; cursor: pointer; width: auto; }
.vid-card:hover { transform: none; }
.vid-frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid rgba(31,224,201,0.3); background: linear-gradient(160deg, #0d1235, #1b2352); }
.vid-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vid-card:not(.vid-live):hover .vid-frame, .vid-card:focus-visible .vid-frame { border-color: var(--teal); }
.vid-play { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(10,14,39,0.78); border: 2px solid var(--teal); color: var(--white); font-size: 1.4rem; padding-left: 4px; }
.vid-card.vid-pending .vid-play { opacity: 0.6; }
.vid-embed { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-cap { display: block; margin-top: 12px; }
.vid-cap strong { display: block; color: var(--white); font-size: 1.05rem; }
.vid-cap em { display: block; font-style: normal; font-size: 0.85rem; color: #a8acc0; }
.vid-note { max-width: 760px; margin: 22px auto 0; text-align: center; font-size: 0.8rem; color: #8a8ea8; }
@media (max-width: 900px) { .vid-trio { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; } }
a.vid-card { text-decoration: none; }
.vid-card.vid-pending { cursor: default; opacity: 0.85; }

/* Ecosystem page + hub strip */
.eco-partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.eco-partner { border: 1px solid rgba(139,95,246,0.28); border-radius: 12px; padding: 28px; background: rgba(255,255,255,0.02); text-align: center; display: flex; flex-direction: column; }
.eco-tag { font-size: 0.74rem; letter-spacing: 2.4px; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.eco-partner h3 { font-size: 1.3rem; margin-bottom: 10px; text-align: center; }
.eco-partner p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 14px; flex: 1; }
.eco-areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.eco-area { border: 1px solid rgba(31,224,201,0.25); border-radius: 10px; padding: 24px; background: rgba(31,224,201,0.05); text-align: center; }
.eco-area h3 { color: var(--teal); font-size: 1.05rem; margin-bottom: 8px; text-align: center; }
.eco-area p { font-size: 0.9rem; opacity: 0.85; }
.eco-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.eco-app { padding: 12px 20px; border: 1px solid rgba(139,95,246,0.35); border-radius: 999px; background: rgba(255,255,255,0.03); font-size: 0.95rem; color: var(--white); }
.eco-commit { font-size: 1.7rem; font-weight: 800; color: var(--white); margin-bottom: 14px; }
.hub-eco { text-align: center; }
.hub-eco .section-lead { margin-left: auto; margin-right: auto; }
.hub-eco-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 6px 0 26px; }
.hub-eco-chips span { padding: 10px 18px; border: 1px solid rgba(31,224,201,0.35); border-radius: 999px; font-size: 0.9rem; color: var(--white); background: rgba(31,224,201,0.06); }
@media (max-width: 900px) { .eco-partners { grid-template-columns: 1fr; } .eco-areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eco-areas { grid-template-columns: 1fr; } .eco-commit { font-size: 1.3rem; } }

/* Hero text swipes in from the left, line by line */
@keyframes heroSwipe {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hub-hero-inner > *,
.ex-hero-inner > *,
.air-hero-text > *,
.air-hero > .container > .crumb-trail {
  animation: heroSwipe 0.85s cubic-bezier(0.22, 0.7, 0.2, 1) both;
}
.hub-hero-inner > :nth-child(1), .ex-hero-inner > :nth-child(1), .air-hero-text > :nth-child(1) { animation-delay: 0.05s; }
.hub-hero-inner > :nth-child(2), .ex-hero-inner > :nth-child(2), .air-hero-text > :nth-child(2) { animation-delay: 0.2s; }
.hub-hero-inner > :nth-child(3), .ex-hero-inner > :nth-child(3), .air-hero-text > :nth-child(3) { animation-delay: 0.35s; }
.hub-hero-inner > :nth-child(4), .ex-hero-inner > :nth-child(4) { animation-delay: 0.5s; }
.hub-hero-inner > :nth-child(5), .ex-hero-inner > :nth-child(5) { animation-delay: 0.65s; }
@media (max-width: 600px) { @keyframes heroSwipe { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: translateX(0); } } }
@media (prefers-reduced-motion: reduce) {
  .hub-hero-inner > *, .ex-hero-inner > *, .air-hero-text > *, .air-hero > .container > .crumb-trail { animation: none; }
}

/* Application cards: unit fit line */
.unit-fit { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(139,95,246,0.25); font-size: 0.86rem; line-height: 1.55; color: var(--silver); opacity: 0.95; }
.unit-fit strong { color: var(--teal); }
.unit-fit a { color: var(--teal); font-weight: 700; text-decoration: none; white-space: nowrap; }
.unit-fit a:hover { text-decoration: underline; }
.app-card p a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.app-card p a:hover { color: var(--white); }

/* Language selector (footer): small globe icon next to the copyright line, drop-up menu */
.footer-copy-row { display: flex; align-items: center; gap: 12px; }
.lang-switch { position: relative; display: inline-block; }
.lang-toggle { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px; border: 1px solid rgba(139,95,246,0.55); border-radius: 15px; background: rgba(139,95,246,0.12); color: var(--silver); font-size: 0.82rem; cursor: pointer; user-select: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.lang-toggle::-webkit-details-marker { display: none; }
.lang-toggle::marker { content: ''; }
.lang-toggle:hover, .lang-switch[open] .lang-toggle { border-color: var(--teal); color: var(--teal); background: rgba(139,95,246,0.2); }
.lang-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.lang-chevron { transition: transform 0.2s; transform: rotate(180deg); }
.lang-switch[open] .lang-chevron { transform: rotate(0deg); }
.lang-menu { list-style: none; position: absolute; bottom: calc(100% + 10px); left: 0; min-width: 170px; margin: 0; padding: 6px; background: rgba(10,14,39,0.97); border: 1px solid rgba(139,95,246,0.35); border-radius: 10px; box-shadow: 0 -10px 30px rgba(0,0,0,0.5); z-index: 50; }
.lang-menu li { margin: 0; }
.lang-menu a, .lang-menu .lang-current { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.92rem; color: var(--silver); text-decoration: none; white-space: nowrap; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgba(139,95,246,0.18); color: var(--teal); outline: none; }
.lang-menu .lang-current { color: var(--teal); font-weight: 700; }
.lang-menu small { margin-left: 8px; font-size: 0.7rem; opacity: 0.55; }
@media (max-width: 720px) {
  .footer-bottom { flex-wrap: wrap; gap: 14px 20px; }
  .footer-copy-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* Footer bottom bar spans the full window: copyright + language at far left, legal links at far right */
.site-footer > .container { max-width: none; padding: 0; }
.site-footer .footer-grid { max-width: 1180px; margin-left: auto; margin-right: auto; padding: 0 32px; box-sizing: border-box; }
.site-footer .footer-bottom { padding: 30px 32px 0; box-sizing: border-box; }

/* ---- Technologies mega dropdown, side-panel headings, 5-column footer ---- */
.main-nav li.mega > .dropdown { min-width: 0; }
.main-nav li.has-dropdown.mega > .dropdown::before { content: ''; display: block; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.main-nav li.has-dropdown.mega:hover > .dropdown, .main-nav li.has-dropdown.mega:focus-within > .dropdown { display: grid; left: 50%; transform: translateX(-50%); top: 100%; align-items: start; grid-template-columns: repeat(4, max-content); width: max-content; max-width: calc(100vw - 24px); gap: 0 8px; margin-top: 0; padding: 18px 14px 12px; background: rgba(10,14,39,0.97); border: 1px solid rgba(139,95,246,0.35); border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,0.5); }
@media (max-width: 1240px) { .main-nav li.has-dropdown.mega:hover > .dropdown, .main-nav li.has-dropdown.mega:focus-within > .dropdown { position: fixed; top: auto; left: 50%; } }
.main-nav .mega-col { list-style: none; padding: 0 14px; min-width: 150px; }
.main-nav li.has-dropdown.mega .mega-col > ul { display: block; list-style: none; margin: 0; padding: 0; }
.main-nav .mega-col > ul a { display: block; padding: 7px 0; font-size: 0.85rem; white-space: nowrap; }
.main-nav a.mega-head { display: block; padding: 0 0 8px; margin-bottom: 6px; border-bottom: 1px solid rgba(139,95,246,0.25); color: var(--teal); font-size: 0.72rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; white-space: nowrap; }
.side-panel-heading { display: block; margin: 14px 0 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--teal); }
.site-footer .footer-grid { grid-template-columns: repeat(5, 1fr); gap: 32px; }
@media (max-width: 980px) { .site-footer .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .site-footer .footer-grid { grid-template-columns: 1fr; } }

/* ---- New technology sections ---- */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; }
.scene-card { border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; overflow: hidden; background: rgba(255,255,255,0.02); display: flex; flex-direction: column; }
.scene-card img { width: 100%; height: 210px; object-fit: cover; display: block; }
.scene-card .scene-body { padding: 20px 22px 24px; }
.scene-card h3 { color: var(--teal); margin-bottom: 8px; font-size: 1.15rem; }
.scene-card p { font-size: 0.92rem; opacity: 0.88; line-height: 1.55; }
.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.flow-step { border: 1px solid rgba(139,95,246,0.25); border-radius: 10px; padding: 24px 22px; background: rgba(255,255,255,0.02); text-align: center; }
.flow-step .flow-num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: linear-gradient(135deg, #8b5ff6, #00d4c8); color: #0a0e27; font-weight: 700; margin-bottom: 12px; }
.flow-step h3 { color: var(--teal); font-size: 1.05rem; margin-bottom: 8px; }
.flow-step p { font-size: 0.9rem; opacity: 0.85; }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 8px; }
.chip { display: inline-block; padding: 9px 18px; border: 1px solid rgba(139,95,246,0.4); border-radius: 999px; color: var(--silver); text-decoration: none; font-size: 0.9rem; }
.chip:hover, .chip:focus-visible { border-color: var(--teal); color: var(--teal); }
.sol-block { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 36px; align-items: center; margin-bottom: 56px; scroll-margin-top: 100px; }
.sol-block:nth-of-type(even) .sol-img { order: 2; }
.sol-img img { width: 100%; border-radius: 10px; border: 1px solid rgba(139,95,246,0.25); display: block; }
.sol-text h3 { color: var(--teal); margin-bottom: 6px; font-size: 1.5rem; }
.sol-tag { font-size: 0.95rem; opacity: 0.75; margin-bottom: 10px; }
.sol-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 16px; }
.sol-cols h4 { color: var(--teal); font-size: 0.78rem; letter-spacing: 1.3px; text-transform: uppercase; margin-bottom: 8px; }
.sol-cols ul { list-style: none; padding: 0; margin: 0; }
.sol-cols li { padding: 5px 0; font-size: 0.9rem; opacity: 0.88; border-bottom: 1px solid rgba(139,95,246,0.12); }
@media (max-width: 860px) { .sol-block { grid-template-columns: 1fr; } .sol-block:nth-of-type(even) .sol-img { order: 0; } .sol-cols { grid-template-columns: 1fr; } }

.proj-wrap { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 32px; align-items: start; }
.proj-wrap img { width: 100%; border-radius: 10px; border: 1px solid rgba(139,95,246,0.25); display: block; }
.proj-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.proj-table th, .proj-table td { padding: 10px 12px; border-bottom: 1px solid rgba(139,95,246,0.15); text-align: left; }
.proj-table th { color: var(--teal); font-weight: 600; width: 55%; }
.proj-note { font-size: 0.8rem; opacity: 0.65; margin-top: 12px; }
@media (max-width: 860px) { .proj-wrap { grid-template-columns: 1fr; } }

.hub-visual-new img { width: 100%; height: auto; max-height: 320px; object-fit: contain; display: block; }

/* ---- Visual polish: proportions, text, layout, clickability ---- */
.sol-img img, .proj-wrap img { height: auto; }
.hub-visual-new img { max-height: none; aspect-ratio: 4 / 3; object-fit: cover; }
.scene-card img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hub-visual-water img { background: transparent; }
.ex-hero-inner .ex-h1, .ex-h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; text-wrap: balance; }
.section-lead, .app-card p, .scene-card p, .flow-step p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
.crumb-trail { font-size: 0.85rem; }
.crumb-trail a { display: inline-block; padding: 8px 2px; }
.sol-cols h4, .hub-tech-tag, .side-panel-heading, .main-nav a.mega-head { font-size: 0.78rem; }
.site-footer a { text-underline-offset: 3px; }
.scene-card .scene-body { flex: 1; display: flex; flex-direction: column; }
.scene-card .scene-body p { flex: 1; }
.card-link { color: var(--teal); font-weight: 700; text-decoration: none; margin-top: 14px; display: inline-block; }
.card-link:hover, .card-link:focus-visible { text-decoration: underline; }
/* centered last row */
.scene-grid, .app-grid.cards-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.scene-grid > .scene-card { flex: 1 1 290px; max-width: calc((100% - 48px) / 3); min-width: 290px; }
.app-grid.cards-center > .app-card { flex: 1 1 300px; max-width: calc((100% - 30px) / 2); }
@media (max-width: 700px) { .scene-grid > .scene-card, .app-grid.cards-center > .app-card { max-width: 100%; min-width: 0; } }
/* whole-card links */
.hub-tech-card, .scene-card, .partner-card.is-link { position: relative; transition: border-color .2s, transform .2s; }
.hub-tech-card:hover, .scene-card:hover, .partner-card.is-link:hover { border-color: var(--teal); transform: translateY(-2px); }
.hub-tech-link::after, .card-link::after, .partner-card.is-link a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hub-tech-card:focus-within, .scene-card:focus-within, .partner-card.is-link:focus-within { border-color: var(--teal); }
/* hero images on inner pages */
.ex-hero[style*="--hero-img"] { background: var(--hero-img) center / cover no-repeat; }
.ex-hero[style*="--hero-img"] .ex-hero-overlay { background: linear-gradient(180deg, rgba(10,14,39,0.55) 0%, rgba(10,14,39,0.78) 100%); }
@media (prefers-reduced-motion: reduce) { .hub-tech-card, .scene-card { transition: none; } .hub-tech-card:hover, .scene-card:hover { transform: none; } }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--silver); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--teal); }
.sol-block { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 44px; }
.sol-text a { color: var(--teal); font-weight: 700; text-decoration: none; }
.sol-text a:hover { text-decoration: underline; }
@media (max-width: 860px) { .sol-block { grid-template-columns: 1fr; } }
.logo-sub-only { font-size: 0.8rem; letter-spacing: 2px; }
/* footer bottom: copyright left, legal links centered, credit right */
.site-footer .footer-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 24px; }
.footer-links { justify-content: center; }
.footer-credit { justify-self: end; font-size: 0.85rem; color: var(--silver); text-align: right; }
.footer-credit a { color: var(--teal); text-decoration: none; font-weight: 600; }
.footer-credit a:hover, .footer-credit a:focus-visible { text-decoration: underline; }
@media (max-width: 800px) { .site-footer .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; } .footer-credit { justify-self: center; text-align: center; } .footer-copy-row { flex-direction: column; align-items: center; } }
/* slimmer footer */
.site-footer { padding: 34px 0 14px; }
.site-footer .footer-grid { gap: 24px 32px; margin-bottom: 22px; }
.site-footer .footer-section h4 { margin-bottom: 8px; font-size: 0.9rem; }
.site-footer .footer-section a { margin-bottom: 4px; font-size: 0.85rem; line-height: 1.4; }
.site-footer .footer-section p { font-size: 0.85rem; line-height: 1.5; margin-bottom: 8px; }
.site-footer .footer-bottom { padding-top: 16px; }
/* even visual gaps between footer columns (content-sized, not equal-width) */
@media (min-width: 981px) { .site-footer .footer-grid { grid-template-columns: repeat(4, max-content) minmax(0, 270px); column-gap: 64px; justify-content: center; } }
.main-nav > ul { gap: clamp(20px, 2.4vw, 36px); }
