/* BeTecture — one-page site */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("../fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("../fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("../fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("../fonts/poppins-bold.woff2") format("woff2"); }

:root {
  --blue: #29abe2;
  --blue-strong: #1683b8;
  --navy: #0b1520;
  --navy-2: #12273a;

  --bg: #ffffff;
  --bg-alt: #f3f7fa;
  --surface: #ffffff;
  --text: #0f1c2b;
  --muted: #566779;
  --border: #e1e8ef;
  --accent: var(--blue-strong);
  --header-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 2px rgba(15, 28, 43, 0.04), 0 8px 24px rgba(15, 28, 43, 0.06);

  --radius: 16px;
  --container: 1120px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1520;
    --bg-alt: #0f1d2b;
    --surface: #132536;
    --text: #e8eef5;
    --muted: #9aabbd;
    --border: #1f3549;
    --accent: var(--blue);
    --header-bg: rgba(11, 21, 32, 0.85);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 0.9em;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.8em 1.5em;
  border: 2px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #06202e;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn:hover { text-decoration: none; background: #4cbbe9; border-color: #4cbbe9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(41, 171, 226, 0.12); border-color: var(--blue); }
.btn-small { padding: 0.5em 1.1em; font-size: 0.9rem; }
.btn-icon { width: 1.1em; height: 1.1em; fill: currentColor; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--accent); text-decoration: none; }
.site-nav .btn { color: #06202e; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text);
    cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s, background-color 0.2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -7px; }
  .nav-toggle-bar::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
}

/* Hero — always dark, it carries the brand */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 120px);
  color: #e8eef5;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(41, 171, 226, 0.28), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(41, 171, 226, 0.12), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero-arcs {
  position: absolute;
  top: -40px;
  right: -60px;
  width: min(520px, 70vw);
  height: auto;
  fill: none;
  stroke: var(--blue);
  stroke-width: 22;
  stroke-linecap: round;
  opacity: 0.18;
}
.hero-inner { position: relative; max-width: 880px; margin-left: max(0px, calc((100% - var(--container)) / 2)); }
.hero .eyebrow { color: var(--blue); }
.hero .accent { color: var(--blue); }
.hero .lead { max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: #b7c6d6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 40px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hero-tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.85rem;
  color: #c9d6e3;
  background: rgba(255, 255, 255, 0.04);
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

/* Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; max-width: 780px; }
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 27px;
  width: 2px;
  background: linear-gradient(var(--border), var(--blue));
}
.timeline-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item p { color: var(--muted); margin: 0; }
.timeline-item h3 { margin-bottom: 0.35em; }
.timeline-step {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.timeline-item-now .timeline-step { border-color: var(--blue); background: var(--blue); color: #06202e; box-shadow: 0 0 0 6px rgba(41, 171, 226, 0.18); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(41, 171, 226, 0.5); }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(41, 171, 226, 0.12);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Clients */
/* Flex instead of grid so an incomplete last row stays centred */
.clients {
  --cols: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.clients li {
  flex: 0 0 calc((100% - (var(--cols) - 1) * 16px) / var(--cols));
  display: grid;
  place-items: center;
  height: 104px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}
.clients img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s, opacity 0.25s;
}
.clients li:hover img { filter: none; opacity: 1; }
@media (min-width: 640px) { .clients { --cols: 4; } }
@media (min-width: 1024px) { .clients { --cols: 7; } .clients li { padding: 20px 16px; } }

/* Contact */
.contact { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #e8eef5; }
.contact .eyebrow { color: var(--blue); }
.contact p { color: #b7c6d6; max-width: 560px; }
.contact-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (max-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { padding: 40px 0; background: var(--navy); color: #8fa2b5; font-size: 0.9rem; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer strong { color: #e8eef5; font-weight: 600; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-logo { height: 34px; width: auto; margin-bottom: 14px; }
.footer-meta { text-align: right; }
@media (max-width: 560px) { .footer-meta { text-align: left; } }

/* Scroll reveal (only when JS is running and motion is welcome) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.not-found { min-height: 100vh; display: grid; align-items: center; }
