﻿:root {
  --brand: #07468e;
  --brand-600: #4b3cb4;
  --brand-700: #7636cd;
  --accent: #af2eed;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
/* Remove underlines globally, then style colors for non-button links */
a, a:hover, a:focus, a:active, a:visited { text-decoration: none; }
a:not(.btn) { color: var(--brand); }
a:not(.btn):hover { color: var(--brand-600); }

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.grid { display: grid; gap: 28px; }
.grid--2col { grid-template-columns: repeat(1, 1fr); }
.grid--3col { grid-template-columns: repeat(1, 1fr); }
.grid--4col { grid-template-columns: repeat(2, 1fr); }
.v-center { align-items: center; }

@media (min-width: 780px) {
  .grid--2col { grid-template-columns: repeat(2, 1fr); }
  .grid--3col { grid-template-columns: repeat(3, 1fr); }
  .grid--4col { grid-template-columns: repeat(4, 1fr); }
}

.section { position: relative; }
.section--pad { padding: 64px 0; }
.section--pad-alt { padding: 72px 0; background: var(--bg-alt); }
.section--pad-xl { padding: 96px 0; }
.section--pattern { background:
  radial-gradient(600px 260px at 10% 0%, rgba(175,46,237,.10), transparent 60%),
  radial-gradient(900px 360px at 110% 100%, rgba(7,70,142,.10), transparent 60%);
}

.section__head { text-align: center; margin-bottom: 28px; }
.section__head h2 { font-size: 32px; line-height: 1.2; margin: 0 0 8px; }
.section__head .sub { color: var(--muted); margin: 0; }

.display { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--brand-700); font-weight: 700; font-size: 12px; margin: 0 0 12px; }
.small { font-size: 12px; }
.muted { color: var(--muted); }
.legal { color: #64748b; margin-top: 16px; }

.btn { display: inline-block; border-radius: 14px; padding: 12px 20px; border: 1px solid var(--line); color: var(--ink); transition: all .2s ease; font-weight: 700; }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 2px 0 rgba(2,6,23,.06); }
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); filter: brightness(0.98); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); border-width: 2px; }
.btn--ghost:hover { background: #eef6ff; }
.btn:focus-visible { outline: 3px solid rgba(175,46,237,.35); outline-offset: 2px; }

/* Custom CTA buttons (Flow-like) */
.btn-flow { 
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--brand), var(--brand-600));
  color: #fff;
  box-shadow: 0 4px 14px rgba(175,46,237,.35);
}
.btn-flow:hover { filter: brightness(0.98); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(175,46,237,.35); }
.btn-flow:active { transform: translateY(0); }

