:root {
  --brand-primary: #0A2540;
  /* main background (deep navy) */
  --brand-ink: #000000;
  /* true black for ink/accents only, not page slabs */
  --brand-blue-900: #0B2F4F;
  /* brighter deep blue */
  --brand-blue-800: #0F3D66;
  /* primary bright surface */
  --brand-blue-700: #155A93;
  /* soft band / highlight surface */
  --brand-border: rgba(255, 255, 255, 0.12);
  /* subtle borders */
  --brand-sheen: rgba(255, 255, 255, 0.14);
  /* gloss sheen */
  --shadow-base: 0 10px 30px rgba(0, 0, 0, 0.22);
  /* base card shadow */
  --shadow-pop: 0 18px 55px rgba(0, 0, 0, 0.32);
  /* pop shadow on hover */
  --bg-primary: #0A2540;
  /* primary background (same as brand-primary) */
  --bg-primary-soft: #103A63;
  /* lighter blue surface for sections (legacy, being replaced) */
  --bg-surface: #0B1F33;
  /* optional subtle in-between surface */
  --brand-alt: #0B2F4F;
  /* alt surface (now bright blue instead of dark gray) */
  --accent: #EFE6D8;
  /* warm accent + text on dark */
  --text: #EFE6D8;
  /* body text */
  --muted: #c7c2ba;
  /* soft muted text */
  --line: #1b1e22;
  /* subtle borders on dark */
  --nav-h: 72px;
  --card-hover-lift: -6px;
  /* card hover lift distance (more expressive) */
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--brand-blue-700);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.5;
  scroll-behavior: smooth;
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem
}

/* Header */
header {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800));
  border-bottom: 1px solid rgba(239, 230, 216, 0.1);
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-bottom-color 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem
}

.logo {
  width: 84px;
  height: 84px;
  object-fit: contain
}

.menu {
  display: flex;
  gap: 1.1rem
}

.menu a {
  font-weight: 600;
  color: var(--accent);
  opacity: .95
}

.menu a:hover {
  opacity: 1
}

/* Hamburger menu button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: all 0.3s ease
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px)
}

.hamburger.active span:nth-child(2) {
  opacity: 0
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px)
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .8rem 1.1rem;
  border-radius: .7rem;
  background: linear-gradient(135deg, var(--accent) 0%, #f5ede0 100%);
  color: var(--brand-primary);
  border: 1px solid rgba(239, 230, 216, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  will-change: transform;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  border-radius: .7rem .7rem 0 0;
}

.btn.outline {
  background: linear-gradient(135deg, rgba(239, 230, 216, 0.05) 0%, rgba(239, 230, 216, 0.1) 100%);
  color: var(--accent);
  border: 1px solid rgba(239, 230, 216, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn.outline::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Hero */
.hero {
  background: radial-gradient(ellipse at center top, rgba(239, 230, 216, 0.08) 0%, var(--brand-primary) 60%);
  padding: 6rem 0 3.5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 230, 216, 0.1), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800
}

h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  margin: .5rem 0 1rem;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -.01em
}

p.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch
}

/* KPI band */
.kpi-band {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800)) url('../images/kpi-bg.png') center/cover no-repeat;
  border-top: 1px solid rgba(239, 230, 216, 0.1);
  border-bottom: 1px solid rgba(239, 230, 216, 0.1);
  color: var(--accent);
  position: relative;
}

.kpi-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0
}

.kpi-band .k {
  font-weight: 800;
  font-size: 1.6rem
}

.kpi-band .l {
  color: var(--muted)
}

/* Cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05)), linear-gradient(135deg, var(--brand-blue-700) 0%, var(--brand-blue-800) 100%);
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-base);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-sheen), transparent);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.card-banner {
  width: 100%;
  height: 100px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
}

.card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 1rem auto;
  display: block;
}

.card-content {
  padding: 1.25rem
}

/* Tech Logos Marquee */
.logos-band {
  background: var(--brand-blue-700);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

.logos-wrap {
  position: relative;
  overflow: hidden;
  padding: 1rem 0
}

.logos-track {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  width: max-content;
  animation: logos-scroll 30s linear infinite
}

.logos-wrap:hover .logos-track {
  animation-play-state: paused
}

@keyframes logos-scroll {
  0% {
    transform: translateX(0)
  }
  100% {
    transform: translateX(-50%)
  }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  min-width: 120px
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: none
}

.logo-img.light {
  filter: brightness(0) invert(1)
}

.logo-name {
  font-size: .9rem;
  color: var(--muted);
  text-align: center
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none
  }
}

