/* ============================================================
   PREMIUM HERO — Home page (hero-premium)
   Aurora + particles + 3D globe + glassmorphism + spotlight
   Prefix: hp-
   ============================================================ */

.hero-premium {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh - var(--header-total, 114px));
  overflow: hidden;
  background: var(--bg-base, #06101f);
}

/* ── Layered background ────────────────────────────────── */
.hp-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

/* Aurora — drifting gradient lights */
.hp-aurora {
  position: absolute;
  inset: -20%;
  filter: blur(90px) saturate(130%);
  opacity: 0.55;
}

.hp-aurora-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hp-aurora-blob--1 {
  width: 55vw;
  height: 55vw;
  left: -12%;
  top: -18%;
  background: radial-gradient(
    circle at 35% 35%,
    rgba(37, 99, 235, 0.8),
    transparent 65%
  );
  animation: hpAurora1 26s ease-in-out infinite alternate;
}

.hp-aurora-blob--2 {
  width: 48vw;
  height: 48vw;
  right: -14%;
  top: 4%;
  background: radial-gradient(
    circle at 60% 40%,
    rgba(34, 211, 238, 0.55),
    transparent 65%
  );
  animation: hpAurora2 32s ease-in-out infinite alternate;
}

.hp-aurora-blob--3 {
  width: 42vw;
  height: 42vw;
  left: 28%;
  bottom: -26%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(99, 102, 241, 0.45),
    transparent 65%
  );
  animation: hpAurora3 38s ease-in-out infinite alternate;
}

@keyframes hpAurora1 {
  to {
    transform: translate(9vw, 7vh) scale(1.12) rotate(12deg);
  }
}

@keyframes hpAurora2 {
  to {
    transform: translate(-8vw, 9vh) scale(0.92) rotate(-10deg);
  }
}

@keyframes hpAurora3 {
  to {
    transform: translate(-6vw, -8vh) scale(1.08);
  }
}

/* Subtle engineering grid */
.hp-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 184, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 184, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 50% 40%,
    #000 30%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 50% 40%,
    #000 30%,
    transparent 78%
  );
}

/* Particle canvas */
.hp-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Film grain — premium texture */
.hp-noise {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* ── Cursor spotlight (injected by JS) ─────────────────── */
.hp-spotlight {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 132, 255, 0.12) 0%,
    rgba(34, 211, 238, 0.05) 38%,
    transparent 68%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* ── Layout ────────────────────────────────────────────── */
.hp-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
  max-width: 1500px;
  width: 100%;
  margin: auto;
  padding: clamp(48px, 6vw, 90px) clamp(20px, 5vw, 80px) clamp(40px, 5vw, 70px);
}

/* ── Copy column ───────────────────────────────────────── */
.hp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: #cfe6ff;
  font: 650 12px/1.2 var(--font-secondary);
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hp-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6);
  animation: hpPulse 2.2s ease-out infinite;
}

@keyframes hpPulse {
  70% {
    box-shadow: 0 0 0 9px rgba(34, 211, 238, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
  }
}

.hp-heading {
  margin: 26px 0 20px;
  font: 800 clamp(2.7rem, 5.2vw, 4.9rem) / 1.04 var(--font-primary);
  letter-spacing: -0.045em;
  color: #fff;
  text-wrap: balance;
}

.hp-heading .hp-line {
  display: block;
  overflow: hidden;
}

.hp-heading .hp-word {
  display: inline-block;
  will-change: transform;
}

.hp-gradient {
  background: linear-gradient(105deg, #67e8f9 0%, #38bdf8 40%, #818cf8 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hp-subtext {
  max-width: 560px;
  margin: 0 0 34px;
  color: rgba(203, 220, 240, 0.78);
  font: 400 clamp(15px, 1.2vw, 17px) / 1.75 var(--font-secondary);
}

.hp-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(34px, 4vw, 52px);
}

.hp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font: 700 14.5px/1 var(--font-secondary);
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  overflow: hidden;
}

.hp-btn--primary {
  color: #fff;
  background: var(
    --gradient-btn-primary,
    linear-gradient(135deg, #8b0000, #b22222)
  );
  box-shadow: var(--shadow-primary, 0 12px 40px rgba(37, 99, 235, 0.25));
}

.hp-btn--primary::after {
  /* shine sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}

.hp-btn--primary:hover {
  color: #fff;
  transform: translateY(-3px);
}

.hp-btn--primary:hover::after {
  transform: translateX(110%);
}

.hp-btn--glass {
  color: #eaf3ff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hp-btn--glass:hover {
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(103, 232, 249, 0.6);
  box-shadow: 0 10px 34px rgba(34, 211, 238, 0.15);
}

.hp-btn--glass i {
  color: #67e8f9;
}

/* Trust metrics */
.hp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 46px);
}

