/* ==========================================================================
   BIDQON — main stylesheet
   Plain CSS. No build step. Tokens mirror the original design system.
   ========================================================================== */

:root {
  --background: #ffffff;
  --foreground: #131a29;
  --card: #ffffff;
  --primary: #2258e5;
  --primary-foreground: #f9fcff;
  --primary-glow: #00a7ef;
  --ink: #0d1421;
  --ink-deep: #030819;
  --secondary: #eef4fb;
  --secondary-foreground: #182135;
  --muted: #f0f5fa;
  --muted-foreground: #5e6a7b;
  --accent: #e0f1ff;
  --accent-foreground: #162b5a;
  --border: #dde5ed;

  --radius: 0.75rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;

  --gradient-brand: linear-gradient(135deg, #2238b8, #2366e9 45%, #00b6ec);
  --gradient-deep: linear-gradient(160deg, #040b22, #071752 55%, #00367c);
  --gradient-soft: linear-gradient(180deg, #f5fbff, #e0f1ff);
  --shadow-glow: 0 24px 60px -24px rgba(34, 88, 229, 0.55);
  --shadow-card: 0 12px 32px -18px rgba(25, 43, 85, 0.35);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 80rem;
  --gutter: 1.5rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 6rem; }

.bg-deep { background-image: var(--gradient-deep); }
.bg-soft { background-image: var(--gradient-soft); }
.bg-brand { background-image: var(--gradient-brand); }

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow--glow {
  background: none;
  color: var(--primary-glow);
}

.section-intro { max-width: 42rem; }
.section-intro h2 { margin-top: 1rem; font-size: 1.875rem; }
.section-intro p { margin-top: 1rem; color: var(--muted-foreground); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6875rem 1.75rem;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, opacity 0.18s ease;
}
.btn svg { width: 1rem; height: 1rem; flex: none; }

.btn--brand {
  background-image: var(--gradient-brand);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn--brand:hover { transform: translateY(-2px); }

.btn--wire {
  border: 1px solid rgba(249, 252, 255, 0.25);
  color: var(--primary-foreground);
}
.btn--wire:hover { background-color: rgba(249, 252, 255, 0.1); }

.btn--light {
  background-color: var(--primary-foreground);
  color: var(--primary);
}
.btn--light:hover { transform: translateY(-2px); }

.btn--sm { padding: 0.625rem 1.25rem; }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(221, 229, 237, 0.7);
  background-color: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  padding-block: 1rem;
}

/* Wordmark — drop assets/img/logo.png in place to use a real logo instead */
.brand { display: inline-flex; align-items: center; gap: 0.625rem; }
.brand__img { height: 3rem; width: auto; }
@media (max-width: 480px) { .brand__img { height: 2.375rem; } }
.brand__mark {
  display: grid;
  place-items: center;
  width: 2.375rem;
  height: 2.375rem;
  border-radius: 0.6875rem;
  background-image: var(--gradient-brand);
  color: var(--primary-foreground);
  flex: none;
}
.brand__mark svg { width: 1.25rem; height: 1.25rem; }
.brand__text {
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.brand__text b {
  font-weight: 700;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand--onDark .brand__text { color: var(--primary-foreground); }

.site-nav { display: none; align-items: center; gap: 2.25rem; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.18s ease;
}
.site-nav a:hover { color: var(--primary); }

.site-header__actions { display: none; align-items: center; gap: 0.75rem; }
.site-header__actions .signin { font-size: 0.875rem; font-weight: 500; transition: color 0.18s ease; }
.site-header__actions .signin:hover { color: var(--primary); }

.nav-toggle { display: inline-flex; padding: 0.375rem; }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close,
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav { display: none; border-top: 1px solid var(--border); background-color: var(--background); }
.mobile-nav.is-open { display: block; }
.mobile-nav__inner { display: flex; flex-direction: column; gap: 1rem; padding-block: 1rem 1.25rem; }
.mobile-nav a:not(.btn) { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.mobile-nav .btn { justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero__glow { pointer-events: none; position: absolute; border-radius: 9999px; filter: blur(64px); }
.hero__glow--a { top: 0; left: -10rem; width: 36rem; height: 36rem; background-color: rgba(0, 167, 239, 0.2); }
.hero__glow--b { bottom: -10rem; right: -8rem; width: 32rem; height: 32rem; background-color: rgba(34, 88, 229, 0.3); }

.hero__inner {
  position: relative;
  display: grid;
  align-items: center;
  gap: 3.5rem;
  padding-block: 6rem;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(249, 252, 255, 0.2);
  background-color: rgba(249, 252, 255, 0.1);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(249, 252, 255, 0.9);
}

.hero__title {
  margin-top: 1.5rem;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--primary-foreground);
}
.hero__title span {
  background-image: linear-gradient(to right, var(--primary-glow), var(--primary-foreground));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__copy {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(249, 252, 255, 0.75);
}

.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 1rem; }

/* Logo plate — the hero's right-hand panel */
.hero__plate {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(249, 252, 255, 0.15);
  border-radius: var(--radius-3xl);
  background-color: var(--primary-foreground);
  padding: 2.5rem;
  box-shadow: var(--shadow-glow);
}
.hero__plate .brand--hero { display: block; width: 100%; }
.hero__plate .brand--hero .brand__img { height: auto; width: 100%; max-width: 26rem; }
.hero__plate .brand__mark { width: 4.5rem; height: 4.5rem; border-radius: 1.125rem; }
.hero__plate .brand__mark svg { width: 2.25rem; height: 2.25rem; }
.hero__plate .brand__text { font-size: 2.75rem; }
.hero__plate .brand { gap: 1rem; }
.hero__plate-tag {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Stats strip */
.hero__stats { position: relative; border-top: 1px solid rgba(249, 252, 255, 0.1); }
.hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 2.5rem;
}
.hero__stats-grid p:first-child {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--primary-foreground);
}
.hero__stats-grid p:last-child { margin-top: 0.25rem; font-size: 0.875rem; color: rgba(249, 252, 255, 0.6); }

/* ==========================================================================
   Cards (platform / rtb / insights)
   ========================================================================== */
.grid-cards { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.grid-cards--tight { margin-top: 3rem; gap: 1rem; }

.icon-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: var(--radius-xl);
  background-image: var(--gradient-brand);
  color: var(--primary-foreground);
}
.icon-tile svg { width: 1.25rem; height: 1.25rem; }

.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease;
}
.feature:hover { transform: translateY(-4px); }
.feature h3 { margin-top: 1.25rem; font-size: 1.125rem; }
.feature p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted-foreground); }

.step {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.step__n {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  background-image: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { margin-top: 0.75rem; font-size: 1.125rem; }
.step p { margin-top: 0.5rem; font-size: 0.875rem; line-height: 1.65; color: var(--muted-foreground); }

.insights-heading { font-size: 1.875rem; }
.metrics-row { margin-top: 2.5rem; }

.metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: rgba(238, 244, 251, 0.5);
  padding: 1.5rem;
}
.metric__value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.metric__label { font-size: 0.75rem; color: var(--muted-foreground); }

/* ==========================================================================
   Solutions
   ========================================================================== */
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.solution {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-3xl);
  background-color: var(--card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
}
.solution::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background-image: var(--gradient-brand);
}
.solution__tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.solution h3 { margin-top: 1rem; font-size: 1.5rem; }
.solution > p { margin-top: 1rem; color: var(--muted-foreground); }
.solution ul { margin-top: 1.5rem; display: grid; gap: 0.75rem; }
.solution li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.solution li::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  flex: none;
  border-radius: 9999px;
  background-image: var(--gradient-brand);
}
.solution__link {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.solution__link svg { width: 1rem; height: 1rem; transition: transform 0.18s ease; }
.solution__link:hover svg { transform: translateX(4px); }

/* ==========================================================================
   Why BIDQON
   ========================================================================== */
.why__grid { display: grid; gap: 3rem; }
.why h2 { margin-top: 1rem; font-size: 1.875rem; color: var(--primary-foreground); }
.why__copy { margin-top: 1rem; color: rgba(249, 252, 255, 0.7); }
.why__cards { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.why__card {
  border: 1px solid rgba(249, 252, 255, 0.12);
  border-radius: var(--radius-2xl);
  background-color: rgba(249, 252, 255, 0.05);
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.why__card svg { width: 1.25rem; height: 1.25rem; color: var(--primary-glow); }
.why__card h3 { margin-top: 1rem; font-size: 1rem; color: var(--primary-foreground); }
.why__card p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(249, 252, 255, 0.65); }

/* ==========================================================================
   Insights
   ========================================================================== */
.insight {
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background-color: var(--card);
  padding: 1.75rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.insight:hover { border-color: rgba(34, 88, 229, 0.4); transform: translateY(-3px); }
.insight__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}
.insight h3 { margin-top: 0.75rem; font-size: 1.125rem; }
.insight p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.insight__more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.insight__more svg { width: 1rem; height: 1rem; transition: transform 0.18s ease; }
.insight:hover .insight__more svg { transform: translateX(4px); }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */
.cta { padding-inline: var(--gutter); padding-bottom: 6rem; }
.cta__box {
  max-width: var(--maxw);
  margin-inline: auto;
  border-radius: var(--radius-3xl);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.cta__box h2 { font-size: 1.875rem; color: var(--primary-foreground); }
.cta__box > p {
  margin: 1rem auto 0;
  max-width: 36rem;
  color: rgba(249, 252, 255, 0.8);
}

.contact-form { margin: 2.25rem auto 0; max-width: 40rem; display: grid; gap: 0.75rem; text-align: left; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 0.75rem; }
.contact-form label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(249, 252, 255, 0.7);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--primary-foreground);
  background-color: rgba(249, 252, 255, 0.1);
  border: 1px solid rgba(249, 252, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.contact-form textarea { min-height: 7rem; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(249, 252, 255, 0.6); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(249, 252, 255, 0.6);
  background-color: rgba(249, 252, 255, 0.16);
}
.contact-form .hp { position: absolute; left: -9999px; }
.contact-form__actions {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.form-note { font-size: 0.875rem; border-radius: var(--radius-lg); padding: 0.75rem 1rem; text-align: center; }
.form-note[hidden] { display: none; }
.form-note--ok { background-color: rgba(249, 252, 255, 0.18); color: var(--primary-foreground); }
.form-note--err { background-color: rgba(255, 96, 96, 0.2); color: #ffe2e2; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border); background-color: rgba(238, 244, 251, 0.6); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 4rem; }
.site-footer__about { margin-top: 1rem; max-width: 20rem; font-size: 0.875rem; color: var(--muted-foreground); }
.site-footer h3 { font-size: 0.875rem; }
.site-footer ul { margin-top: 1rem; display: grid; gap: 0.75rem; }
.site-footer li a { font-size: 0.875rem; color: var(--muted-foreground); transition: color 0.18s ease; }
.site-footer li a:hover { color: var(--primary); }
.site-footer__bar { border-top: 1px solid rgba(221, 229, 237, 0.7); }
.site-footer__bar-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-block: 1.5rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .grid-cards, .grid-cards--tight { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-intro h2,
  .why h2,
  .cta__box h2,
  .insights-heading { font-size: 2.25rem; }
  .solution h3 { font-size: 1.875rem; }
  .cta__box { padding-inline: 4rem; }
  .hero__plate { padding: 3.5rem; }
  .site-footer__bar-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 768px) {
  .site-nav, .site-header__actions { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-cards--tight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .insights-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__inner { grid-template-columns: 1.05fr 1fr; padding-block: 8rem; }
  .hero__stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .why__grid { grid-template-columns: 1fr 1.1fr; }
  .site-footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
