:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.35);
  --container: 1040px;
  --glass-bg: rgba(255, 255, 255, 0.42);
  --glass-bg-hover: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-border-mid: rgba(255, 255, 255, 0.28);
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(79, 70, 229, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
  --glass-shadow-lg: 0 20px 50px -12px rgba(79, 70, 229, 0.18);
  --blur: blur(18px);
  --blur-strong: blur(28px);
  --accent-from: #312e81;
  --accent-to: #4338ca;
  --accent-glow: rgba(99, 102, 241, 0.45);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 100% 80% at 90% -15%, rgba(165, 180, 252, 0.45), transparent 52%),
    radial-gradient(ellipse 90% 70% at -5% 35%, rgba(94, 234, 212, 0.22), transparent 48%),
    radial-gradient(ellipse 70% 50% at 95% 92%, rgba(196, 181, 253, 0.28), transparent 45%),
    linear-gradient(168deg, #eef2ff 0%, #f8fafc 42%, #f1f5f9 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}

body::before {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  background: linear-gradient(145deg, #818cf8, #22d3ee);
  top: -12%;
  right: -8%;
  animation: liquid-blob-a 24s ease-in-out infinite;
}

body::after {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: linear-gradient(215deg, #c4b5fd, #38bdf8);
  bottom: 5%;
  left: -10%;
  animation: liquid-blob-b 30s ease-in-out infinite;
}

@keyframes liquid-blob-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-4%, 6%) scale(1.06); }
  70% { transform: translate(3%, -3%) scale(0.97); }
}

@keyframes liquid-blob-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  45% { transform: translate(5%, -4%) scale(1.05); }
  75% { transform: translate(-3%, 5%) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after { animation: none; }
}

a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.65; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; }

.container { width: min(var(--container), calc(100% - 2rem)); margin: 0 auto; }

.page-banner {
  width: 100%;
  position: relative;
  z-index: 0;
}

.page-banner-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  max-height: min(40vh, 440px);
  min-height: 200px;
}

.page-banner-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(48px, 12vw, 88px);
  background: linear-gradient(to bottom, transparent, rgba(248, 250, 252, 0.92));
  pointer-events: none;
  z-index: 2;
}

.page-banner-media img {
  display: block;
  width: 100%;
  height: min(40vh, 440px);
  object-fit: cover;
  object-position: 58% 42%;
}

@media (max-width: 640px) {
  .page-banner-media {
    min-height: 160px;
    max-height: min(32vh, 280px);
  }
  .page-banner-media img {
    height: min(32vh, 280px);
    object-position: 52% 40%;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: var(--blur-strong) saturate(185%);
  -webkit-backdrop-filter: var(--blur-strong) saturate(185%);
  border-bottom: 1px solid var(--glass-border-mid);
  box-shadow: var(--glass-highlight), 0 12px 40px rgba(79, 70, 229, 0.06);
}

.nav-wrap {
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.06));
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a:not(.nav-contact) {
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.25s ease;
}

.nav-links a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
  opacity: 0.85;
}

.nav-links a:not(.nav-contact):hover {
  color: var(--ink);
}

.nav-links a:not(.nav-contact):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a[aria-current="page"] {
  color: #ea580c;
  font-weight: 700;
}

.nav-links a[aria-current="page"]:not(.nav-contact)::after {
  transform: scaleX(1);
  transform-origin: left;
  background: #ea580c;
  opacity: 0.95;
}

.nav-contact {
  color: var(--ink);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-highlight), 0 4px 16px rgba(99, 102, 241, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.nav-contact:hover {
  transform: translateY(-1px);
  box-shadow: var(--glass-highlight), 0 8px 24px rgba(99, 102, 241, 0.22);
  border-color: rgba(255, 255, 255, 0.65);
}

.nav-contact[aria-current="page"] {
  color: #ea580c;
  border-color: rgba(234, 88, 12, 0.45);
  box-shadow: var(--glass-highlight), 0 8px 24px rgba(234, 88, 12, 0.16);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--glass-border-mid);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bar {
    transition: none;
  }
}

