/* ══════════════════════════════════════════════════════════════
   EWT HERO BLOCK
   ══════════════════════════════════════════════════════════════ */

/* ── Base section ─────────────────────────────────────────────── */
.ewt-hero {
  position: relative;
  min-height: var(--hero-min-height, 100vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--ewt-black);
}

/* ── Background image ─────────────────────────────────────────── */
.ewt-hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ── Dark overlay (controls darkness with --overlay CSS var) ──── */
.ewt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(11, 20, 38, calc(var(--overlay, 0.55) * 1.1)) 0%,
    rgba(11, 20, 38, calc(var(--overlay, 0.55) * 0.85)) 50%,
    rgba(11, 20, 38, calc(var(--overlay, 0.55) * 1.2)) 100%
  );
  z-index: 1;
}

/* ── Ambient orbs ─────────────────────────────────────────────── */
.ewt-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 2;
  pointer-events: none;
  animation: ewt-orb-float 8s ease-in-out infinite alternate;
}
.ewt-hero__orb--1 {
  width: 600px; height: 600px;
  top: -15%; left: -10%;
  background: radial-gradient(circle, rgba(0, 73, 202, 0.22) 0%, transparent 70%);
  animation-delay: 0s;
}
.ewt-hero__orb--2 {
  width: 500px; height: 500px;
  bottom: -20%; right: -8%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.16) 0%, transparent 70%);
  animation-delay: 3s;
}
.ewt-hero__orb--3 {
  width: 350px; height: 350px;
  top: 30%; right: 20%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, transparent 70%);
  animation-delay: 5s;
}
@keyframes ewt-orb-float {
  0%   { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-30px) scale(1.06); }
}

/* ── Dot-grid texture ─────────────────────────────────────────── */
.ewt-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Content wrappers ─────────────────────────────────────────── */
.ewt-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Centered */
.ewt-hero--centered .ewt-hero__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
}
/* Left-aligned */
.ewt-hero--left .ewt-hero__content {
  text-align: left;
  max-width: 700px;
}

/* ── Split layout ─────────────────────────────────────────────── */
.ewt-hero__split {
  position: relative;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.ewt-hero__split-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.ewt-hero__split-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ewt-hero__split-img {
  width: 100%;
  height: 520px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: rotate(1.5deg);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}
.ewt-hero__split-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(11,20,38,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ewt-hero__split-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 6px #22C55E;
  animation: ewt-pulse 1.8s ease-in-out infinite;
}
@keyframes ewt-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}
@media (max-width: 900px) {
  .ewt-hero__split { grid-template-columns: 1fr; }
  .ewt-hero__split-img-wrap { display: none; }
  .ewt-hero__split-content { align-items: center; text-align: center; }
}

/* ── Eyebrow ──────────────────────────────────────────────────── */
.ewt-hero__eyebrow-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
}
.ewt-hero__service-icon {
  height: 1.5rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.ewt-hero__eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
  flex-shrink: 0;
  animation: ewt-pulse 1.8s ease-in-out infinite;
}
.ewt-hero__eyebrow-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Headline ─────────────────────────────────────────────────── */
.ewt-hero__headline {
  font-family: 'Sora', sans-serif !important;
  font-size: clamp(2.75rem, 6.5vw, 5rem) !important;
  font-weight: 800 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  margin: 0 0 1.5rem !important;
}

/* ── Accent / cycling word ────────────────────────────────────── */
.ewt-hero__accent {
  display: inline-block;
  color: var(--ewt-accent);
  font-style: italic;
  position: relative;
  transition: opacity 0.35s ease;
}
.ewt-hero__accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ewt-accent), rgba(0,73,202,0.3));
}

/* ── Subheadline ──────────────────────────────────────────────── */
.ewt-hero__sub {
  font-size: clamp(1rem, 2vw, 1.1875rem) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.75 !important;
  max-width: 600px;
  margin: 0 0 2.5rem !important;
}
.ewt-hero--centered .ewt-hero__sub { text-align: center; }

/* ── CTA buttons ──────────────────────────────────────────────── */
.ewt-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-bottom: 3.5rem;
}
.ewt-hero--centered .ewt-hero__actions { justify-content: center; }

.ewt-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.ewt-hero__cta--primary {
  background: #ffffff;
  color: var(--ewt-black);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.ewt-hero__cta--primary:hover {
  background: #f0f4ff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,255,255,0.2);
}
.ewt-hero__cta--ghost {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}
.ewt-hero__cta--ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
  transform: translateY(-2px);
}
.ewt-hero__arrow {
  font-style: normal;
  transition: transform 0.2s ease;
}
.ewt-hero__cta--ghost:hover .ewt-hero__arrow { transform: translateX(4px); }

/* ── Trust section ────────────────────────────────────────────── */
.ewt-hero__trust {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.ewt-hero--centered .ewt-hero__trust { justify-content: center; }

.ewt-hero__avatars {
  display: flex;
  flex-direction: row-reverse;
}
.ewt-hero__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  margin-left: -10px;
  background: linear-gradient(135deg, #1B3460, #2D5490);
  transition: transform 0.2s;
}
.ewt-hero__avatar:last-child { margin-left: 0; }
.ewt-hero__avatars:hover .ewt-hero__avatar { transform: translateX(-3px); }
.ewt-hero__avatar--1 { background: linear-gradient(135deg, #1B3460 0%, #2D5490 100%); z-index:4; }
.ewt-hero__avatar--2 { background: linear-gradient(135deg, #234070 0%, #375DA0 100%); z-index:3; }
.ewt-hero__avatar--3 { background: linear-gradient(135deg, #0F2040 0%, #1B3460 100%); z-index:2; }
.ewt-hero__avatar--4 { background: linear-gradient(135deg, #162D50 0%, #243E6A 100%); z-index:1; }

.ewt-hero__trust-text { display: flex; flex-direction: column; gap: 0.2rem; }
.ewt-hero__stars {
  font-size: 0.75rem;
  color: #FBBF24;
  letter-spacing: 0.05em;
  line-height: 1;
}
.ewt-hero__trust-text p {
  font-size: 0.8125rem !important;
  color: rgba(255,255,255,0.6) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}
.ewt-hero__trust-text strong { color: rgba(255,255,255,0.88); }

/* ── Scroll cue ───────────────────────────────────────────────── */
.ewt-hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: ewt-scroll-bounce 2.4s ease-in-out infinite;
}
@keyframes ewt-scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50%       { transform: translateX(-50%) translateY(8px); opacity: 0.9; }
}
.ewt-hero__scroll-mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.ewt-hero__scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: ewt-wheel-scroll 2.4s ease-in-out infinite;
}
@keyframes ewt-wheel-scroll {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ── Inner page (compact) ─────────────────────────────────────── */
.ewt-hero--inner {
  min-height: var(--hero-min-height, 50vh);
  padding: 6rem 0 4rem;
}
.ewt-hero--inner .ewt-hero__orb,
.ewt-hero--inner .ewt-hero__grid { display: none; }
.ewt-hero--inner .ewt-hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem) !important;
}
.ewt-hero--inner .ewt-hero__scroll { display: none; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ewt-hero { padding: 6rem 0 4rem; }
  .ewt-hero__orb--1 { width: 300px; height: 300px; }
  .ewt-hero__orb--2 { width: 250px; height: 250px; }
  .ewt-hero__orb--3 { display: none; }
  .ewt-hero__actions { flex-direction: column; align-items: center; }
  .ewt-hero__cta { width: 100%; max-width: 320px; justify-content: center; }
  .ewt-hero__scroll { display: none; }
}
