:root {
  --bg: #ffffff;
  --ink: #16181d;
  --muted: #5c6370;
  --line: #e7e9ef;
  --card: #ffffff;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 42% at 50% 18%, rgba(58, 200, 230, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 28%, rgba(130, 50, 190, 0.08), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans Thai", "Helvetica Neue", sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  flex: 1;
}

.hero {
  padding: 11vh 0 56px;
  text-align: center;
}

.logo {
  display: block;
  width: min(500px, 92%);
  height: auto;
  margin: 0 auto 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #3a4150;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2aa8ee;
  box-shadow: 0 0 0 0 rgba(42, 168, 238, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lede {
  max-width: 34em;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 17px;
}

.products {
  padding-bottom: 64px;
}

.products h2 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: #cfd6ea;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(40, 60, 120, 0.08);
}

.card:focus-visible {
  outline: 2px solid #3a74f4;
  outline-offset: 3px;
}

.brand-fast {
  display: block;
  height: 40px;
  width: auto;
}

.bflood-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 40px;
  line-height: 1;
}

.bflood-logo img {
  width: 1em;
  height: 1em;
  border-radius: 0.28em;
  box-shadow:
    inset 0 0 0 0.03em rgba(255, 255, 255, 0.28),
    0 0.04em 0.12em rgba(37, 99, 235, 0.28);
}

.bflood-word {
  font-family: Sarabun, "IBM Plex Sans Thai", sans-serif;
  font-size: 0.58em;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.bflood-word span {
  color: #1d4ed8;
  display: inline-block;
  transform: rotate(-8deg);
}

.card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.card-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.card-link {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #2a62d8;
}

footer {
  padding: 8px 20px 28px;
  text-align: center;
  color: #8b919c;
  font-size: 13px;
}

footer p {
  margin: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 168, 238, 0.45);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(42, 168, 238, 0);
  }
}

@media (max-width: 720px) {
  main {
    width: min(920px, calc(100% - 32px));
  }

  .hero {
    padding-top: 64px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

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

  .card {
    transition: none;
  }
}
