/**
 * AppNet Developer — bridge between reimagine header + enterprise layer
 * Synced from web-bioniceye enterprise design (jul-30 2026)
 */

/* Map AppNet header chrome to enterprise tokens */
body.reimagine-an {
  font-family: var(--ex-font-body, 'Source Sans 3', system-ui, sans-serif) !important;
}

.re-header {
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--re-border);
  background: oklch(12% 0.02 255 / 0.78);
  position: sticky;
  top: 0;
  z-index: 100;
}

.re-header__logo span,
.re-header__menu a,
.re-section__title,
.re-display {
  font-family: var(--ex-font-display, 'Lexend', system-ui, sans-serif);
}

.re-header__menu a {
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.92rem;
  color: var(--re-ink-muted);
}

.re-header__menu a:hover,
.re-header__menu a[aria-current="page"] {
  color: var(--ex-steel-bright, var(--re-iris-bright));
}

.re-header__theme {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--re-border);
  background: var(--re-surface);
  color: var(--re-ink);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}
.re-header__theme:hover {
  border-color: var(--re-border-strong);
}

.re-header__burger span {
  background: var(--re-ink);
}

/* Product spotlight band — works in dark + light */
.an-product-band {
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  border: 1px solid var(--re-border);
  background:
    radial-gradient(700px 280px at 15% 0%, oklch(45% 0.08 240 / 0.22), transparent 60%),
    linear-gradient(160deg, var(--re-surface) 0%, var(--re-bg-1) 100%);
  box-shadow: var(--ex-shadow-sm, 0 8px 28px oklch(0% 0 0 / 0.2));
  position: relative;
  overflow: hidden;
}
.an-product-band .re-section__kicker,
.an-product-band .re-section__title,
.an-product-band .re-section__sub {
  color: var(--re-ink);
}
.an-product-band .re-section__sub {
  color: var(--re-ink-muted);
}

.an-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  max-width: 900px;
  margin: 1.75rem auto 0;
}
.an-stat {
  text-align: center;
  padding: 1rem 0.85rem;
  border-radius: 12px;
  background: var(--re-bg-0);
  border: 1px solid var(--re-border);
}
.an-stat__val {
  font-family: var(--ex-font-display, 'Lexend', system-ui, sans-serif);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--re-ink);
}
.an-stat__lbl {
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--re-ink-dim);
  margin-top: 0.3rem;
}

.an-product-media {
  margin: 1.5rem auto 0;
  max-width: 720px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--re-border);
  aspect-ratio: 16 / 9;
}
.an-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.an-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin: 1.75rem auto 0;
  max-width: 52rem;
}
.an-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--re-border);
  background: var(--re-surface);
  font-size: 0.78rem;
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  letter-spacing: 0.03em;
  color: var(--re-ink-muted);
}
.an-trust__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ex-success, #10b981);
  flex-shrink: 0;
}

.an-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.an-news__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--re-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--re-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.an-news__card:hover {
  transform: translateY(-3px);
  border-color: var(--re-border-strong);
  box-shadow: var(--ex-shadow-sm, 0 10px 28px oklch(0% 0 0 / 0.18));
}
.an-news__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--re-bg-1);
}
.an-news__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.an-news__body {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.an-news__tag {
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ex-steel, var(--re-iris-bright));
}
.an-news__title {
  font-family: var(--ex-font-display, 'Lexend', system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--re-ink);
  line-height: 1.3;
}
.an-news__lede {
  font-size: 0.9rem;
  color: var(--re-ink-muted);
  line-height: 1.5;
}

/* Light mode header AppNet */
:root[data-theme="light"] .re-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
}
:root[data-theme="light"] .re-header__menu a {
  color: #1e293b !important;
}
:root[data-theme="light"] .re-header__menu a:hover {
  color: #0369a1 !important;
}
:root[data-theme="light"] .re-header__logo span {
  color: #0f172a;
}
:root[data-theme="light"] .re-header__logo .re-ink-gradient {
  background: none !important;
  -webkit-text-fill-color: #0369a1 !important;
  color: #0369a1 !important;
}
:root[data-theme="light"] .re-header__theme {
  background: #fff !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
}
:root[data-theme="light"] .re-header__burger span {
  background: #0f172a !important;
}
:root[data-theme="light"] .an-product-band {
  background:
    radial-gradient(700px 280px at 15% 0%, rgba(3, 105, 161, 0.1), transparent 60%),
    linear-gradient(160deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
:root[data-theme="light"] .an-stat {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
:root[data-theme="light"] .an-news__card,
:root[data-theme="light"] .an-trust__item {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* Mobile menu open */
@media (max-width: 900px) {
  .re-header__menu.is-mobile-open {
    background: var(--re-bg-0);
    border-bottom: 1px solid var(--re-border);
  }
  :root[data-theme="light"] .re-header__menu.is-mobile-open {
    background: #ffffff !important;
  }
}

/* =========================================================
   Deeper enterprise UI — services, projects, blog, contact
   ========================================================= */
.an-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.an-cta .re-display { letter-spacing: -0.03em; }

/* Service cards */
.an-service-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.an-service-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--re-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--re-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  box-shadow: var(--ex-shadow-sm, 0 8px 24px oklch(0% 0 0 / 0.12));
}
.an-service-card--hero { grid-column: span 8; }
.an-service-card--tall { grid-column: span 4; }
.an-service-card--wide { grid-column: span 6; }
.an-service-card--std { grid-column: span 3; }
@media (max-width: 1100px) {
  .an-service-card, .an-service-card--hero, .an-service-card--tall,
  .an-service-card--wide, .an-service-card--std { grid-column: span 6; }
}
@media (max-width: 700px) {
  .an-service-card, .an-service-card--hero, .an-service-card--tall,
  .an-service-card--wide, .an-service-card--std { grid-column: span 12; }
}
.an-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--re-border-strong);
  box-shadow: var(--ex-shadow, 0 16px 40px oklch(0% 0 0 / 0.18));
}
.an-service-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--re-bg-1);
}
.an-service-card--hero .an-service-card__media { aspect-ratio: 21 / 9; }
.an-service-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 280ms ease;
}
.an-service-card:hover .an-service-card__media img { transform: scale(1.04); }
.an-service-card__body {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.an-service-card__idx {
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ex-steel, var(--re-iris-bright));
}
.an-service-card__title {
  font-family: var(--ex-font-display, Lexend, system-ui, sans-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--re-ink);
  margin: 0;
  line-height: 1.25;
}
.an-service-card__desc {
  font-size: 0.95rem;
  color: var(--re-ink-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}
.an-service-card__more {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ex-steel, var(--re-iris-bright));
}

