/* =========================================================
   AVALIA — Design Tokens
   Theme: hybrid (dark hero/architecture/security, light rest)
   Accent: monochrome blue
   Type: IBM Plex Sans (UI) + IBM Plex Mono (labels/data)
   ========================================================= */

:root {
  /* Color — neutrals */
  --navy-900: #0F172A;   /* base dark background */
  --navy-800: #16213A;   /* elevated dark surface (cards on dark) */
  --navy-700: #1E2B47;   /* borders/dividers on dark */
  --off-white: #F8FAFC;  /* base light background */
  --white: #FFFFFF;      /* elevated light surface (cards on light) */
  --gray-200: #E2E8F0;   /* borders/dividers on light */
  --gray-400: #94A3B8;   /* muted text on dark */
  --gray-500: #64748B;   /* secondary text on light */
  --gray-900: #0F172A;   /* primary text on light */

  /* Color — monochrome blue accent */
  --blue-900: #1E3A8A;   /* primary accent, CTA fill */
  --blue-700: #2547A8;   /* primary hover */
  --blue-400: #60A5FA;   /* tint — links/accents on dark, icon strokes */
  --blue-100: #DBEAFE;   /* tint background on light (badges, hovers) */

  /* Text on dark sections */
  --text-on-dark: #E2E8F0;
  --text-on-dark-muted: var(--gray-400);

  /* Text on light sections */
  --text-on-light: var(--gray-900);
  --text-on-light-muted: var(--gray-500);

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  /* Fluid type scale */
  --text-eyebrow: 0.8125rem;
  --text-body: clamp(1rem, 0.95rem + 0.15vw, 1.0625rem);
  --text-h1: clamp(2.25rem, 1.9rem + 2vw, 3.75rem);
  --text-h2: clamp(1.75rem, 1.55rem + 1vw, 2.5rem);
  --text-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);

  /* Spacing */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container-width: 1180px;
  --container-pad: var(--space-3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   Reset
   ========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

/* Anchor scroll offset so section headings aren't hidden under sticky header */
section[id], div[id] {
  scroll-margin-top: 84px;
}

/* Visible focus state for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 2px;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--space-7);
}

.section--dark {
  background: var(--navy-900);
  color: var(--text-on-dark);
}

.section--light {
  background: var(--off-white);
  color: var(--text-on-light);
}

.section--sm {
  padding-block: var(--space-5);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* =========================================================
   Typography components
   ========================================================= */

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: var(--space-2);
}

.section--light .eyebrow {
  color: var(--blue-900);
}

h1, .h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: var(--text-h2);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

h3, .h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-2);
}

.body-lead {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--text-on-light-muted);
}

.section--dark .body-lead,
.section--dark p {
  color: var(--text-on-dark-muted);
}

/* Higher specificity than ".section--dark p" so eyebrows keep their accent
   color instead of inheriting the muted dark-section paragraph color. */
.section--dark .eyebrow {
  color: var(--blue-400);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--blue-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--text-on-dark);
}

.btn-outline:hover {
  border-color: var(--blue-400);
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.section--dark .card {
  background: var(--navy-800);
  border-color: var(--navy-700);
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-900);
  margin-bottom: var(--space-3);
}

.section--dark .card-icon {
  background: rgba(96, 165, 250, 0.12);
  color: var(--blue-400);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* =========================================================
   Grids
   ========================================================= */

.grid {
  display: grid;
  gap: var(--space-4);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: var(--space-6);
  }
}

/* =========================================================
   Trusted By
   ========================================================= */

.trusted-by__label {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-on-light-muted);
  margin-bottom: var(--space-3);
}

.trusted-by__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}

.trusted-by__logos li {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-500);
  text-align: center;
  filter: grayscale(1);
  opacity: 0.85;
}

/* =========================================================
   Solution — pillar list
   ========================================================= */

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pillar {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-block: var(--space-3);
  border-top: 1px solid var(--gray-200);
}

.pillar__index {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--blue-900);
  padding-top: 0.2em;
}

.pillar h3 a {
  color: var(--text-on-light);
  transition: color 0.2s var(--ease);
}