/* Small screens */
@media (max-width:900px) {
  .logos-track {
    gap: 1.4rem
  }

  .logo-item {
    min-width: 100px
  }

  .logo-img {
    height: 40px
  }
}

/* Tile images */
.tile-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block
}

/* Sections + headings */
section {
  padding: 3rem 0
}

h2 {
  font-size: 1.9rem;
  margin: 0 0 1rem;
  color: var(--accent)
}

h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 .8rem;
  color: var(--accent)
}

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem
}

/* Pills + feature text */
.pill {
  display: inline-block;
  font-size: .75rem;
  padding: .3rem .6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue-700) 0%, var(--brand-blue-800) 100%);
  border: 1px solid rgba(239, 230, 216, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.feature h3 {
  margin: .6rem 0 .4rem;
  color: var(--accent)
}

.feature p {
  color: var(--muted);
  margin: 0
}

/* Footer */
footer {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800));
  color: var(--accent);
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(239, 230, 216, 0.1);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

footer a {
  color: var(--accent)
}

/* Alternating surfaces */
section.alt {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800));
  position: relative;
}

section.alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

section.dark {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800));
}

/* Universal surface helper classes */
.surface-primary {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800)) !important;
  color: var(--text);
}

.surface-soft {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800)) !important;
  color: var(--text);
}

/* Ensure surface classes override section.dark and section.alt */
section.dark.surface-primary {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800)) !important;
}

section.alt.surface-soft {
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800)) !important;
}

/* Content sections */
.content-section p {
  color: var(--muted);
  margin: 1rem 0;
  line-height: 1.7
}

/* Service sub-navigation */
.service-nav {
  background: var(--brand-blue-700);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  margin-bottom: 2rem
}

.service-nav .container {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center
}

.service-nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500
}

.service-nav a:hover,
.service-nav a.active {
  color: var(--accent);
  text-decoration: none
}

/* Responsive */
@media (max-width:1000px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:900px) {
  .hamburger {
    display: flex
  }

  .hero-grid {
    grid-template-columns: 1fr
  }

  .grid-3 {
    grid-template-columns: 1fr
  }

  .grid-4 {
    grid-template-columns: 1fr
  }

  .menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--brand-alt);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .35)
  }

  .menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible
  }

  .menu a {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    display: block
  }

  .menu a:last-child {
    border-bottom: none
  }

  .service-nav {
    padding: .8rem 0
  }

  .service-nav .container {
    gap: 1rem
  }
}

/* Anchor offset for sticky header */
[id] {
  scroll-margin-top: calc(var(--nav-h) + 16px);
}

/* ============================================
   PERFORMANCE-SAFE ANIMATIONS & INTERACTIONS
   ============================================ */

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Button Micro-interactions (enhanced) */
.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 230, 216, 0.35), 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(239, 230, 216, 0.5);
  outline: none;
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(239, 230, 216, 0.25), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn.outline:hover,
.btn.outline:focus-visible {
  box-shadow: 0 6px 16px rgba(239, 230, 216, 0.25), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  border-color: rgba(239, 230, 216, 0.4);
  background: linear-gradient(135deg, rgba(239, 230, 216, 0.1) 0%, rgba(239, 230, 216, 0.15) 100%);
}

/* Card Hover & Focus Interactions */
.feature.card,
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}