@media (max-width: 768px) {
  body.nav-open-body {
    overflow: hidden;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex-basis: 100%;
    order: 3;
    padding: 0.35rem 0 0.65rem;
    margin-top: 0.25rem;
    border-top: 1px solid var(--glass-border-mid);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.08);
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a:not(.nav-contact) {
    padding: 0.75rem 0.5rem;
    border-radius: 8px;
  }

  .nav-links a:not(.nav-contact)::after {
    display: none;
  }

  .nav-links a:not(.nav-contact):hover {
    background: rgba(99, 102, 241, 0.08);
  }

  .nav-links .nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: 0.35rem;
  }
}

.section { padding: 72px 0; position: relative; }

.hero {
  padding: 72px 0 64px;
  position: relative;
}

.hero-light {
  background: transparent;
}

.hero-light::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 255, 255, 0.55), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-light .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.eyebrow {
  color: #6366f1;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(99, 102, 241, 0.25);
}

h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 600;
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(255, 255, 255, 0.8);
}

h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
}

.hero-copy { margin: 1rem 0 1.35rem; max-width: 52ch; }
.hero-cta { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.btn {
  border-radius: 10px;
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-from) 0%, #4f46e5 50%, #6366f1 100%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  color: var(--ink);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  transform: translateY(-2px);
  box-shadow: var(--glass-highlight), 0 12px 32px rgba(79, 70, 229, 0.12);
}

.hero-visual-simple {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-lg), var(--glass-highlight);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-visual-simple:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 28px 56px -12px rgba(79, 70, 229, 0.22), var(--glass-highlight);
}

.hero-visual-simple > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(360px, 50vh);
  object-fit: cover;
  vertical-align: middle;
}

.hero-panel {
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-top: 1px solid var(--glass-border-mid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.hero-panel h3 { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.hero-panel p { font-size: 0.88rem; margin: 0.35rem 0 0; }
.hero-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 0.25rem;
}

.section-heading { margin-bottom: 1.5rem; }

.cards { display: grid; gap: 0.85rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.media-grid.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card,
.detail-card,
.metric-card,
.contact-panel,
.inquiry-form {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.05rem 1.15rem;
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.card:hover,
.detail-card:hover,
.metric-card:hover {
  transform: translateY(-4px);
  background: var(--glass-bg-hover);
  box-shadow: var(--glass-highlight), 0 16px 40px rgba(79, 70, 229, 0.12);
}

.card--workflow {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.card--workflow .card-figure {
  aspect-ratio: 240 / 140;
  background: linear-gradient(
    155deg,
    rgba(238, 242, 255, 0.85) 0%,
    rgba(248, 250, 252, 0.98) 50%,
    rgba(241, 245, 249, 0.95) 100%
  );
  border-bottom: 1px solid var(--glass-border-mid);
}

.card--workflow .card-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem 0.65rem;
}

.card--workflow h3 {
  margin: 0;
  padding: 0.95rem 1.15rem 0;
  font-size: 1rem;
}

.card--workflow p {
  margin: 0.4rem 0 0;
  padding: 0 1.15rem 1.05rem;
  font-size: 0.9rem;
}

.metric-card .meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  margin: 0.75rem 0;
  overflow: hidden;
}

.metric-card .meter span {
  display: block;
  height: 100%;
  width: var(--w, 90%);
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #22d3ee, #a78bfa);
  background-size: 200% 100%;
  animation: shimmer-meter 8s ease infinite;
}

@keyframes shimmer-meter {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card .meter span { animation: none; }
  .card:hover,
  .detail-card:hover,
  .metric-card:hover,
  .hero-visual-simple:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  .nav-contact:hover { transform: none; }
}

.section-dark {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border-mid);
  border-bottom: 1px solid var(--glass-border-mid);
}

.case-feature-visual {
  margin-bottom: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
}

.case-feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(320px, 38vw);
  object-fit: cover;
  object-position: center 42%;
  vertical-align: middle;
}

.case-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 1.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: figureIndex;
}

.media-card {
  margin: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  counter-increment: figureIndex;
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-highlight), 0 16px 36px rgba(79, 70, 229, 0.14);
}

.media-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  cursor: zoom-in;
}