.hp-trust-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hp-trust-item strong {
  font: 800 clamp(1.4rem, 2vw, 1.8rem) / 1 var(--font-primary);
  color: #fff;
}

.hp-trust-item strong em {
  font-style: normal;
  color: #67e8f9;
}

.hp-trust-item span {
  color: rgba(160, 182, 210, 0.75);
  font: 550 11.5px/1.3 var(--font-secondary);
  letter-spacing: 0.03em;
}

/* ── Visual column — 3D globe + glass cards ────────────── */
.hp-visual {
  position: relative;
  min-width: 0;
  height: clamp(380px, 44vw, 620px);
}

.hp-globe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hp-orbit-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(78%, 470px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  border: 1px dashed rgba(103, 232, 249, 0.18);
  animation: hpSpin 40s linear infinite;
  pointer-events: none;
}

.hp-orbit-ring::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 14px 3px rgba(103, 232, 249, 0.55);
}

@keyframes hpSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Floating glass cards */
.hp-glass-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(13, 28, 49, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow:
    0 18px 50px rgba(2, 8, 20, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  will-change: transform;
}

.hp-glass-card i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  font-size: 18px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 12px;
}

.hp-glass-card strong {
  display: block;
  color: #fff;
  font: 750 13.5px/1.2 var(--font-secondary);
}

.hp-glass-card span {
  color: rgba(170, 192, 218, 0.8);
  font: 500 11px/1.3 var(--font-secondary);
}

.hp-glass-card--1 {
  top: 6%;
  left: -2%;
}
.hp-glass-card--2 {
  right: -1%;
  top: 38%;
}
.hp-glass-card--3 {
  left: 8%;
  bottom: 4%;
}

/* ── Scroll cue ────────────────────────────────────────── */
.hp-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(160, 182, 210, 0.6);
  font: 600 10px/1 var(--font-secondary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hp-scroll-cue:hover {
  color: #67e8f9;
}

.hp-scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.7), transparent);
  animation: hpDrop 1.8s ease-in-out infinite;
}

@keyframes hpDrop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* Ratings bar — glass polish over existing styles */
.hero-premium .hero-ratings {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 18, 34, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ── Generic reveal helper (JS adds .hp-in) ────────────── */
.hp-reveal {
  opacity: 0;
  transform: translateY(34px);
}

.hp-reveal.hp-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.8, 0.28, 1),
    transform 0.8s cubic-bezier(0.22, 0.8, 0.28, 1);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hp-container {
    grid-template-columns: 1fr;
    padding-top: 56px;
  }

  .hp-visual {
    height: clamp(320px, 58vw, 460px);
    margin-top: 8px;
  }

  .hp-scroll-cue {
    display: none;
  }
}

@media (max-width: 640px) {
  .hp-glass-card--1 {
    left: 0;
    top: 2%;
  }
  .hp-glass-card--2 {
    right: 0;
    top: auto;
    bottom: 30%;
  }
  .hp-glass-card--3 {
    display: none;
  }

  .hp-heading {
    font-size: clamp(2.2rem, 9.5vw, 2.9rem);
  }

  .hp-cta-group .hp-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Reduced motion — calm everything ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hp-aurora-blob,
  .hp-orbit-ring,
  .hp-badge-dot,
  .hp-scroll-cue::after {
    animation: none !important;
  }

  .hp-reveal {
    opacity: 1;
    transform: none;
  }

  .hp-spotlight {
    display: none;
  }
}

/* ============================================================
   MODERN CONSULT FORM — home page (overrides style.css)
   Dark glass panel, cyan focus rings, pill chips, shine CTA
   ============================================================ */

