/* I am Your IT — custom styles (Tailwind handles most layout) */

:root {
  --color-primary: #0f3f4d;
  --color-accent: #3cb371;
  --color-secondary-accent: #0e74c4;
  --color-neutral-bg: #f5f7f8;
  --color-neutral-text: #5c6b70;
}

html {
  scroll-behavior: smooth;
}

#web-apps,
#services-overview,
#infrastructure,
#pricing,
#stack,
#contact,
#contact-form-section {
  scroll-margin-top: 80px;
}

#contact-form-section {
  scroll-margin-top: 120px;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* Tighter headings site-wide (overrides Tailwind tracking utilities where present) */
body :where(h1, h2, h3, h4, h5, h6):not(#built-with-heading) {
  letter-spacing: -0.02em !important;
}

/* Subtle dot grid (hero / sections) */
.bg-dot-grid {
  background-color: var(--color-neutral-bg);
  background-image: radial-gradient(circle, rgba(15, 63, 77, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Dark fade on the left behind hero copy; right stays brighter */
.hero-readability-overlay {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
  pointer-events: none;
}

.hero-section {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 60vh;
  background-color: #0f172a;
}

.hero-section-base {
  background-color: #0f172a;
}

.hero-section .hero-bg {
  /* Oversized layer + cover = edge-to-edge bleed with ~10% zoom-out (no letterboxing) */
  inset: -8%;
  width: auto;
  height: auto;
  background-image: url("assets/images/Hero-photo.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #0f172a;
  image-rendering: auto;
}

/* Hero copy: bottom-left on desktop (desk zone), top-centre stack on mobile */
.hero-content {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-sizing: border-box;
}

.hero-panel {
  text-align: left;
  background-color: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-cta-row {
  justify-content: flex-start;
}

@media (max-width: 768px) {
  .hero-section {
    aspect-ratio: unset;
    min-height: min(90vh, 720px);
  }

  .hero-section .hero-bg {
    inset: -6%;
    background-position: 80% center;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    padding-bottom: 1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    text-align: center;
  }

  .hero-panel {
    max-width: 100%;
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
    align-items: stretch;
  }

  .hero-cta-row a {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .hero-cta-row a {
    width: auto;
  }
}

/* Announcement bar subtle motion */
@keyframes announce-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.announce-emoji {
  display: inline-block;
  animation: announce-pulse 2.5s ease-in-out infinite;
}

/* Nav: solid white at top; deep teal when scrolled */
#site-nav {
  background-color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(15, 63, 77, 0.08);
}

#site-nav.nav-solid {
  background-color: var(--color-primary);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(15, 63, 77, 0.15);
}

#site-nav.nav-solid .nav-link {
  color: #fff;
}

#site-nav.nav-solid .nav-link:hover {
  color: var(--color-accent);
}

.nav-cta:hover {
  background-color: #46c882 !important;
  transform: scale(1.05);
  box-shadow:
    0 0 20px rgba(60, 179, 113, 0.5),
    0 10px 24px rgba(60, 179, 113, 0.28);
}

.nav-cta {
  transition: all 0.3s ease-in-out !important;
}

.hero-main-heading {
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Light surface logos */
.nav-logo-img,
.hero-logo {
  filter: drop-shadow(0 1px 2px rgba(15, 63, 77, 0.08));
}

/* Dark teal logos */
#site-nav.nav-solid .nav-brand .nav-logo-img,
.footer-logo {
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.22));
}

#site-nav.nav-solid #mobile-menu-btn {
  color: #fff;
}

#site-nav.nav-solid #mobile-menu-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile panel */
#mobile-menu-panel:not(.hidden) {
  animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card hover lift (complements Tailwind) */
.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 63, 77, 0.12);
}

/* Image entrance polish for key marketing visuals */
@keyframes media-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-fade {
  animation: media-fade-in 0.7s ease-out both;
}

/* Challenges section premium card styling */
.challenges-section {
  background-color: #f8fafc;
}

.challenge-card {
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 10px 30px rgba(15, 63, 77, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.challenge-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 63, 77, 0.14);
}

/* Premium AI assistant demo panel */
.ai-web-shell {
  position: relative;
  box-shadow:
    0 22px 55px rgba(15, 63, 77, 0.2),
    0 0 38px rgba(60, 179, 113, 0.18);
}

.ai-web-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(60, 179, 113, 0.45), rgba(14, 116, 196, 0.15) 45%, rgba(60, 179, 113, 0.25));
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  padding: 1px;
  opacity: 0.7;
}

.ai-web-svg {
  filter: drop-shadow(0 0 18px rgba(60, 179, 113, 0.22));
  overflow: visible;
}

