/* ============================================================
   Ilbirs AI Lab — landing styles (blue variant)
   Fonts: Inter (base), Geist, Space Grotesk, JetBrains Mono
   ============================================================ */

:root {
  /* Backgrounds */
  --bg:          #060E20;
  --card-navy:   #08142F;
  --card-navy-2: #171F33;

  /* Brand */
  --primary:     #006CFF;
  --cyan:        #00F4FE;
  --blue-soft:   #ADC6FF;
  --orange:      #FFB595;

  /* Dark-section text */
  --t-head:      #DAE2FD;
  --t-body:      #C1C6D7;
  --t-white:     #FFFFFF;

  /* Light-section text */
  --ink:         #232323;
  --ink-strong:  #212121;
  --muted:       #6B6B6B;
  --card-light:  #F7F7F7;

  /* Lines */
  --border:      rgba(65, 71, 85, 0.30);
  --border-soft: rgba(65, 71, 85, 0.20);

  --maxw: 1280px;
  --shadow-card: 0 4px 30px rgba(0, 0, 0, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--t-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
svg { display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 4px;
  font-family: 'Geist', sans-serif; font-size: 16px; line-height: 24px;
  padding: 16px 32px; transition: filter .18s ease, background .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--blue { background: var(--primary); color: #fff; }
.btn--blue:hover { filter: brightness(1.1); }
.btn--outline { background: transparent; border-color: #414755; color: var(--t-head); }
.btn--outline:hover { background: rgba(255,255,255,.04); }
.btn--lav { background: var(--blue-soft); color: #002E69; font-weight: 500; }
.btn--lav:hover { filter: brightness(1.05); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--sq { align-self: flex-start; }
.btn--icon svg { width: 16px; height: 16px; }

/* ---------- shared eyebrow ---------- */
.eyebrow {
  display: block; font-family: 'Geist', sans-serif; font-size: 16px; line-height: 24px;
  color: var(--blue-soft); margin-bottom: 8px;
}
.eyebrow--blue { color: var(--primary); letter-spacing: .1em; text-transform: uppercase; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 19, 38, 0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header__inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { height: 52px; width: auto; display: block; }
.brand__icon { width: 28px; height: 28px; color: var(--cyan); }
.brand__name { font-size: 22px; font-weight: 700; color: var(--t-head); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link { font-family: 'Geist', sans-serif; font-size: 16px; color: var(--t-body); transition: color .15s; }
.nav__link:hover { color: var(--cyan); }
.header__actions { display: flex; align-items: center; gap: 16px; }

/* language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; }
.lang-switch__link {
  font-size: 12px; font-weight: 600; letter-spacing: .04em; line-height: 1;
  color: var(--t-body); padding: 5px 8px; border-radius: 4px;
  transition: background .15s ease, color .15s ease;
}
.lang-switch__link:hover { color: var(--cyan); }
.lang-switch__link.is-active { background: var(--primary); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--t-head); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 86px; }
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding-bottom: 48px;
}
.tag {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 2px;
  font-family: 'Geist', sans-serif; font-size: 16px; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 24px;
}
.tag--cyan { color: var(--cyan); background: rgba(0,244,254,.1); border: 1px solid rgba(0,244,254,.2); }
.hero__title {
  font-size: 48px; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em;
  color: var(--t-head); margin-bottom: 24px; max-width: 12ch;
}
.hero__subtitle { font-size: 16px; line-height: 24px; color: var(--t-body); margin-bottom: 40px; max-width: 560px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; }
.hero__glow {
  position: absolute; left: -16px; top: -16px; right: -16px; bottom: 16px;
  background: rgba(173,198,255,.05); filter: blur(32px); border-radius: 12px; z-index: 0;
}
.hero__img {
  position: relative; z-index: 1; width: 100%; border-radius: 12px;
  box-shadow: 0 25px 25px rgba(0,0,0,.15);
}

/* ---------- metrics band ---------- */
.metrics { background: var(--primary); }
.metrics__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: 32px;
}
.metric { padding: 16px 16px 32px; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.metric:first-child { padding-left: 0; }
.metric:last-child { padding-right: 0; }
.metric + .metric { border-left: 1px solid rgba(255,255,255,.18); }
.metric__num { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 36px; line-height: 40px; letter-spacing: -0.025em; color: #fff; }
.metric__label { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px; line-height: 20px; color: #fff; }
.metric__desc { font-size: 11px; line-height: 16.5px; color: rgba(255,255,255,.82); }

/* ============================================================
   PROBLEMS (light)
   ============================================================ */
.problems { background: #fff; padding-block: 48px; }
.problems__head { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.problems__title {
  font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
  color: var(--primary); margin-bottom: 16px;
}
.problems__lead { font-size: 14px; line-height: 22.75px; color: var(--ink-strong); }
.problems__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  background: var(--card-light); border-radius: 8px; padding: 24px 24px 48px;
  display: flex; flex-direction: column; gap: 16px;
}
.problem-card__icon {
  width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.problem-card__icon svg { width: 22px; height: 22px; }
.problem-card__title { font-size: 24px; font-weight: 500; color: var(--ink); }
.problem-card__text { font-size: 16px; line-height: 24px; color: var(--muted); }

/* ============================================================
   COMPETENCIES / SERVICES (dark)
   ============================================================ */
.services { padding-block: 48px; }
.services__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.services__title { font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--t-head); }
.services__lead { font-size: 16px; line-height: 24px; color: var(--t-body); max-width: 320px; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--card-navy); border-radius: 8px; padding: 32px 32px 56px;
  display: flex; flex-direction: column; gap: 16px;
}
.service-card__icon { width: 30px; height: 30px; color: var(--cyan); }
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__title { font-size: 24px; font-weight: 500; color: var(--t-head); }
.service-card__text { font-size: 16px; line-height: 24px; color: var(--t-body); }
.tick-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tick-list li {
  position: relative; padding-left: 22px; font-family: 'Geist', sans-serif;
  font-size: 16px; line-height: 24px; color: var(--t-body);
}
.tick-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cyan);
}

/* ============================================================
   FLAGSHIP (light)
   ============================================================ */
.flagship { background: #fff; padding-block: 48px; }
.flagship__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.flagship__media { position: relative; }
.flagship__glow {
  position: absolute; left: -40px; top: -40px; width: 160px; height: 160px;
  background: rgba(0,244,254,.1); filter: blur(32px); border-radius: 12px; z-index: 0;
}
.flagship__img {
  position: relative; z-index: 1; width: 100%; border-radius: 16px;
  border: 1px solid var(--border); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.flagship__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.flagship__title { font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.flagship__title .accent { color: var(--primary); }
.flagship__desc { font-size: 16px; line-height: 24px; color: var(--muted); }
.flagship__stats { display: flex; gap: 48px; }
.fstat { display: flex; flex-direction: column; gap: 4px; }
.fstat__num { font-size: 16px; font-weight: 600; color: var(--primary); }
.fstat__label { font-family: 'Geist', sans-serif; font-size: 16px; color: var(--ink); }

/* ============================================================
   INDUSTRY MATRIX (dark)
   ============================================================ */
.matrix { padding-block: 48px; }
.matrix__head { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.matrix__title { font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--t-head); margin-bottom: 16px; }
.matrix__lead { font-size: 16px; line-height: 24px; color: var(--t-body); }
.matrix__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.matrix-card {
  border-top: 1px solid var(--border); padding: 24px 8px 8px;
  display: flex; flex-direction: column; gap: 12px;
}
.matrix-card__icon { width: 28px; height: 28px; color: var(--blue-soft); }
.matrix-card__icon svg { width: 100%; height: 100%; }
.matrix-card__title { font-size: 24px; font-weight: 500; color: var(--t-head); }
.matrix-card__text { font-size: 16px; line-height: 24px; color: var(--t-body); }

/* ============================================================
   METHODOLOGY / PROCESS (light)
   ============================================================ */
.process { background: #fff; padding-block: 48px; }
.process__title {
  text-align: center; font-size: 30px; font-weight: 500; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--primary); margin-bottom: 48px;
}
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step__num {
  width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center;
  background: var(--card-navy-2); border: 1px solid #414755; font-size: 16px; margin-bottom: 16px;
}
.step__num--blue { color: var(--blue-soft); }
.step__num--cyan { color: var(--cyan); }
.step__num--orange { color: var(--orange); }
.step__num--filled { background: var(--blue-soft); border-color: var(--blue-soft); color: #002E69; }
.step__title { font-family: 'Geist', sans-serif; font-weight: 600; font-size: 16px; color: var(--primary); margin-bottom: 8px; }
.step__desc { font-size: 16px; line-height: 24px; color: #101011; padding-inline: 16px; }

/* ============================================================
   TEAM (dark)
   ============================================================ */
.team { padding-block: 48px; }
.team__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 48px; }
.team__title { font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--t-head); }
.team__nav { display: flex; gap: 8px; flex-shrink: 0; }
.team__btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--card-navy-2); border: 1px solid #414755; color: var(--t-head);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .15s ease, color .15s ease, opacity .15s ease;
}
.team__btn:hover:not(:disabled) { border-color: var(--cyan); color: var(--cyan); }
.team__btn:disabled { opacity: .3; cursor: default; }
.team__btn svg { width: 20px; height: 20px; }
.team__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 24px) / 4);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.team__grid::-webkit-scrollbar { display: none; }
.member { scroll-snap-align: start; }
.member { display: flex; flex-direction: column; }
.member__photo {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  border-radius: 8px; overflow: hidden; background: var(--card-navy-2);
}
.member__photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.65) contrast(1.05) brightness(1.03);
}
.member__tint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color; background: rgba(23,31,51,.3); }
.member__name { font-size: 24px; font-weight: 400; color: var(--t-head); padding-top: 16px; }
.member__role { font-family: 'Geist', sans-serif; font-size: 16px; color: var(--blue-soft); }
.member__bio { padding-top: 10px; font-size: 13px; line-height: 19.5px; color: #90A1B9; text-wrap: pretty; }
.member__ach {
  padding-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 11px; line-height: 17px; color: #62748E;
}
.member__ach span { color: var(--cyan); }
.member__tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; }
.tag-chip {
  font-size: 11px; line-height: 16px; color: #90A1B9;
  background: #0F172B; border: 1px solid #1D293D; border-radius: 4px; padding: 3px 8px;
}

/* ============================================================
   FAQ (light)
   ============================================================ */
.faq { background: #fff; padding-block: 48px; }
.faq__title { text-align: center; font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--primary); margin-bottom: 32px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; margin-inline: auto; }
.faq-item { background: #fff; border: 1px solid #E5E5E5; border-radius: 8px; overflow: hidden; }
.faq-item__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px; font-family: 'Geist', sans-serif; font-size: 16px; color: #181819;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__chevron { width: 20px; height: 20px; color: #6B6B6B; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item__a { padding: 0 24px 20px; font-size: 15px; line-height: 24px; color: var(--muted); }

/* ============================================================
   FINAL CTA (dark)
   ============================================================ */
.final-cta { padding: 47px 0 48px; }
.final-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.final-cta__title { font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: var(--t-head); max-width: 16ch; }
.final-cta__lead { font-size: 16px; line-height: 24px; color: var(--t-body); max-width: 60ch; }
.final-cta .btn { margin-top: 8px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg); border-top: 1px solid var(--border-soft); padding-top: 48px; }
.footer__inner { display: flex; gap: 48px; padding-bottom: 40px; }
.footer__brand { flex: 1.4; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer__logo { font-size: 24px; font-weight: 700; color: #D8E2FF; }
.footer__logo-img { height: 56px; width: auto; display: block; }
.footer__desc { max-width: 280px; font-size: 16px; line-height: 24px; color: var(--t-body); }
.footer__cols { display: flex; gap: 48px; flex: 2; justify-content: space-between; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col-title { font-family: 'Geist', sans-serif; font-size: 16px; letter-spacing: .05em; text-transform: uppercase; color: var(--t-head); margin-bottom: 8px; }
.footer__link { font-size: 16px; line-height: 24px; color: var(--t-body); transition: color .15s; }
.footer__link:hover { color: var(--cyan); }
.footer__bottom { border-top: 1px solid var(--border-soft); padding-block: 24px; }
.footer__copy { font-size: 14px; color: var(--t-body); opacity: .7; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding-inline: 32px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 560px; }
  .metrics__inner { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(3) { border-left: 0; }
  .services__grid, .problems__grid, .matrix__grid { grid-template-columns: repeat(2, 1fr); }
  .flagship__inner { grid-template-columns: 1fr; }
  .flagship__media { max-width: 560px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .team__grid { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
}

@media (max-width: 768px) {
  .container { padding-inline: 20px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex; position: absolute; top: 80px; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 20px 16px;
    background: rgba(11,19,38,.98); border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .nav.is-open .nav__link { padding: 12px 0; }

  .hero__title, .flagship__title, .final-cta__title { font-size: 32px; }
  .problems__title, .services__title, .matrix__title, .process__title, .team__title, .faq__title { font-size: 26px; }

  .metrics__inner { grid-template-columns: 1fr; }
  .metric { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.18); }
  .metric:first-child { border-top: 0; }

  .problems__grid, .services__grid, .matrix__grid, .process__grid { grid-template-columns: 1fr; }
  .team__grid { grid-auto-columns: calc((100% - 24px) / 2); }
  .services__head { flex-direction: column; align-items: flex-start; }
  .flagship__stats { gap: 32px; }
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__cols { flex-wrap: wrap; gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
