/* =========================================
   BLOKS DESIGN TOKENS
========================================= */

:root {
  --bloks-bg: #050816;
  --bloks-surface: #0F172A;
  --bloks-primary: #2F52FF;
  --bloks-primary-light: #4A7DFF;
  --bloks-accent: #38BDF8;
  --bloks-text: #F8FAFC;
  --bloks-text-soft: #CBD5E1;
  --bloks-text-muted: #94A3B8;
  --bloks-radius-sm: 12px;
  --bloks-radius-md: 18px;
  --bloks-radius-lg: 24px;
  --bloks-speed: .22s ease;
}

/* =========================================
   TYPOGRAPHY
========================================= */

.bloks-h1,
.bloks-h2,
.bloks-h3,
.bloks-card-content h3 {
  margin: 0;
  color: var(--bloks-text);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.bloks-h1 {
  font-size: clamp(52px, 8vw, 96px);
}

.bloks-h2 {
  font-size: clamp(38px, 5vw, 64px);
}

.bloks-h3,
.bloks-card-content h3 {
  font-size: clamp(30px, 3vw, 42px);
}

.bloks-body,
.bloks-card-content p {
  color: var(--bloks-text-soft);
  font-size: 18px;
  line-height: 1.6;
}

.bloks-caption {
  color: var(--bloks-text-muted);
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bloks-section-title {
  margin-bottom: 18px;
}

.bloks-readable {
  max-width: 72ch;
}

/* =========================================
   BUTTONS
========================================= */

.bloks-btn,
.bloks-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition:
    color var(--bloks-speed),
    background var(--bloks-speed),
    border-color var(--bloks-speed),
    box-shadow var(--bloks-speed),
    transform var(--bloks-speed);
}

.bloks-btn-primary,
.bloks-card-link {
  color: var(--bloks-text);
  background: linear-gradient(135deg, rgba(47,82,255,.92), rgba(56,189,248,.72));
  border: 1px solid rgba(56,189,248,.55);
  box-shadow:
    0 0 18px rgba(47,82,255,.22),
    inset 0 1px 0 rgba(255,255,255,.16);
}

.bloks-btn-primary:hover,
.bloks-card-link:hover {
  color: #fff;
  transform: translateY(-1px);
  border-color: rgba(56,189,248,.85);
  box-shadow:
    0 0 26px rgba(56,189,248,.32),
    0 10px 26px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.bloks-btn-ghost {
  color: var(--bloks-text-soft);
  background: rgba(15,23,42,.5);
  border: 1px solid rgba(148,163,184,.22);
}

.bloks-btn-ghost:hover {
  color: var(--bloks-text);
  background: rgba(47,82,255,.16);
  border-color: rgba(74,125,255,.42);
}

/* =========================================
   CARDS
========================================= */

.bloks-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 24px;
  min-height: 320px;
  padding: 28px;
  border: 2px solid rgba(74,125,255,.65);
  border-radius: var(--bloks-radius-md);
  background: linear-gradient(180deg, rgba(10,18,40,.96), rgba(5,8,22,.985));
  box-shadow:
    0 22px 60px rgba(0,0,0,.55),
    0 0 28px rgba(47,82,255,.16);
  overflow: hidden;
  transition:
    transform var(--bloks-speed),
    border-color var(--bloks-speed),
    box-shadow var(--bloks-speed);
}

.bloks-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.9);
  box-shadow:
    0 30px 75px rgba(0,0,0,.65),
    0 0 44px rgba(47,82,255,.28);
}

.bloks-card-media img {
  width: 100%;
  max-width: 220px;
  display: block;
  margin: 0 auto;
  filter:
    drop-shadow(0 18px 26px rgba(0,0,0,.28))
    drop-shadow(0 0 20px rgba(47,82,255,.18));
  transition:
    transform .25s ease,
    filter .25s ease;
}

.bloks-card:hover .bloks-card-media img {
  transform: scale(1.035);
  filter:
    drop-shadow(0 22px 34px rgba(0,0,0,.34))
    drop-shadow(0 0 28px rgba(56,189,248,.24));
}

.bloks-card-content p {
  margin: 14px 0 18px;
}

/* Card light sweep */

.bloks-card::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 80%;
  height: 300%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.045) 48%,
    rgba(255,255,255,.08) 50%,
    rgba(255,255,255,.045) 52%,
    rgba(255,255,255,0) 100%
  );
  transform: rotate(18deg);
  opacity: 0;
  transition:
    opacity .25s ease,
    transform .8s ease;
  pointer-events: none;
}

.bloks-card:hover::after {
  opacity: 1;
  transform: rotate(18deg) translateX(140%);
}