.ai-main-board-float {
  animation: ai-dashboard-float 6s ease-in-out infinite;
  transform-origin: 450px 300px;
}

.ai-mini-panel-float {
  animation: ai-panel-float 5.2s ease-in-out infinite;
  transform-origin: 450px 300px;
}

.ai-mini-a {
  animation-delay: 0.15s;
}

.ai-mini-b {
  animation-delay: 0.85s;
}

.ai-mini-c {
  animation-delay: 1.45s;
}

@keyframes ai-dashboard-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes ai-panel-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* Live Sovereign Engine graphic */
.sovereign-engine {
  min-height: 28rem;
  padding: 2.5rem 0.75rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at 50% 42%, rgba(60, 179, 113, 0.2), rgba(7, 31, 40, 0) 52%);
}

.sovereign-pulse-lines {
  overflow: visible;
}

.pulse-line {
  fill: none;
  stroke: url(#pulse-gradient);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 8 16;
  opacity: 0.75;
  filter: drop-shadow(0 0 8px rgba(60, 179, 113, 0.45));
  animation: pulse-flow 8s linear infinite;
}

.pulse-line-delay-1 {
  animation-delay: 0s;
}

.pulse-line-delay-2 {
  animation-delay: -1.5s;
}

.pulse-line-delay-3 {
  animation-delay: -3s;
}

.pulse-line-delay-4 {
  animation-delay: -4.5s;
}

@keyframes pulse-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -96;
  }
}

.logic-card {
  position: absolute;
  z-index: 20;
  width: 11.5rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0.95rem;
  background: rgba(11, 47, 58, 0.28);
  color: #e8f4f8;
  box-shadow:
    0 14px 30px rgba(6, 22, 30, 0.35),
    0 0 30px rgba(60, 179, 113, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.9rem;
  animation: logic-card-float 5.8s ease-in-out infinite;
}

.logic-card-tl {
  top: 0.3rem;
  left: 0;
}

.logic-card-tr {
  top: 0.3rem;
  right: 0;
  animation-delay: 0.8s;
}

.logic-card-bl {
  bottom: 0.3rem;
  left: 0;
  animation-delay: 1.4s;
}

.logic-card-br {
  bottom: 0.3rem;
  right: 0;
  animation-delay: 2s;
}

.logic-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  color: var(--color-accent);
  background: rgba(60, 179, 113, 0.14);
}

.logic-card-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.logic-card-title {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f3fbff;
}

.logic-card-subtext {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: rgba(230, 247, 250, 0.78);
}

@keyframes logic-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

/* Automation flow preview: faint geometric grid + soft accent glow (IT-themed, stays dark) */
#automation-flow-preview {
  background-color: var(--color-primary);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(60, 179, 113, 0.07), transparent 55%),
    radial-gradient(circle at 88% 75%, rgba(14, 116, 196, 0.06), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center top, center center, 0 0, 0 0;
  background-size: 100% 220px, auto, 26px 26px, 26px 26px;
}

#automation-flow-preview .home-automation-flow {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.25rem 0;
}

#automation-flow-preview .automation-flow-diagram {
  display: block;
  width: 100%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
}

.sovereign-engine-wrap {
  position: relative;
}

.sovereign-engine-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(4.5rem, 12vw, 7.5rem);
  height: clamp(4.5rem, 12vw, 7.5rem);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 15px rgba(141, 198, 63, 0.4));
  animation: sovereign-logo-breathe 2.6s ease-in-out infinite;
  pointer-events: none;
}

/* Favicon sits in the SVG hub; labels sit below the rings */
#automation-flow-preview .sovereign-engine-logo {
  top: 47%;
  width: clamp(4rem, 10.5vw, 6.75rem);
  height: clamp(4rem, 10.5vw, 6.75rem);
  transform: translate(-50%, -54%);
  animation-name: sovereign-logo-breathe-home;
}

@keyframes sovereign-logo-breathe-home {
  0%,
  100% {
    transform: translate(-50%, -54%) scale(1);
  }
  50% {
    transform: translate(-50%, -54%) scale(1.05);
  }
}

@media (max-width: 640px) {
  #automation-flow-preview {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  #automation-flow-preview .home-automation-flow {
    margin-top: 1.25rem;
  }
}

@keyframes sovereign-logo-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Trust / stats strip — premium light band below contact */
.trust-strip {
  background-color: #f5f7f8;
  background-image: linear-gradient(180deg, #fafbfc 0%, #eef2f4 100%);
}

.trust-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .trust-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.trust-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100%;
  padding: 1.35rem 1rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px solid rgba(15, 63, 77, 0.08);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.trust-stat-card:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: rgba(60, 179, 113, 0.28);
  box-shadow: 0 14px 32px rgba(15, 63, 77, 0.1);
}

