/* Homepage navigation and hero. */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.home-page {
  margin: 0;
  background: var(--home-bg, var(--page-bg));
  color: var(--home-text, var(--text-strong));
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.home-page.subscription-modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(18, 218, 209, 0.24);
  color: var(--home-text, var(--text-strong));
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  min-height: 56px;
  padding: max(8px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 8px max(22px, env(safe-area-inset-left));
  color: var(--home-text, var(--text-primary));
  background:
    linear-gradient(180deg, rgba(10, 15, 22, 0.88), rgba(10, 15, 22, 0.70)),
    rgba(8, 12, 18, 0.78);
  border-bottom: 1px solid rgba(205, 235, 255, 0.12);
  box-shadow: 0 14px 52px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(1.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.18);
}

.whatsapp-fab {
  position: fixed;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.20), transparent 42%),
    linear-gradient(135deg, #25d366, #128c7e);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-full);
  box-shadow:
    0 18px 44px rgba(7, 94, 84, 0.34),
    0 0 0 1px rgba(37, 211, 102, 0.18);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 780;
  line-height: 1;
  transition:
    transform var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard),
    border-color var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard);
}

.whatsapp-fab:hover {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 42%),
    linear-gradient(135deg, #2ee875, #0f9f8d);
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 22px 56px rgba(7, 94, 84, 0.42),
    0 0 0 1px rgba(37, 211, 102, 0.30);
  transform: translateY(-2px);
}

.whatsapp-fab:focus-visible {
  outline: none;
  box-shadow:
    var(--focus-ring-home),
    0 18px 44px rgba(7, 94, 84, 0.34);
}

.whatsapp-fab__icon {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  fill: currentColor;
}

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

.subscription-request-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.subscription-request-modal.hidden {
  display: none;
}

.subscription-request-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}

.subscription-request-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  border-radius: 20px;
  border: 1px solid rgba(160, 213, 255, 0.16);
  background: linear-gradient(180deg, rgba(10, 15, 22, 0.98), rgba(7, 12, 18, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 28px;
  color: rgba(245, 248, 251, 0.96);
}

.subscription-request-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 248, 251, 0.82);
  cursor: pointer;
}

.subscription-request-modal__close .ngf-icon {
  width: 18px;
  height: 18px;
}

.subscription-request-modal__header {
  margin-bottom: 18px;
  padding-right: 40px;
}

.subscription-request-modal__eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--home-cyan, var(--brand-teal));
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subscription-request-modal__header h3 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.75rem);
  line-height: 1.2;
}

.subscription-request-modal__header p {
  margin: 0;
  color: rgba(245, 248, 251, 0.72);
  font-size: 0.95rem;
  line-height: 1.55;
}

.subscription-request-form {
  display: grid;
  gap: 14px;
}

.subscription-request-form__field {
  display: grid;
  gap: 7px;
}

.subscription-request-form__field span {
  color: rgba(245, 248, 251, 0.88);
  font-size: 0.86rem;
  font-weight: 640;
}

.subscription-request-form__field small {
  color: rgba(245, 248, 251, 0.58);
  font-size: 0.76rem;
  font-weight: 560;
}

.subscription-request-form__field input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(160, 213, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 248, 251, 0.96);
  padding: 0 14px;
  font: inherit;
  box-sizing: border-box;
}

.subscription-request-form__field input::placeholder {
  color: rgba(245, 248, 251, 0.4);
}

.subscription-request-form__field input:focus {
  outline: none;
  border-color: rgba(18, 218, 209, 0.72);
  box-shadow: 0 0 0 4px rgba(18, 218, 209, 0.14);
}

.subscription-request-form__error {
  margin: 2px 0 0;
  color: #ff9a9a;
  font-size: 0.84rem;
  line-height: 1.4;
}

.subscription-request-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.subscription-request-form__secondary,
.subscription-request-form__primary {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 720;
  cursor: pointer;
}