/* =========================================
   SECTIONS / CONTAINERS / PANELS
========================================= */

.bloks-section {
  position: relative;
  padding: 100px 32px;
}

.bloks-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.bloks-panel {
  background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(5,8,22,.82));
  border: 1px solid rgba(74,125,255,.18);
  border-radius: var(--bloks-radius-lg);
  box-shadow: 0 20px 55px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
}

/* =========================================
   GRIDS
========================================= */

.bloks-grid {
  display: grid;
  gap: 28px;
}

.bloks-grid-2 {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.bloks-grid-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.bloks-grid-4 {
  grid-template-columns: repeat(4, minmax(0,1fr));
}

/* =========================================
   UTILITIES
========================================= */

.bloks-text-center {
  text-align: center;
}

.bloks-text-gradient {
  background: linear-gradient(135deg, var(--bloks-text), var(--bloks-accent), var(--bloks-primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bloks-glow {
  box-shadow:
    0 0 28px rgba(47,82,255,.24),
    0 0 60px rgba(56,189,248,.12);
}

.bloks-soft-border {
  border: 1px solid rgba(74,125,255,.24);
}

.bloks-muted {
  color: var(--bloks-text-muted);
}

.bloks-stack-sm > * + * {
  margin-top: 12px;
}

.bloks-stack-md > * + * {
  margin-top: 22px;
}

.bloks-stack-lg > * + * {
  margin-top: 36px;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 980px) {
  .bloks-grid-2,
  .bloks-grid-3,
  .bloks-grid-4 {
    grid-template-columns: 1fr;
  }

  .bloks-section {
    padding: 72px 22px;
  }
}

@media (max-width: 780px) {
  .bloks-card {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    gap: 18px;
    padding: 26px 22px 28px;
    margin-bottom: 22px;
  }

  .bloks-card-media img {
    max-width: 220px;
    width: 72%;
  }

  .bloks-card-content p {
    font-size: 17px;
    line-height: 1.45;
  }
}

.bloks-card-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin: 0 0 16px;
  filter: drop-shadow(0 0 14px rgba(56,189,248,.35));
  transition: transform var(--bloks-speed), filter var(--bloks-speed);
}

.bloks-card:hover .bloks-card-icon {
  transform: translateY(-2px) scale(1.05);
  filter: drop-shadow(0 0 20px rgba(56,189,248,.55));
}

@media (max-width: 780px) {
  .bloks-card-icon {
    margin: 0 auto 14px;
  }
}

/* =========================================
   HERO
========================================= */

.bloks-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(47,82,255,.28), transparent 34%),
    radial-gradient(circle at 80% 30%, rgba(56,189,248,.18), transparent 32%),
    linear-gradient(180deg, #050816 0%, #0f172a 55%, #050816 100%);
}

.bloks-hero-bg {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(56,189,248,.18), transparent 62%);
  filter: blur(30px);
  opacity: .9;
  pointer-events: none;
}

.bloks-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, #050816);
  pointer-events: none;
}

.bloks-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.bloks-hero-content .bloks-body {
  margin-top: 22px;
  font-size: 21px;
}

.bloks-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

@media (max-width: 780px) {
  .bloks-hero {
    min-height: 560px;
    padding: 90px 22px;
  }

  .bloks-hero-content .bloks-body {
    font-size: 18px;
  }
}

/* =========================================
   BLOKS AMBIENT MOTION
========================================= */

@keyframes bloksFloat {

  0% {
    transform:
      translate3d(0,0,0)
      rotate(0deg);
  }

  50% {
    transform:
      translate3d(0,-18px,0)
      rotate(1deg);
  }

  100% {
    transform:
      translate3d(0,0,0)
      rotate(0deg);
  }

}

@keyframes bloksPulse {

  0% {
    opacity: .45;
  }

  50% {
    opacity: .75;
  }

  100% {
    opacity: .45;
  }

}

/* =========================================
   HERO GLOW ORBS
========================================= */

.bloks-hero::before {

  content: "";

  position: absolute;

  width: 520px;
  height: 520px;

  top: -120px;
  left: -140px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(47,82,255,.28),
      transparent 70%
    );

  filter: blur(40px);

  animation:
    bloksFloat 14s ease-in-out infinite,
    bloksPulse 8s ease-in-out infinite;

  pointer-events: none;

}