.trust-stat-card--wide-mobile {
  grid-column: 1 / -1;
  max-width: 16rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .trust-stat-card--wide-mobile {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
}

.trust-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  color: #3cb371;
}

.trust-stat-icon svg {
  width: 1.85rem;
  height: 1.85rem;
}

.trust-stat-value {
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #0f3f4d;
}

.trust-stat-value--text {
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  color: #0f3f4d;
}

.trust-stat-value .text-accent,
.trust-stat-value--text.text-accent {
  color: #3cb371;
}

.trust-stat-label {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: rgba(15, 63, 77, 0.75);
}

.trust-stat-sub {
  margin-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(15, 63, 77, 0.52);
}

/* Contact section: solid dark surface (no photo background); matches primary theme */
#contact {
  background-color: var(--color-primary);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 0 0;
}

.contact-layout {
  gap: 12px;
}

.contact-form-panel {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background-color: rgba(3, 17, 23, 0.46);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contact-form-panel :where(input, select, textarea) {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.contact-form-panel :where(input, textarea)::placeholder {
  color: rgba(203, 213, 225, 0.7) !important;
}

.contact-form-panel :where(input, select, textarea):focus,
.contact-form-panel :where(input, select, textarea):focus-visible {
  border-color: #3cb371 !important;
  outline: none;
  box-shadow:
    0 0 0 2px rgba(60, 179, 113, 0.45),
    0 0 0 4px rgba(60, 179, 113, 0.15);
}

.contact-form-panel :where(input, textarea):invalid:not(:placeholder-shown):not(:focus) {
  border-color: rgba(248, 113, 113, 0.85) !important;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.35);
}

.contact-form-wrap {
  position: relative;
  width: 100%;
}

.contact-form-wrap.is-submitted .contact-form-panel {
  display: none;
}

.contact-form-wrap.is-submitted .contact-form-status--success {
  margin-top: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.contact-form-status {
  margin: 0;
  min-height: 0;
}

.contact-form-status--success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 11rem;
  margin-top: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 20px;
  border: 1px solid rgba(60, 179, 113, 0.4);
  background: rgba(60, 179, 113, 0.12);
  color: #e8fff3;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.contact-form-status--success::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #3cb371;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(60, 179, 113, 0.35);
}

.contact-form-status--error {
  margin-top: 0.75rem;
  text-align: center;
  color: #fecaca;
  font-size: 0.9rem;
}

.contact-form-status--pending {
  margin-top: 0.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

#contact-form-submit {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

#contact-form-submit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 34%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: contact-btn-shine 5s ease-in-out infinite;
  pointer-events: none;
}

#contact-form-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 14px 30px rgba(60, 179, 113, 0.25);
}

@keyframes contact-btn-shine {
  0%,
  84% {
    transform: translateX(-220%) skewX(-20deg);
    opacity: 0;
  }
  90% {
    opacity: 0.9;
  }
  100% {
    transform: translateX(460%) skewX(-20deg);
    opacity: 0;
  }
}

.contact-side-visual img {
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .contact-form-panel {
    grid-template-columns: 1fr !important;
  }

  .contact-form-panel :where(textarea, div) {
    grid-column: span 1 !important;
  }

  .contact-side-visual {
    order: 2;
  }
}

/* Services grid: subtle scroll reveal */
.service-card-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease-out,
    transform 0.5s ease-out;
}

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

.pillar-card {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.pillar-card:hover {
  border-color: #8dc63f;
  box-shadow: 0 0 0 1px rgba(141, 198, 63, 0.45);
}

.hardware-partner-logo {
  height: 30px;
  width: auto;
  max-width: 132px;
  object-fit: contain;
  opacity: 0.82;
  filter: grayscale(100%) brightness(0) invert(0.25);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease;
}

.hardware-partner-logo:hover {
  opacity: 1;
  filter: grayscale(100%) brightness(0) invert(0.18);
}

.sovereign-stack-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.35rem 1.55rem;
}

.stack-tech-item {
  min-width: 132px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  text-decoration: none;
}

.stack-tech-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 63, 77, 0.66);
}

.stack-separator {
  width: 1px;
  height: 62px;
  background: linear-gradient(to bottom, rgba(15, 63, 77, 0.15), rgba(15, 63, 77, 0.42), rgba(15, 63, 77, 0.15));
}

.stack-hardware-note {
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  color: rgba(15, 63, 77, 0.72);
  text-align: left;
}