.home-page .consult-section {
  background:
    radial-gradient(
      ellipse at 85% 10%,
      rgba(37, 99, 235, 0.16),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 5% 90%,
      rgba(34, 211, 238, 0.07),
      transparent 45%
    ),
    var(--bg-base, #06101f);
}

.home-page .consult-section::before,
.home-page .consult-section::after {
  display: none;
}

.home-page .consult-left {
  background: transparent;
}

/* ── Right panel → floating glass card ─────────────────── */
.home-page .consult-right {
  margin: clamp(24px, 4vw, 56px) clamp(20px, 4vw, 64px) clamp(24px, 4vw, 56px) 0;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(13, 28, 49, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(2, 8, 20, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-page .consult-form-eyebrow {
  color: #67e8f9;
  letter-spacing: 0.14em;
}

.home-page .consult-form-title {
  color: #fff;
}

.home-page .consult-form-sub {
  color: rgba(170, 192, 218, 0.8);
}

.home-page .consult-form-sub::before {
  background: linear-gradient(90deg, #22d3ee, transparent);
}

/* ── Labels & inputs ───────────────────────────────────── */
.home-page .consult-label {
  color: rgba(203, 220, 240, 0.85);
}

.home-page .consult-required {
  color: #67e8f9;
}

.home-page .consult-input {
  color: #fff;
  background: rgba(6, 16, 31, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.home-page .consult-input::placeholder {
  color: rgba(140, 160, 185, 0.55);
}

.home-page .consult-input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, 0.22);
}

.home-page .consult-input:focus {
  background: rgba(6, 16, 31, 0.9);
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  outline: 0;
}

.home-page select.consult-input,
.home-page .consult-select {
  color: #fff;
  background-color: rgba(6, 16, 31, 0.65);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2367e8f9' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.home-page .consult-select option {
  background: #0d1c31;
  color: #fff;
}

/* Phone group */
.home-page .consult-phone-wrap {
  background: rgba(6, 16, 31, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
}

.home-page .consult-phone-wrap:focus-within {
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.home-page .consult-phone-flag {
  color: #cfe6ff;
  background: rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.home-page .consult-phone-wrap .consult-phone-input {
  background: transparent;
  border: 0;
  border-radius: 0;
}

.home-page .consult-phone-wrap .consult-phone-input:focus {
  box-shadow: none;
}

.home-page .consult-country-code {
  color: #fff;
}

/* ── Service chips → glass toggle pills ────────────────── */
.home-page .consult-chip {
  color: rgba(203, 220, 240, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 18px;
  transition: all 0.2s ease;
}

.home-page .consult-chip:hover {
  color: #fff;
  border-color: rgba(103, 232, 249, 0.5);
  transform: translateY(-2px);
}

.home-page .consult-chip.active {
  color: #06101f;
  background: linear-gradient(120deg, #67e8f9, #22d3ee);
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
}

.home-page .consult-chip.active::before {
  content: "✓ ";
  font-weight: 800;
}

/* ── Error state ───────────────────────────────────────── */
.home-page .consult-input--error {
  border-color: rgba(248, 113, 113, 0.8) !important;
  box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15) !important;
  animation: hpShake 0.35s ease;
}

@keyframes hpShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* ── Submit button — gradient + shine sweep ────────────── */
.home-page .consult-submit {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 18px 30px;
  color: #fff;
  background: var(
    --gradient-btn-primary,
    linear-gradient(135deg, #8b0000, #b22222)
  );
  box-shadow: 0 14px 40px rgba(139, 0, 0, 0.35);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.home-page .consult-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.home-page .consult-submit:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(139, 0, 0, 0.45);
}

.home-page .consult-submit:hover:not(:disabled)::after {
  transform: translateX(110%);
}

.home-page .consult-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.home-page .consult-submit--sent {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 14px 40px rgba(16, 185, 129, 0.35);
}

/* Left panel polish to match */
.home-page .consult-badge {
  color: #67e8f9;
  background: rgba(103, 232, 249, 0.08);
  border: 1px solid rgba(103, 232, 249, 0.25);
}

.home-page .consult-badge-dot {
  background: #22d3ee;
}

.home-page .consult-nda {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
  .home-page .consult-right {
    margin: 0 clamp(16px, 4vw, 40px) clamp(24px, 5vw, 48px);
  }
}

/* ============================================================
   FAQ — one row, two columns (left/right) on home page
   ============================================================ */

.home-page .faq-list {
  max-width: 1280px;
  padding: 0 clamp(20px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  align-items: start;
}

.home-page .faq-item {
  margin-bottom: 0;
  border-radius: 16px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.home-page .faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(7, 20, 38, 0.08);
}

.home-page .faq-item.active {
  box-shadow: 0 16px 44px rgba(7, 20, 38, 0.1);
}

/* Answers can be longer than 300px cap in 2-col width */
.home-page .faq-item.active .faq-answer {
  max-height: 500px;
}

@media (max-width: 900px) {
  .home-page .faq-list {
    grid-template-columns: 1fr;
  }
}
