/* ==========================================================================
   BOUCHARD & ASSOCIATES LTD. — MASTER STYLESHEET
   Design Mood: Soft Gradient / Midnight Navy
   ========================================================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Palette — Midnight Navy */
  --color-primary: #4A90D9;
  --color-secondary: #6BB5E8;
  --color-accent: #F4A300;
  --color-bg: #0A0E1A;
  --color-surface: #121828;
  --color-text: #E0E4F0;
  --color-text-light: #8A92A8;

  /* Typography */
  --font-heading: 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Spacing */
  --section-padding: 60px;
  --card-gap: 20px;
  --content-max-width: 1100px;

  /* Border radius */
  --radius: 12px;
  --radius-lg: 14px;

  /* Shadows — heavy */
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.25);
  --shadow-colored: 0 8px 30px rgba(74, 144, 217, 0.12);
}

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  /* Gradient mesh texture */
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(74, 144, 217, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(107, 181, 232, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 80%, rgba(244, 163, 0, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 10%, rgba(74, 144, 217, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Page transition */
.page-content {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.page-transitioning {
  opacity: 0.3;
  transition: opacity 0.2s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  margin-bottom: 0.6em;
}

/* Gradient text headings — h1, h2 */
h1, h2 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
}

/* Monospace technical — h3 */
h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--color-text);
}

h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
}

p {
  margin-bottom: 1.2em;
  font-size: 1rem;
}

/* Monospace captions / labels */
.label-mono,
.monospace-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  margin-bottom: 0.8rem;
  display: block;
}

.text-light {
  color: var(--color-text-light);
}

strong {
  color: var(--color-text);
}

/* ---------- HORIZONTAL RULE RHYTHM MOTIF ---------- */
.hr-motif {
  display: block;
  width: 80px;
  max-width: 80px;
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-primary) 0px,
    var(--color-primary) 2px,
    transparent 2px,
    transparent 4px,
    var(--color-secondary) 4px,
    var(--color-secondary) 5px,
    transparent 5px,
    transparent 8px,
    var(--color-primary) 8px,
    var(--color-primary) 9px,
    transparent 9px
  );
  margin-bottom: 1.5rem;
  opacity: 0.7;
}

/* Blockquote multi-border motif */
blockquote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text);
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  margin: 2rem 0;
  border: none;
  box-shadow:
    -4px 0 0 0 var(--color-accent),
    -8px 0 0 0 transparent,
    -12px 0 0 0 var(--color-primary);
  position: relative;
}

blockquote cite,
blockquote .attribution {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

/* ---------- BLOB ORGANIC DECORATIONS ---------- */
@keyframes blob-morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  25% {
    border-radius: 58% 42% 36% 64% / 53% 67% 33% 47%;
  }
  50% {
    border-radius: 50% 50% 34% 66% / 56% 36% 64% 44%;
  }
  75% {
    border-radius: 42% 58% 64% 36% / 47% 53% 33% 67%;
  }
}

.blob {
  position: absolute;
  z-index: 0;
  background: rgba(74, 144, 217, 0.06);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob-morph 12s ease-in-out infinite;
  pointer-events: none;
}

.blob--hero {
  width: 400px;
  height: 400px;
  top: -50px;
  right: -100px;
}

.blob--mid {
  width: 350px;
  height: 350px;
  bottom: -80px;
  left: -80px;
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 2rem;
  box-shadow: var(--shadow);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
}