.stack-hardware-note svg {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.stack-hardware-note p {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 500;
}

.stack-caption {
  letter-spacing: 0.01em;
}

.sovereign-footer {
  background-color: var(--color-primary);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(60, 179, 113, 0.07), transparent 55%),
    radial-gradient(circle at 88% 75%, rgba(14, 116, 196, 0.06), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center top, center center, 0 0, 0 0;
  background-size: 100% 220px, auto, 26px 26px, 26px 26px;
}

.footer-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Geist Mono", "JetBrains Mono", "Inter", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.footer-link {
  color: #ffffff;
  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.footer-link:hover {
  color: #8dc63f;
  text-shadow: 0 0 12px rgba(141, 198, 63, 0.35);
}

.footer-mono-list {
  font-family: "Geist Mono", "JetBrains Mono", "Inter", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.footer-performance {
  color: rgba(255, 255, 255, 0.9);
}

/* Systems schematic process section */
.systems-schematic {
  padding-top: 0.6rem;
}

.logic-path {
  position: absolute;
  left: 0;
  top: 1.75rem;
  width: 100%;
  height: 9.5rem;
  pointer-events: none;
}

.logic-path-base {
  fill: none;
  stroke: rgba(15, 63, 77, 0.2);
  stroke-width: 1.2;
}

.logic-path-pulse {
  fill: none;
  stroke: rgba(60, 179, 113, 0.75);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 12 20;
  filter: drop-shadow(0 0 7px rgba(60, 179, 113, 0.45));
  animation: logic-path-flow 8s linear infinite;
}

@keyframes logic-path-flow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -128;
  }
}

.schematic-card {
  position: relative;
  min-height: 12rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(11, 47, 58, 0.34);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(15, 63, 77, 0.16);
  padding: 1.2rem 1rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.schematic-card:hover {
  border-color: rgba(60, 179, 113, 0.75);
  box-shadow:
    0 16px 36px rgba(15, 63, 77, 0.22),
    0 0 0 1px rgba(60, 179, 113, 0.35),
    0 0 22px rgba(60, 179, 113, 0.25);
  transform: translateY(-3px);
}

.schematic-step {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(201, 232, 224, 0.82);
}

.schematic-title {
  margin-top: 0.65rem;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #f4fcfe;
}

.schematic-subtext {
  margin-top: 0.65rem;
  font-size: 0.77rem;
  line-height: 1.45;
  color: rgba(232, 248, 250, 0.78);
}

/* Testimonial quote texture */
.quote-card-bg {
  background-color: #fff;
  background-image: radial-gradient(circle at 100% 0%, rgba(60, 179, 113, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(14, 116, 196, 0.05) 0%, transparent 40%);
}

/* Sovereign standard section background */
.trust-bg {
  background-color: var(--color-primary);
  background-image:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(60, 179, 113, 0.07), transparent 55%),
    radial-gradient(circle at 88% 75%, rgba(14, 116, 196, 0.06), transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-position: center top, center center, 0 0, 0 0;
  background-size: 100% 220px, auto, 26px 26px, 26px 26px;
}

.trust-bg::before {
  content: none;
}

.trust-bg::after {
  content: none;
}

.sovereign-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.sovereign-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.16;
  pointer-events: none;
}

.sovereign-card > * {
  position: relative;
  z-index: 1;
}

.sovereign-card:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 30px -10px rgba(20, 184, 166, 0.5);
  transform: scale(1.05);
}

.sovereign-card::after {
  content: "";
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: -30%;
  width: 30%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: translateX(-180%);
  opacity: 0;
  pointer-events: none;
}

.sovereign-card:hover::after {
  opacity: 1;
  animation: card-scan 0.75s ease-out 1;
}

@keyframes card-scan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(520%);
  }
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 999px;
  padding: 0.26rem 0.58rem;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.45);
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.55);
}

.sovereign-step {
  font-family: "Geist Mono", "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
}

.online-dot {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.95);
}

.sovereign-card h3 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  text-shadow: 0 1px 3px rgba(2, 6, 23, 0.58);
}

.sovereign-card p {
  text-shadow: 0 1px 2px rgba(2, 6, 23, 0.5);
}

/* Dify chatbot — brand green bubble & viewport-fixed (not tied to page scroll sections) */
#dify-chatbot-bubble-button {
  --dify-chatbot-bubble-button-bg-color: #3cb371;
  --dify-chatbot-bubble-button-bottom: 2rem;
  --dify-chatbot-bubble-button-right: 2rem;
  background-color: #3cb371 !important;
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 99999 !important;
}

#dify-chatbot-bubble-window {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 99998 !important;
}

body > div:has(#dify-chatbot-bubble-button) {
  position: fixed !important;
  bottom: 2rem !important;
  right: 2rem !important;
  z-index: 99997 !important;
  pointer-events: none;
}

body > div:has(#dify-chatbot-bubble-button) > * {
  pointer-events: auto;
}

/* Focus visible for a11y */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