.btn-outline-flow {
  border: 2px solid transparent;
  color: var(--brand-700);
  background: linear-gradient(#fff, #fff) padding-box,
              linear-gradient(135deg, var(--accent), var(--brand-700)) border-box;
}
.btn-outline-flow:hover { background: linear-gradient(#f9f5ff,#f9f5ff) padding-box,
                                    linear-gradient(135deg, var(--accent), var(--brand-700)) border-box; }
.btn-sm { padding: 8px 14px; border-radius: 10px; }
.btn--small { padding: 8px 12px; border-radius: 8px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.75); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid rgba(175,46,237,.25); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 8px; padding: 8px 10px; background: #fff; font-weight: 600; }
.nav__list { list-style: none; margin: 0; padding: 12px 0 0; display: none; }
.nav__list li { display: inline-flex; }
.nav__list a { display: inline-block; padding: 10px 12px; }
/* Subtle pill hover for header options */
.nav__list a:hover { background: #f4e6ff; color: var(--brand-700); border-radius: 10px; }

@media (min-width: 920px) {
  .nav__toggle { display: none; }
  .nav__list { display: flex; padding: 0; gap: 6px; }
}

.nav--open #navMenu { display: block; }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 110% -10%, rgba(175, 46, 237, .16), transparent 60%), linear-gradient(180deg, #ffffff, #f9fbff); }
.hero::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:60px; background: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 1440 60%22 preserveAspectRatio=%22none%22><path d=%22M0,32 C240,64 480,0 720,16 C960,32 1200,64 1440,32 L1440,60 L0,60 Z%22 fill=%22%23f8fafc%22/></svg>') no-repeat center/100% 100%; pointer-events:none; }
.shape-blend { height: 320px; border-radius: 24px; background: conic-gradient(from 180deg at 50% 50%, #07468e, #af2eed, #07468e); filter: blur(30px); opacity: .18; transform: rotate(-8deg); }
.hero__media { position: relative; }
.hero__card { position: absolute; inset: auto 0 0 0; margin: auto; max-width: 420px; background: #0b1220; color: #e2e8f0; border-radius: 16px; padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.06); }
.hero__screen { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 12px; }
.hero__screen .metric { background: rgba(148,163,184,.08); border: 1px solid rgba(148,163,184,.2); padding: 10px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; }
.hero__screen span { color: #9ba6b1; font-size: 12px; }
.hero__screen strong { font-variant-numeric: tabular-nums; }
.hero__dial { width: 48px; height: 48px; border-radius: 50%; border: 6px solid var(--accent); border-right-color: var(--brand); opacity:.9; animation: spin 4s linear infinite; margin: 6px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__video .media-inner { filter: saturate(1.05) contrast(1.05); }
.hero__video .media-inner::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 50% 40%, rgba(0,0,0,.15), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,0)); }

.actions { display: flex; gap: 12px; align-items: center; margin: 18px 0 8px; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; flex-wrap: wrap; }
.badges li { font-size: 12px; font-weight: 600; color: var(--brand-700); background: #e6f1fd; border: 1px solid #d0e3fb; padding: 6px 10px; border-radius: 999px; }

.trust { margin-top: 36px; text-align: center; }
.trust__list { display: flex; gap: 16px; justify-content: center; margin: 10px 0 0; padding: 0; list-style: none; flex-wrap: wrap; color: var(--muted); }

/* Logo marquee */
.logo-marquee { position: relative; overflow: hidden; margin-top: 10px; padding: 8px 0; border-top: 1px solid rgba(148,163,184,.25); border-bottom: 1px solid rgba(148,163,184,.25); }
.logo-marquee::before, .logo-marquee::after { content:""; position:absolute; top:0; bottom:0; width:50px; pointer-events:none; }
.logo-marquee::before { left:0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.logo-marquee::after  { right:0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.logo-marquee__track { display: inline-flex; gap: 0; align-items: center; width: max-content; animation: marquee 28s linear infinite; }
.logo-marquee__item { width: 160px; height: 44px; display: grid; place-items: center; padding: 4px 8px; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee img { max-width: 100%; max-height: 28px; height: auto; width: auto; filter: grayscale(1) contrast(1.05); opacity: .85; transition: opacity .2s ease, filter .2s ease, transform .2s ease; }
.logo-marquee img:hover { opacity: 1; filter: none; transform: translateY(-1px); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (min-width: 920px) { 
  .logo-marquee__item { width: 200px; height: 56px; }
  .logo-marquee img { max-height: 36px; }
}

/* Support logos grid */
.logo-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items:center; justify-items:center; }
.logo-grid__item { border:1px solid var(--line); background:#fff; border-radius:12px; height:80px; width:100%; display:flex; align-items:center; justify-content:center; padding: 12px; }
.logo-grid__item img { display:block; max-height: 42px !important; max-width: 180px; width:auto; height:auto; object-fit:contain; filter: grayscale(1) contrast(1.05); opacity:.85; transition: opacity .2s ease, filter .2s ease, transform .2s ease; }
.logo-grid__item img:hover { opacity:1; filter:none; transform: translateY(-1px); }
@media (min-width: 920px){ .logo-grid { grid-template-columns: repeat(4, 1fr); } .logo-grid__item { height:96px; } .logo-grid__item img { max-height: 48px !important; } }

/* Hero metrics */
.metrics { display: grid; grid-template-columns: repeat(1, 1fr); gap: 24px; margin-top: 50px; }
.metric-tile { background: linear-gradient(180deg, #eef6ff, #ffffff); color: var(--ink); border: 1px solid #dbe7fb; border-radius: 14px; padding: 14px; box-shadow: 0 1px 0 rgba(2,6,23,0.02); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 96px; }
.metric-tile__value { font-size: 22px; font-weight: 800; color: var(--brand-700); }
.metric-tile__label { color: var(--muted); font-weight: 600; }
.metric-note { text-align: right; color: #64748b; grid-column: 1 / -1; }
@media (min-width: 780px) { .metrics { grid-template-columns: repeat(3, 1fr); align-items: end; } }

/* Cards */
.cards { margin-top: 20px; }
.card { position: relative; z-index: 0; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 18px; box-shadow: 0 1px 0 rgba(2,6,23,0.02); transition: transform .25s ease, box-shadow .25s ease; will-change: transform, box-shadow; isolation: isolate; overflow: hidden; }
/* Edge-only inner glow (no center glow) */
.card::before { content: ""; position: absolute; inset: 12px; border-radius: 12px; background: radial-gradient(120% 120% at 50% 50%, transparent 0 62%, rgba(175,46,237,.16) 80%, rgba(7,70,142,.12) 94%, transparent 100%); filter: blur(10px); opacity: 0; transition: opacity .25s ease, transform .25s ease; transform: scale(0.98); z-index: 0; pointer-events: none; }
.card:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(7,70,142,.22), 0 10px 26px rgba(175,46,237,.20); }
.card:hover::before { opacity: .65; transform: scale(1); }

/* Keep glow on all cards; no special-case suppression */
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.card .card__image { margin: -18px -18px 12px; height: 200px; border-radius: 14px 14px 0 0; overflow:hidden; }
.card .card__image img { width:100%; height:100%; object-fit:cover; display:block; }

/* Utility: show full image without cropping in card image area */
.card .card__image--contain { display: grid; place-items: center; background: #fff; }
.card .card__image--contain img { width: 100%; height: 100%; object-fit: contain; }

/* Split card layout: image left, text right */
.card--split { display: grid; grid-template-columns: minmax(280px, 1.2fr) 1fr; gap: 24px; align-items: center; grid-template-areas: 'image body'; }
/* Fallback placement for legacy markup */
.card--split > :not(.card__image) { grid-column: 2; }
.card--split .card__image { grid-area: image; margin: -18px 0 -18px -18px; height: 100%; min-height: 320px; border-radius: 14px 0 0 14px; overflow: hidden; display: grid; place-items: center; }
.card--split .card__image img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.card--split .card__body { grid-area: body; display: flex; flex-direction: column; gap: 8px; align-self: center; }
.card--split .specs { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
@media (max-width: 779px) {
  .card--split { grid-template-columns: 1fr; }
  .card--split > :not(.card__image) { grid-column: 1; }
  .card--split .card__body { align-self: auto; }
  .card--split .card__image { margin: -18px -18px 12px -18px; height: 220px; border-radius: 14px 14px 0 0; }
}
.tick { list-style: none; padding: 0; margin: 0; }
.tick li { position: relative; padding-left: 22px; margin: 6px 0; }
.tick li::before { content: '✓'; position: absolute; left: 0; top: 0; color: #059669; font-weight: 700; }

/* Product Series dynamic */
.pill-list { list-style:none; padding:0; margin:0 0 8px; display:flex; gap:8px; flex-wrap:wrap; }
.pill { display:inline-block; padding:6px 10px; border:1px solid #dbe7fb; background:#f5faff; color:#114d8b; border-radius:999px; font-weight:600; font-size:12px; }
.product-gallery { position:relative; height:100%; }
.product-gallery::before, .product-gallery::after { content:""; position:absolute; top:0; bottom:0; width:24px; z-index:1; pointer-events:none; }
.product-gallery::before { left:0; background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)); border-top-left-radius:14px; }
.product-gallery::after  { right:0; background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0)); border-top-right-radius:14px; }
.gallery-track { display:flex; height:100%; overflow:auto; scroll-snap-type:x mandatory; scrollbar-width:none; -ms-overflow-style:none; scroll-behavior:smooth; cursor: grab; }
.gallery-track.dragging { cursor: grabbing; }
.gallery-track::-webkit-scrollbar { display:none; }
.gallery-item { flex: 0 0 100%; height:100%; scroll-snap-align:center; }
.gallery-item img { width:100%; height:100%; object-fit:cover; display:block; border-top-left-radius:14px; border-top-right-radius:14px; }
.gallery-nav { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:34px; height:34px; border-radius:50%; border:1px solid #dbe7fb; background:#fff; color:#114d8b; font-weight:700; line-height:1; display:grid; place-items:center; box-shadow: var(--shadow); opacity:.9; }
.gallery-nav.prev { left:8px; }
.gallery-nav.next { right:8px; }
.gallery-nav[disabled] { opacity: .4; pointer-events: none; }

/* Hide inner gallery arrows until hover on desktops */
@media (hover:hover) {
  .gallery-nav { opacity: 0; pointer-events: none; }
  .product-gallery:hover .gallery-nav { opacity: .95; pointer-events: auto; }
}
.product-details summary { cursor:pointer; font-weight:700; color: var(--brand-700); }
.product-details[open] summary { margin-bottom:6px; }

/* Technology visual */
.tech-card { position: relative; height: 260px; }
.tech-card__layer { position: absolute; inset: 0; border-radius: 18px; }
.layer-1 { background: linear-gradient(135deg, #0b1220, #0e1a33); transform: rotate(-2deg); }
.layer-2 { background: linear-gradient(135deg, #0d1b2a, #11345a); transform: rotate(2deg); filter: blur(6px); opacity: .8; }
.layer-3 { background: radial-gradient(600px 260px at 20% 20%, rgba(38,198,218,.35), transparent 60%), linear-gradient(135deg, #0b1220, #0e1a33); border: 1px solid rgba(255,255,255,.06); box-shadow: var(--shadow); }

/* Stats */
.stats { gap: 18px; margin-top: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.stat__num { font-size: 32px; font-weight: 800; color: var(--brand-700); }
.stat__label { color: var(--muted); font-weight: 600; }

/* Projects */
.project { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.project__img { height: 180px; border-radius: 12px; overflow:hidden; margin-bottom: 10px; }
.project__img img { width:100%; height:100%; object-fit:cover; display:block; }
.projects .project { display:flex; flex-direction: column; height: 100%; }
.projects .project h3 { margin: 2px 0 6px; font-size: 18px; }
.projects .project p { margin: 0 0 10px; }
.projects .project .btn { margin-top: auto; }
.case-filters { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:12px; }
.tag { border:1px solid #dbe7fb; background:#f5faff; color:#114d8b; padding:6px 10px; border-radius:999px; font-weight:600; cursor:pointer; }
.tag.is-active { background:#114d8b; color:#fff; border-color:#114d8b; }
.case-metrics { list-style:none; padding:0; margin:8px 0 12px; color:var(--muted); font-size:14px; }
.case-metrics li { margin:2px 0; }

/* Media frames */
.ratio { position: relative; }
.ratio > * { position: absolute; inset: 0; }
.ratio--16x9 { aspect-ratio: 16 / 9; }
.ratio--4x3 { aspect-ratio: 4 / 3; }
.ratio--3x2 { aspect-ratio: 3 / 2; }

.media-frame {
  border-radius: 16px;
  background: linear-gradient(#fff, #fff) padding-box,
              conic-gradient(from 180deg at 50% 50%, #af2eed, #07468e, #af2eed) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.media-inner {
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f6ff 0%, #f9fbff 100%);
}
.water-pattern {
  background:
    radial-gradient(600px 260px at 20% 10%, rgba(38,198,218,.35), rgba(255,255,255,0) 60%),
    radial-gradient(600px 260px at 80% 80%, rgba(25,118,211,.25), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, #eaf3ff 0%, #f9fbff 100%);
}
.media-inner::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.0) 0 18px, rgba(255,255,255,.2) 18px 36px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.shimmer {
  background-image: linear-gradient(100deg, #eef6ff 0%, #f2f7ff 40%, #eef6ff 80%);
  background-size: 400% 100%;
  animation: shimmer 2s infinite ease;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.image-frame { transition: transform .2s ease, box-shadow .2s ease; }
.image-frame:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(2,6,23,.12); }

/* About */
.about__img { display: none; }
.about-intro { margin-bottom: 16px; }
.about-values .cards .card h3 { margin-bottom: 6px; }
.team-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.team { display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background:#fff; }
.team .avatar { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(60px 60px at 50% 40%, #dcecff, #f5f9ff); border:1px dashed #cbd5e1; }
.team .role { font-weight: 700; }
.team .team-desc { color: var(--muted); font-size: 14px; }
@media (min-width: 780px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

/* CTA */
.cta { background: linear-gradient(135deg, #af2eed, #7636cd); color: #f7f3ff; position: relative; isolation: isolate; overflow: visible; margin-top: 36px; }
/* Moving inner glow sweep */
.cta::before {
  content: "";
  position: absolute;
  top: -30%; bottom: -30%; left: -20%;
  width: 45%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.42), rgba(255,255,255,0));
  filter: blur(30px);
  opacity: .55;
  animation: cta-sweep 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
/* Outer ambient glow (static) */
.cta::after {
  content: "";
  position: absolute;
  inset: -24px -24px -24px -24px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(175,46,237,.35), rgba(118,54,205,0) 70%);
  filter: blur(36px);
  opacity: .35;
  pointer-events: none;
  z-index: 0;
}
/* Ensure CTA content sits above glow */
.cta > * { position: relative; z-index: 1; }
@keyframes cta-sweep {
  0%   { transform: translateX(-10%) scale(1); opacity: .55; }
  50%  { transform: translateX(120%) scale(1.05); opacity: .85; }
  100% { transform: translateX(-10%) scale(1); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) {
  .cta::before { animation: none; opacity: .6; }
}
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { color: #d5e6ff; margin: 0; }
.cta .btn--primary { background: #af2eed; border-color: #af2eed; color: #fff; }
.cta .btn--primary:hover { filter: brightness(0.96); }
.cta__actions { text-align: right; }

/* Contact */
.contact-cards { display: grid; gap: 12px; margin-top: 8px; }
.contact-card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.contact-card__icon { width: 40px; height: 40px; border-radius: 10px; background: #e6f1fd; color: var(--brand-700); display: grid; place-items: center; font-weight: 700; }
.contact-card__label { font-size: 12px; color: var(--muted); }

.form { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; box-shadow: 0 1px 0 rgba(2,6,23,0.02); }
.form__row { margin-bottom: 12px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit; }
input:focus, textarea:focus { outline: 2px solid #a3d3ff; border-color: #93c5fd; }
.form__feedback { height: 18px; margin-top: 8px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; position: relative; }
.footer__grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
.footer__links, .footer__social { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.footer__brand p { margin: 6px 0 0; color: var(--muted); }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0b1220; color: #fff; text-decoration: none; box-shadow: var(--shadow); opacity: .9; }

@media (min-width: 780px) {
  .footer__grid { grid-template-columns: auto 1fr auto; }
}

/* Reveal animations */
[data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="100"] { transition-delay: .1s; }

/* Utilities */
.placeholder { background-image: repeating-linear-gradient(45deg, #e8eef8 0, #e8eef8 10px, #f6f9fe 10px, #f6f9fe 20px); border: 1px dashed #cbd5e1; }

/* Video frame */
.video-frame { cursor: pointer; }
.frame__play { position: absolute; inset: 0; margin: auto; width: 88px; height: 88px; border: none; background: none; display: grid; place-items: center; transition: transform .2s ease, opacity .2s ease; }
.frame__play:hover { transform: scale(1.05); }
.frame__play:focus-visible { outline: 3px solid #a3d3ff; border-radius: 999px; }
.hero__video { margin-bottom: 12px; }
/* New: static hero image option */
.hero__image { margin-bottom: 12px; }
.hero__image img { width: 100%; height: auto; display: block; }

/* Industries */
.industries { margin-top: 12px; }
.industry { border: 1px solid var(--line); border-radius: 14px; background:#fff; overflow:hidden; transition: transform .15s ease, box-shadow .15s ease; }
.industry:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.industry__img { height: 140px; overflow:hidden; }
.industry__img img { width:100%; height:100%; object-fit:cover; display:block; }
.industry__body { padding: 14px; }
.industry__title { margin: 0; font-size: 18px; }
/* Industry cards */
.industry { cursor: default; }
.industry__extra { display: none; }

/* Gallery */
.gallery { gap: 12px; }
.gallery .media-frame { border-radius: 12px; }

/* Why Indra — icon cards (consistent with site cards) */
.card.why { display: flex; gap: 12px; align-items: flex-start; }
.why__icon { width: 40px; height: 40px; border-radius: 999px; background: #e6f1fd; color: var(--brand-700); border: 1px solid #d0e3fb; display: grid; place-items: center; flex: none; }
.why__icon svg { width: 18px; height: 18px; }
.why__body h3 { font-size: 18px; margin: 0 0 6px; }
.why__body p { margin: 0; }

/* Industry detail panel */
.industry-detail { position: relative; border:1px solid var(--line); background:#fff; border-radius:14px; padding:16px; margin-top:16px; box-shadow: var(--shadow); }
.industry-detail[hidden] { display:none; }
.industry-detail__close { position:absolute; right:10px; top:10px; width:32px; height:32px; border-radius:50%; border:1px solid #dbe7fb; background:#fff; color:#114d8b; font-weight:700; }
.industry-detail__grid { display:grid; gap:16px; grid-template-columns: 1fr; }
.industry-detail__media img { width:100%; height:220px; object-fit:cover; border-radius:12px; }
@media (min-width: 900px){ .industry-detail__grid { grid-template-columns: 1fr 2fr; } .industry-detail__media img { height:100%; } }

/* Mobile menu behavior */
@media (max-width: 919px) {
  .nav__list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; position: absolute; right: 16px; top: 56px; min-width: 240px; box-shadow: var(--shadow); }
  .nav__list li { display: block; }
  .nav__list a { display: block; padding: 10px 12px; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  .shimmer, .hero__dial { animation: none; }
  [data-reveal] { transition: none; }
}

/* Vertical cards layout for Product Series */
.cards--vertical { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .cards--vertical { grid-template-columns: 1fr; } }



/* Product Series static vertical list */
.cards--vertical { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cards--vertical { grid-template-columns: 1fr; } }

/* Brand colors — Indra / ArthOS */
:root {
  --g1: #af2eed; /* violet */
  --g2: #7636cd; /* purple */
  --g3: #4b3cb4; /* indigo */
  --g4: #07468e; /* deep blue */
}

/* Default: whole element flows */
.brand-flow {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(100deg,
              var(--g1) 0%,
              var(--g2) 25%,
              var(--g3) 50%,
              var(--g4) 75%,
              var(--g1) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease-in-out infinite, shine-glint 4s ease-in-out infinite;
  will-change: background-position, filter;
}

/* If a direct child <span> exists, switch to "partial" mode:
   - disable gradient on parent
   - apply it only to the span
*/
.brand-flow:has(> span) {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: inherit;
  animation: none;
}

.brand-flow:has(> span) > span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(100deg,
              var(--g1) 0%,
              var(--g2) 25%,
              var(--g3) 50%,
              var(--g4) 75%,
              var(--g1) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease-in-out infinite, shine-glint 4s ease-in-out infinite;
}

/* Motion */
@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shine-glint {
  0%,100% { filter: brightness(1); }
  50%     { filter: brightness(1.25); }
}

/* Hover accel */
.brand-flow:hover { animation-duration: 3s, 2s; }
.brand-flow:has(> span):hover > span { animation-duration: 3s, 2s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .brand-flow,
  .brand-flow:has(> span) > span {
    animation: none;
    filter: none;
  }
}

/* ===== Brand tokens (tweak to your palette) ===== */
:root {
  --brand1: #af2eed; /* violet */
  --brand4: #07468e; /* deep blue */
  --ink-700: #374151;
  --ink-500: #6b7280;
  --card-border: rgba(10,20,40,.08);
  --card-shadow: 0 6px 24px rgba(16,30,54,.06);
  --card-shadow-hover: 0 12px 36px rgba(16,30,54,.10);
}

/* ===== Section header polish ===== */
#industries .section__head h2 { letter-spacing: -0.02em; margin-bottom: .4rem; }
#industries .section__head .sub {
  color: var(--ink-500);
  background: linear-gradient(90deg, rgba(175,46,237,.08), rgba(7,70,142,.08));
  border: 1px solid rgba(7,70,142,.12);
  padding: 8px 12px; border-radius: 10px; display: inline-block;
}

/* ===== Responsive grid: 3 → 2 → 1 ===== */
#industries .industries.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1100px) {
  #industries .industries.grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  #industries .industries.grid { grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.industry {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: grid;
  grid-template-rows: 180px auto; /* consistent image height */
}
@media (max-width: 720px) {
  .industry { grid-template-rows: 160px auto; }
}
.industry:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(130, 90, 255, 0.25);
}

/* ===== Image ===== */
.industry__img { position: relative; overflow: hidden; }
.industry__img img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform .4s ease;
  display: block;
}
.industry:hover .industry__img img { transform: scale(1.06); }

/* subtle top overlay for contrast */
.industry__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.04));
}

/* ===== Body ===== */
.industry__body { padding: 16px 18px 18px; }
.industry__title {
  margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em;
}
.muted.small { color: var(--ink-500); margin: 0 0 8px; }
.small { color: var(--ink-700); line-height: 1.45; margin: 0; font-size: 0.95rem; }

/* ===== Pills (pollutant tags) ===== */
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 10px; }
.pill {
  font-size: 0.75rem; padding: 4px 8px; border-radius: 999px;
  background: rgba(127,90,240,0.08);
  border: 1px solid rgba(127,90,240,0.18);
  color: #4b3cb4; /* indigo accent */
}

/* ===== Optional: gentle section spacing (if not already defined) ===== */
.section.section--pad { padding: 64px 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
/* Product Series */
#series .card {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  gap: 2rem;
}

#series .cards > :last-child:nth-child(3n + 1) {
  grid-column: 2 / span 1;
  justify-self: center;
}

#series .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

#series .card__image {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

#series .card__image img {
  width: 100%;
  height: auto;
  display: block;
}

#series .specs {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #444;
}

#series .specs li {
  margin: 0.3rem 0;
}

#series .specs strong {
  color: #000;
}

/* Two-column layout for support products */
#support-products .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  justify-content: center;
  gap: 2rem;
}

.divider-wave {
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, #f8fafc 0%, #fff 100%);
}


.metrics-section {
  text-align: center;
  padding: 80px 20px;
  background: #fafafa;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: center;
}

.metric {
  font-family: "Inter", sans-serif;
}

.metric .count {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--g3, #4b3cb4);
  display: block;
}

.metric .label {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
}

.metric-note {
  margin-top: 20px;
  color: #777;
  font-size: 0.9rem;
}

.footer {
  background: #fff;
  color: #0b1320;
  font-family: Inter, sans-serif;
  border-top: 1px solid #eaeaea;
  padding-top: 48px;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid layout */
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
}

.footer__brand .logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.footer__brand p {
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.social a {
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b1320;
  font-size: 12px;
  text-decoration: none;
}
.social a:hover {
  background: #0b1320;
  color: #fff;
}

.footer__block h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__block ul li {
  margin: 6px 0;
}

.footer__block ul a {
  text-decoration: none;
  color: #24324a;
  font-size: 14px;
}

.footer__block ul a:hover {
  text-decoration: underline;
}

.addr p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #444;
}
.map-link {
  color: #0b63f6;
  text-decoration: none;
  font-weight: 500;
}
.map-link:hover {
  text-decoration: underline;
}

/* Contact row horizontal */
.footer__contact {
  margin-top: 32px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.footer__contact a {
  color: #0b1320;
  text-decoration: none;
  font-weight: 500;
}
.footer__contact a:hover {
  text-decoration: underline;
}

.footer__contact .badge {
  background: #f1f4f9;
  color: #333;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

/* Bottom bar */
.footer__bar {
  margin-top: 16px;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #f0f0f0;
}

.footer__bar .inline-links a {
  color: #0b63f6;
  margin-left: 14px;
  text-decoration: none;
  font-weight: 500;
}
.footer__bar .inline-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bar {
    flex-direction: column;
    gap: 10px;
  }
}