.subscription-request-form__secondary {
  color: rgba(245, 248, 251, 0.88);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.subscription-request-form__primary {
  color: #031315;
  background: linear-gradient(135deg, var(--home-cyan, var(--brand-teal)), #55f4ed);
  border: 1px solid rgba(18, 218, 209, 0.6);
  box-shadow: 0 12px 28px rgba(18, 218, 209, 0.2);
}

.subscription-request-form__primary:disabled,
.subscription-request-form__secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Honeypot — hidden from users, visible to bots */
.subscription-request-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.subscription-request-otp__hint {
  margin: 0 0 1rem;
  color: var(--home-text-muted, #7A8899);
  font-size: 0.95rem;
  line-height: 1.5;
}

.subscription-request-otp__hint strong {
  color: var(--home-text, #F2F5F8);
}

.subscription-request-otp__resend {
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--home-text-muted, #7A8899);
}

.subscription-request-otp__resend-btn {
  background: none;
  border: none;
  color: var(--home-accent, #12DAD1);
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: underline;
}

.subscription-request-otp__resend-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: none;
}

.subscription-request-otp.hidden {
  display: none;
}

.subscription-request-form.hidden {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--home-text, var(--text-primary));
  text-decoration: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 1px rgba(18, 218, 209, 0.24), 0 12px 32px rgba(18, 218, 209, 0.16);
  transition: transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
}

.brand:hover .brand-logo {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(18, 218, 209, 0.36), 0 16px 42px rgba(18, 218, 209, 0.24);
}

.brand-center {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-text {
  display: inline-flex;
  gap: 6px;
  font-size: 1.02rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nextgen-highlight {
  color: var(--home-cyan, var(--brand-teal));
}

.facade-highlight {
  color: var(--home-amber, var(--accent-copper));
}

.brand-tagline {
  color: rgba(245, 248, 251, 0.70);
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 11px;
  color: rgba(245, 248, 251, 0.78);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 680;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--duration-normal) var(--ease-standard),
    background var(--duration-normal) var(--ease-standard),
    border-color var(--duration-normal) var(--ease-standard),
    box-shadow var(--duration-normal) var(--ease-standard);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--home-text, var(--text-primary));
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(18, 218, 209, 0.06);
}

.nav-login-link {
  margin-left: 6px;
  min-height: 40px !important;
  padding: 0 15px !important;
  color: #031315 !important;
  background: linear-gradient(135deg, var(--home-cyan, var(--brand-teal)), #55f4ed) !important;
  border-color: rgba(18, 218, 209, 0.62) !important;
  box-shadow: 0 12px 28px rgba(18, 218, 209, 0.22);
}

.nav-login-link:hover {
  color: #031315 !important;
  background: linear-gradient(135deg, #65fff7, var(--home-cyan, var(--brand-teal))) !important;
  border-color: rgba(18, 218, 209, 0.78) !important;
}

.login-icon .ngf-icon {
  width: 17px;
  height: 17px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: auto;
  color: var(--home-text, var(--text-primary));
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-standard), border-color var(--duration-normal) var(--ease-standard);
}

.menu-toggle:hover {
  background: rgba(18, 218, 209, 0.13);
  border-color: rgba(18, 218, 209, 0.35);
}

.user-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #031315;
  background: linear-gradient(135deg, var(--home-cyan, var(--brand-teal)), #55f4ed);
  border-radius: var(--radius-full);
  box-shadow: 0 12px 30px rgba(18, 218, 209, 0.22);
  transition: transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
}

.user-avatar .ngf-icon {
  width: 20px;
  height: 20px;
}

.user-avatar-btn:hover .user-avatar {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(18, 218, 209, 0.32);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  overflow: hidden;
  background: rgba(13, 20, 29, 0.96);
  border: 1px solid rgba(205, 235, 255, 0.14);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard), visibility var(--duration-normal) var(--ease-standard);
}

.user-avatar-btn[aria-expanded="true"] ~ .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-user-name {
  display: block;
  max-width: 178px;
  overflow: hidden;
  color: var(--home-text, var(--text-primary));
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-form {
  width: 100%;
  margin: 0;
}

.dropdown-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  color: #ffefef;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background var(--duration-normal) var(--ease-standard);
}

.dropdown-logout-btn:hover {
  background: rgba(255, 107, 107, 0.14);
}

.logout-icon .ngf-icon {
  width: 17px;
  height: 17px;
}

.hero-section {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: min(72vh, 680px);
  max-height: 780px;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(135deg, #0a0d12 0%, #0e1318 50%, #12161c 100%);
}

.hero-left {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 45%;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 45%;
  padding: clamp(24px, 4vh, 48px) 2% clamp(20px, 3vh, 32px) 3%;
  color: var(--home-text, var(--text-primary));
  overflow: visible;
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: var(--space-10);
  padding: 6px 11px;
  color: var(--home-cyan, var(--brand-teal));
  background: rgba(18, 218, 209, 0.09);
  border: 1px solid rgba(18, 218, 209, 0.22);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: heroReveal 700ms var(--ease-standard) both;
}

.hero-left h1 {
  margin: 0 0 var(--space-10, 10px);
  color: var(--home-text, var(--text-primary));
  font-family: var(--font-family-display);
  font-size: clamp(1.75rem, 2.8vw, 2.65rem);
  font-weight: 810;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  animation: heroReveal 760ms var(--ease-standard) 80ms both;
}

.hero-left p {
  max-width: 560px;
  margin: 0 0 var(--space-12, 12px);
  color: rgba(245, 248, 251, 0.80);
  font-size: clamp(0.86rem, 0.95vw, 0.94rem);
  line-height: 1.45;
  letter-spacing: 0;
  animation: heroReveal 820ms var(--ease-standard) 150ms both;
}

.hero-left p strong {
  color: var(--home-text, var(--text-primary));
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10, 10px);
  align-items: center;
  margin-bottom: clamp(10px, 1.5vw, 16px);
  animation: heroReveal 880ms var(--ease-standard) 220ms both;
}

.cta-btn,
.hero-secondary-cta {
  min-height: 44px;
  padding: 0 22px;
  text-transform: none;
}

.hero-proof {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 1px;
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 0;
  flex-shrink: 0;
  border: 1px solid rgba(205, 235, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: heroReveal 940ms var(--ease-standard) 300ms both;
}

.hero-proof > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 7px 12px 8px;
  background: rgba(8, 13, 19, 0.54);
}

.hero-proof > div:first-child {
  border-radius: calc(var(--radius-lg) - 1px) 0 0 calc(var(--radius-lg) - 1px);
}

.hero-proof > div:last-child {
  border-radius: 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0;
}

.hero-proof dt {
  margin: 0;
  color: var(--home-cyan, var(--brand-teal));
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.hero-proof dd {
  margin: 0;
  color: rgba(245, 248, 251, 0.7);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 55%;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 55%;
  height: 100%;
  overflow: hidden;
  border-radius: 0 0 38px 0;
}

.hero-right::before {
  content: "";
  position: absolute;
  top: 15%;
  right: 15%;
  z-index: 0;
  width: 50%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(18, 218, 209, 0.12) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: heroPulse 4s ease-in-out infinite;
}

.hero-right::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0 0 38px 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 13, 18, 0.12) 0%,
      transparent 25%,
      transparent 75%,
      rgba(10, 13, 18, 0.20) 100%
    );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-wrapper {
  overflow: hidden;
}

.hero-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(72vh, 680px);
  max-height: 780px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0 0 38px 0;
  box-shadow:
    -10px 0 48px rgba(0, 0, 0, 0.32),
    -4px 0 20px rgba(0, 0, 0, 0.22),
    inset 0 0 100px rgba(18, 218, 209, 0.06);
  filter:
    brightness(1.12)
    contrast(1.16)
    saturate(1.18)
    hue-rotate(-1deg)
    sepia(0.06);
  transition: filter 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-img:hover {
  filter:
    brightness(1.16)
    contrast(1.20)
    saturate(1.24)
    hue-rotate(-2deg)
    sepia(0.08);
  transform: scale(1.015);
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 0 0 38px 38px;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(18, 218, 209, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(255, 154, 60, 0.05) 0%, transparent 50%),
    linear-gradient(
      92deg,
      rgba(10, 13, 18, 0.95) 0%,
      rgba(12, 15, 20, 0.90) 10%,
      rgba(14, 17, 22, 0.84) 20%,
      rgba(16, 19, 24, 0.76) 30%,
      rgba(18, 21, 26, 0.66) 40%,
      rgba(20, 23, 28, 0.54) 50%,
      rgba(22, 25, 30, 0.40) 60%,
      rgba(24, 27, 32, 0.25) 72%,
      rgba(26, 29, 34, 0.12) 84%,
      rgba(28, 31, 36, 0.04) 94%,
      rgba(28, 31, 36, 0.01) 100%
    );
}

.hero-bg-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.02;
  border-radius: 0 0 38px 38px;
  background-image:
    repeating-linear-gradient(38deg, rgba(255, 255, 255, 0.014) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    repeating-linear-gradient(128deg, rgba(255, 255, 255, 0.010) 0 1px, rgba(255, 255, 255, 0) 1px 3px),
    radial-gradient(circle at 50% 50%, rgba(18, 218, 209, 0.025) 0%, transparent 70%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-curve {
  position: relative;
  width: 100%;
  margin: 0;
  line-height: 0;
}

.hero-curve svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-curve svg path {
  fill: var(--home-bg, var(--bg-ink, #0e1116));
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
}

@media (max-width: 1400px) {
  .hero-section {
    min-height: min(74vh, 700px);
  }

  .hero-left {
    padding: clamp(20px, 3.5vh, 40px) 2% clamp(18px, 2.5vh, 28px) 3%;
  }

  .hero-img {
    min-height: min(74vh, 700px);
  }
}

@media (max-width: 1180px) {
  .navbar {
    padding-inline: 18px;
    gap: 10px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text {
    font-size: 0.96rem;
    letter-spacing: 0.10em;
  }

  .brand-tagline {
    display: none;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 0.82rem;
  }

}

@media (max-width: 1200px) {
  .hero-section {
    min-height: min(70vh, 640px);
  }

  .hero-left {
    padding: clamp(18px, 3vh, 36px) 2% clamp(16px, 2vh, 24px) 3%;
  }

  .hero-img {
    min-height: min(70vh, 640px);
  }

  .hero-proof > div {
    padding: 6px 10px 7px;
  }
}

@media (max-width: 900px) {
  .navbar {
    min-height: 64px;
    padding: max(9px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 9px max(14px, env(safe-area-inset-left));
  }

  .whatsapp-fab {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 54px;
    height: 54px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: 0;
    padding: 0 14px;
    overflow: hidden;
    background: rgba(8, 12, 18, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: max-height var(--duration-normal) var(--ease-standard), padding var(--duration-normal) var(--ease-standard), opacity var(--duration-normal) var(--ease-standard);
  }

  .navbar.menu-open .nav-links {
    max-height: 460px;
    padding-block: 12px 16px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-lg);
  }

  .nav-login-link {
    margin-left: 0;
    justify-content: center !important;
  }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    max-height: none;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
  }

  .hero-left {
    flex: 1;
    min-width: 100%;
    width: 100%;
    padding: 32px 20px 24px;
    justify-content: center;
  }

  .hero-left h1 {
    font-size: clamp(1.65rem, 5.5vw, 2.2rem);
  }

  .hero-right {
    flex: 1;
    width: 100%;
    min-width: 100%;
    min-height: 280px;
    max-height: 320px;
    border-radius: 0 0 32px 32px;
  }

  .hero-img {
    min-height: 280px;
    max-height: 320px;
    border-radius: 0 0 32px 32px;
    object-position: center center;
  }

  .hero-bg-gradient {
    border-radius: 0 0 32px 32px;
    background:
      radial-gradient(ellipse at 50% 25%, rgba(18, 218, 209, 0.05) 0%, transparent 60%),
      linear-gradient(180deg, rgba(10, 13, 18, 0.90) 0%, rgba(14, 17, 22, 0.78) 28%, rgba(20, 23, 28, 0.52) 58%, rgba(26, 29, 34, 0.22) 82%, rgba(28, 31, 36, 0.06) 100%);
  }

  .hero-bg-gradient::after {
    opacity: 0.016;
    border-radius: 0 0 32px 32px;
  }

  .hero-right::after {
    border-radius: 0 0 32px 32px;
  }
}

@media (max-width: 640px) {
  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-proof > div {
    padding: 8px 12px 9px;
  }

  .hero-proof dd {
    white-space: normal;
  }

  .hero-proof > div:first-child,
  .hero-proof > div:last-child {
    border-radius: 0;
  }

  .hero-proof > div:first-child {
    border-radius: calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px) 0 0;
  }

  .hero-proof > div:last-child {
    border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .cta-btn,
  .hero-actions .hero-secondary-cta {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .brand {
    gap: 10px;
    min-width: 0;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand-text {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
  }

  .navbar-right {
    gap: 4px;
  }

  .user-avatar-btn,
  .user-avatar,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero-left {
    padding: 40px 20px 28px;
  }

  .hero-kicker {
    width: auto;
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .hero-left p {
    font-size: 1rem;
  }

  .hero-section {
    border-bottom-left-radius: 26px;
    border-bottom-right-radius: 26px;
  }

  .hero-right {
    min-height: 220px;
    max-height: 260px;
    border-radius: 0 0 26px 26px;
  }

  .hero-img {
    min-height: 220px;
    max-height: 260px;
    border-radius: 0 0 26px 26px;
  }

  .hero-bg-gradient,
  .hero-bg-gradient::after,
  .hero-right::after {
    border-radius: 0 0 26px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img,
  .hero-kicker,
  .hero-left h1,
  .hero-left p,
  .hero-actions,
  .hero-proof,
  .hero-right::before {
    animation: none !important;
  }

  .hero-img:hover {
    transform: none;
  }
}