.navbar__links-left,
.navbar__links-right {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.navbar__links-left {
  justify-content: flex-end;
}

.navbar__links-right {
  justify-content: flex-start;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding: 0 2rem;
  text-align: center;
}

.navbar__logo a {
  color: var(--color-text);
  text-decoration: none;
}

.navbar__link {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar__link:hover {
  color: var(--color-text);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__link--active {
  color: var(--color-text);
}

.navbar__link--active::after {
  width: 100%;
}

.navbar__link--login {
  background: rgba(74, 144, 217, 0.15);
  border: 1px solid rgba(74, 144, 217, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  color: var(--color-secondary);
}

.navbar__link--login::after {
  display: none;
}

.navbar__link--login:hover {
  background: rgba(74, 144, 217, 0.25);
  color: var(--color-text);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 0;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav */
.navbar__mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.97);
  backdrop-filter: blur(12px);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-direction: column;
  gap: 1rem;
}

.navbar__mobile-menu.open {
  display: flex;
}

.navbar__mobile-menu .navbar__link {
  font-size: 0.85rem;
  padding: 0.5rem 0;
}

/* ---------- HERO — DIAGONAL SPLIT ---------- */
.hero {
  min-height: 80vh;
  position: relative;
  display: grid;
  grid-template-columns: 55% 45%;
  overflow: hidden;
  margin-top: 60px; /* navbar offset */
}

.hero__left {
  background: linear-gradient(160deg, #0A0E1A 0%, #121828 60%, #162040 100%);
  padding: 6rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.hero__right {
  background: linear-gradient(200deg, rgba(74, 144, 217, 0.15) 0%, rgba(107, 181, 232, 0.08) 50%, rgba(244, 163, 0, 0.05) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 3px solid rgba(74, 144, 217, 0.2);
  left: -150px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: radial-gradient(circle, rgba(74, 144, 217, 0.04) 0%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 1.5rem;
  /* Override gradient text for hero — use light text */
  background: linear-gradient(135deg, #FFFFFF 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__tagline {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  max-width: 560px;
  line-height: 1.8;
}

.hero__quote {
  margin-top: 3rem;
  font-style: italic;
  color: var(--color-text-light);
  font-size: 1rem;
  opacity: 0.8;
  max-width: 500px;
}

.hero__quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: var(--color-text-light);
  opacity: 0.7;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 1rem 2.2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: border-bottom 0.3s ease, background 0.3s ease, transform 0.2s ease;
  border-bottom: 3px solid transparent;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-accent);
  color: #0A0E1A;
}

.btn--primary:hover {
  border-bottom: 3px solid #c78400;
  background: #e69800;
}

.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 2px solid rgba(224, 228, 240, 0.3);
  border-bottom: 3px solid rgba(224, 228, 240, 0.3);
}

.btn--secondary:hover {
  border-color: var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  color: var(--color-accent);
}

.btn--full {
  display: block;
  width: 100%;
}

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Hero CTA — slight blockier feel */
.hero .btn--primary {
  padding: 1.2rem 3rem;
}

/* ---------- SECTIONS — FULL BLEED ---------- */
.section {
  width: 100%;
  padding: var(--section-padding) 2rem;
  position: relative;
  overflow: hidden;
}

.section__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Section background variations — soft gradient transitions */
.section--dark {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}

.section--surface {
  background: linear-gradient(180deg, var(--color-surface) 0%, #151c30 100%);
}

.section--primary-gradient {
  background: linear-gradient(160deg, rgba(74, 144, 217, 0.1) 0%, rgba(107, 181, 232, 0.05) 100%);
}

.section--deep {
  background: linear-gradient(180deg, #0d1224 0%, var(--color-bg) 100%);
}

.section--cta {
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.12) 0%, rgba(107, 181, 232, 0.06) 50%, rgba(244, 163, 0, 0.04) 100%);
}

/* Light-ish section for contrast */
.section--elevated {
  background: linear-gradient(180deg, #161e34 0%, #131a2c 100%);
}

/* ---------- WAVE SVG DIVIDERS ---------- */
.wave-divider {
  width: 100%;
  height: 80px;
  display: block;
  line-height: 0;
  margin: 0;
  position: relative;
  z-index: 2;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- GLASSMORPHISM CARDS ---------- */
.card {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

/* Multi-line top border motif */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    to bottom,
    var(--color-primary) 0px,
    var(--color-primary) 1px,
    transparent 1px,
    transparent 2px,
    var(--color-secondary) 2px,
    var(--color-secondary) 3px,
    transparent 3px,
    transparent 4px
  );
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card h3,
.card h4 {
  color: var(--color-text);
}

.card p {
  color: var(--color-text-light);
}

/* ---------- SERVICE GRID (SEAMLESS BLOCK MOSAIC) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
}

.service-grid__cell {
  padding: 2.5rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.service-grid__cell:nth-child(6n+1) {
  background: rgba(74, 144, 217, 0.12);
}
.service-grid__cell:nth-child(6n+2) {
  background: rgba(107, 181, 232, 0.08);
}
.service-grid__cell:nth-child(6n+3) {
  background: rgba(18, 24, 40, 0.9);
}
.service-grid__cell:nth-child(6n+4) {
  background: rgba(107, 181, 232, 0.1);
}
.service-grid__cell:nth-child(6n+5) {
  background: rgba(74, 144, 217, 0.08);
}
.service-grid__cell:nth-child(6n+6) {
  background: rgba(18, 24, 40, 0.7);
}

.service-grid__cell h3 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-grid__cell p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.service-grid__cell:hover {
  background: rgba(74, 144, 217, 0.22);
}

.service-grid__cell:hover h3 {
  color: #fff;
}

/* ---------- MONOGRAM BLOCKS (Image Placeholders) ---------- */
.monogram {
  background: rgba(74, 144, 217, 0.06);
  border: 1px solid rgba(74, 144, 217, 0.12);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  max-width: 280px;
}

.monogram__letter {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 700;
  color: rgba(74, 144, 217, 0.12);
  text-transform: uppercase;
  user-select: none;
}

/* Small monograms for team */
.monogram--sm {
  width: 100px;
  height: 100px;
  aspect-ratio: 1;
  max-width: 100px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
}

.monogram--sm .monogram__letter {
  font-size: 2rem;
}

/* ---------- TEAM CARDS ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--card-gap);
}

.team-card {
  text-align: center;
}

.team-card h4 {
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.team-card .team-card__role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.team-card .team-card__ask {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-secondary);
  margin-top: 0.8rem;
}

/* ---------- STATS — VERTICAL STACKED COUNTERS ---------- */
.stats-row {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  flex: 1;
  min-width: 150px;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  /* Not gradient text for stats — keep solid light color for readability */
  background: none;
  -webkit-text-fill-color: var(--color-text);
}

.stat__line {
  width: 50px;
  height: 2px;
  background: var(--color-primary);
  margin: 0.8rem 0;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* ---------- TESTIMONIALS — MINIMAL WITH BORDER ---------- */
.testimonial {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 0 1.5rem 2rem;
  margin-bottom: 3rem;
}

.testimonial__text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.testimonial__author {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

.testimonial__author strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ---------- CASE STUDY CARDS ---------- */
.case-study {
  margin-bottom: 2.5rem;
}

.case-study__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
}

.case-study__result {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: 1rem;
}

/* ---------- VALUES ---------- */
.value-block {
  border-left: 3px solid var(--color-primary);
  padding: 1.5rem 0 1.5rem 2rem;
  margin-bottom: 2.5rem;
}

.value-block h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.value-block p {
  color: var(--color-text-light);
}

/* ---------- COMPARISON TABLE ---------- */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
}

.comparison__col {
  padding: 2rem;
}

.comparison__col--old {
  background: rgba(255, 255, 255, 0.03);
}

.comparison__col--new {
  background: rgba(74, 144, 217, 0.08);
}

.comparison__col h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

.comparison__col--new h3 {
  color: var(--color-secondary);
}

.comparison__item {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.comparison__col--new .comparison__item {
  color: var(--color-text);
}

/* ---------- ALTERNATING SERVICE SECTIONS ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 1rem;
}

.service-detail--reverse {
  direction: rtl;
}

.service-detail--reverse > * {
  direction: ltr;
}

.service-detail__content {
  position: relative;
  z-index: 1;
}

.service-detail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.process-list li {
  padding: 0.8rem 0 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.process-list li strong {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.service-spec {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-secondary);
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(74, 144, 217, 0.06);
  border-radius: var(--radius);
}

/* ---------- TABS ---------- */
.tabs {
  margin-top: 2rem;
}

.tabs__bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tabs__tab {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border: none;
  background: none;
  color: var(--color-text-light);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

.tabs__tab:hover {
  color: var(--color-text);
}

.tabs__tab--active {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.tabs__panel {
  display: none;
  padding: 2rem 0;
}

.tabs__panel--active {
  display: block;
}

.tabs__panel ul {
  list-style: none;
  padding: 0;
}

.tabs__panel li {
  padding: 0.5rem 0;
  color: var(--color-text-light);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
}

.tabs__panel li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.tabs__panel .tab-example {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-secondary);
}

/* ---------- CONTACT FORM — BOXED SECTIONS ---------- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
}

.form-box__title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-light);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A92A8' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.form-checkbox label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

/* ---------- CONTACT INFO PAIRS ---------- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2.5rem;
  align-items: center;
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact-info__icon {
  font-size: 1.2rem;
  color: var(--color-primary);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

/* ---------- PASSWORD TOGGLE ---------- */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 3.5rem;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--color-text);
}

/* ---------- LOGIN PAGE — STACKED HERO ---------- */
.login-hero {
  background: linear-gradient(160deg, var(--color-primary), var(--color-secondary));
  padding: 6rem 2rem 8rem;
  text-align: center;
  margin-top: 60px;
}

.login-hero h1 {
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,255,255,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-hero p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto;
}

.login-card {
  max-width: 440px;
  margin: -4rem auto 0;
  position: relative;
  z-index: 10;
  background: rgba(18, 24, 40, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.login-card .form-group {
  margin-bottom: 1.5rem;
}

.login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.2rem 0 1.5rem;
}

.forgot-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--color-accent);
}

.login-help {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(18, 24, 40, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  display: none;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  flex: 1;
  min-width: 250px;
}

.cookie-banner__buttons {
  display: flex;
  gap: 0.8rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-banner__btn--accept {
  background: var(--color-accent);
  color: #0A0E1A;
}

.cookie-banner__btn--accept:hover {
  background: #e69800;
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-banner__btn--decline:hover {
  border-color: var(--color-text-light);
  color: var(--color-text);
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--color-secondary);
}

/* ---------- DISCLOSURES ---------- */
.disclosures {
  background: linear-gradient(180deg, rgba(74, 144, 217, 0.06) 0%, rgba(74, 144, 217, 0.02) 100%);
  border-top: 1px solid rgba(74, 144, 217, 0.12);
  border-bottom: 1px solid rgba(74, 144, 217, 0.12);
  padding: 2.5rem 2rem;
}

.disclosures__inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.disclosures__heading {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 1.2rem;
  /* Override gradient text */
  background: none;
  -webkit-text-fill-color: var(--color-text-light);
}

.disclosures p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 3rem 2rem;
}

.footer__grid {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
  /* Override gradient text in footer */
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
}

.footer__about-text {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.7;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
}

.footer__links {
  list-style: none;
  line-height: 2;
}

.footer__links a {
  color: #fff;
  opacity: 0.75;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
  position: relative;
}

.footer__links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #fff;
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer__links a:hover {
  opacity: 1;
}

.footer__links a:hover::after {
  width: 100%;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.footer__contact-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.footer__contact-item a {
  color: #fff;
  text-decoration: none;
}

.footer__contact-item a:hover {
  text-decoration: underline;
}

/* Footer progressively fading horizontal lines motif */
.footer__bottom {
  max-width: var(--content-max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
}

/* ---------- PULL QUOTES ---------- */
.pull-quote {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-accent);
  line-height: 1.6;
  margin: 2.5rem 0;
  padding: 2rem 0 2rem 2.5rem;
  border-left: 4px solid var(--color-accent);
  max-width: 700px;
}

.pull-quote cite {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 1rem;
}

/* ---------- FOUNDER LETTER ---------- */
.founder-letter {
  max-width: 740px;
  margin: 0 auto;
}

.founder-letter p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.founder-signature {
  margin-top: 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text);
  font-style: italic;
}

.founder-signature span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--color-text-light);
  margin-top: 0.3rem;
}

/* ---------- FAQ ITEMS ---------- */
.faq-list {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item__question {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.faq-item__answer {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ---------- POLICY PAGES ---------- */
.policy-content {
  max-width: 740px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.policy-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* Terms — question style */
.terms-question {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  /* Override gradient text for terms questions */
  background: none;
  -webkit-text-fill-color: var(--color-text);
}

/* ---------- INLINE LINKS — UNDERLINE SLIDE ---------- */
.content-link {
  color: var(--color-secondary);
  position: relative;
  text-decoration: none;
}

.content-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.content-link:hover::after {
  width: 100%;
}

/* ---------- UTILITY CLASSES ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__left {
    clip-path: none;
    padding: 5rem 3rem;
  }

  .hero__right {
    display: none;
  }

  .hero__circle {
    display: none;
  }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-detail--reverse {
    direction: ltr;
  }

  .service-detail__visual {
    order: -1;
  }

  .comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 40px;
  }

  .navbar__links-left,
  .navbar__links-right {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__inner {
    justify-content: space-between;
  }

  .navbar__logo {
    padding: 0;
    text-align: left;
    font-size: 1rem;
  }

  .hero__left {
    padding: 4rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .stats-row {
    flex-direction: column;
    gap: 2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 3rem 1.5rem 1.5rem;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn {
    text-align: center;
  }

  .tabs__bar {
    gap: 0;
  }

  .tabs__tab {
    padding: 0.8rem 1rem;
    font-size: 0.75rem;
  }

  .pull-quote {
    font-size: 1.15rem;
    padding-left: 1.5rem;
  }

  .section {
    padding: var(--section-padding) 1.5rem;
  }

  .login-hero {
    padding: 4rem 1.5rem 6rem;
  }

  .login-card {
    margin: -3rem 1rem 0;
    padding: 2rem 1.5rem;
  }

  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .login-extras {
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .blob {
    display: none;
  }
}

/* ---------- PRINT ---------- */
@media print {
  .navbar, .cookie-banner, .back-to-top, .blob {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  h1, h2 {
    -webkit-text-fill-color: #000;
    color: #000;
  }
}