.feature.card:hover,
.feature.card:focus-within,
.card:hover,
.card:focus-within {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-pop);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature.card:hover::before,
.feature.card:focus-within::before,
.card:hover::before,
.card:focus-within::before {
  opacity: 1;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.feature.card .tile-img,
.card .tile-img {
  transition: transform 0.4s ease;
  will-change: transform;
  overflow: hidden;
}

.feature.card,
.card {
  overflow: hidden;
}

.feature.card:hover .tile-img,
.feature.card:focus-within .tile-img,
.card:hover .tile-img,
.card:focus-within .tile-img {
  transform: scale(1.05);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: translateY(0);
  }

  .feature.card:hover .tile-img,
  .card:hover .tile-img {
    transform: none;
  }

  .feature.card:hover,
  .feature.card:focus-within,
  .card:hover,
  .card:focus-within,
  .figure-card:hover,
  .figure-card:focus-within,
  body.page-products .product-card-link:hover,
  body.page-products .product-card-link:focus-within {
    transform: none;
  }
}

/* Sticky Header Scroll State (transition already defined above) */

header[data-scrolled="true"] {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(239, 230, 216, 0.15);
}

/* Active Navigation Link */
.menu a[aria-current="page"] {
  opacity: 1;
  color: var(--accent);
  text-decoration: underline;
}

/* Logo Item Hover Lift */
.logo-item {
  transition: transform 0.3s ease;
  will-change: transform;
}

.logo-item:hover {
  transform: translateY(-4px);
}

@media (prefers-reduced-motion: reduce) {
  .logo-item:hover {
    transform: none;
  }
}

/* Logo Wrap Edge Fade Mask */
.logos-wrap {
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 5%,
    black 95%,
    transparent 100%
  );
}

/* Focus Visible Styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure cards are focusable for keyboard navigation */
.feature.card:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* Products page */
body.page-products .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  align-items: stretch;
}

body.page-products .product-card-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

body.page-products .product-card-link:hover,
body.page-products .product-card-link:focus-within {
  transform: translateY(var(--card-hover-lift));
}

body.page-products .product-card-link:hover .product-card,
body.page-products .product-card-link:focus-within .product-card {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-pop);
  border-color: rgba(255, 255, 255, 0.20);
}

body.page-products .product-card-link:not(a) {
  cursor: default;
}

body.page-products .product-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05)), linear-gradient(135deg, var(--brand-blue-700) 0%, var(--brand-blue-800) 100%);
  border: 1px solid var(--brand-border);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: var(--shadow-base);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

body.page-products .product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-sheen), transparent);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
  opacity: 0.9;
  transition: opacity 0.2s ease, height 0.2s ease;
}

body.page-products .product-card-link:hover .product-card::before,
body.page-products .product-card-link:focus-within .product-card::before {
  opacity: 1;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

body.page-products .product-card h3 {
  margin-top: 0;
  color: var(--accent);
  flex-shrink: 0;
}

body.page-products .product-card p {
  color: var(--muted);
  margin: .5rem 0;
  flex-grow: 1;
  min-height: 0;
}

body.page-products .empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

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

/* Admin page */
body.page-admin {
  --success: #4caf50;
  --error: #f44336;
}

body.page-admin .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

body.page-admin h1 {
  font-size: 2rem;
  color: var(--accent);
  margin: 0 0 1rem;
}

body.page-admin h2 {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 2rem 0 1rem;
}

body.page-admin .login-section {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 500px;
  margin: 0 auto;
}

body.page-admin .login-section p {
  color: var(--muted);
  margin-bottom: 2rem;
}

body.page-admin .btn {
  display: inline-block;
  padding: .8rem 1.5rem;
  border-radius: .7rem;
  background: var(--accent);
  color: var(--brand-primary);
  border: 1px solid var(--accent);
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .05s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
}

body.page-admin .btn:hover {
  transform: translateY(-1px);
}

body.page-admin .btn.outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

body.page-admin .btn.danger {
  background: var(--error);
  color: white;
  border-color: var(--error);
  padding: .5rem 1rem;
  font-size: .9rem;
}

body.page-admin .btn.success {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

body.page-admin .card {
  background: var(--brand-alt);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}

body.page-admin .form-group {
  margin-bottom: 1.5rem;
}

body.page-admin label {
  display: block;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .5rem;
}

body.page-admin input[type="text"],
body.page-admin input[type="url"],
body.page-admin textarea {
  width: 100%;
  padding: .8rem;
  border-radius: .5rem;
  border: 1px solid var(--line);
  background: var(--brand-primary);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

body.page-admin input:focus,
body.page-admin textarea:focus {
  outline: none;
  border-color: var(--accent);
}

body.page-admin textarea {
  min-height: 100px;
  resize: vertical;
}

body.page-admin .product-item {
  background: var(--brand-primary);
  border: 1px solid var(--line);
  border-radius: .5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

body.page-admin .product-item-content {
  flex: 1;
}

body.page-admin .product-item h3 {
  margin: 0 0 .5rem;
  color: var(--accent);
  font-size: 1.2rem;
}

body.page-admin .product-item p {
  margin: .3rem 0;
  color: var(--muted);
  font-size: .9rem;
}

body.page-admin .product-item .url {
  color: var(--accent);
  font-size: .85rem;
  word-break: break-all;
}

body.page-admin .product-actions {
  display: flex;
  gap: .5rem;
}

body.page-admin .message {
  padding: 1rem;
  border-radius: .5rem;
  margin-bottom: 1rem;
  display: none;
}

body.page-admin .message.success {
  background: rgba(76, 175, 80, .2);
  border: 1px solid var(--success);
  color: var(--success);
  display: block;
}

body.page-admin .message.error {
  background: rgba(244, 67, 54, .2);
  border: 1px solid var(--error);
  color: var(--error);
  display: block;
}

body.page-admin .user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--brand-alt);
  border-radius: .5rem;
  border: 1px solid var(--line);
}

body.page-admin .user-info span {
  color: var(--muted);
}

body.page-admin .loading {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  body.page-admin .product-item {
    flex-direction: column;
  }

  body.page-admin .product-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Comparison Table (Glossy) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800));
  border-radius: 0.5rem;
  overflow: hidden;
}

