/* ============================================================
   Benot — Blueprint premium design system
   Dark, engineered, minimal. Benot blue on near-black.
   ============================================================ */

:root {
  /* Brand */
  --blue: #2f6bff;
  --blue-bright: #5b9bff;
  --blue-hi: #8fbaff;
  --blue-deep: #1b4bd6;

  /* Surfaces (near-black, faint blue undertone) */
  --bg: #070a12;
  --bg-2: #090d18;
  --panel: rgba(255, 255, 255, 0.022);
  --panel-2: rgba(255, 255, 255, 0.045);

  /* Blueprint lines — blue-tinted, not gray */
  --line: rgba(120, 150, 220, 0.14);
  --line-2: rgba(130, 160, 230, 0.22);
  --line-strong: rgba(150, 180, 245, 0.34);

  /* Text — tinted from the blue hue */
  --text: #eef2fb;
  --text-muted: #adbcdc;
  --text-dim: #8695bd;

  /* Effects */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.75);
  --shadow-blue: 0 20px 55px -18px rgba(47, 107, 255, 0.55);

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--line-strong) transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }

/* Themed browser surfaces */
::selection { background: rgba(47, 107, 255, 0.32); color: #fff; }
:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2);
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============================================================
   Global background — dark field + blueprint grid + glow
   ============================================================ */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(180deg, #0b1020 0%, var(--bg) 42%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
  opacity: 0.7;
}
/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --py: 13px; --px: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: -0.01em;
  padding: var(--py) var(--px);
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { --py: 10px; --px: 18px; font-size: 14px; }
.btn--lg { --py: 17px; --px: 30px; font-size: 16px; }

.btn--primary {
  background: linear-gradient(180deg, #2a62f2, var(--blue-deep));
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--primary:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: var(--panel-2);
  border-color: var(--blue);
  transform: translateY(-2px);
}
.btn--white { background: #fff; color: #0b1020; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 22px 55px -16px rgba(255, 255, 255, 0.4); }
.btn--white:hover svg { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(8, 11, 20, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-2);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 6px;
}
.nav a {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1.5px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px var(--gutter) 26px;
  background: rgba(8, 11, 20, 0.97);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:not(.btn) {
  padding: 14px 4px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 14px; }

/* ============================================================
   Blueprint primitives — corner ticks + measurement labels
   ============================================================ */
.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--line-strong);
  pointer-events: none;
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-top-left-radius: var(--r); }
.frame::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-bottom-right-radius: var(--r); }

.tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-bright);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tag::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 0 64px;
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Concentric blueprint rings behind hero */
.hero__rings {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: min(760px, 116vw);
  aspect-ratio: 1;
  z-index: 1;
  pointer-events: none;
  color: var(--line-2);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 55%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 46%, #000 55%, transparent 74%);
}
.hero__rings .ring-rot { animation: spin 60s linear infinite; transform-origin: 250px 250px; }
.hero__rings .ring-rot--rev { animation: spin 90s linear infinite reverse; transform-origin: 250px 250px; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__title {
  font-family: var(--font-display);
  margin-top: 8px;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  max-width: 16ch;
}
.hero__title em {
  font-style: normal;
  color: var(--blue-bright);
}
.hero__subtitle {
  margin-top: 26px;
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.65;
}
.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero__assurances {
  list-style: none;
  margin-top: clamp(40px, 6vw, 60px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(20px, 4vw, 40px);
}
.hero__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.hero__assurances li::before {
  content: "";
  width: 16px; height: 16px;
  flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%235b9bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(47, 107, 255, 0.12);
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: clamp(80px, 11vw, 128px) 0; position: relative; }

.section__head { max-width: 62ch; margin: 0 0 clamp(44px, 6vw, 64px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .tag { justify-content: center; }
.section__title {
  font-family: var(--font-display);
  margin-top: 20px;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.section__desc {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 54ch;
}
.section__head--center .section__desc { margin-left: auto; margin-right: auto; }

/* ============================================================
   Services — engineered large-type list (no card grid)
   ============================================================ */
.service {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr minmax(0, 34ch) 2.5rem;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 34px 10px;
  border-top: 1px solid var(--line);
  transition: background 0.4s var(--ease);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.service:hover { background: linear-gradient(90deg, rgba(47, 107, 255, 0.06), transparent 60%); }
.service:hover::before { transform: scaleY(1); }
.service__idx {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.service__title {
  display: flex;
  align-items: center;
  gap: 16px;
}
.service__ico {
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service:hover .service__ico { color: var(--blue-bright); transform: translateX(2px); }
.service__title h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.service__desc { color: var(--text-muted); font-size: 0.98rem; line-height: 1.55; }
.service__arrow {
  color: var(--text-dim);
  justify-self: end;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.service:hover .service__arrow { color: var(--blue-bright); transform: translate(3px, -3px); }

/* ============================================================
   Process — connected blueprint path
   ============================================================ */
.process { position: relative; }
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 30px; left: 8%; right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__node {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--blue-bright);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover .step__node {
  border-color: var(--blue);
  color: #fff;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.step h3 {
  font-family: var(--font-display);
  margin-top: 22px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.step p { margin-top: 10px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.6; }

/* ============================================================
   Differentiators — blueprint framed panels
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(18px, 2.4vw, 26px);
}
.why {
  padding: 36px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.why:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.why__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.why__ico {
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--blue-bright);
}
.why h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em;
}
.why p { margin-top: 16px; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   CTA
   ============================================================ */
.cta-wrap { position: relative; }
.cta {
  position: relative;
  text-align: center;
  padding: clamp(56px, 8vw, 92px) clamp(24px, 5vw, 56px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(130% 150% at 50% -10%, rgba(47, 107, 255, 0.3), transparent 55%),
    linear-gradient(180deg, #0c1730, #070c18);
  border: 1px solid var(--line-2);
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000, transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}
.cta > * { position: relative; z-index: 1; }
.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.cta p {
  margin: 20px auto 0;
  max-width: 48ch;
  color: #c6d5f2;
  font-size: 1.14rem;
  line-height: 1.6;
}
.cta .btn { margin-top: 36px; }
.cta__hint { display: block; margin-top: 20px; font-size: 0.86rem; color: #a9b7dc; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 36px;
  margin-top: clamp(60px, 9vw, 96px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer__brand { max-width: 34ch; }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { color: var(--text-muted); font-size: 0.96rem; line-height: 1.65; }
.footer__col h3 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block;
  color: var(--text-muted);
  font-size: 0.96rem;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer__col a:hover { color: var(--blue-bright); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ============================================================
   Floating WhatsApp
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  animation: floatIn 0.5s var(--ease) 0.7s both;
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 20px 44px -12px rgba(0, 0, 0, 0.7); }
.whatsapp-float::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes floatIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .whatsapp-float, .whatsapp-float::after,
  .hero__rings .ring-rot, .hero__rings .ring-rot--rev { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .service { grid-template-columns: 3.5rem 1fr 2rem; }
  .service__desc { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .steps::before { display: none; }
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 2.6rem 1fr 1.6rem; gap: 14px; }
  .service__ico { display: none; }
  .steps { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { width: 100%; }
}