.bloks-hero-bg {

  position: absolute;

  top: -10%;
  right: -5%;

  width: 70vw;
  height: 70vw;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(56,189,248,.24),
      rgba(47,82,255,.16),
      transparent 68%
    );

  filter: blur(50px);

  opacity: 1;

  pointer-events: none;

  animation:
    bloksFloat 18s ease-in-out infinite reverse,
    bloksPulse 10s ease-in-out infinite;

  transition:
    transform .08s ease-out;

  will-change: transform;

}

.bloks-hero-bg {
  position: absolute;

  top: 50%;
  left: 50%;

  width: 72vw;
  height: 72vw;

  border-radius: 50%;

  background:
    radial-gradient(circle,
      rgba(56,189,248,.30) 0%,
      rgba(47,82,255,.20) 34%,
      rgba(47,82,255,.08) 52%,
      transparent 70%
    );

  filter: blur(42px);

  opacity: .95;

  z-index: 1;

  pointer-events: none;

  transition: transform .08s ease-out;

  will-change: transform;

  animation: none !important;
}

.bloks-hero-bg {
  animation: none !important;
}

/* =========================================
   BLOKS PARTICLES
========================================= */

.bloks-particles {

  position: absolute;
  inset: 0;

  overflow: hidden;

  pointer-events: none;

  z-index: 1;

}

.bloks-particles span {

  position: absolute;

  display: block;

  width: 6px;
  height: 6px;

  border-radius: 50%;

  background:
    rgba(56,189,248,.7);

  box-shadow:
    0 0 12px rgba(56,189,248,.5);

  opacity: .4;

  animation:
    bloksParticleFloat linear infinite;

}

/* individual positions */

.bloks-particles span:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-duration: 18s;
}

.bloks-particles span:nth-child(2) {
  top: 70%;
  left: 18%;
  width: 4px;
  height: 4px;
  animation-duration: 24s;
}

.bloks-particles span:nth-child(3) {
  top: 30%;
  left: 72%;
  width: 7px;
  height: 7px;
  animation-duration: 22s;
}

.bloks-particles span:nth-child(4) {
  top: 80%;
  left: 82%;
  animation-duration: 28s;
}

.bloks-particles span:nth-child(5) {
  top: 55%;
  left: 50%;
  width: 3px;
  height: 3px;
  animation-duration: 20s;
}

.bloks-particles span:nth-child(6) {
  top: 12%;
  left: 58%;
  width: 5px;
  height: 5px;
  animation-duration: 26s;
}

/* animation */

@keyframes bloksParticleFloat {

  0% {
    transform:
      translateY(0px)
      translateX(0px);
  }

  50% {
    transform:
      translateY(-30px)
      translateX(12px);
  }

  100% {
    transform:
      translateY(0px)
      translateX(0px);
  }

}

/* =========================================
   BLOKS HEADER LOGO GLOW
========================================= */

.custom-logo-link,
.site-logo,
.site-branding {
  background: transparent !important;
}

.custom-logo-link img,
.site-logo img,
.site-branding img {
  background: transparent !important;
  mix-blend-mode: screen;
  opacity: .92;

  filter:
    drop-shadow(0 0 6px rgba(56,189,248,.75))
    drop-shadow(0 0 16px rgba(47,82,255,.45))
    drop-shadow(0 0 28px rgba(47,82,255,.22));

  transition:
    opacity var(--bloks-speed),
    filter var(--bloks-speed),
    transform var(--bloks-speed);
}

.custom-logo-link:hover img,
.site-logo:hover img,
.site-branding:hover img {
  opacity: 1;
  transform: translateY(-1px) scale(1.03);

  filter:
    drop-shadow(0 0 8px rgba(56,189,248,.95))
    drop-shadow(0 0 22px rgba(47,82,255,.60))
    drop-shadow(0 0 36px rgba(47,82,255,.32));
}

/* =========================================
   BLOKS HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: rgba(5, 8, 22, .72) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(74, 125, 255, .18);

  box-shadow:
    0 10px 30px rgba(0,0,0,.28),
    0 0 24px rgba(47,82,255,.10);

  transition:
    background var(--bloks-speed),
    box-shadow var(--bloks-speed),
    border-color var(--bloks-speed);
}

.site-header:hover {
  background: rgba(5, 8, 22, .84) !important;
  border-color: rgba(56, 189, 248, .24);
}

/* =========================================
   BLOKS HERO CANVAS
========================================= */

.bloks-hero-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.bloks-hero-bg,
.bloks-particles,
.bloks-hero-canvas {
  position: absolute !important;
}

.bloks-hero-content {
  position: relative;
  z-index: 3;
}

.bloks-container {
  position: relative;
  z-index: 3;
}

.bloks-hero-shader {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .45;
  pointer-events: none;
  overflow: hidden;
}

.bloks-hero-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}