.compare-table thead {
  background: linear-gradient(135deg, rgba(15, 61, 102, 0.7) 0%, rgba(11, 47, 79, 0.5) 100%);
  border-bottom: 1px solid rgba(239, 230, 216, 0.2);
}

.compare-table thead th {
  color: var(--accent);
  font-weight: 700;
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid rgba(239, 230, 216, 0.2);
  position: relative;
}

.compare-table thead th:first-child {
  border-top-left-radius: 0.5rem;
}

.compare-table thead th:last-child {
  border-top-right-radius: 0.5rem;
}

.compare-table thead th::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.compare-table tbody tr {
  transition: background-color 0.2s ease;
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(239, 230, 216, 0.02);
}

.compare-table tbody tr:hover {
  background: rgba(239, 230, 216, 0.05);
}

.compare-table tbody th,
.compare-table tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(239, 230, 216, 0.1);
  color: var(--text);
}

.compare-table tbody th {
  color: var(--accent);
  font-weight: 600;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Screenshot Cards (Glossy) */
.figure-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.05)), linear-gradient(135deg, var(--brand-blue-700) 0%, var(--brand-blue-800) 100%);
  border: 1px solid var(--brand-border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-base);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.figure-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-sheen), transparent);
  border-radius: 1rem 1rem 0 0;
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.2s ease, height 0.2s ease;
}

.figure-card:hover,
.figure-card:focus-within {
  transform: translateY(var(--card-hover-lift));
  box-shadow: var(--shadow-pop);
  border-color: rgba(255, 255, 255, 0.18);
}

.figure-card:hover::before,
.figure-card:focus-within::before {
  opacity: 1;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

.screenshot-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, var(--brand-blue-700), var(--brand-blue-800));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px dashed rgba(239, 230, 216, 0.2);
}

.figure-card figcaption {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (prefers-reduced-motion: reduce) {
  .figure-card:hover,
  .figure-card:focus-within {
    transform: none;
  }

  .feature.card:hover,
  .feature.card:focus-within,
  .card:hover,
  .card:focus-within,
  body.page-products .product-card-link:hover,
  body.page-products .product-card-link:focus-within {
    transform: none;
  }
}

/* Maintenance Toggle page */
body.page-maintenance-toggle .features-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

body.page-maintenance-toggle .features-list li {
  padding: .8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--muted);
}

body.page-maintenance-toggle .features-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  body.page-maintenance-toggle .menu {
    display: none;
  }
}