.media-card figcaption {
  padding: 0.75rem 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.media-card figcaption::before {
  content: "Fig." counter(figureIndex, decimal-leading-zero) " ";
  color: #6366f1;
  font-weight: 600;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.video-card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 0.85rem;
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}

.video-card video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 0.65rem;
  background: rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.media-filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.media-filters.secondary {
  margin-top: -0.25rem;
  margin-bottom: 1rem;
}

.media-filter {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.media-filter:hover {
  background: rgba(255, 255, 255, 0.65);
}

.media-filter.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}

.media-library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-library-grid .video-card { margin: 0; }

.media-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
  transform: translateY(-2px);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 100;
  padding: 1rem;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.lightbox p { color: #e2e8f0; margin: 0; font-size: 0.9rem; }

.lightbox-close {
  align-self: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.section-accent {
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--glass-border-mid);
  border-bottom: 1px solid var(--glass-border-mid);
}

.configurator {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.inquiry-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
}

.inquiry-form .full { grid-column: 1 / -1; }

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  border: 1px solid var(--glass-border-mid);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: none;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.contact-box {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
}

.contact-items { display: grid; gap: 0.5rem; }

.contact-items a {
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.9rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-items a:hover {
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.1);
}

.page-hero { padding-top: 56px; padding-bottom: 40px; }
.page-subtitle { margin-top: 0.75rem; max-width: 62ch; }
.stack-grid { display: grid; gap: 0.85rem; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.page-hero-copy .page-subtitle {
  max-width: 58ch;
}

.page-hero-visual {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow-lg);
}

.page-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(360px, 46vh);
  object-fit: cover;
  object-position: center;
}

.detail-card--visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.detail-card--visual .detail-card-figure {
  aspect-ratio: 2 / 1;
  max-height: 220px;
  background: linear-gradient(
    168deg,
    rgba(248, 250, 252, 0.98) 0%,
    rgba(241, 245, 249, 0.95) 55%,
    rgba(238, 242, 255, 0.5) 100%
  );
  border-bottom: 1px solid var(--glass-border-mid);
}

.detail-card--visual .detail-card-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.45rem 0.65rem;
}

.detail-card--visual .detail-card-body {
  padding: 1.05rem 1.15rem 1.15rem;
  flex: 1 1 auto;
  min-width: 0;
}

.detail-card--visual h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.3vw, 1.38rem);
}

.detail-card--visual h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.28rem);
}

.detail-card--visual .detail-card-body > p {
  margin-top: 0.65rem;
}

@media (min-width: 769px) {
  .detail-card--visual {
    flex-direction: row;
    align-items: stretch;
  }

  .detail-card--visual .detail-card-body {
    order: 1;
    flex: 1 1 58%;
    padding: 1.15rem 1rem 1.15rem 1.25rem;
  }

  .detail-card--visual .detail-card-figure {
    order: 2;
    flex: 0 0 clamp(220px, 34%, 300px);
    width: clamp(220px, 34%, 300px);
    max-height: none;
    aspect-ratio: auto;
    min-height: 200px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none;
    border-left: 1px solid var(--glass-border-mid);
  }

  .detail-card--visual .detail-card-figure img {
    width: 100%;
    height: auto;
    max-height: min(240px, 100%);
    max-width: 100%;
    object-fit: contain;
    padding: 0.75rem 0.85rem;
  }
}

.detail-card ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  display: grid;
  gap: 0.28rem;
  font-size: 0.92rem;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 1rem;
  align-items: start;
}

.note { font-size: 0.88rem; margin-top: 0.85rem; color: var(--muted); }

.resource-list { display: grid; gap: 0.45rem; margin: 0.65rem 0; }

.resource-list a {
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.resource-list a:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hidden { display: none; }

.site-footer {
  border-top: 1px solid var(--glass-border-mid);
  padding: 1.25rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  margin-top: auto;
  box-shadow: 0 -8px 32px rgba(79, 70, 229, 0.05);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-copy::before { content: "© "; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8rem;
}

.footer-nav a { color: var(--muted); transition: color 0.2s ease; }
.footer-nav a:hover { color: #4f46e5; }

@media (max-width: 1024px) {
  .cards-4,
  .case-card,
  .media-grid,
  .media-library-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid,
  .page-hero-grid,
  .configurator,
  .contact-box,
  .inquiry-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .case-feature-visual img {
    max-height: 200px;
    object-position: center 45%;
  }
  .container { width: min(var(--container), calc(100% - 1.25rem)); }
  .section,
  .hero { padding: 48px 0; }
  .cards-4,
  .case-card,
  .inquiry-form,
  .media-grid,
  .video-grid,
  .media-library-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .logo img { height: 28px; max-width: 160px; }
}
