/* =========================================================
   COLORS & FONTS — change these to re-theme the whole site
   ========================================================= */
:root {
  --ink:        #101828;   /* main text color        */
  --muted:      #5a6472;   /* softer gray text       */
  --accent:     #013C33;   /* deep forest green      */
  --accent-dk:  #02594c;   /* lighter green (hover)  */
  --accent-bg:  #e6efec;   /* light green tint       */
  --bg:         #ffffff;   /* page background        */
  --bg-alt:     #f3f6f4;   /* soft light section     */
  --line:       #e4e9e6;   /* border lines           */
  --dark:       #013C33;   /* deep green (CTA)        */
  --radius:     14px;
  --maxw:       1080px;
  --sans:       'FiraGO', 'Inter', 'Noto Sans Georgian', system-ui, sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  /* green glow at top-center (behind the header) + gray sides / lighter middle */
  background:
    radial-gradient(60% 240px at 50% 0%, rgba(1, 60, 51, 0.45) 0%, rgba(1, 60, 51, 0) 70%),
    linear-gradient(90deg, #c6cbd1 0%, #f5f7f6 50%, #c6cbd1 100%);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.container { width: 70%; max-width: none; margin: 0 auto; padding: 0; }   /* 70% centered */

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: transparent; color: var(--accent); transform: none; }
.btn--small { padding: 10px 20px; font-size: .9rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e6efec; }

/* ---------- eyebrow (little label above titles) ---------- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow--center { text-align: center; }

/* ---------- navigation ---------- */
/* floating rounded "pill" header (plana-style) */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;             /* no full-width band — only the pill floats */
  padding: 18px 0;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: none;                                  /* full width (minus the .nav side gap) */
  background: rgba(255, 255, 255, 0.72);           /* white, but slightly see-through */
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);       /* keeps a little mirror/blur */
  border: none;                                     /* no border */
  border-radius: 999px;
  padding: 14px 14px 14px 32px;                     /* pill height */
  box-shadow: 0 10px 30px rgba(1, 42, 36, .10);
}
.brand { font-family: var(--sans); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; }
.brand__decision { color: #073334; }
.brand__lab { color: #0E7965; }
.brand__logo { height: 1em; width: auto; display: block; }   /* same height as the text */
.nav__links { position: relative; display: flex; align-items: center; gap: 8px; }

/* the sliding pill that glides behind the active link (desktop) */
.nav__indicator {
  position: absolute; top: 0; left: 0;
  width: 0; height: 0;
  background: var(--accent);
  border-radius: 999px;
  z-index: 0; opacity: 0; pointer-events: none;
}
.nav__indicator.is-ready {
  transition:
    transform .34s cubic-bezier(.4, 0, .2, 1),
    width     .34s cubic-bezier(.4, 0, .2, 1),
    height    .34s cubic-bezier(.4, 0, .2, 1);
}

/* hamburger button — hidden on desktop, shown on phones */
.nav__toggle {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  width: 42px; height: 42px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* plain text menu links — every link reserves the same pill size so the row
   never reflows when the active one changes (only the sliding pill moves) */
.nav__links > a {
  position: relative;        /* sits above the sliding indicator */
  z-index: 1;
  color: var(--ink);
  font-weight: 500;
  font-size: .98rem;
  padding: 8px 20px;
  border-radius: 999px;
  transition: color .25s ease;
}
.nav__links > a:hover { color: var(--accent); }

/* the active link: white text over the sliding pill (no per-link background) */
.nav__links > a.is-active,
.nav__links > a.is-active:hover { color: #fff !important; font-weight: 600 !important; }

/* globe language switcher + dropdown */
.lang { position: relative; z-index: 1; }
.lang__toggle {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: none; background: transparent; cursor: pointer;
  color: var(--ink); transition: background .2s, color .2s;
}
.lang__toggle:hover { background: var(--accent-bg); color: var(--accent); }
.lang__menu {
  position: absolute; right: 0; top: 54px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(1, 42, 36, .14);
  padding: 6px; min-width: 150px; display: grid; gap: 2px;
}
.lang__menu[hidden] { display: none; }
.lang__menu button {
  display: flex; align-items: center; gap: 10px;
  text-align: left; border: none; background: transparent; cursor: pointer;
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 10px 14px; border-radius: 9px; transition: background .15s, color .15s;
}
.lang__menu button:hover { background: var(--accent-bg); }
.lang__flag {
  height: 15px; width: 22px; flex: none;
  object-fit: cover; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.lang__menu button.is-active { background: var(--accent); color: #fff; }


/* ---------- hero ---------- */
.hero {
  background: transparent;          /* shows the page's center-light gradient */
  padding: 80px 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* left: text · right: monitor */
  gap: 50px;
  align-items: center;              /* same height, vertically centered */
}
.hero__text { text-align: left; }
.hero h1 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 18px; }
.eyebrow { display: inline-block; }
.hero__sub { max-width: 520px; margin: 0 0 30px; color: var(--muted); font-size: 1.02rem; }
.hero__actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

/* ===================== COMPUTER MONITOR ===================== */
.hero__visual { display: flex; flex-direction: column; align-items: center; }
.monitor { width: min(560px, 100%); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.monitor__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #041f18;
  border: 10px solid #0b0f0e;
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(1, 42, 36, .28), inset 0 0 0 2px rgba(255,255,255,.03);
  overflow: hidden;
}
.monitor__screen video { width: 100%; height: 100%; object-fit: cover; display: block; }
.monitor__neck { width: 90px; height: 26px; margin: 0 auto; background: linear-gradient(#c9cecc, #aab0ad); border-radius: 0 0 6px 6px; }
.monitor__base { width: 220px; height: 14px; margin: 0 auto; background: linear-gradient(#b7bdba, #9aa19d); border-radius: 0 0 12px 12px; }

/* ---- the live data dashboard shown on the screen (placeholder for the video) ---- */
.dashboard { position: absolute; inset: 0; padding: 22px 26px; color: #eafff6; display: flex; flex-direction: column; gap: 18px; }
.dash__top { display: flex; align-items: center; justify-content: space-between; }
.dash__title { font-weight: 600; font-size: 1.05rem; }
.dash__live { font-size: .72rem; font-weight: 600; color: #4fe6a1; letter-spacing: .1em; animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { background: rgba(255,255,255,.06); border: 1px solid rgba(79,230,161,.18); border-radius: 12px; padding: 12px 14px; }
.kpi__num { display: block; font-size: 1.5rem; font-weight: 700; color: #6ff0b4; }
.kpi__label { font-size: .78rem; color: #9fc8b8; }

.dash__chart { position: relative; flex: 1; display: flex; align-items: flex-end; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 10px; width: 100%; height: 100%; }
.bars span {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, #4fe6a1, #17b26a);
  border-radius: 6px 6px 0 0; transform-origin: bottom;
  animation: barPulse 2.6s ease-in-out infinite;
}
.bars span:nth-child(1) { animation-delay: 0s; }
.bars span:nth-child(2) { animation-delay: .2s; }
.bars span:nth-child(3) { animation-delay: .4s; }
.bars span:nth-child(4) { animation-delay: .6s; }
.bars span:nth-child(5) { animation-delay: .8s; }
.bars span:nth-child(6) { animation-delay: 1s; }
.bars span:nth-child(7) { animation-delay: 1.2s; }
.bars span:nth-child(8) { animation-delay: 1.4s; }
@keyframes barPulse { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }

.line { position: absolute; inset: 0; width: 100%; height: 100%; }
.line polyline {
  fill: none; stroke: #eafff6; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 620; stroke-dashoffset: 620;
  animation: draw 4s ease-in-out infinite alternate;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .monitor, .bars span, .dash__live, .line polyline { animation: none; }
  .bars span { transform: scaleY(1); }
  .line polyline { stroke-dashoffset: 0; }
}

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.5rem, 2.9vw, 2.15rem); text-align: center; margin-bottom: 50px; }
.section__title--left { text-align: left; margin-bottom: 20px; }

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(26,26,46,.08); }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.4rem; color: var(--accent);
  background: var(--accent-bg); margin-bottom: 20px;
}
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 20px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--ink); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.about__stat { display: grid; gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px; display: flex; align-items: baseline; gap: 16px;
}
.stat__num { font-family: var(--sans); font-size: 2rem; color: var(--accent); font-weight: 700; }
.stat__label { color: var(--muted); }

/* ---------- testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px;
}
.quote p { font-family: 'Fraunces', serif; font-size: 1.15rem; margin-bottom: 16px; }
.quote footer { color: var(--muted); font-size: .95rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--dark); color: #fff; text-align: center; padding: 84px 0; }
.cta__inner { position: relative; z-index: 1; }
.cta__icons { position: absolute; inset: 0; pointer-events: none; color: #013931; }
.cta__icons svg {
  position: absolute; height: auto;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.cta h2 { font-size: clamp(1.5rem, 2.9vw, 2.15rem); margin-bottom: 14px; }
.cta p { color: #bfe6d2; margin-bottom: 30px; }

/* ---------- contact modal (popup form) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(1, 20, 17, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__box {
  position: relative; z-index: 1; background: #fff; border-radius: var(--radius);
  padding: 34px 30px; width: min(420px, 100%);
  box-shadow: 0 30px 70px rgba(1, 42, 36, .3); animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.modal__close {
  position: absolute; top: 10px; right: 14px; border: none; background: transparent;
  font-size: 1.9rem; line-height: 1; color: var(--muted); cursor: pointer; transition: color .2s;
}
.modal__close:hover { color: var(--accent); }
.modal__box h3 { font-size: 1.5rem; margin-bottom: 20px; color: var(--ink); }

#contactForm { display: grid; gap: 14px; }
#contactForm label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
#contactForm input {
  font-family: var(--sans); font-size: 1rem; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .2s;
}
#contactForm input:focus { outline: none; border-color: var(--accent); }
#contactForm .btn { border: none; cursor: pointer; font-family: var(--sans); margin-top: 6px; text-align: center; }
#contactForm .btn:disabled { opacity: .6; cursor: default; }
.form__msg { font-size: .9rem; min-height: 1.2em; margin: 0; }
.form__msg.is-ok  { color: #013C33; }
.form__msg.is-err { color: #d92d20; }

@media (prefers-reduced-motion: reduce) { .modal__box { animation: none; } }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer__inner { display: flex; justify-content: center; align-items: center; text-align: center; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .9rem; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
  .nav { padding: 12px 14px; }   /* side padding = gap between screen edge & pill */
  /* .container is also on this element and would flatten the padding, so we
     qualify with both classes to win and give the pill a bit more height */
  .nav__inner.container { position: relative; padding: 12px 14px 12px 22px; }

  /* show the hamburger on phones */
  .nav__toggle { display: flex; }

  /* turn the links row into a dropdown panel that opens from the hamburger */
  .nav__links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 16px 38px rgba(1, 42, 36, .16);
    display: none;                 /* hidden until the hamburger is tapped */
  }
  .nav__links.is-open { display: flex; }

  /* each menu item fills the panel width */
  .nav__links > a {
    display: block;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 1.05rem;
  }
  .nav__links > a:hover { background: var(--accent-bg); }
  /* no sliding pill on phones — the active link shows its own background */
  .nav__indicator { display: none; }
  .nav__links > a.is-active {
    background: var(--accent);
    color: #fff !important;
    padding: 13px 16px;
    border-radius: 12px;
  }

  /* language: show the flags right inside the panel instead of the globe dropdown */
  .lang { width: 100%; }
  .lang__toggle { display: none; }
  .lang__menu,
  .lang__menu[hidden] {
    position: static;
    display: grid;
    min-width: 0;
    border: none; box-shadow: none;
    padding: 6px 0 0;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }
  .lang__menu button { padding: 12px 16px; }
  .container { width: auto; padding: 0 18px; }   /* wider on phones */
  .about { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 56px 0 70px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { order: -1; }        /* animation first, then text on phones */

  /* drop the green top-center glow on phones (keep the plain gray gradient) */
  body { background: linear-gradient(90deg, #c6cbd1 0%, #f5f7f6 50%, #c6cbd1 100%); }

  /* give the screen more height on phones so the chart animation has room */
  .monitor__screen { aspect-ratio: 4 / 3; }
  .dashboard { padding: 16px 18px; gap: 12px; }
  .kpi { padding: 8px 10px; }
  .kpi__num { font-size: 1.15rem; }
  .dash__chart { min-height: 96px; }  /* never let the bars/line collapse away */

  .hero__text { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .section { padding: 64px 0; }
}