:root {
  --bg: #030917;
  --bg-soft: #07142b;
  --panel: rgba(10, 27, 55, 0.78);
  --panel-solid: #0a1b37;
  --text: #f7fbff;
  --muted: #a9bad1;
  --line: rgba(102, 181, 255, 0.18);
  --cyan: #27ccff;
  --blue: #176bff;
  --blue-light: #71dcff;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 90px rgba(0, 79, 255, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(0, 115, 255, 0.14), transparent 28rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 999; padding: .8rem 1rem; background: white; color: black; }
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(3, 9, 23, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(3, 9, 23, 0.9); }
.nav-wrap { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-weight: 800; letter-spacing: .04em; font-size: 1.2rem; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand span span { color: var(--cyan); }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 650; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; }
.site-nav .nav-cta { color: white; border: 1px solid rgba(39, 204, 255, .45); padding: .65rem 1rem; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .5rem; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: white; border-radius: 2px; }

.hero {
  min-height: 820px;
  padding: 150px 0 80px;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 9, 23, .98) 0%, rgba(3, 9, 23, .89) 42%, rgba(3, 9, 23, .34) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    url("assets/bfrvthai-hero.webp") center / cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 190px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-glow { position: absolute; left: 10%; top: 28%; width: 360px; height: 360px; border-radius: 50%; background: rgba(24, 107, 255, .16); filter: blur(90px); z-index: -1; }
.hero-content { position: relative; }
.eyebrow, .section-label { color: var(--cyan); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 800; margin: 0 0 1rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; font-size: clamp(3rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.055em; margin-bottom: 1.6rem; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 1.2rem; text-wrap: balance; }
h3 { font-size: 1.3rem; margin-bottom: .65rem; }
.hero-copy { max-width: 680px; color: #c5d3e5; font-size: clamp(1.05rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2rem 0 3.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #001025; background: linear-gradient(135deg, var(--cyan), #76e3ff); box-shadow: 0 12px 36px rgba(39, 204, 255, .22); }
.button.secondary { border: 1px solid rgba(255,255,255,.22); color: white; background: rgba(3, 9, 23, .38); }
.value-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; border-top: 1px solid var(--line); padding-top: 1.3rem; gap: 1rem; }
.value-strip div { display: grid; gap: .1rem; padding-right: 1.2rem; }
.value-strip div:not(:last-child) { border-right: 1px solid var(--line); }
.value-strip strong { font-size: .94rem; }
.value-strip span { color: var(--muted); font-size: .82rem; }

.section { padding: 110px 0; }
.two-column { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.lead-copy { color: var(--muted); font-size: 1.08rem; padding-top: 2.3rem; }
.lead-copy p:last-child { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.section-heading > div { max-width: 760px; }
.section-heading > p { color: var(--muted); max-width: 380px; margin-bottom: .6rem; }
.section-heading.compact { margin-bottom: 2.6rem; }
.solutions { background: linear-gradient(180deg, transparent, rgba(8, 25, 54, .42), transparent); }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card { position: relative; min-height: 250px; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 33, 67, .86), rgba(5, 14, 31, .7)); box-shadow: var(--shadow); overflow: hidden; }
.service-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -80px; bottom: -90px; border-radius: 50%; background: rgba(24, 107, 255, .16); filter: blur(30px); }
.service-card h3 { margin-top: 2.8rem; font-size: 1.45rem; }
.service-card p { color: var(--muted); max-width: 500px; margin-bottom: 0; }
.card-number { position: absolute; top: 1.5rem; right: 1.7rem; color: rgba(113, 220, 255, .48); font-size: .84rem; letter-spacing: .12em; font-weight: 800; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.steps article { border-top: 1px solid var(--line); padding: 1.6rem .6rem 0 0; }
.steps article > span { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 1.5rem; border: 1px solid rgba(39, 204, 255, .45); border-radius: 50%; color: var(--cyan); font-weight: 800; }
.steps p { color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand img { border-radius: 50%; }
.footer-brand div { display: grid; }
.footer-brand strong { color: white; }
.footer-brand span { font-size: .78rem; }
.footer-grid > p { margin: 0; font-size: .85rem; }

@media (max-width: 850px) {
  .site-header { background: rgba(3, 9, 23, .92); }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 1.25rem; right: 1.25rem; top: 70px; display: none; flex-direction: column; align-items: stretch; gap: .2rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: #07142b; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem; }
  .site-nav .nav-cta { text-align: center; margin-top: .4rem; }
  .hero { min-height: 760px; background-position: 66% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(3, 9, 23, .2); z-index: -1; }
  .two-column, .section-heading { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
  .lead-copy { padding-top: 0; }
  .section-heading { align-items: start; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 580px) {
  .container { width: min(calc(100% - 1.5rem), var(--max)); }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 42px; height: 42px; }
  .hero { min-height: auto; padding: 130px 0 70px; background-position: 68% center; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .value-strip { grid-template-columns: 1fr; }
  .value-strip div { border-right: 0 !important; border-bottom: 1px solid var(--line); padding: 0 0 .8rem; }
  .section { padding: 78px 0; }
  .service-card { min-height: 230px; padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