/* Process */
.an-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  counter-reset: none;
}
.an-process__step {
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--re-border);
  background: var(--re-surface);
  box-shadow: var(--ex-shadow-sm, none);
}
.an-process__num {
  display: block;
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ex-steel, var(--re-iris-bright));
  margin-bottom: 0.65rem;
}
.an-process__title {
  font-family: var(--ex-font-display, Lexend, system-ui, sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--re-ink);
  margin: 0 0 0.4rem;
}
.an-process__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--re-ink-muted);
  line-height: 1.55;
}

/* Projects */
.an-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.an-project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--re-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--re-surface);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.an-project-card:hover {
  transform: translateY(-4px);
  border-color: var(--re-border-strong);
  box-shadow: var(--ex-shadow-sm, 0 12px 32px oklch(0% 0 0 / 0.15));
}
.an-project-card__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--re-bg-1);
}
.an-project-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 280ms ease;
}
.an-project-card:hover .an-project-card__media img { transform: scale(1.04); }
.an-project-card__body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.an-project-card__role {
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ex-steel, var(--re-iris-bright));
}
.an-project-card__title {
  font-family: var(--ex-font-display, Lexend, system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--re-ink);
  margin: 0;
  line-height: 1.25;
}
.an-project-card__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--re-ink-muted);
  line-height: 1.55;
  flex: 1;
}
.an-project-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--re-border);
}
.an-project-card__impact {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--re-ink);
}
.an-project-card__more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ex-steel, var(--re-iris-bright));
  white-space: nowrap;
}

/* Pillars about */
.an-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.an-pillar {
  padding: 1.25rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--re-border);
  background: var(--re-surface);
}
.an-pillar__n {
  font-family: var(--ex-font-mono, ui-monospace, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ex-steel, var(--re-iris-bright));
}
.an-pillar__t {
  font-family: var(--ex-font-display, Lexend, system-ui, sans-serif);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--re-ink);
  margin: 0.5rem 0 0.4rem;
}
.an-pillar__d {
  margin: 0;
  font-size: 0.92rem;
  color: var(--re-ink-muted);
  line-height: 1.55;
}

/* Contact alerts */
.an-alert {
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.an-alert--ok {
  background: oklch(92% 0.05 155);
  border: 1px solid oklch(70% 0.12 155);
  color: oklch(30% 0.08 155);
}
.an-alert--err {
  background: oklch(94% 0.04 25);
  border: 1px solid oklch(70% 0.14 25);
  color: oklch(35% 0.12 25);
}
:root[data-theme="dark"] .an-alert--ok {
  background: oklch(30% 0.05 155 / 0.35);
  border-color: oklch(65% 0.12 155 / 0.45);
  color: oklch(85% 0.08 155);
}
:root[data-theme="dark"] .an-alert--err {
  background: oklch(30% 0.06 25 / 0.35);
  border-color: oklch(65% 0.15 25 / 0.45);
  color: oklch(85% 0.08 25);
}

.re-contact-aside__card {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--re-border);
  background: var(--re-surface);
  margin-bottom: 0.85rem;
}
.re-contact-aside__card h3 {
  font-family: var(--ex-font-display, Lexend, system-ui, sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--re-ink);
  margin: 0 0 0.4rem;
}
.re-contact-aside__card p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: var(--re-ink-muted);
  line-height: 1.45;
}
.re-contact-aside__card a {
  color: var(--ex-steel, var(--re-iris-bright));
  text-decoration: none;
  font-weight: 600;
}
.re-contact-aside__card a:hover { text-decoration: underline; }

/* Nav active */
.re-header__menu a.is-active {
  color: var(--ex-steel-bright, var(--re-iris-bright)) !important;
  font-weight: 600;
}

/* Subhero polish */
.re-subhero {
  padding-top: clamp(5.5rem, 10vw, 7rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.re-subhero .re-display {
  letter-spacing: -0.03em;
  max-width: 18ch;
}

/* Footer bottom bar */
body.reimagine-an footer {
  margin-top: 0;
}

/* Light extras */
:root[data-theme="light"] .an-service-card,
:root[data-theme="light"] .an-project-card,
:root[data-theme="light"] .an-process__step,
:root[data-theme="light"] .an-pillar,
:root[data-theme="light"] .re-contact-aside__card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}
:root[data-theme="light"] .an-service-card__title,
:root[data-theme="light"] .an-project-card__title,
:root[data-theme="light"] .an-process__title,
:root[data-theme="light"] .an-pillar__t {
  color: #0f172a !important;
}
:root[data-theme="light"] .an-service-card__desc,
:root[data-theme="light"] .an-project-card__desc,
:root[data-theme="light"] .an-process__desc,
:root[data-theme="light"] .an-pillar__d {
  color: #334155 !important;
}
:root[data-theme="light"] .re-comp {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}