.pillar h3 a:hover {
  color: var(--blue-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================
   Architecture — flow diagram
   ========================================================= */

.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-lg);
}

.arch-box {
  flex: 1 1 160px;
  max-width: 200px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  border: 1px solid var(--navy-700);
  color: var(--text-on-dark);
}

.arch-box span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
  margin-top: 0.25rem;
}

.arch-box--highlight {
  background: var(--blue-900);
  border-color: var(--blue-700);
  color: var(--white);
}

.arch-box--highlight span {
  color: rgba(255, 255, 255, 0.75);
}

.arch-box--outline {
  background: transparent;
  border: 1px dashed var(--blue-400);
}

.arch-arrow {
  font-family: var(--font-mono);
  color: var(--blue-400);
  font-size: 1.25rem;
  text-align: center;
  line-height: 1.2;
  flex: 0 0 auto;
}

.arch-arrow small {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-on-dark-muted);
}

@media (max-width: 760px) {
  .arch-diagram {
    flex-direction: column;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }
}

.arch-layers {
  margin-bottom: var(--space-6);
}

.arch-diagram--pipeline {
  margin-bottom: 0;
}

.arch-diagram--pipeline .arch-box {
  flex-basis: 140px;
  font-size: 0.8125rem;
}

/* =========================================================
   Security — feature list
   ========================================================= */

.feature-list {
  margin-top: var(--space-6);
  gap: var(--space-3) var(--space-5);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.feature-list__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  color: var(--blue-400);
}

/* =========================================================
   Team — bios, pull-quote
   ========================================================= */

.bios {
  margin-bottom: var(--space-6);
}

.bio {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.bio__avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-900);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pull-quote {
  margin-block: var(--space-6);
  padding: var(--space-5);
  background: var(--blue-100);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--blue-900);
}

.pull-quote p {
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  font-weight: 500;
  color: var(--blue-900);
  line-height: 1.5;
}

/* =========================================================
   Contact
   ========================================================= */

.contact-details {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.contact-details__item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 240px;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-on-light);
  text-align: center;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-details__item:hover {
  border-color: var(--blue-400);
  transform: translateY(-2px);
}

.contact-details__item .eyebrow {
  margin-bottom: 0;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-block: var(--space-6);
}

.footer__brand {
  max-width: 340px;
}

.footer__brand .logo {
  display: inline-block;
  margin-bottom: var(--space-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.footer__links > a {
  font-weight: 600;
  color: var(--text-on-dark);
}

.footer__links > a:hover {
  color: var(--blue-400);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a:hover {
  color: var(--blue-400);
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: 1px solid var(--navy-700);
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .footer__grid {
    flex-direction: column;
  }

  .footer__links {
    align-items: flex-start;
  }

  .footer__legal {
    flex-direction: column;
  }
}


/* =========================================================
   Architecture — security level visual
   ========================================================= */

.sec-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.sec-level {
  position: relative;
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.sec-level--recommended {
  border-color: var(--blue-400);
}

.sec-level__badge {
  position: absolute;
  top: -0.65rem;
  left: var(--space-4);
  background: var(--blue-400);
  color: var(--navy-900);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.sec-level__bar {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-3);
}

.sec-level__seg {
  flex: 1;
  height: 8px;
  border-radius: 3px;
}

.sec-level__seg--avalia {
  background: var(--blue-400);
}

.sec-level__seg--client {
  background: transparent;
  border: 1px dashed var(--gray-400);
}

.sec-levels__legend {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
}

.sec-levels__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sec-levels__legend .sec-level__seg {
  flex: none;
  display: inline-block;
  width: 14px;
}

@media (max-width: 760px) {
  .sec-levels {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  padding-block: var(--space-2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--white);
}

.logo__icon {
  width: 1.25em;
  height: 1.25em;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block-start: calc(var(--space-7) + 56px);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background:
    radial-gradient(ellipse 60% 50% at 85% 15%, rgba(30, 58, 138, 0.55), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 85%, rgba(30, 58, 138, 0.35), transparent 60%);
}

.hero__bg svg {
  width: 100%;
  height: 100%;
}

.hero__bg .hero__nodes {
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__sub {
  margin-block: var(--space-3) var(--space-4);
  max-width: 620px;
}
